diff --git a/CHANGELOG.md b/CHANGELOG.md index e49a66f10..7305b9e71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.2.5 + +- **WPGraphQL:** Updated to v1.32.1. + ## 1.2.4 - [**Fix core/image PHP warnings**](https://github.com/Automattic/vip-decoupled-bundle/pull/90): Fixes empty core/image blocks causing PHP warnings diff --git a/lib/wp-graphql/.cursor/prd.md b/lib/wp-graphql/.cursor/prd.md new file mode 100644 index 000000000..adb2a4e1c --- /dev/null +++ b/lib/wp-graphql/.cursor/prd.md @@ -0,0 +1,211 @@ +# WPGraphQL Product Requirements Document + +## Product Overview +WPGraphQL is a free, open-source WordPress plugin that provides an extendable GraphQL API for WordPress websites. + +It provides a modern, performant GraphQL API that directly interfaces with WordPress internal data structures and registries, allowing developers to build headless WordPress applications. + +### Core Value Proposition +- Enable headless WordPress architecture with a modern GraphQL API +- Improve performance through selective data fetching +- Provide a modern developer experience for WordPress +- Enable better integrations with modern frontend frameworks +- Maintain WordPress security model and permissions + +## Target Users + +### Primary Users + +1. WordPress Developers + - Building headless WordPress applications + - Integrating WordPress with modern frontend frameworks + - Creating custom plugins that extend WPGraphQL + +2. Frontend Developers + - Consuming WordPress data in React, Vue, or other frontend applications + - Building JAMstack websites with WordPress as a backend + - Developing mobile applications that use WordPress data + +3. Agency Developers + - Building enterprise WordPress solutions + - Creating scalable multi-site implementations + - Developing custom client solutions + +### Secondary Users +1. WordPress Site Administrators + - Managing GraphQL API access + - Configuring API permissions + - Monitoring API usage + +2. Plugin Developers + - Extending WPGraphQL with custom types and fields + - Adding GraphQL support to existing WordPress plugins + - Creating WPGraphQL extension plugins + +## Core Features + +### GraphQL API Endpoint +- Single endpoint at /graphql + - endpoint can be changed via code or WPGraphQL settings +- Handles GraphQL Queries and Mutations +- Supports HTTP POST and GET requests +- Implements GraphQL specification +- Provides schema introspection + +### Schema Generation +- Automatically generates GraphQL schema for WordPress data +- Support for Post Types (built-in and custom) +- Support for Taxonomies (built-in and custom) +- Support for Users +- Support for Comments +- Support for WordPress settings + +### Security & Authentication +- Can integrate with WordPress authentication +- Respects WordPress capabilities +- Supports JWT authentication +- Provides options for field-level access control +- Maintains WordPress access-control model + +### Performance Features +- Selective data fetching +- Connection/pagination support +- Query batching +- Caching integration +- N+1 query prevention + +### Developer Tools +- GraphiQL IDE integration +- Debug mode +- Query logging +- Performance metrics +- Schema exploration tools + +### Extension System +- Hook and filter system for schema and data modification +- Custom Type registration API +- Field registration API +- Custom resolver support + +## Technical Requirements + +### WordPress Compatibility +- WordPress (6.0+ preferred) +- PHP (7.4+ preferred) +- MySQL (8+ preferred) or MariaDB (10.0+ preferred) +- Standard WordPress plugin installation. Can be installed via composer as well. + +### Security Requirements +- Input sanitization +- Output escaping +- Follow WordPress Access Control standards + +### API Standards +- GraphQL Specification compliance +- Relay specification support +- REST API coexistence +- Proper error handling +- Clear error messages + +## Integration Requirements + +### Frontend Framework Support +- React compatibility +- Vue.js compatibility +- Next.js compatibility +- Svelte compatibility +- Astro compatibility +- Gatsby compatibility +- Apollo Client support + +### Plugin Ecosystem +- WooCommerce integration +- ACF integration +- Yoast SEO integration +- Gravity Forms integration +- Custom plugin extensibility +- Multi-plugin compatibility + +### Development Tools +- WP-CLI support (limited) +- Composer integration +- npm package management +- Docker development environment +- CI/CD pipeline support + +## Success Metrics + +### Performance Metrics (ideals) +- Query response times +- Server resource usage +- Cache hit rates +- Error rates +- Concurrent user handling + +### Developer Metrics +- GitHub stars and forks +- Active installations +- Community contributions +- Documentation usage +- Support forum activity + +### User Success Metrics +- Successful installations +- API uptime +- Query success rates +- Extension adoption +- User satisfaction +- Query response times + +## Future Considerations + +### Planned Features +- Real-time subscriptions +- Enhanced caching system (see WPGraphQL Smart Cache) +- Improved debugging tools (see WPGraphQL IDE) +- Better error reporting +- Performance optimizations +- Custom Scalars +- Support for additional directives + +### Scalability Goals +- Increased Support for high-traffic sites +- Enterprise-level performance +- Multi-site network support (tbd) + +### Community Growth +- Documentation expansion +- Tutorial development +- Example project creation +- Community event participation +- Contributor program development + +## Implementation Guidelines + +### Code Standards +- WordPress Coding Standards +- PHPStan Level 10 compliance +- 85+% unit test coverage +- Integration test suite +- E2E test coverage + +### Documentation Requirements +- Inline code documentation +- API documentation +- Usage examples +- Integration guides +- Troubleshooting guides + +### Release Process +- Semantic versioning +- Change log maintenance +- Beta testing process +- Release candidates +- Backward compatibility (breaking changes communicated with semver) + +### Support Requirements +- GitHub issue tracking +- WordPress.org support +- Documentation updates +- Security advisories +- Version compatibility \ No newline at end of file diff --git a/lib/wp-graphql/.cursorrules b/lib/wp-graphql/.cursorrules new file mode 100644 index 000000000..79aff1f1f --- /dev/null +++ b/lib/wp-graphql/.cursorrules @@ -0,0 +1,104 @@ +# WPGraphQL is a WordPress plugin that adds a /graphql endpoint to the WordPress site and defines a GraphQL Schema based on internal WordPress registries such as the post type, taxonomy and settings registries. It includes the Schema, resolvers and a model layer for determining access to objects before resolving them. It is extendable by using WordPress hooks and filters via the add_action and add_filter functions. It follows phpcs standards defined in .phpcs.xml.dist. It uses composer to manage external dependencies such as graphql-php. It includes user interfaces in the WordPress admin dashboard for plugin settings and the GraphiQL IDE for interacting with the GraphQL Schema and testing queries and mutations. + +## Frameworks and Technologies +- framework: wordpress +- language: php +- package-manager: composer +- testing-framework: phpunit (codeception, wp-graphql-testcase) +- coding-standards: phpcs +- api: graphql + +## Key Concepts +- concept: "GraphQL Schema": "The structure that defines the types, queries, and mutations available in the WPGraphQL API" +- concept: "WordPress Registries": "Internal WordPress systems that store information about post types, taxonomies, and settings" +- concept: "Resolvers": "Functions that determine how to fetch and return data for specific GraphQL fields" +- concept: "Model Layer": "Classes that handle access control and data preparation before resolution" +- concept: "GraphiQL IDE": "An interactive development environment for testing GraphQL queries" + +## File Patterns +- pattern: "src/Admin/*.php": "WordPress admin interface implementations" +- pattern: "src/Connection/*.php": "Classes handling GraphQL connections and pagination" +- pattern: "src/Data/*.php": "Data manipulation and transformation classes" +- pattern: "src/Model/*.php": "Model classes that handle data access and authorization" +- pattern: "src/Mutation/*.php": "Classes defining GraphQL mutations" +- pattern: "src/Registry/*.php": "Classes for registering types and fields" +- pattern: "src/Server/*.php": "Validation Rules and other configuration for the GraphQL Server" +- pattern: "src/Type/*.php": "GraphQL type definitions" +- pattern: "src/Utils/*.php": "Utility classes and helper functions" +- pattern: "tests/**/*.php": "PHPUnit test files" +- pattern: "access-functions.php": "Global access functions" +- pattern: "docs/*.md": "User documentation for the plugin" +- pattern: "cli/*.php": "WP-CLI commands for interacting with WPGraphQL using WP-CLI" +- pattern: "phpstan/*.php": "Stubs for use with phpstan for static analysis" +- pattern: "packages/**/*.js": "JavaScript packages that make up the GraphiQL IDE" +- pattern: ".wordpress-org/": "Files used for building and deploying the plugin to WordPress.org" + +## Dependencies +- dependency: "webonyx/graphql-php": "Core GraphQL PHP implementation" +- dependency: "ivome/graphql-relay-php": "Relay specification implementation" +- dependency: "phpunit/phpunit": "Testing framework" +- dependency: "squizlabs/php_codesniffer": "Code style checking" +- dependency: "phpstan/phpstan": "Static analysis tool" +- dependency: "wp-coding-standards/wpcs": "WordPress Coding Standards" + +## Common Code Patterns +```php +// Registering a GraphQL Type +add_action( 'graphql_register_types', function( $type_registry ) { + + register_graphql_object_type( 'TypeName', [ + 'fields' => [ + 'fieldName' => [ + 'type' => 'String', + 'resolve' => function($source, $args, $context, $info) { + // Resolution logic + } + ] + ] + ]); + +}); + +// Registering a GraphQL Field +add_action( 'graphql_register_types', function( $type_registry ) { + + register_graphql_field( 'TypeName', 'FieldName', [ + 'description' => __( 'Description of the field', 'your-textdomain' ), + 'type' => 'String', + 'resolve' => function() { + // interact with the WordPress database, or even an external API or whatever. + return 'value retrieved from WordPress, or elsewhere'; + } + ]); + +}); +``` + +## Key Directories +- directory: "src/": "Core plugin source code" +- directory: "includes/": "Plugin includes and utilities" +- directory: "tests/": "Test files" +- directory: "docs/": "Documentation" +- directory: "languages/": "Translation files" +- directory: ".github/": "Files used for interacting with GitHub" +- directory ".wordpress-org/": "Files used for building and deploying the plugin to WordPress.org" +- directory "build/": "Contains the built assets for the GraphiQL IDE" +- directory "bin/": "Contains scripts used in CI" +- directory "docker/": "Contains configuration for running WPGraphQL in Docker" +- directory "img": "Contains images used in documentation" +- directory: "phpstan/": "PHPStan configuration and stubs" + +## Important Files +- file: "wp-graphql.php": "Main plugin file" +- file: "composer.json": "Dependency management" +- file: ".phpcs.xml.dist": "PHP CodeSniffer configuration" +- file: "phpunit.xml.dist": "PHPUnit configuration" +- file: "access-functions.php": "Global access functions" +- file: "phpstan.neon.dist": "PHPStan configuration" +- file: "docker-compose.yml": "Docker environment configuration" +- file: ".wordpress-org/blueprints/blueprint.json": "Blueprint for running WPGraphQL in WordPress Playground, a WASM environment that runs WordPress fully in the browser" + +## Debug Tools +- concept: "GraphQL Debug Mode": "Enable via WPGraphQL Settings or define('GRAPHQL_DEBUG', true)" +- concept: "Query Logs": "Logs the SQL queries to fulfil a graphql request. Requires Query Monitor to be active. Enabled via WPGraphQL Settings and available in GraphiQL when debug mode is enabled" +- concept: "Query Tracing": "Shows trace data for resolvers (i.e. timing for execution). Enabled via WPGraphQL Settings and available in GraphiQL when debug mode is enabled" \ No newline at end of file diff --git a/lib/wp-graphql/.nvmrc b/lib/wp-graphql/.nvmrc new file mode 100644 index 000000000..209e3ef4b --- /dev/null +++ b/lib/wp-graphql/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/lib/wp-graphql/activation.php b/lib/wp-graphql/activation.php index 25531ac70..8243dc1c9 100644 --- a/lib/wp-graphql/activation.php +++ b/lib/wp-graphql/activation.php @@ -5,13 +5,5 @@ * @return void */ function graphql_activation_callback() { - do_action( 'graphql_activate' ); - - if ( ! defined( 'WPGRAPHQL_VERSION' ) ) { - return; - } - - // store the current version of WPGraphQL - update_option( 'wp_graphql_version', WPGRAPHQL_VERSION ); } diff --git a/lib/wp-graphql/build/113.js b/lib/wp-graphql/build/113.js new file mode 100644 index 000000000..bfa3391eb --- /dev/null +++ b/lib/wp-graphql/build/113.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[113,924],{924:(e,o,t)=>{t.r(o),t.d(o,{a:()=>u,d:()=>l});var n=t(3338),r=Object.defineProperty,i=(e,o)=>r(e,"name",{value:o,configurable:!0});function a(e,o){return o.forEach((function(o){o&&"string"!=typeof o&&!Array.isArray(o)&&Object.keys(o).forEach((function(t){if("default"!==t&&!(t in e)){var n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return o[t]}})}}))})),Object.freeze(e)}i(a,"_mergeNamespaces");var u={exports:{}};!function(e){function o(o,t,n){var r,i=o.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}i(o,"dialogDiv"),i(t,"closeNotification"),e.defineExtension("openDialog",(function(n,r,a){a||(a={}),t(this,null);var u=o(this,n,a.bottom),s=!1,l=this;function c(o){if("string"==typeof o)p.value=o;else{if(s)return;s=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),l.focus(),a.onClose&&a.onClose(u)}}i(c,"close");var f,p=u.getElementsByTagName("input")[0];return p?(p.focus(),a.value&&(p.value=a.value,!1!==a.selectValueOnOpen&&p.select()),a.onInput&&e.on(p,"input",(function(e){a.onInput(e,p.value,c)})),a.onKeyUp&&e.on(p,"keyup",(function(e){a.onKeyUp(e,p.value,c)})),e.on(p,"keydown",(function(o){a&&a.onKeyDown&&a.onKeyDown(o,p.value,c)||((27==o.keyCode||!1!==a.closeOnEnter&&13==o.keyCode)&&(p.blur(),e.e_stop(o),c()),13==o.keyCode&&r(p.value,o))})),!1!==a.closeOnBlur&&e.on(u,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(f=u.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){c(),l.focus()})),!1!==a.closeOnBlur&&e.on(f,"blur",c),f.focus()),c})),e.defineExtension("openConfirm",(function(n,r,a){t(this,null);var u=o(this,n,a&&a.bottom),s=u.getElementsByTagName("button"),l=!1,c=this,f=1;function p(){l||(l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus())}i(p,"close"),s[0].focus();for(var d=0;d{t.r(o),t.d(o,{j:()=>c});var n=t(3338),r=t(924),i=Object.defineProperty,a=(e,o)=>i(e,"name",{value:o,configurable:!0});function u(e,o){return o.forEach((function(o){o&&"string"!=typeof o&&!Array.isArray(o)&&Object.keys(o).forEach((function(t){if("default"!==t&&!(t in e)){var n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return o[t]}})}}))})),Object.freeze(e)}a(u,"_mergeNamespaces");var s={exports:{}};!function(e){function o(e,o,t,n,r){e.openDialog?e.openDialog(o,r,{value:n,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,n))}function t(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}function n(e,o){var t=Number(o);return/^[-+]/.test(o)?e.getCursor().line+t:t-1}e.defineOption("search",{bottom:!1}),a(o,"dialog"),a(t,"getJumpDialog"),a(n,"interpretLine"),e.commands.jumpToLine=function(e){var r=e.getCursor();o(e,t(e),e.phrase("Jump to line:"),r.line+1+":"+r.ch,(function(o){var t;if(o)if(t=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(o))e.setCursor(n(e,t[1]),Number(t[2]));else if(t=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(o)){var i=Math.round(e.lineCount()*Number(t[1])/100);/^[-+]/.test(t[1])&&(i=r.line+i+1),e.setCursor(i-1,r.ch)}else(t=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(o))&&e.setCursor(n(e,t[1]),r.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n.a.exports,r.a.exports);var l=s.exports,c=Object.freeze(u({__proto__:null,[Symbol.toStringTag]:"Module",default:l},[s.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/148.js b/lib/wp-graphql/build/148.js new file mode 100644 index 000000000..b4536cce8 --- /dev/null +++ b/lib/wp-graphql/build/148.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[148],{3148:(e,o,t)=>{t.r(o),t.d(o,{f:()=>d});var n=t(3338),r=Object.defineProperty,i=(e,o)=>r(e,"name",{value:o,configurable:!0});function f(e,o){return o.forEach((function(o){o&&"string"!=typeof o&&!Array.isArray(o)&&Object.keys(o).forEach((function(t){if("default"!==t&&!(t in e)){var n=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return o[t]}})}}))})),Object.freeze(e)}i(f,"_mergeNamespaces");var a={exports:{}};!function(e){function o(o,n,f,a){if(f&&f.call){var l=f;f=null}else l=r(o,f,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var d=r(o,f,"minFoldSize");function u(e){var t=l(o,n);if(!t||t.to.line-t.from.lineo.firstLine();)n=e.Pos(n.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==a){var s=t(o,f,c);e.on(s,"mousedown",(function(o){p.clear(),e.e_preventDefault(o)}));var p=o.markText(c.from,c.to,{replacedWith:s,clearOnEnter:r(o,f,"clearOnEnter"),__isFold:!0});p.on("clear",(function(t,n){e.signal(o,"unfold",o,t,n)})),e.signal(o,"fold",o,c.from,c.to)}}function t(e,o,t){var n=r(e,o,"widget");if("function"==typeof n&&(n=n(t.from,t.to)),"string"==typeof n){var i=document.createTextNode(n);(n=document.createElement("span")).appendChild(i),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}i(o,"doFold"),i(t,"makeWidget"),e.newFoldFunction=function(e,t){return function(n,r){o(n,r,{rangeFinder:e,widget:t})}},e.defineExtension("foldCode",(function(e,t,n){o(this,e,t,n)})),e.defineExtension("isFolded",(function(e){for(var o=this.findMarksAt(e),t=0;t=d){if(s&&l&&s.test(l.className))return;n=f(i.indicatorOpen)}}(n||l)&&e.setGutterMarker(t,i.gutter,n)}))}function l(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function d(e){var o=e.getViewport(),t=e.state.foldGutter;t&&(e.operation((function(){a(e,o.from,o.to)})),t.from=o.from,t.to=o.to)}function u(e,t,n){var i=e.state.foldGutter;if(i){var f=i.options;if(n==f.gutter){var a=r(e,t);a?a.clear():e.foldCode(o(t,0),f)}}}function c(e){var o=e.state.foldGutter;if(o){var t=o.options;o.from=o.to=0,clearTimeout(o.changeUpdate),o.changeUpdate=setTimeout((function(){d(e)}),t.foldOnChangeTimeSpan||600)}}function s(e){var o=e.state.foldGutter;if(o){var t=o.options;clearTimeout(o.changeUpdate),o.changeUpdate=setTimeout((function(){var t=e.getViewport();o.from==o.to||t.from-o.to>20||o.from-t.to>20?d(e):e.operation((function(){t.fromo.to&&(a(e,o.to,t.to),o.to=t.to)}))}),t.updateViewportTimeSpan||400)}}function p(e,o){var t=e.state.foldGutter;if(t){var n=o.line;n>=t.from&&n{function i(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>i}),(0,Object.defineProperty)(i,"name",{value:"forEachState",configurable:!0})},9253:(e,t,n)=>{n.r(t);var i=n(3338),r=n(5549),l=n(7437),o=(n(166),n(1609),n(5795),Object.defineProperty),a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e,t,n){const i=p(n,u(t.string));if(!i)return;const r=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:i,from:{line:e.line,ch:r},to:{line:e.line,ch:t.end}}}function p(e,t){return t?c(c(e.map((e=>({proximity:f(u(e.text),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length)).map((e=>e.entry)):c(e,(e=>!e.isDeprecated))}function c(e,t){const n=e.filter(t);return 0===n.length?e:n}function u(e){return e.toLowerCase().replace(/\W/g,"")}function f(e,t){let n=d(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function d(e,t){let n,i;const r=[],l=e.length,o=t.length;for(n=0;n<=l;n++)r[n]=[n];for(i=1;i<=o;i++)r[0][i]=i;for(n=1;n<=l;n++)for(i=1;i<=o;i++){const l=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+l),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+l))}return r[l][o]}function y(e,t,n){const i="Invalid"===t.state.kind?t.state.prevState:t.state,l=i.kind,o=i.step;if("Document"===l&&0===o)return s(e,t,[{text:"{"}]);const a=n.variableToType;if(!a)return;const p=h(a,t.state);if("Document"===l||"Variable"===l&&0===o)return s(e,t,Object.keys(a).map((e=>({text:`"${e}": `,type:a[e]}))));if(("ObjectValue"===l||"ObjectField"===l&&0===o)&&p.fields)return s(e,t,Object.keys(p.fields).map((e=>p.fields[e])).map((e=>({text:`"${e.name}": `,type:e.type,description:e.description}))));if("StringValue"===l||"NumberValue"===l||"BooleanValue"===l||"NullValue"===l||"ListValue"===l&&1===o||"ObjectField"===l&&2===o||"Variable"===l&&2===o){const n=p.type?(0,r.getNamedType)(p.type):void 0;if(n instanceof r.GraphQLInputObjectType)return s(e,t,[{text:"{"}]);if(n instanceof r.GraphQLEnumType)return s(e,t,n.getValues().map((e=>({text:`"${e.name}"`,type:n,description:e.description}))));if(n===r.GraphQLBoolean)return s(e,t,[{text:"true",type:r.GraphQLBoolean,description:"Not false."},{text:"false",type:r.GraphQLBoolean,description:"Not true."}])}}function h(e,t){const n={type:null,fields:null};return(0,l.f)(t,(t=>{if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){const e=n.type?(0,r.getNullableType)(n.type):void 0;n.type=e instanceof r.GraphQLList?e.ofType:null}else if("ObjectValue"===t.kind){const e=n.type?(0,r.getNamedType)(n.type):void 0;n.fields=e instanceof r.GraphQLInputObjectType?e.getFields():null}else if("ObjectField"===t.kind){const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type}})),n}a(s,"hintList"),a(p,"filterAndSortList"),a(c,"filterNonEmpty"),a(u,"normalizeText"),a(f,"getProximity"),a(d,"lexicalDistance"),i.C.registerHelper("hint","graphql-variables",((e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),l=y(n,r,t);return(null==l?void 0:l.list)&&l.list.length>0&&(l.from=i.C.Pos(l.from.line,l.from.ch),l.to=i.C.Pos(l.to.line,l.to.ch),i.C.signal(e,"hasCompletion",e,l,r)),l})),a(y,"getVariablesHint"),a(h,"getTypeInfo")}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/260.js b/lib/wp-graphql/build/260.js new file mode 100644 index 000000000..856d1c742 --- /dev/null +++ b/lib/wp-graphql/build/260.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[260],{9654:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>f,c:()=>d,d:()=>m,e:()=>g,g:()=>l});var i=n(5549),a=n(7331),r=n(7437),u=Object.defineProperty,o=(e,t)=>u(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var a,r;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?p(e,n.parentType,t.name):null,n.type=null===(a=n.fieldDef)||void 0===a?void 0:a.type;break;case"SelectionSet":n.parentType=n.type?(0,i.getNamedType)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const u=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&p(e,n.parentType,t.prevState.name):null:null;n.argDefs=u?u.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,i.getNullableType)(n.inputType):null;n.inputType=l instanceof i.GraphQLList?l.ofType:null;break;case"ObjectValue":const c=n.inputType?(0,i.getNamedType)(n.inputType):null;n.objectFieldDefs=c instanceof i.GraphQLInputObjectType?c.getFields():null;break;case"ObjectField":const f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==f?void 0:f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function p(e,t,n){return n===a.S.name&&e.getQueryType()===t?a.S:n===a.T.name&&e.getQueryType()===t?a.T:n===a.a.name&&(0,i.isCompositeType)(t)?a.a:t&&t.getFields?t.getFields()[n]:void 0}function s(e,t){for(let n=0;n{function i(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>i}),(0,Object.defineProperty)(i,"name",{value:"forEachState",configurable:!0})},1260:(e,t,n)=>{n.r(t);var i=n(3338),a=n(9654),r=(n(166),n(5549),n(1609),n(5795),n(7331),n(7437),Object.defineProperty),u=(e,t)=>r(e,"name",{value:t,configurable:!0});function o(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const i=n.getBoundingClientRect(),a={left:(i.left+i.right)/2,top:(i.top+i.bottom)/2};e.state.jump.cursor=a,e.state.jump.isHoldingModifier&&f(e)}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&d(e):e.state.jump.cursor=null}function p(e,t){if(e.state.jump.isHoldingModifier||!c(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);const n=u((u=>{u.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&d(e),i.C.off(document,"keyup",n),i.C.off(document,"click",a),e.off("mousedown",r))}),"onKeyUp"),a=u((t=>{const n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)}),"onClick"),r=u(((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)}),"onMouseDown");i.C.on(document,"keyup",n),i.C.on(document,"click",a),e.on("mousedown",r)}i.C.defineOption("jump",!1,((e,t,n)=>{if(n&&n!==i.C.Init){const t=e.state.jump.onMouseOver;i.C.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;i.C.off(e.getWrapperElement(),"mouseout",n),i.C.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:p.bind(null,e)};i.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver),i.C.on(e.getWrapperElement(),"mouseout",n.onMouseOut),i.C.on(document,"keydown",n.onKeyDown)}})),u(o,"onMouseOver"),u(l,"onMouseOut"),u(p,"onKeyDown");const s="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function c(e){return e===(s?"Meta":"Control")}function f(e){if(e.state.jump.marker)return;const t=e.state.jump.cursor,n=e.coordsChar(t),i=e.getTokenAt(n,!0),a=e.state.jump.options,r=a.getDestination||e.getHelper(n,"jump");if(r){const t=r(i,a,e);if(t){const a=e.markText({line:n.line,ch:i.start},{line:n.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=a,e.state.jump.destination=t}}}function d(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}u(c,"isJumpModifier"),u(f,"enableJumpMode"),u(d,"disableJumpMode"),i.C.registerHelper("jump","graphql",((e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const n=e.state,i=n.kind,r=n.step,u=(0,a.g)(t.schema,n);return"Field"===i&&0===r&&u.fieldDef||"AliasedField"===i&&2===r&&u.fieldDef?(0,a.a)(u):"Directive"===i&&1===r&&u.directiveDef?(0,a.b)(u):"Argument"===i&&0===r&&u.argDef?(0,a.c)(u):"EnumValue"===i&&u.enumValue?(0,a.d)(u):"NamedType"===i&&u.type?(0,a.e)(u):void 0}))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/271.js b/lib/wp-graphql/build/271.js new file mode 100644 index 000000000..bda96674d --- /dev/null +++ b/lib/wp-graphql/build/271.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[271],{2271:(e,t,n)=>{n.r(t);var r=n(3338),l=(n(5549),n(166)),a=n(9920),u=(n(1609),n(5795),Object.defineProperty);function i(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-results",(e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:o,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),u(i,"name",{value:"indent",configurable:!0});const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},o={Document:[(0,l.p)("{"),(0,l.l)("Entry",(0,l.p)(",")),(0,l.p)("}")],Entry:[(0,l.t)("String","def"),(0,l.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,l.t)("Number","number")],StringValue:[(0,l.t)("String","string")],BooleanValue:[(0,l.t)("Keyword","builtin")],NullValue:[(0,l.t)("Keyword","keyword")],ListValue:[(0,l.p)("["),(0,l.l)("Value",(0,l.p)(",")),(0,l.p)("]")],ObjectValue:[(0,l.p)("{"),(0,l.l)("ObjectField",(0,l.p)(",")),(0,l.p)("}")],ObjectField:[(0,l.t)("String","property"),(0,l.p)(":"),"Value"]}},9920:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(166),l=n(5549),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function i(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,l.Kind.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:u,editorConfig:i}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==i?void 0:i.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(u(e))return"ws";const s=g(l,e);if(!s)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return p(c,t,"Comment"),"comment";const v=o({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{r.r(t),r.d(t,{j:()=>l});var n=r(3338),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}i(o,"_mergeNamespaces");var s,c={exports:{}};(s=n.a.exports).defineMode("javascript",(function(e,t){var r,n,a=e.indentUnit,o=t.statementIndent,c=t.jsonld,u=t.json||c,l=!1!==t.trackScope,f=t.typescript,p=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}i(e,"kw");var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),m=/[+\-*&%=<>!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,a){return r=e,n=a,t}function b(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x,x(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):at(e,t,1)?(k(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(p))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(m.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(y))return r.tokenize=b,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=b),v("string","string")}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=b;break}n="*"==r}return v("comment","comment")}function g(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=b;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}i(k,"readRegexp"),i(v,"ret"),i(b,"tokenBase"),i(w,"tokenString"),i(x,"tokenComment"),i(g,"tokenQuasi");function h(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(f){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!a){++o;break}if(0==--a){"("==s&&(i=!0);break}}else if(c>=3&&c<6)++a;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}i(h,"findFatArrow");var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function M(e,t){if(!l)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,a){var i=e.cc;for(T.state=e,T.stream=a,T.marked=null,T.cc=i,T.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?J:W)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return T.marked?T.marked:"variable"==r&&M(e,n)?"variable-2":t}}i(A,"JSLexical"),i(M,"inScope"),i(E,"parseJS");var T={state:null,column:null,marked:null,cc:null};function V(){for(var e=arguments.length-1;e>=0;e--)T.cc.push(arguments[e])}function C(){return V.apply(null,arguments),!0}function I(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function z(e){var r=T.state;if(T.marked="def",l){if(r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=S(e,r.context);if(null!=n)return void(r.context=n)}else if(!I(e,r.localVars))return void(r.localVars=new q(e,r.localVars));t.globalVars&&!I(e,r.globalVars)&&(r.globalVars=new q(e,r.globalVars))}}function S(e,t){if(t){if(t.block){var r=S(e,t.prev);return r?r==t.prev?t:new _(r,t.vars,!0):null}return I(e,t.vars)?t:new _(t.prev,new q(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function _(e,t,r){this.prev=e,this.vars=t,this.block=r}function q(e,t){this.name=e,this.next=t}i(V,"pass"),i(C,"cont"),i(I,"inList"),i(z,"register"),i(S,"registerVarScoped"),i(O,"isModifier"),i(_,"Context"),i(q,"Var");var $=new q("this",new q("arguments",null));function N(){T.state.context=new _(T.state.context,T.state.localVars,!1),T.state.localVars=$}function P(){T.state.context=new _(T.state.context,T.state.localVars,!0),T.state.localVars=null}function B(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function F(e,t){var r=i((function(){var r=T.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new A(n,T.stream.column(),e,null,r.lexical,t)}),"result");return r.lex=!0,r}function L(){var e=T.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function Q(e){function t(r){return r==e?C():";"==e||"}"==r||")"==r||"]"==r?V():C(t)}return i(t,"exp"),t}function W(e,t){return"var"==e?C(F("vardef",t),Ve,Q(";"),L):"keyword a"==e?C(F("form"),U,W,L):"keyword b"==e?C(F("form"),W,L):"keyword d"==e?T.stream.match(/^\s*$/,!1)?C():C(F("stat"),K,Q(";"),L):"debugger"==e?C(Q(";")):"{"==e?C(F("}"),P,pe,L,B):";"==e?C():"if"==e?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==L&&T.state.cc.pop()(),C(F("form"),U,W,L,_e)):"function"==e?C(Pe):"for"==e?C(F("form"),P,qe,W,B,L):"class"==e||f&&"interface"==t?(T.marked="keyword",C(F("form","class"==e?e:t),We,L)):"variable"==e?f&&"declare"==t?(T.marked="keyword",C(W)):f&&("module"==t||"enum"==t||"type"==t)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==t?C(tt):"type"==t?C(Fe,Q("operator"),ve,Q(";")):C(F("form"),Ce,Q("{"),F("}"),pe,L,L)):f&&"namespace"==t?(T.marked="keyword",C(F("form"),J,W,L)):f&&"abstract"==t?(T.marked="keyword",C(W)):C(F("stat"),ie):"switch"==e?C(F("form"),U,Q("{"),F("}","switch"),P,pe,L,L,B):"case"==e?C(J,Q(":")):"default"==e?C(Q(":")):"catch"==e?C(F("form"),N,D,W,L,B):"export"==e?C(F("stat"),Ue,L):"import"==e?C(F("stat"),Ke,L):"async"==e?C(W):"@"==t?C(J,W):V(F("stat"),J,Q(";"),L)}function D(e){if("("==e)return C(Le,Q(")"))}function J(e,t){return H(e,t,!1)}function R(e,t){return H(e,t,!0)}function U(e){return"("!=e?V():C(F(")"),K,Q(")"),L)}function H(e,t,r){if(T.state.fatArrowAt==T.stream.start){var n=r?te:ee;if("("==e)return C(N,F(")"),le(Le,")"),L,Q("=>"),n,B);if("variable"==e)return V(N,Ce,Q("=>"),n,B)}var a=r?X:G;return j.hasOwnProperty(e)?C(a):"function"==e?C(Pe,a):"class"==e||f&&"interface"==t?(T.marked="keyword",C(F("form"),Qe,L)):"keyword c"==e||"async"==e?C(r?R:J):"("==e?C(F(")"),K,Q(")"),L,a):"operator"==e||"spread"==e?C(r?R:J):"["==e?C(F("]"),et,L,a):"{"==e?fe(se,"}",null,a):"quasi"==e?V(Y,a):"new"==e?C(re(r)):C()}function K(e){return e.match(/[;\}\)\],]/)?V():V(J)}function G(e,t){return","==e?C(K):X(e,t,!1)}function X(e,t,r){var n=0==r?G:X,a=0==r?J:R;return"=>"==e?C(N,r?te:ee,B):"operator"==e?/\+\+|--/.test(t)||f&&"!"==t?C(n):f&&"<"==t&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(F(">"),le(ve,">"),L,n):"?"==t?C(J,Q(":"),a):C(a):"quasi"==e?V(Y,n):";"!=e?"("==e?fe(R,")","call",n):"."==e?C(oe,n):"["==e?C(F("]"),K,Q("]"),L,n):f&&"as"==t?(T.marked="keyword",C(ve,n)):"regexp"==e?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),C(a)):void 0:void 0}function Y(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(Y):C(K,Z)}function Z(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(Y)}function ee(e){return h(T.stream,T.state),V("{"==e?W:J)}function te(e){return h(T.stream,T.state),V("{"==e?W:R)}function re(e){return function(t){return"."==t?C(e?ae:ne):"variable"==t&&f?C(Me,e?X:G):V(e?R:J)}}function ne(e,t){if("target"==t)return T.marked="keyword",C(G)}function ae(e,t){if("target"==t)return T.marked="keyword",C(X)}function ie(e){return":"==e?C(L,W):V(G,Q(";"),L)}function oe(e){if("variable"==e)return T.marked="property",C()}function se(e,t){return"async"==e?(T.marked="property",C(se)):"variable"==e||"keyword"==T.style?(T.marked="property","get"==t||"set"==t?C(ce):(f&&T.state.fatArrowAt==T.stream.start&&(r=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+r[0].length),C(ue))):"number"==e||"string"==e?(T.marked=c?"property":T.style+" property",C(ue)):"jsonld-keyword"==e?C(ue):f&&O(t)?(T.marked="keyword",C(se)):"["==e?C(J,de,Q("]"),ue):"spread"==e?C(R,ue):"*"==t?(T.marked="keyword",C(se)):":"==e?V(ue):void 0;var r}function ce(e){return"variable"!=e?V(ue):(T.marked="property",C(Pe))}function ue(e){return":"==e?C(R):"("==e?V(Pe):void 0}function le(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=T.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),C((function(r,n){return r==t||n==t?V():V(e)}),n)}return a==t||i==t?C():r&&r.indexOf(";")>-1?V(e):C(Q(t))}return i(n,"proceed"),function(r,a){return r==t||a==t?C():V(e,n)}}function fe(e,t,r){for(var n=3;n"),ve):"quasi"==e?V(ge,Ae):void 0}function be(e){if("=>"==e)return C(ve)}function we(e){return e.match(/[\}\)\]]/)?C():","==e||";"==e?C(we):V(xe,we)}function xe(e,t){return"variable"==e||"keyword"==T.style?(T.marked="property",C(xe)):"?"==t||"number"==e||"string"==e?C(xe):":"==e?C(ve):"["==e?C(Q("variable"),me,Q("]"),xe):"("==e?V(Be,xe):e.match(/[;\}\)\],]/)?void 0:C()}function ge(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(ge):C(ve,he)}function he(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(ge)}function je(e,t){return"variable"==e&&T.stream.match(/^\s*[?:]/,!1)||"?"==t?C(je):":"==e?C(ve):"spread"==e?C(je):V(ve)}function Ae(e,t){return"<"==t?C(F(">"),le(ve,">"),L,Ae):"|"==t||"."==e||"&"==t?C(ve):"["==e?C(ve,Q("]"),Ae):"extends"==t||"implements"==t?(T.marked="keyword",C(ve)):"?"==t?C(ve,Q(":"),ve):void 0}function Me(e,t){if("<"==t)return C(F(">"),le(ve,">"),L,Ae)}function Ee(){return V(ve,Te)}function Te(e,t){if("="==t)return C(ve)}function Ve(e,t){return"enum"==t?(T.marked="keyword",C(tt)):V(Ce,de,Se,Oe)}function Ce(e,t){return f&&O(t)?(T.marked="keyword",C(Ce)):"variable"==e?(z(t),C()):"spread"==e?C(Ce):"["==e?fe(ze,"]"):"{"==e?fe(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||T.stream.match(/^\s*:/,!1)?("variable"==e&&(T.marked="property"),"spread"==e?C(Ce):"}"==e?V():"["==e?C(J,Q("]"),Q(":"),Ie):C(Q(":"),Ce,Se)):(z(t),C(Se))}function ze(){return V(Ce,Se)}function Se(e,t){if("="==t)return C(R)}function Oe(e){if(","==e)return C(Ve)}function _e(e,t){if("keyword b"==e&&"else"==t)return C(F("form","else"),W,L)}function qe(e,t){return"await"==t?C(qe):"("==e?C(F(")"),$e,L):void 0}function $e(e){return"var"==e?C(Ve,Ne):"variable"==e?C(Ne):V(Ne)}function Ne(e,t){return")"==e?C():";"==e?C(Ne):"in"==t||"of"==t?(T.marked="keyword",C(J,Ne)):V(J,Ne)}function Pe(e,t){return"*"==t?(T.marked="keyword",C(Pe)):"variable"==e?(z(t),C(Pe)):"("==e?C(N,F(")"),le(Le,")"),L,ye,W,B):f&&"<"==t?C(F(">"),le(Ee,">"),L,Pe):void 0}function Be(e,t){return"*"==t?(T.marked="keyword",C(Be)):"variable"==e?(z(t),C(Be)):"("==e?C(N,F(")"),le(Le,")"),L,ye,B):f&&"<"==t?C(F(">"),le(Ee,">"),L,Be):void 0}function Fe(e,t){return"keyword"==e||"variable"==e?(T.marked="type",C(Fe)):"<"==t?C(F(">"),le(Ee,">"),L):void 0}function Le(e,t){return"@"==t&&C(J,Le),"spread"==e?C(Le):f&&O(t)?(T.marked="keyword",C(Le)):f&&"this"==e?C(de,Se):V(Ce,de,Se)}function Qe(e,t){return"variable"==e?We(e,t):De(e,t)}function We(e,t){if("variable"==e)return z(t),C(De)}function De(e,t){return"<"==t?C(F(">"),le(Ee,">"),L,De):"extends"==t||"implements"==t||f&&","==e?("implements"==t&&(T.marked="keyword"),C(f?ve:J,De)):"{"==e?C(F("}"),Je,L):void 0}function Je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||f&&O(t))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",C(Je)):"variable"==e||"keyword"==T.style?(T.marked="property",C(Re,Je)):"number"==e||"string"==e?C(Re,Je):"["==e?C(J,de,Q("]"),Re,Je):"*"==t?(T.marked="keyword",C(Je)):f&&"("==e?V(Be,Je):";"==e||","==e?C(Je):"}"==e?C():"@"==t?C(J,Je):void 0}function Re(e,t){if("!"==t)return C(Re);if("?"==t)return C(Re);if(":"==e)return C(ve,Se);if("="==t)return C(R);var r=T.state.lexical.prev;return V(r&&"interface"==r.info?Be:Pe)}function Ue(e,t){return"*"==t?(T.marked="keyword",C(Ze,Q(";"))):"default"==t?(T.marked="keyword",C(J,Q(";"))):"{"==e?C(le(He,"}"),Ze,Q(";")):V(W)}function He(e,t){return"as"==t?(T.marked="keyword",C(Q("variable"))):"variable"==e?V(R,He):void 0}function Ke(e){return"string"==e?C():"("==e?V(J):"."==e?V(G):V(Ge,Xe,Ze)}function Ge(e,t){return"{"==e?fe(Ge,"}"):("variable"==e&&z(t),"*"==t&&(T.marked="keyword"),C(Ye))}function Xe(e){if(","==e)return C(Ge,Xe)}function Ye(e,t){if("as"==t)return T.marked="keyword",C(Ge)}function Ze(e,t){if("from"==t)return T.marked="keyword",C(J)}function et(e){return"]"==e?C():V(le(R,"]"))}function tt(){return V(F("form"),Ce,Q("{"),F("}"),le(rt,"}"),L,L)}function rt(){return V(Ce,Se)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||m.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function at(e,t,r){return t.tokenize==b&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return i(N,"pushcontext"),i(P,"pushblockcontext"),N.lex=P.lex=!0,i(B,"popcontext"),B.lex=!0,i(F,"pushlex"),i(L,"poplex"),L.lex=!0,i(Q,"expect"),i(W,"statement"),i(D,"maybeCatchBinding"),i(J,"expression"),i(R,"expressionNoComma"),i(U,"parenExpr"),i(H,"expressionInner"),i(K,"maybeexpression"),i(G,"maybeoperatorComma"),i(X,"maybeoperatorNoComma"),i(Y,"quasi"),i(Z,"continueQuasi"),i(ee,"arrowBody"),i(te,"arrowBodyNoComma"),i(re,"maybeTarget"),i(ne,"target"),i(ae,"targetNoComma"),i(ie,"maybelabel"),i(oe,"property"),i(se,"objprop"),i(ce,"getterSetter"),i(ue,"afterprop"),i(le,"commasep"),i(fe,"contCommasep"),i(pe,"block"),i(de,"maybetype"),i(me,"maybetypeOrIn"),i(ye,"mayberettype"),i(ke,"isKW"),i(ve,"typeexpr"),i(be,"maybeReturnType"),i(we,"typeprops"),i(xe,"typeprop"),i(ge,"quasiType"),i(he,"continueQuasiType"),i(je,"typearg"),i(Ae,"afterType"),i(Me,"maybeTypeArgs"),i(Ee,"typeparam"),i(Te,"maybeTypeDefault"),i(Ve,"vardef"),i(Ce,"pattern"),i(Ie,"proppattern"),i(ze,"eltpattern"),i(Se,"maybeAssign"),i(Oe,"vardefCont"),i(_e,"maybeelse"),i(qe,"forspec"),i($e,"forspec1"),i(Ne,"forspec2"),i(Pe,"functiondef"),i(Be,"functiondecl"),i(Fe,"typename"),i(Le,"funarg"),i(Qe,"classExpression"),i(We,"className"),i(De,"classNameAfter"),i(Je,"classBody"),i(Re,"classfield"),i(Ue,"afterExport"),i(He,"exportField"),i(Ke,"afterImport"),i(Ge,"importSpec"),i(Xe,"maybeMoreImports"),i(Ye,"maybeAs"),i(Ze,"maybeFrom"),i(et,"arrayLiteral"),i(tt,"enumdef"),i(rt,"enummember"),i(nt,"isContinuedStatement"),i(at,"expressionAllowed"),{startState:function(e){var r={tokenize:b,lastType:"sof",cc:[],lexical:new A((e||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new _(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),h(e,t)),t.tokenize!=x&&e.eatSpace())return null;var a=t.tokenize(e,t);return"comment"==r?a:(t.lastType="operator"!=r||"++"!=n&&"--"!=n?r:"incdec",E(t,a,r,n,e))},indent:function(e,r){if(e.tokenize==x||e.tokenize==g)return s.Pass;if(e.tokenize!=b)return 0;var n,i=r&&r.charAt(0),c=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var l=e.cc[u];if(l==L)c=c.prev;else if(l!=_e&&l!=B)break}for(;("stat"==c.type||"form"==c.type)&&("}"==i||(n=e.cc[e.cc.length-1])&&(n==G||n==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var f=c.type,p=i==f;return"vardef"==f?c.indented+("operator"==e.lastType||","==e.lastType?c.info.length+1:0):"form"==f&&"{"==i?c.indented:"form"==f?c.indented+a:"stat"==f?c.indented+(nt(e,r)?o||a:0):"switch"!=c.info||p||0==t.doubleIndentSwitch?c.align?c.column+(p?0:1):c.indented+(p?0:a):c.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:at,skipExpression:function(e){E(e,"atom","atom","true",new s.StringStream("",2,null))}}})),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var u=c.exports,l=Object.freeze(o({__proto__:null,[Symbol.toStringTag]:"Module",default:u},[c.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/331.js b/lib/wp-graphql/build/331.js new file mode 100644 index 000000000..24ca08d15 --- /dev/null +++ b/lib/wp-graphql/build/331.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[331],{7331:(e,t,n)=>{n.d(t,{S:()=>vt,T:()=>ht,a:()=>yt});var i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});function r(e){return o(e,[])}function o(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return a(e,t);default:return String(e)}}function a(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(l(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:o(t,n)}else if(Array.isArray(e))return c(e,n);return u(e,n)}function l(e){return"function"==typeof e.toJSON}function u(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+p(e)+"]":"{ "+n.map((([e,n])=>e+": "+o(n,t))).join(", ")+" }"}function c(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}function p(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function d(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let f;var v;function h(e){return 9===e||32===e}function y(e){return e>=48&&e<=57}function m(e){return e>=97&&e<=122||e>=65&&e<=90}function T(e){return m(e)||95===e}function N(e){return m(e)||y(e)||95===e}function I(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every((e=>0===e.length||h(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!s||e.length>70||u||r||o);let p="";const d=s&&h(e.charCodeAt(0));return(c&&!d||r)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}function E(e){return`"${e.replace(g,b)}"`}s(r,"inspect"),s(o,"formatValue"),s(a,"formatObjectValue"),s(l,"isJSONable"),s(u,"formatObject"),s(c,"formatArray"),s(p,"getObjectTag"),s(d,"invariant"),(v=f||(f={})).QUERY="QUERY",v.MUTATION="MUTATION",v.SUBSCRIPTION="SUBSCRIPTION",v.FIELD="FIELD",v.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",v.FRAGMENT_SPREAD="FRAGMENT_SPREAD",v.INLINE_FRAGMENT="INLINE_FRAGMENT",v.VARIABLE_DEFINITION="VARIABLE_DEFINITION",v.SCHEMA="SCHEMA",v.SCALAR="SCALAR",v.OBJECT="OBJECT",v.FIELD_DEFINITION="FIELD_DEFINITION",v.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",v.INTERFACE="INTERFACE",v.UNION="UNION",v.ENUM="ENUM",v.ENUM_VALUE="ENUM_VALUE",v.INPUT_OBJECT="INPUT_OBJECT",v.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",s(h,"isWhiteSpace"),s(y,"isDigit$1"),s(m,"isLetter"),s(T,"isNameStart"),s(N,"isNameContinue"),s(I,"printBlockString"),s(E,"printString");const g=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function b(e){return O[e.charCodeAt(0)]}s(b,"escapedReplacer");const O=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function S(e,t){if(!Boolean(e))throw new Error(t)}s(S,"devAssert");const A={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},L=new Set(Object.keys(A));function _(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&L.has(t)}let w;var D;let F;var x;s(_,"isNode"),(D=w||(w={})).QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription",(x=F||(F={})).NAME="Name",x.DOCUMENT="Document",x.OPERATION_DEFINITION="OperationDefinition",x.VARIABLE_DEFINITION="VariableDefinition",x.SELECTION_SET="SelectionSet",x.FIELD="Field",x.ARGUMENT="Argument",x.FRAGMENT_SPREAD="FragmentSpread",x.INLINE_FRAGMENT="InlineFragment",x.FRAGMENT_DEFINITION="FragmentDefinition",x.VARIABLE="Variable",x.INT="IntValue",x.FLOAT="FloatValue",x.STRING="StringValue",x.BOOLEAN="BooleanValue",x.NULL="NullValue",x.ENUM="EnumValue",x.LIST="ListValue",x.OBJECT="ObjectValue",x.OBJECT_FIELD="ObjectField",x.DIRECTIVE="Directive",x.NAMED_TYPE="NamedType",x.LIST_TYPE="ListType",x.NON_NULL_TYPE="NonNullType",x.SCHEMA_DEFINITION="SchemaDefinition",x.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",x.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",x.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",x.FIELD_DEFINITION="FieldDefinition",x.INPUT_VALUE_DEFINITION="InputValueDefinition",x.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",x.UNION_TYPE_DEFINITION="UnionTypeDefinition",x.ENUM_TYPE_DEFINITION="EnumTypeDefinition",x.ENUM_VALUE_DEFINITION="EnumValueDefinition",x.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",x.DIRECTIVE_DEFINITION="DirectiveDefinition",x.SCHEMA_EXTENSION="SchemaExtension",x.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",x.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",x.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",x.UNION_TYPE_EXTENSION="UnionTypeExtension",x.ENUM_TYPE_EXTENSION="EnumTypeExtension",x.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const R=Object.freeze({});function j(e,t,n=A){const i=new Map;for(const e of Object.values(F))i.set(e,U(t,e));let s,o,a,l=Array.isArray(e),u=[e],c=-1,p=[],d=e;const f=[],v=[];do{c++;const e=c===u.length,T=e&&0!==p.length;if(e){if(o=0===v.length?void 0:f[f.length-1],d=a,a=v.pop(),T)if(l){d=d.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}c=s.index,u=s.keys,p=s.edits,l=s.inArray,s=s.prev}else if(a){if(o=l?c:u[c],d=a[o],null==d)continue;f.push(o)}let N;if(!Array.isArray(d)){var h,y;_(d)||S(!1,`Invalid AST Node: ${r(d)}.`);const n=e?null===(h=i.get(d.kind))||void 0===h?void 0:h.leave:null===(y=i.get(d.kind))||void 0===y?void 0:y.enter;if(N=null==n?void 0:n.call(t,d,o,a,f,v),N===R)break;if(!1===N){if(!e){f.pop();continue}}else if(void 0!==N&&(p.push([o,N]),!e)){if(!_(N)){f.pop();continue}d=N}}var m;void 0===N&&T&&p.push([o,d]),e?f.pop():(s={inArray:l,index:c,keys:u,edits:p,prev:s},l=Array.isArray(d),u=l?d:null!==(m=n[d.kind])&&void 0!==m?m:[],c=-1,p=[],a&&v.push(a),a=d)}while(void 0!==s);return 0!==p.length?p[p.length-1][1]:e}function U(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function V(e){return j(e,C)}s(j,"visit"),s(U,"getEnterLeaveForKind"),s(V,"print");const C={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>$(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=k("(",$(e.variableDefinitions,", "),")"),n=$([e.operation,$([e.name,t]),$(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+k(" = ",n)+k(" ",$(i," "))},SelectionSet:{leave:({selections:e})=>M(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:s}){const r=k("",e,": ")+t;let o=r+k("(",$(n,", "),")");return o.length>80&&(o=r+k("(\n",B($(n,"\n")),"\n)")),$([o,$(i," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+k(" ",$(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>$(["...",k("on ",e),$(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:s})=>`fragment ${e}${k("(",$(n,", "),")")} on ${t} ${k("",$(i," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?I(e):E(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+$(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+$(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+k("(",$(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>k("",e,"\n")+$(["schema",$(t," "),M(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>k("",e,"\n")+$(["scalar",t,$(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>k("",e,"\n")+$(["type",t,k("implements ",$(n," & ")),$(i," "),M(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:s})=>k("",e,"\n")+t+(G(n)?k("(\n",B($(n,"\n")),"\n)"):k("(",$(n,", "),")"))+": "+i+k(" ",$(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:s})=>k("",e,"\n")+$([t+": "+n,k("= ",i),$(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>k("",e,"\n")+$(["interface",t,k("implements ",$(n," & ")),$(i," "),M(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>k("",e,"\n")+$(["union",t,$(n," "),k("= ",$(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>k("",e,"\n")+$(["enum",t,$(n," "),M(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>k("",e,"\n")+$([t,$(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>k("",e,"\n")+$(["input",t,$(n," "),M(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:s})=>k("",e,"\n")+"directive @"+t+(G(n)?k("(\n",B($(n,"\n")),"\n)"):k("(",$(n,", "),")"))+(i?" repeatable":"")+" on "+$(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$(["extend schema",$(e," "),M(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$(["extend scalar",e,$(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>$(["extend type",e,k("implements ",$(t," & ")),$(n," "),M(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>$(["extend interface",e,k("implements ",$(t," & ")),$(n," "),M(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>$(["extend union",e,$(t," "),k("= ",$(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>$(["extend enum",e,$(t," "),M(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>$(["extend input",e,$(t," "),M(n)]," ")}};function $(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function M(e){return k("{\n",B($(e,"\n")),"\n}")}function k(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function B(e){return k(" ",e.replace(/\n/g,"\n "))}function G(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function P(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function J(e){return"object"==typeof e&&null!==e}function Q(e,t){const[n,i]=t?[e,t]:[void 0,e];let s=" Did you mean ";n&&(s+=n+" ");const r=i.map((e=>`"${e}"`));switch(r.length){case 0:return"";case 1:return s+r[0]+"?";case 2:return s+r[0]+" or "+r[1]+"?"}const o=r.slice(0,5),a=o.pop();return s+o.join(", ")+", or "+a+"?"}function Y(e){return e}s($,"join"),s(M,"block"),s(k,"wrap"),s(B,"indent"),s(G,"hasMultilineItems"),s(P,"isIterableObject"),s(J,"isObjectLike"),s(Q,"didYouMean"),s(Y,"identityFunc");const z=s((function(e,t){return e instanceof t}),"instanceOf");function q(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function H(e,t,n){const i=Object.create(null);for(const s of e)i[t(s)]=n(s);return i}function X(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function W(e,t){let n=0,i=0;for(;n0);let a=0;do{++i,a=10*a+r-K,r=t.charCodeAt(i)}while(ee(r)&&a>0);if(oa)return 1}else{if(sr)return 1;++n,++i}}return e.length-t.length}s(q,"keyMap"),s(H,"keyValMap"),s(X,"mapValue"),s(W,"naturalCompare");const K=48,Z=57;function ee(e){return!isNaN(e)&&K<=e&&e<=Z}function te(e,t){const n=Object.create(null),i=new ne(e),s=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,s);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:W(e,t)}))}s(ee,"isDigit"),s(te,"suggestionList");class ne{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=ie(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=ie(n),s=this._inputArray;if(i.lengtht)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=r;e++){const n=a[(e-1)%3],r=a[e%3];let l=r[0]=e;for(let t=1;t<=o;t++){const o=i[e-1]===s[t-1]?0:1;let u=Math.min(n[t]+1,r[t-1]+1,n[t-1]+o);if(e>1&&t>1&&i[e-1]===s[t-2]&&i[e-2]===s[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}ut)return}const l=a[r%3][o];return l<=t?l:void 0}}function ie(e){const t=e.length,n=new Array(t);for(let i=0;i=t)break;n=s.index+s[0].length,i+=1}return{line:i,column:t+1-n}}function ae(e){return le(e.source,oe(e.source,e.start))}function le(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,o=t.line+r,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}\n`,c=i.split(/\r\n|[\n\r]/g),p=c[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+ue([[o-1+" |",c[s-1]],[`${o} |`,p],["|","^".padStart(l)],[`${o+1} |`,c[s+1]]])}function ue(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}function ce(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}s(oe,"getLocation"),s(ae,"printLocation"),s(le,"printSourceLocation"),s(ue,"printPrefixedLines"),s(ce,"toNormalizedOptions");class pe extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:a,path:l,originalError:u,extensions:c}=ce(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=de(Array.isArray(r)?r:r?[r]:void 0);const p=de(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==p||null===(i=p[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==p?void 0:p.map((e=>e.start)),this.locations=a&&o?a.map((e=>oe(o,e))):null==p?void 0:p.map((e=>oe(e.source,e.start)));const d=J(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(s=null!=c?c:d)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,pe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+ae(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+le(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function de(e){return void 0===e||0===e.length?void 0:e}function fe(e,t){switch(e.kind){case F.NULL:return null;case F.INT:return parseInt(e.value,10);case F.FLOAT:return parseFloat(e.value);case F.STRING:case F.ENUM:case F.BOOLEAN:return e.value;case F.LIST:return e.values.map((e=>fe(e,t)));case F.OBJECT:return H(e.fields,(e=>e.name.value),(e=>fe(e.value,t)));case F.VARIABLE:return null==t?void 0:t[e.name.value]}}function ve(e){if(null!=e||S(!1,"Must provide name."),"string"==typeof e||S(!1,"Expected name to be a string."),0===e.length)throw new pe("Expected name to be a non-empty string.");for(let t=1;to(fe(e,t)),this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||S(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${r(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||S(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||S(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(xe,"GraphQLScalarType");class Re{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ue(e),this._interfaces=()=>je(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||S(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${r(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:$e(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function je(e){var t;const n=De(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||S(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Ue(e){const t=Fe(e.fields);return Ce(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),X(t,((t,n)=>{var i;Ce(t)||S(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||S(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${r(t.resolve)}.`);const s=null!==(i=t.args)&&void 0!==i?i:{};return Ce(s)||S(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:ve(n),description:t.description,type:t.type,args:Ve(s),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:se(t.extensions),astNode:t.astNode}}))}function Ve(e){return Object.entries(e).map((([e,t])=>({name:ve(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:se(t.extensions),astNode:t.astNode})))}function Ce(e){return J(e)&&!Array.isArray(e)}function $e(e){return X(e,(e=>({description:e.description,type:e.type,args:Me(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Me(e){return H(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}s(Re,"GraphQLObjectType"),s(je,"defineInterfaces"),s(Ue,"defineFieldMap"),s(Ve,"defineArguments"),s(Ce,"isPlainObj"),s($e,"fieldsToFieldsConfig"),s(Me,"argsToArgsConfig");class ke{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ue.bind(void 0,e),this._interfaces=je.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:$e(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(ke,"GraphQLInterfaceType");class Be{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Ge.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ge(e){const t=De(e.types);return Array.isArray(t)||S(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}s(Be,"GraphQLUnionType"),s(Ge,"defineTypes");class Pe{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=Qe(this.name,e.values),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=q(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new pe(`Enum "${this.name}" cannot represent value: ${r(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=r(e);throw new pe(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Je(this,t))}const t=this.getValue(e);if(null==t)throw new pe(`Value "${e}" does not exist in "${this.name}" enum.`+Je(this,e));return t.value}parseLiteral(e,t){if(e.kind!==F.ENUM){const t=V(e);throw new pe(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Je(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=V(e);throw new pe(`Value "${t}" does not exist in "${this.name}" enum.`+Je(this,t),{nodes:e})}return n.value}toConfig(){const e=H(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Je(e,t){return Q("the enum value",te(t,e.getValues().map((e=>e.name))))}function Qe(e,t){return Ce(t)||S(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(Ce(n)||S(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${r(n)}.`),{name:he(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:se(n.extensions),astNode:n.astNode})))}s(Pe,"GraphQLEnumType"),s(Je,"didYouMeanEnumValue"),s(Qe,"defineEnumValues");class Ye{constructor(e){var t;this.name=ve(e.name),this.description=e.description,this.extensions=se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ze.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=X(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ze(e){const t=Fe(e.fields);return Ce(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),X(t,((t,n)=>(!("resolve"in t)||S(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:ve(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:se(t.extensions),astNode:t.astNode})))}s(Ye,"GraphQLInputObjectType"),s(ze,"defineInputFieldMap");const qe=2147483647,He=-2147483648,Xe=new xe({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=tt(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new pe(`Int cannot represent non-integer value: ${r(t)}`);if(n>qe||nqe||eqe||t({description:{type:Ke,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new _e(new Le(new _e(at))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new _e(at),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:at,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:at,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new _e(new Le(new _e(rt))),resolve:e=>e.getDirectives()}})}),rt=new Re({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isRepeatable:{type:new _e(Ze),resolve:e=>e.isRepeatable},locations:{type:new _e(new Le(new _e(ot))),resolve:e=>e.locations},args:{type:new _e(new Le(new _e(ut))),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),ot=new Pe({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:f.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:f.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:f.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:f.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:f.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:f.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:f.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:f.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:f.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:f.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:f.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:f.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:f.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:f.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:f.UNION,description:"Location adjacent to a union definition."},ENUM:{value:f.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:f.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:f.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),at=new Re({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new _e(ft),resolve:e=>me(e)?pt.SCALAR:Te(e)?pt.OBJECT:Ne(e)?pt.INTERFACE:Ie(e)?pt.UNION:Ee(e)?pt.ENUM:ge(e)?pt.INPUT_OBJECT:be(e)?pt.LIST:Oe(e)?pt.NON_NULL:void d(!1,`Unexpected type: "${r(e)}".`)},name:{type:Ke,resolve:e=>"name"in e?e.name:void 0},description:{type:Ke,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ke,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Le(new _e(lt)),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Te(e)||Ne(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new Le(new _e(at)),resolve(e){if(Te(e)||Ne(e))return e.getInterfaces()}},possibleTypes:{type:new Le(new _e(at)),resolve(e,t,n,{schema:i}){if(Ae(e))return i.getPossibleTypes(e)}},enumValues:{type:new Le(new _e(ct)),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ee(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new Le(new _e(ut)),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ge(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:at,resolve:e=>"ofType"in e?e.ofType:void 0}})}),lt=new Re({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},args:{type:new _e(new Le(new _e(ut))),args:{includeDeprecated:{type:Ze,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new _e(at),resolve:e=>e.type},isDeprecated:{type:new _e(Ze),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),ut=new Re({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},type:{type:new _e(at),resolve:e=>e.type},defaultValue:{type:Ke,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=nt(n,t);return i?V(i):null}},isDeprecated:{type:new _e(Ze),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),ct=new Re({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new _e(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isDeprecated:{type:new _e(Ze),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})});let pt;var dt;(dt=pt||(pt={})).SCALAR="SCALAR",dt.OBJECT="OBJECT",dt.INTERFACE="INTERFACE",dt.UNION="UNION",dt.ENUM="ENUM",dt.INPUT_OBJECT="INPUT_OBJECT",dt.LIST="LIST",dt.NON_NULL="NON_NULL";const ft=new Pe({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:pt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:pt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:pt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:pt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:pt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:pt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:pt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:pt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),vt={name:"__schema",type:new _e(st),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ht={name:"__type",type:at,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new _e(Ke),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},yt={name:"__typename",type:new _e(Ke),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Object.freeze([st,rt,ot,at,lt,ut,ct,ft])}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/338.js b/lib/wp-graphql/build/338.js new file mode 100644 index 000000000..39d0d0173 --- /dev/null +++ b/lib/wp-graphql/build/338.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[338],{3338:(e,t,r)=>{r.r(t),r.d(t,{C:()=>u,a:()=>s,c:()=>c});var n=r(166),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}o(l,"_mergeNamespaces");var a,s={exports:{}};a=s,n.c,a.exports=function(){var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),l=/Edge\/(\d+)/.exec(e),a=n||i||l,s=a&&(n?document.documentMode||6:+(l||i)[1]),u=!l&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),h=!l&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),C=d&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(d=!1,u=!0);var S=b&&(c||d&&(null==C||C<12.11)),L=r||a&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}o(k,"classTest");var T,M=o((function(e,t){var r=e.className,n=k(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}}),"rmClass");function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return N(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}m?E=o((function(e){e.selectionStart=0,e.selectionEnd=e.value.length}),"selectInput"):a&&(E=o((function(e){try{e.select()}catch(e){}}),"selectInput")),o(I,"bind"),o(R,"copyObj"),o(B,"countColumn");var z=o((function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)}),"Delayed");function G(e,t){for(var r=0;r=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}o(_,"findColumn");var X=[""];function Y(e){for(;X.length<=e;)X.push($(X)+" ");return X[e]}function $(e){return e[e.length-1]}function q(e,t){for(var r=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function re(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}o(te,"isWordCharBasic"),o(re,"isWordChar"),o(ne,"isEmpty");var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function le(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function se(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}o(oe,"isExtendingChar"),o(le,"skipExtendingChars"),o(ae,"findFirst"),o(se,"iterateBidiSections");var ue=null;function ce(e,t,r){var n;ue=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:ue=i)}return null!=n?n:ue}o(ce,"getBidiPartAt");var he=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}o(e,"charType");var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,n=/[LRr]/,i=/[Lb1n]/,l=/[1n]/;function a(e,t,r){this.level=e,this.from=t,this.to=r}return o(a,"BidiSpan"),function(o,s){var u="ltr"==s?"L":"R";if(0==o.length||"ltr"==s&&!t.test(o))return!1;for(var c=o.length,h=[],d=0;d-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var r=ge(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function xe(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Le(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){Ce(e),Se(e)}function Te(e){return e.target||e.srcElement}function Me(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}o(ge,"getHandlers"),o(me,"off"),o(ve,"signal"),o(ye,"signalDOMEvent"),o(be,"signalCursorActivity"),o(we,"hasHandler"),o(xe,"eventMixin"),o(Ce,"e_preventDefault"),o(Se,"e_stopPropagation"),o(Le,"e_defaultPrevented"),o(ke,"e_stop"),o(Te,"e_target"),o(Me,"e_button");var Ne,Oe,Ae=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ne){var t=A("span","​");O(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var r=Ne?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function We(e){if(null!=Oe)return Oe;var t=O(e,document.createTextNode("AخA")),r=T(t,0,1).getBoundingClientRect(),n=T(t,1,2).getBoundingClientRect();return N(e),!(!r||r.left==r.right)&&(Oe=n.right-r.right<3)}o(De,"zeroWidthElement"),o(We,"hasBadBidiRects");var He,Fe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ee="oncopy"in(He=A("div"))||(He.setAttribute("oncopy","return;"),"function"==typeof He.oncopy),Ie=null;function Re(e){if(null!=Ie)return Ie;var t=O(e,A("span","x")),r=t.getBoundingClientRect(),n=T(t,0,1).getBoundingClientRect();return Ie=Math.abs(r.left-n.left)>1}o(Re,"hasBadZoomedRects");var Be={},ze={};function Ge(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function Ue(e,t){ze[e]=t}function Ve(e){if("string"==typeof e&&ze.hasOwnProperty(e))e=ze[e];else if(e&&"string"==typeof e.name&&ze.hasOwnProperty(e.name)){var t=ze[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ve(t);var r=Be[t.name];if(!r)return Ke(e,"text/plain");var n=r(e,t);if(je.hasOwnProperty(t.name)){var i=je[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}o(Ge,"defineMode"),o(Ue,"defineMIME"),o(Ve,"resolveMode"),o(Ke,"getMode");var je={};function _e(e,t){R(t,je.hasOwnProperty(e)?je[e]:je[e]={})}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ye(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function $e(e,t,r){return!e.startState||e.startState(t,r)}o(_e,"extendMode"),o(Xe,"copyState"),o(Ye,"innerMode"),o($e,"startState");var qe=o((function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r}),"StringStream");function Ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?ot(r,Ze(e,r).text.length):ft(t,Ze(e,t.line).text.length)}function ft(e,t){var r=e.ch;return null==r||r>t?ot(e.line,t):r<0?ot(e.line,0):e}function pt(e,t){for(var r=[],n=0;n=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.post},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=o((function(e){return r?e.toLowerCase():e}),"cased");if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},o(Ze,"getLine"),o(Qe,"getBetween"),o(Je,"getLines"),o(et,"updateLineHeight"),o(tt,"lineNo"),o(rt,"lineAtHeight"),o(nt,"isLine"),o(it,"lineNumberFor"),o(ot,"Pos"),o(lt,"cmp"),o(at,"equalCursorPos"),o(st,"copyPos"),o(ut,"maxPos"),o(ct,"minPos"),o(ht,"clipLine"),o(dt,"clipPos"),o(ft,"clipToLen"),o(pt,"clipPosArray");var gt=o((function(e,t){this.state=e,this.lookAhead=t}),"SavedContext"),mt=o((function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1}),"Context");function vt(e,t,r,n){var i=[e.state.modeGen],l={};Tt(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),l,n);for(var a=r.state,s=o((function(n){r.baseTokens=i;var o=e.state.overlays[n],s=1,u=0;r.state=!0,Tt(e,t.text,o.mode,r,(function(e,t){for(var r=s;ue&&i.splice(s,1,e,i[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(o.opaque)i.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&Xe(e.doc.mode,n.state),o=vt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new mt(n,!0,t);var o=Mt(e,t,r),l=o>n.first&&Ze(n,o-1).stateAfter,a=l?mt.fromSaved(n,l,o):new mt(n,$e(n.mode),o);return n.iter(o,t,(function(r){wt(e,r.text,a);var n=a.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,r){return t instanceof gt?new mt(e,Xe(e.mode,t.state),r,t.lookAhead):new mt(e,Xe(e.mode,t),r)},mt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t},o(vt,"highlightLine"),o(yt,"getLineStyles"),o(bt,"getContextBefore"),o(wt,"processLine"),o(xt,"callBlankLine"),o(Ct,"readToken");var St=o((function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r}),"Token");function Lt(e,t,r,n){var i,o,l=e.doc,a=l.mode,s=Ze(l,(t=dt(l,t)).line),u=bt(e,t.line,r),c=new qe(s.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pose.options.maxHighlightLength?(a=!1,l&&wt(e,t,n,h.pos),h.pos=t.length,s=null):s=kt(Ct(r,h,n.state,d),o),d){var f=d[0].name;f&&(s="m-"+(s?f+" "+s:f))}if(!a||c!=s){for(;ul;--a){if(a<=o.first)return o.first;var s=Ze(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof gt?u.lookAhead:0)<=o.modeFrontier))return a;var c=B(s.text,null,e.options.tabSize);(null==i||n>c)&&(i=a-1,n=c)}return i}function Nt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=Ze(e,n).stateAfter;if(i&&(!(i instanceof gt)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Ht(l,o.from,a?null:o.to))}}return n}function Rt(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var b=0;b0)){var c=[s,1],h=lt(u.from,a.from),d=lt(u.to,a.to);(h<0||!l.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!r||_t(r,o.marker)<0)&&(r=o.marker)}return r}function Zt(e,t,r,n,i){var o=Ze(e,t),l=At&&o.markedSpans;if(l)for(var a=0;a=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?lt(u.to,r)>=0:lt(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?lt(u.from,n)<=0:lt(u.from,n)<0)))return!0}}}function Qt(e){for(var t;t=Yt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function er(e){for(var t,r;t=$t(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function tr(e,t){var r=Ze(e,t),n=Qt(r);return r==n?t:tt(n)}function rr(e,t){if(t>e.lastLine())return t;var r,n=Ze(e,t);if(!nr(e,n))return t;for(;r=$t(n);)n=r.find(1,!0).line;return tt(n)+1}function nr(e,t){var r=At&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}o(Dt,"seeReadOnlySpans"),o(Wt,"seeCollapsedSpans"),o(Ht,"MarkedSpan"),o(Ft,"getMarkedSpanFor"),o(Pt,"removeMarkedSpan"),o(Et,"addMarkedSpan"),o(It,"markedSpansBefore"),o(Rt,"markedSpansAfter"),o(Bt,"stretchSpansOverChange"),o(zt,"clearEmptySpans"),o(Gt,"removeReadOnlyRanges"),o(Ut,"detachMarkedSpans"),o(Vt,"attachMarkedSpans"),o(Kt,"extraLeft"),o(jt,"extraRight"),o(_t,"compareCollapsedMarkers"),o(Xt,"collapsedSpanAtSide"),o(Yt,"collapsedSpanAtStart"),o($t,"collapsedSpanAtEnd"),o(qt,"collapsedSpanAround"),o(Zt,"conflictingCollapsedRange"),o(Qt,"visualLine"),o(Jt,"visualLineEnd"),o(er,"visualLineContinued"),o(tr,"visualLineNo"),o(rr,"visualLineEndNo"),o(nr,"lineIsHidden"),o(ir,"lineIsHiddenInner"),o(or,"heightAtLine"),o(lr,"lineLength"),o(ar,"findMaxLine");var sr=o((function(e,t,r){this.text=e,Vt(this,t),this.height=r?r(this):1}),"Line");function ur(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Vt(e,r);var i=n?n(e):1;i!=e.height&&et(e,i)}function cr(e){e.parent=null,Ut(e)}sr.prototype.lineNo=function(){return tt(this)},xe(sr),o(ur,"updateLine"),o(cr,"cleanUpLine");var hr={},dr={};function fr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?dr:hr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function pr(e,t){var r=D("span",null,null,u?"padding-right: .1px":null),n={pre:D("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=mr,We(e.display.measure)&&(l=de(o,e.doc.direction))&&(n.addToken=yr(n.addToken,l)),n.map=[],wr(o,n,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=P(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=P(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var a=n.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=P(n.pre.className,n.textClass||"")),n}function gr(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mr(e,t,r,n,i,o,l){if(t){var u,c=e.splitSpaces?vr(t,e.trailingSpace):t,h=e.cm.state.specialChars,d=!1;if(h.test(t)){u=document.createDocumentFragment();for(var f=0;;){h.lastIndex=f;var p=h.exec(t),g=p?p.index-f:t.length-f;if(g){var m=document.createTextNode(c.slice(f,f+g));a&&s<9?u.appendChild(A("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(A("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=u.appendChild(A("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||n||i||d||o||l){var w=r||"";n&&(w+=n),i&&(w+=i);var x=A("span",[u],w,o);if(l)for(var C in l)l.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,l[C]);return e.content.appendChild(x)}e.content.appendChild(u)}}function vr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&h.from<=u);d++);if(h.to>=c)return e(r,n,i,o,l,a,s);e(r,n.slice(0,h.to-u),i,o,null,a,s),o=null,n=n.slice(h.to-u),u=h.to}}}function br(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,a,s,u,c,h,d,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){s=u=c=a="",d=null,h=null,v=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),C.className&&(s+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((d||(d={})).title=C.title),C.attributes)for(var S in C.attributes)(d||(d={}))[S]=C.attributes[S];C.collapsed&&(!h||_t(h.marker,C)<0)&&(h=x)}else x.from>p&&v>x.from&&(v=x.from)}if(b)for(var L=0;L=f)break;for(var T=Math.min(f,v);;){if(m){var M=p+m.length;if(!h){var N=M>T?m.slice(0,T-p):m;t.addToken(t,N,l?l+s:s,c,p+N.length==v?u:"",a,d)}if(M>=T){m=m.slice(T-p),p=T;break}p=M,c=""}m=i.slice(o,o=r[g++]),l=fr(r[g++],t.cm.options)}}else for(var O=1;O2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Zr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Qr(e,t){var r=tt(t=Qt(t)),n=e.display.externalMeasured=new xr(e.doc,t,r);n.lineN=r;var i=n.built=pr(e,n);return n.text=i.pre,O(e.display.lineMeasure,i.pre),n}function Jr(e,t,r,n){return rn(e,tn(e,t),r,n)}function en(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(n=e[u+2],a==s&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==s-a)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function sn(e,t,r,n){var i,o=ln(t.map,r,n),l=o.node,u=o.start,c=o.end,h=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(h=n="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==n?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+An(e.display),top:p.top,bottom:p.bottom}:on}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b=n.text.length?(u=n.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function h(e,t,r){return a(r?e-1:e,1==s[t].level!=r)}o(h,"getBidi");var d=ce(s,u,c),f=ue,p=h(u,d,"before"==c);return null!=f&&(p.other=h(u,f,"before"!=c)),p}function wn(e,t){var r=0;t=dt(e.doc,t),e.options.lineWrapping||(r=An(e.display)*t.ch);var n=Ze(e.doc,t.line),i=or(n)+Kr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function xn(e,t,r,n,i){var o=ot(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Cn(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return xn(n.first,0,null,-1,-1);var i=rt(n,r),o=n.first+n.size-1;if(i>o)return xn(n.first+n.size-1,Ze(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=Ze(n,i);;){var a=Tn(e,l,i,t,r),s=qt(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=Ze(n,i=u.line)}}function Sn(e,t,r,n){n-=gn(t);var i=t.text.length,o=ae((function(t){return rn(e,r,t-1).bottom<=n}),i,0);return{begin:o,end:i=ae((function(t){return rn(e,r,t).top>n}),o,i)}}function Ln(e,t,r,n){return r||(r=tn(e,t)),Sn(e,t,r,mn(e,t,rn(e,r,n),"line").top)}function kn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Tn(e,t,r,n,i){i-=or(t);var o=tn(e,t),l=gn(t),a=0,s=t.text.length,u=!0,c=de(t,e.doc.direction);if(c){var h=(e.options.lineWrapping?Nn:Mn)(e,t,r,o,c,n,i);a=(u=1!=h.level)?h.from:h.to-1,s=u?h.to:h.from-1}var d,f,p=null,g=null,m=ae((function(t){var r=rn(e,o,t);return r.top+=l,r.bottom+=l,!!kn(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)}),a,s),v=!1;if(g){var y=n-g.left=w.bottom?1:0}return xn(r,m=le(t.text,m,1),f,v,n-d)}function Mn(e,t,r,n,i,o,l){var a=ae((function(a){var s=i[a],u=1!=s.level;return kn(bn(e,ot(r,u?s.to:s.from,u?"before":"after"),"line",t,n),o,l,!0)}),0,i.length-1),s=i[a];if(a>0){var u=1!=s.level,c=bn(e,ot(r,u?s.from:s.to,u?"after":"before"),"line",t,n);kn(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s}function Nn(e,t,r,n,i,o,l){var a=Sn(e,t,n,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,d=0;d=u||f.to<=s)){var p=rn(e,n,1!=f.level?Math.min(u,f.to)-1:Math.max(s,f.from)).right,g=pg)&&(c=f,h=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function On(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==nn){nn=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)nn.appendChild(document.createTextNode("x")),nn.appendChild(A("br"));nn.appendChild(document.createTextNode("x"))}O(e.measure,nn);var r=nn.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),N(e.measure),r||1}function An(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");O(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Dn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;r[a]=o.offsetLeft+o.clientLeft+i,n[a]=o.clientWidth}return{fixedPos:Wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Hn(e){var t=On(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/An(e.display)-3);return function(i){if(nr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(s=Ze(e.doc,u.line).text).length==u.ch){var c=B(s,s.length,e.options.tabSize)-s.length;u=ot(u.line,Math.max(0,Math.round((o-_r(e.display).left)/An(e.display))-c))}return u}function En(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)At&&tr(e.doc,t)i.viewFrom?Bn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Bn(e);else if(t<=i.viewFrom){var o=zn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Bn(e)}else if(r>=i.viewTo){var l=zn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):Bn(e)}else{var a=zn(e,t,t,-1),s=zn(e,r,r+n,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Cr(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):Bn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[En(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==G(l,r)&&l.push(r)}}}function Bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function zn(e,t,r,n){var i,o=En(e,t),l=e.display.view;if(!At||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,s=0;s0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,r+=i}for(;tr(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function Gn(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Cr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Cr(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,En(e,r)))),n.viewTo=r}function Un(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(n.other){var a=r.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=n.other.left+"px",a.style.top=n.other.top+"px",a.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Xn(e,t){return e.top-t.top||e.left-t.left}function Yn(e,t,r){var n=e.display,i=e.doc,l=document.createDocumentFragment(),a=_r(e.display),s=a.left,u=Math.max(n.sizerWidth,Yr(e)-n.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function h(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),l.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?u-e:r)+"px;\n height: "+(n-t)+"px"))}function d(t,r,n){var l,a,d=Ze(i,t),f=d.text.length;function p(r,n){return yn(e,ot(t,r),"div",d,n)}function g(t,r,n){var i=Ln(e,d,null,t),o="ltr"==r==("after"==n)?"left":"right";return p("after"==n?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}o(p,"coords"),o(g,"wrapX");var m=de(d,i.direction);return se(m,r||0,null==n?f:n,(function(e,t,i,o){var d="ltr"==i,v=p(e,d?"left":"right"),y=p(t-1,d?"right":"left"),b=null==r&&0==e,w=null==n&&t==f,x=0==o,C=!m||o==m.length-1;if(y.top-v.top<=3){var S=(c?w:b)&&C,L=(c?b:w)&&x?s:(d?v:y).left,k=S?u:(d?y:v).right;h(L,v.top,k-L,v.bottom)}else{var T,M,N,O;d?(T=c&&b&&x?s:v.left,M=c?u:g(e,i,"before"),N=c?s:g(t,i,"after"),O=c&&w&&C?u:y.right):(T=c?g(e,i,"before"):s,M=!c&&b&&x?u:v.right,N=!c&&w&&C?s:y.left,O=c?g(t,i,"after"):u),h(T,v.top,M-T,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Jn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Qn(e))}function Zn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Jn(e))}),100)}function Qn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),$n(e))}function Jn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ei(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||g<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(d/An(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ti(e){if(e.widgets)for(var t=0;t=l&&(o=rt(t,or(Ze(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Kr(e.display))+"px;\n height: "+(t.bottom-t.top+Xr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ii(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=bn(e,t),s=r&&r!=t?bn(e,r):a,u=li(e,i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n}),c=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=u.scrollTop&&(fi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(gi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}function oi(e,t){var r=li(e,t);null!=r.scrollTop&&fi(e,r.scrollTop),null!=r.scrollLeft&&gi(e,r.scrollLeft)}function li(e,t){var r=e.display,n=On(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=$r(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+jr(r),s=t.topa-n;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-h,f=Yr(e)-r.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?l.scrollLeft=0:t.leftf+d-3&&(l.scrollLeft=t.right+(p?0:10)-f),l}function ai(e,t){null!=t&&(hi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function si(e){hi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ui(e,t,r){null==t&&null==r||hi(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function ci(e,t){hi(e),e.curOp.scrollToPos=t}function hi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,di(e,wn(e,t.from),wn(e,t.to),t.margin))}function di(e,t,r,n){var i=li(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});ui(e,i.scrollLeft,i.scrollTop)}function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||Ki(e,{top:t}),pi(e,t,!0),r&&Ki(e),Ei(e,100))}function pi(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function gi(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+jr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Xr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}o(ln,"nodeAndOffsetInLineMap"),o(an,"getUsefulRect"),o(sn,"measureCharInner"),o(un,"maybeUpdateRectForZooming"),o(cn,"clearLineMeasurementCacheFor"),o(hn,"clearLineMeasurementCache"),o(dn,"clearCaches"),o(fn,"pageScrollX"),o(pn,"pageScrollY"),o(gn,"widgetTopHeight"),o(mn,"intoCoordSystem"),o(vn,"fromCoordSystem"),o(yn,"charCoords"),o(bn,"cursorCoords"),o(wn,"estimateCoords"),o(xn,"PosWithInfo"),o(Cn,"coordsChar"),o(Sn,"wrappedLineExtent"),o(Ln,"wrappedLineExtentChar"),o(kn,"boxIsAfter"),o(Tn,"coordsCharInner"),o(Mn,"coordsBidiPart"),o(Nn,"coordsBidiPartWrapped"),o(On,"textHeight"),o(An,"charWidth"),o(Dn,"getDimensions"),o(Wn,"compensateForHScroll"),o(Hn,"estimateHeight"),o(Fn,"estimateLineHeights"),o(Pn,"posFromMouse"),o(En,"findViewIndex"),o(In,"regChange"),o(Rn,"regLineChange"),o(Bn,"resetView"),o(zn,"viewCuttingPoint"),o(Gn,"adjustView"),o(Un,"countDirtyView"),o(Vn,"updateSelection"),o(Kn,"prepareSelection"),o(jn,"drawSelectionCursor"),o(Xn,"cmpCoords"),o(Yn,"drawSelectionRange"),o($n,"restartBlink"),o(qn,"ensureFocus"),o(Zn,"delayBlurEvent"),o(Qn,"onFocus"),o(Jn,"onBlur"),o(ei,"updateHeightsInViewport"),o(ti,"updateWidgetHeight"),o(ri,"visibleLines"),o(ni,"maybeScrollWindow"),o(ii,"scrollPosIntoView"),o(oi,"scrollIntoView"),o(li,"calculateScrollPos"),o(ai,"addToScrollTop"),o(si,"ensureCursorVisible"),o(ui,"scrollToCoords"),o(ci,"scrollToRange"),o(hi,"resolveScrollToPos"),o(di,"scrollToCoordsRange"),o(fi,"updateScrollTop"),o(pi,"setScrollTop"),o(gi,"setScrollLeft"),o(mi,"measureForScrollbars");var vi=o((function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),pe(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}),"NativeScrollbars");vi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},vi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new z,this.disableVert=new z},vi.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",o(n,"maybeDisable"),t.set(1e3,n)},vi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yi=o((function(){}),"NullScrollbars");function bi(e,t){t||(t=mi(e));var r=e.display.barWidth,n=e.display.barHeight;wi(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&ei(e),wi(e,mi(e)),r=e.display.barWidth,n=e.display.barHeight}function wi(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}yi.prototype.update=function(){return{bottom:0,right:0}},yi.prototype.setScrollLeft=function(){},yi.prototype.setScrollTop=function(){},yi.prototype.clear=function(){},o(bi,"updateScrollbars"),o(wi,"updateScrollbarsInner");var xi={native:vi,null:yi};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?gi(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}o(Ci,"initScrollbars");var Si=0;function Li(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Si,markArrays:null},Lr(e.curOp)}function ki(e){var t=e.curOp;t&&Tr(t,(function(e){for(var t=0;t=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ni(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Oi(e){var t=e.cm,r=t.display;e.updatedDisplay&&ei(t),e.barMeasure=mi(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Jr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Xr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Yr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Ai(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=bt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Xe(t.mode,n.state):null,s=vt(e,o,n,!0);a&&(n.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!h&&dr)return Ei(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Wi(e,(function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Un(e))return!1;$i(e)&&(Bn(e),t.dims=Dn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),At&&(o=tr(e.doc,o),l=rr(e.doc,l));var a=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Gn(e,o,l),r.viewOffset=or(Ze(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Un(e);if(!a&&0==s&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=zi(e);return s>4&&(r.lineDiv.style.display="none"),ji(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Gi(u),N(r.cursorDiv),N(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Ei(e,400)),r.updateLineNumbers=null,!0}function Vi(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Yr(e))n&&(t.visible=ri(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+jr(e.display)-$r(e),r.top)}),t.visible=ri(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ui(e,t))break;ei(e);var i=mi(e);Vn(e),bi(e,i),Xi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ki(e,t){var r=new Ri(e,t);if(Ui(e,r)){ei(e),Vi(e,r);var n=mi(e);Vn(e),bi(e,n),Xi(e,n),r.finish()}}function ji(e,t,r){var n=e.display,i=e.options.lineNumbers,l=n.lineDiv,a=l.firstChild;function s(t){var r=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}o(s,"rm");for(var c=n.view,h=n.viewFrom,d=0;d-1&&(p=!1),Ar(e,f,h,r)),p&&(N(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(it(e.options,h)))),a=f.node.nextSibling}else{var g=Rr(e,f,h,r);l.insertBefore(g,a)}h+=f.size}for(;a;)a=s(a)}function _i(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nr(e,"gutterChanged",e)}function Xi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Xr(e)+"px"}function Yi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=Wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;ls.clientWidth,h=s.scrollHeight>s.clientHeight;if(i&&c||o&&h){if(o&&b&&u)e:for(var f=t.target,p=a.view;f!=s;f=f.parentNode)for(var g=0;g=0&<(e,n.to())<=0)return r}return-1};var lo=o((function(e,t){this.anchor=e,this.head=t}),"Range");function ao(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return lt(e.from(),t.from())})),r=G(t,i);for(var o=1;o0:s>=0){var u=ct(a.from(),l.from()),c=ut(a.to(),l.to()),h=a.empty()?l.from()==l.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new lo(h?c:u,h?u:c))}}return new oo(t,r)}function so(e,t){return new oo([new lo(e,t||e)],0)}function uo(e){return e.text?ot(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return uo(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=uo(t).ch-t.to.ch),ot(r,n)}function ho(e,t){for(var r=[],n=0;n1&&e.remove(s.line+1,g-1),e.insert(s.line+1,y)}Nr(e,"change",e,t)}function bo(e,t,r){function n(e,i,o){if(e.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}function Mo(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,a=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(i,i.lastOp==n)))l=$(o.changes),0==lt(t.from,t.to)&&0==lt(t.from,l.to)?l.to=uo(t):o.changes.push(Lo(e,t));else{var s=$(i.done);for(s&&s.ranges||Ao(e.sel,i.done),o={changes:[Lo(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||ve(e,"historyAdded")}function No(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oo(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||No(e,o,$(i.done),t))?i.done[i.done.length-1]=t:Ao(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&ko(i.undone)}function Ao(e,t){var r=$(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Do(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o}))}function Wo(e){if(!e)return null;for(var t,r=0;r-1&&($(a)[h]=u[h],delete u[h])}}}return n}function Eo(e,t,r,n){if(n){var i=e.anchor;if(r){var o=lt(t,i)<0;o!=lt(r,i)<0?(i=t,t=r):o!=lt(t,r)<0&&(t=r)}return new lo(i,t)}return new lo(r||t,t)}function Io(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Vo(e,new oo([Eo(e.sel.primary(),t,r,i)],0),n)}function Ro(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(ve(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(r){var h=s.find(n<0?1:-1),d=void 0;if((n<0?c:u)&&(h=qo(e,h,-n,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(d=lt(h,r))&&(n<0?d<0:d>0))return Yo(e,h,t,n,i)}var f=s.find(n<0?-1:1);return(n<0?u:c)&&(f=qo(e,f,n,f.line==t.line?o:null)),f?Yo(e,f,t,n,i):null}}return t}function $o(e,t,r,n,i){var o=n||1;return Yo(e,t,r,o,i)||!i&&Yo(e,t,r,o,!0)||Yo(e,t,r,-o,i)||!i&&Yo(e,t,r,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function qo(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?dt(e,ot(t.line-1)):null:r>0&&t.ch==(n||Ze(e,t.line)).text.length?t.line=0;--i)el(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else el(e,t)}}function el(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var r=ho(e,t);Mo(e,t,r,e.cm?e.cm.curOp.id:NaN),nl(e,t,r,Bt(e,t));var n=[];bo(e,(function(e,r){r||-1!=G(n,e.history)||(sl(e.history,t),n.push(e.history)),nl(e,t,null,Bt(e,t))}))}}function tl(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,l=e.history,a=e.sel,s="undo"==t?l.done:l.undone,u="undo"==t?l.undone:l.done,c=0;c=0;--p){var g=f(p);if(g)return g.v}}}}function rl(e,t){if(0!=t&&(e.first+=t,e.sel=new oo(q(e.sel.ranges,(function(e){return new lo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){In(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ot(o,Ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),r||(r=ho(e,t)),e.cm?il(e.cm,t,n):yo(e,t,n),Ko(e,r,V),e.cantEdit&&$o(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function il(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=tt(Qt(Ze(n,o.line))),n.iter(s,l.line+1,(function(e){if(e==i.maxLine)return a=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&be(e),yo(n,t,r,Hn(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,(function(e){var t=lr(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Nt(n,o.line),Ei(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?In(e):o.line!=l.line||1!=t.text.length||vo(e.doc,t)?In(e,o.line,l.line+1,u):Rn(e,o.line,"text");var c=we(e,"changes"),h=we(e,"change");if(h||c){var d={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};h&&Nr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ol(e,t,r,n,i){var o;n||(n=r),lt(n,r)<0&&(r=(o=[n,r])[0],n=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Jo(e,{from:r,to:n,text:t,origin:i})}function ll(e,t,r,n){r1||!(this.children[0]instanceof cl))){var a=[];this.collapse(a),this.children=[new cl(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Zt(e,t.line,t,r,o)||t.line!=r.line&&Zt(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wt()}o.addToHistory&&Mo(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,s=t.line,u=e.cm;if(e.iter(s,r.line+1,(function(n){u&&o.collapsed&&!u.options.lineWrapping&&Qt(n)==u.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&et(n,0),Et(n,new Ht(o,s==t.line?t.ch:null,s==r.line?r.ch:null),e.cm&&e.cm.curOp),++s})),o.collapsed&&e.iter(t.line,r.line+1,(function(t){nr(e,t)&&et(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Dt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++gl,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)In(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)Rn(u,c,"text");o.atomic&&_o(u.doc),Nr(u,"markerAdded",u,o)}return o}ml.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Li(e),we(this,"clear")){var r=this.find();r&&Nr(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&In(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&_o(e.doc)),e&&Nr(e,"markerCleared",e,this,n,i),t&&ki(e),this.parent&&this.parent.clear()}},ml.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)Jo(this,n[s]);a?Uo(this,a):this.cm&&si(this.cm)})),undo:Pi((function(){tl(this,"undo")})),redo:Pi((function(){tl(this,"redo")})),undoSelection:Pi((function(){tl(this,"undo",!0)})),redoSelection:Pi((function(){tl(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=dt(this,e),t=dt(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++i})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r})),dt(this,ot(r,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Ko(t.doc,so(r,r)),f)for(var p=0;p=0;t--)ol(e.doc,"",n[t].from,n[t].to,"+delete");si(e)}))}function Yl(e,t,r){var n=le(e.text,t+r,r);return n<0||n>e.text.length?null:n}function $l(e,t,r){var n=Yl(e,t.ch,r);return null==n?null:new ot(t.line,n,r<0?"after":"before")}function ql(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=de(r,t.doc.direction);if(o){var l,a=i<0?$(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=tn(t,r);l=i<0?r.text.length-1:0;var c=rn(t,u,l).top;l=ae((function(e){return rn(t,u,e).top==c}),i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=Yl(r,l,1))}else l=i<0?a.to:a.from;return new ot(n,l,s)}}return new ot(n,i<0?r.text.length:0,i<0?"before":"after")}function Zl(e,t,r,n){var i=de(t,e.doc.direction);if(!i)return $l(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var l=ce(i,r.ch,r.sticky),a=i[l];if("ltr"==e.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from=a.from&&f>=h.begin)){var p=d?"before":"after";return new ot(r.line,f,p)}}var g=o((function(e,t,n){for(var l=o((function(e,t){return t?new ot(r.line,u(e,1),"before"):new ot(r.line,e,"after")}),"getRes");e>=0&&e0==(1!=a.level),c=s?n.begin:u(n.end,-1);if(a.from<=c&&c0?h.end:u(h.begin,-1);return null==v||n>0&&v==t.text.length||!(m=g(n>0?0:i.length-1,n,c(v)))?null:m}Bl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Bl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bl.default=b?Bl.macDefault:Bl.pcDefault,o(zl,"normalizeKeyName"),o(Gl,"normalizeKeyMap"),o(Ul,"lookupKey"),o(Vl,"isModifierKey"),o(Kl,"addModifierNames"),o(jl,"keyName"),o(_l,"getKeyMap"),o(Xl,"deleteNearSelection"),o(Yl,"moveCharLogically"),o($l,"moveLogically"),o(ql,"endOfLine"),o(Zl,"moveVisually");var Ql={selectAll:Zo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Xl(e,(function(t){if(t.empty()){var r=Ze(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Ze(e.doc,i.line-1).text;l&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),ot(i.line-1,l.length-1),i,"+transpose"))}r.push(new lo(i,i))}e.setSelections(r)}))},newlineAndIndent:function(e){return Wi(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(lt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?Ca(e,n,t,o):La(e,n,t,o)}function Ca(e,t,r,n){var i=e.display,l=!1,c=Hi(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Zn(e)),me(i.wrapper.ownerDocument,"mouseup",c),me(i.wrapper.ownerDocument,"mousemove",h),me(i.scroller,"dragstart",d),me(i.scroller,"drop",c),l||(Ce(t),n.addNew||Io(e.doc,r,null,null,n.extend),u&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),h=o((function(e){l=l||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10}),"mouseMove"),d=o((function(){return l=!0}),"dragStart");u&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",h),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Sa(e,t,r){if("char"==r)return new lo(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new lo(ot(t.line,0),dt(e.doc,ot(t.line+1,0)));var n=r(e,t);return new lo(n.from,n.to)}function La(e,t,r,n){a&&Zn(e);var i=e.display,l=e.doc;Ce(t);var s,u,c=l.sel,h=c.ranges;if(n.addNew&&!n.extend?(u=l.sel.contains(r),s=u>-1?h[u]:new lo(r,r)):(s=l.sel.primary(),u=l.sel.primIndex),"rectangle"==n.unit)n.addNew||(s=new lo(r,r)),r=Pn(e,t,!0,!0),u=-1;else{var d=Sa(e,r,n.unit);s=n.extend?Eo(s,d.anchor,d.head,n.extend):d}n.addNew?-1==u?(u=h.length,Vo(l,ao(e,h.concat([s]),u),{scroll:!1,origin:"*mouse"})):h.length>1&&h[u].empty()&&"char"==n.unit&&!n.extend?(Vo(l,ao(e,h.slice(0,u).concat(h.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=l.sel):Bo(l,u,s,K):(u=0,Vo(l,new oo([s],0),K),c=l.sel);var f=r;function p(t){if(0!=lt(f,t))if(f=t,"rectangle"==n.unit){for(var i=[],o=e.options.tabSize,a=B(Ze(l,r.line).text,r.ch,o),h=B(Ze(l,t.line).text,t.ch,o),d=Math.min(a,h),p=Math.max(a,h),g=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=m;g++){var v=Ze(l,g).text,y=_(v,d,o);d==p?i.push(new lo(ot(g,y),ot(g,y))):v.length>y&&i.push(new lo(ot(g,y),ot(g,_(v,p,o))))}i.length||i.push(new lo(r,r)),Vo(l,ao(e,c.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=Sa(e,t,n.unit),C=w.anchor;lt(x.anchor,C)>0?(b=x.head,C=ct(w.from(),x.anchor)):(b=x.anchor,C=ut(w.to(),x.head));var S=c.ranges.slice(0);S[u]=ka(e,new lo(dt(l,C),b)),Vo(l,ao(e,S,u),K)}}o(p,"extendTo");var g=i.wrapper.getBoundingClientRect(),m=0;function v(t){var r=++m,o=Pn(e,t,!0,"rectangle"==n.unit);if(o)if(0!=lt(o,f)){e.curOp.focus=H(),p(o);var a=ri(i,l);(o.line>=a.to||o.lineg.bottom?20:0;s&&setTimeout(Hi(e,(function(){m==r&&(i.scroller.scrollTop+=s,v(t))})),50)}}function y(t){e.state.selectingText=!1,m=1/0,t&&(Ce(t),i.input.focus()),me(i.wrapper.ownerDocument,"mousemove",b),me(i.wrapper.ownerDocument,"mouseup",w),l.history.lastSelOrigin=null}o(v,"extend"),o(y,"done");var b=Hi(e,(function(e){0!==e.buttons&&Me(e)?v(e):y(e)})),w=Hi(e,y);e.state.selectingText=w,pe(i.wrapper.ownerDocument,"mousemove",b),pe(i.wrapper.ownerDocument,"mouseup",w)}function ka(e,t){var r=t.anchor,n=t.head,i=Ze(e.doc,r.line);if(0==lt(r,n)&&r.sticky==n.sticky)return t;var o=de(i);if(!o)return t;var l=ce(o,r.ch,r.sticky),a=o[l];if(a.from!=r.ch&&a.to!=r.ch)return t;var s,u=l+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,n.ch,n.sticky),h=c-l||(n.ch-r.ch)*(1==a.level?-1:1);s=c==u-1||c==u?h<0:h>0}var d=o[u+(s?-1:0)],f=s==(1==d.level),p=f?d.from:d.to,g=f?"after":"before";return r.ch==p&&r.sticky==g?t:new lo(new ot(r.line,p,g),n)}function Ta(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Ce(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!we(e,r))return Le(t);o-=a.top-l.viewOffset;for(var s=0;s=i)return ve(e,r,e,rt(e.doc,o),e.display.gutterSpecs[s].className,t),Le(t)}}function Ma(e,t){return Ta(e,t,"gutterClick",!0)}function Na(e,t){Vr(e.display,t)||Oa(e,t)||ye(e,t,"contextmenu")||L||e.display.input.onContextMenu(t)}function Oa(e,t){return!!we(e,"gutterContextMenu")&&Ta(e,t,"gutterContextMenu",!1)}function Aa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dn(e)}ma.prototype.compare=function(e,t,r){return this.time+400>e&&0==lt(t,this.pos)&&r==this.button},o(va,"clickRepeat"),o(ya,"onMouseDown"),o(ba,"handleMappedButton"),o(wa,"configureMouse"),o(xa,"leftButtonDown"),o(Ca,"leftButtonStartDrag"),o(Sa,"rangeForUnit"),o(La,"leftButtonSelect"),o(ka,"bidiSimplify"),o(Ta,"gutterEvent"),o(Ma,"clickInGutter"),o(Na,"onContextMenu"),o(Oa,"contextMenuInGutter"),o(Aa,"themeChanged");var Da={toString:function(){return"CodeMirror.Init"}},Wa={},Ha={};function Fa(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=Da&&i(e,t,r)}:i)}o(r,"option"),e.defineOption=r,e.Init=Da,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,go(e)}),!0),r("indentUnit",2,go,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){mo(e),dn(e),In(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(ot(n,o))}n++}));for(var i=r.length-1;i>=0;i--)ol(e.doc,t,r[i],ot(r[i].line,r[i].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Da&&e.refresh()})),r("specialCharPlaceholder",gr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Aa(e),Qi(e)}),!0),r("keyMap","default",(function(e,t,r){var n=_l(t),i=r!=Da&&_l(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ea,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=qi(t,e.options.lineNumbers),Qi(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Wn(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return bi(e)}),!0),r("scrollbarStyle","native",(function(e){Ci(e),bi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=qi(e.options.gutters,t),Qi(e)}),!0),r("firstLineNumber",1,Qi,!0),r("lineNumberFormatter",(function(e){return e}),Qi,!0),r("showCursorWhenSelecting",!1,Vn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(Jn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Pa),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Vn,!0),r("singleCursorHeightPerLine",!0,Vn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,mo,!0),r("addModeClass",!1,mo,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,mo,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Pa(e,t,r){if(!t!=!(r&&r!=Da)){var n=e.display.dragFunctions,i=t?pe:me;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Ea(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),ar(e)),Fn(e),In(e),dn(e),setTimeout((function(){return bi(e)}),100)}function Ia(e,t){var r=this;if(!(this instanceof Ia))return new Ia(e,t);this.options=t=t?R(t):{},R(Wa,t,!1);var n=t.value;"string"==typeof n?n=new Ll(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Ia.inputStyles[t.inputStyle](this),o=this.display=new Ji(e,n,i,t);for(var l in o.wrapper.CodeMirror=this,Aa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),Ra(this),Wl(),Li(this),this.curOp.forceUpdate=!0,wo(this,n),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&Qn(r)}),20):Jn(this),Ha)Ha.hasOwnProperty(l)&&Ha[l](this,t[l],Da);$i(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}o(i,"finishTouch"),o(l,"isMouseLikeTouchEvent"),o(u,"farAway"),pe(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!l(i)&&!Ma(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!Vr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var o,l=e.coordsChar(t.activeTouch,"page");o=!n.prev||u(n,n.prev)?new lo(l,l):!n.prev.prev||u(n,n.prev.prev)?e.findWordAt(l):new lo(ot(l.line,0),dt(e.doc,ot(l.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(r)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),gi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return io(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return io(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||ke(t)},over:function(t){ye(e,t)||(Nl(e,t),ke(t))},start:function(t){return Ml(e,t)},drop:Hi(e,Tl),leave:function(t){ye(e,t)||Ol(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return da.call(e,t)})),pe(c,"keydown",Hi(e,ca)),pe(c,"keypress",Hi(e,fa)),pe(c,"focus",(function(t){return Qn(e,t)})),pe(c,"blur",(function(t){return Jn(e,t)}))}o(Fa,"defineOptions"),o(Pa,"dragDropChanged"),o(Ea,"wrappingChanged"),o(Ia,"CodeMirror"),Ia.defaults=Wa,Ia.optionHandlers=Ha,o(Ra,"registerEventHandlers");var Ba=[];function za(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=bt(e,t).state:r="prev");var l=e.options.tabSize,a=Ze(o,t),s=B(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(n||/\S/.test(a.text)){if("smart"==r&&((u=o.mode.indent(i,a.text.slice(c.length),a.text))==U||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?B(Ze(o,t-1).text,null,l):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var h="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/l);f;--f)d+=l,h+="\t";if(dl,s=Fe(t),u=null;if(a&&n.ranges.length>1)if(Ga&&Ga.text.join("\n")==t){if(n.ranges.length%Ga.text.length==0){u=[];for(var c=0;c=0;d--){var f=n.ranges[d],p=f.from(),g=f.to();f.empty()&&(r&&r>0?p=ot(p.line,p.ch-r):e.state.overwrite&&!a?g=ot(g.line,Math.min(Ze(o,g.line).text.length,g.ch+$(s).length)):a&&Ga&&Ga.lineWise&&Ga.text.join("\n")==s.join("\n")&&(p=g=ot(p.line,0)));var m={from:p,to:g,text:u?u[d%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Jo(e.doc,m),Nr(e,"inputRead",e,m)}t&&!a&&ja(e,t),si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ka(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Wi(t,(function(){return Va(t,r,0,null,"paste")})),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=za(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=za(e,i.head.line,"smart"));l&&Nr(e,"electricInput",e,i.head.line)}}}function _a(e){for(var t=[],r=[],n=0;nr&&(za(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&si(this));else{var o=i.from(),l=i.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s0&&Bo(this.doc,n,new lo(o,u[n].to()),V)}}})),getTokenAt:function(e,t){return Lt(this,e,t)},getLineTokens:function(e,t){return Lt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,r=yt(this,Ze(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=Ze(this.doc,e)}else n=e;return mn(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-or(n):0)},defaultTextHeight:function(){return On(this.display)},defaultCharWidth:function(){return An(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display,l=(e=bn(this,dt(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)l=e.top;else if("above"==n||"near"==n){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(l=e.bottom),a+t.offsetWidth>u&&(a=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?a=0:"middle"==i&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),r&&oi(this,{left:a,top:l,right:a+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:Fi(ca),triggerOnKeyPress:Fi(fa),triggerOnKeyUp:da,triggerOnMouseDown:Fi(ya),execCommand:function(e){if(Ql.hasOwnProperty(e))return Ql[e].call(null,this)},triggerElectric:Fi((function(e){ja(this,e)})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5||this.options.lineWrapping)&&Fn(this),ve(this,"refresh",this)})),swapDoc:Fi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),wo(this,e),dn(this),this.display.input.reset(),ui(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Nr(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}function qa(e,t,r,n,i){var l=t,a=r,s=Ze(e,t.line),u=i&&"rtl"==e.direction?-r:r;function c(){var r=t.line+u;return!(r=e.first+e.size)&&(t=new ot(r,t.ch,t.sticky),s=Ze(e,r))}function h(o){var l;if("codepoint"==n){var a=s.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(a))l=null;else{var h=r>0?a>=55296&&a<56320:a>=56320&&a<57343;l=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+r*(h?2:1))),-r)}}else l=i?Zl(e.cm,s,t,r):$l(s,t,r);if(null==l){if(o||!c())return!1;t=ql(i,e.cm,s,t.line,u)}else t=l;return!0}if(o(c,"findNextLine"),o(h,"moveOnce"),"char"==n||"codepoint"==n)h();else if("column"==n)h(!0);else if("word"==n||"group"==n)for(var d=null,f="group"==n,p=e.cm&&e.cm.getHelper(t,"wordChars"),g=!0;!(r<0)||h(!g);g=!1){var m=s.text.charAt(t.ch)||"\n",v=re(m,p)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(!f||g||v||(v="s"),d&&d!=v){r<0&&(r=1,h(),t.sticky="after");break}if(v&&(d=v),r>0&&!h(!g))break}var y=$o(e,t,l,a,!0);return at(l,y)&&(y.hitSide=!0),y}function Za(e,t,r,n){var i,o,l=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*On(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=Cn(e,a,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}o(Ua,"setLastCopied"),o(Va,"applyTextInput"),o(Ka,"handlePaste"),o(ja,"triggerElectric"),o(_a,"copyableRanges"),o(Xa,"disableBrowserMagic"),o(Ya,"hiddenTextarea"),o($a,"addEditorMethods"),o(qa,"findPosH"),o(Za,"findPosV");var Qa=o((function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}),"ContentEditableInput");function Ja(e,t){var r=en(e,t.line);if(!r||r.hidden)return null;var n=Ze(e.doc,t.line),i=Zr(r,n,t.line),o=de(n,e.doc.direction),l="left";o&&(l=ce(o,t.ch)%2?"right":"left");var a=ln(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function rs(e,t,r,n,i){var l="",a=!1,s=e.doc.lineSeparator(),u=!1;function c(e){return function(t){return t.id==e}}function h(){a&&(l+=s,u&&(l+=s),a=u=!1)}function d(e){e&&(h(),l+=e)}function f(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void d(r);var o,l=t.getAttribute("cm-marker");if(l){var p=e.findMarks(ot(n,0),ot(i+1,0),c(+l));return void(p.length&&(o=p[0].find(0))&&d(Qe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&h();for(var m=0;m=t.display.viewTo||o.line=t.display.viewFrom&&Ja(t,i)||{node:s[0].measure.map[2],offset:0},c=o.linen.firstLine()&&(l=ot(l.line-1,Ze(n.doc,l.line-1).length)),a.ch==Ze(n.doc,a.line).text.length&&a.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=En(n,l.line))?(t=tt(i.view[0].line),r=i.view[0].node):(t=tt(i.view[e].line),r=i.view[e-1].node.nextSibling);var s,u,c=En(n,a.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var h=n.doc.splitLines(rs(n,r,u,t,s)),d=Qe(n.doc,ot(t,0),ot(s,Ze(n.doc,s).text.length));h.length>1&&d.length>1;)if($(h)==$(d))h.pop(),d.pop(),s--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),t++}for(var f=0,p=0,g=h[0],m=d[0],v=Math.min(g.length,m.length);fl.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)f--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(f).replace(/\u200b+$/,"");var x=ot(t,f),C=ot(s,d.length?$(d).length-p:0);return h.length>1||h[0]||lt(x,C)?(ol(n.doc,h,x,C,"+input"),!0):void 0},Qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qa.prototype.reset=function(){this.forceCompositionEnd()},Qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qa.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Qa.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Wi(this.cm,(function(){return In(e.cm)}))},Qa.prototype.setUneditable=function(e){e.contentEditable="false"},Qa.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Hi(this.cm,Va)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Qa.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Qa.prototype.onContextMenu=function(){},Qa.prototype.resetPosition=function(){},Qa.prototype.needsContentAttribute=!0,o(Ja,"posToDOM"),o(es,"isInGutter"),o(ts,"badPos"),o(rs,"domTextBetween"),o(ns,"domToPos"),o(is,"locateNodeInLineView");var os=o((function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null}),"TextareaInput");function ls(e,t){if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=H();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=s.getValue()}var i;if(o(n,"save"),e.form&&(pe(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var l=e.form;i=l.submit;try{var a=l.submit=function(){n(),l.submit=i,l.submit(),l.submit=a}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ia((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function as(e){e.off=me,e.on=pe,e.wheelEventPixels=no,e.Doc=Ll,e.splitLines=Fe,e.countColumn=B,e.findColumn=_,e.isWordChar=te,e.Pass=U,e.signal=ve,e.Line=sr,e.changeEnd=uo,e.scrollbarModel=xi,e.Pos=ot,e.cmpPos=lt,e.modes=Be,e.mimeModes=ze,e.resolveMode=Ve,e.getMode=Ke,e.modeExtensions=je,e.extendMode=_e,e.copyState=Xe,e.startState=$e,e.innerMode=Ye,e.commands=Ql,e.keyMap=Bl,e.keyName=jl,e.isModifierKey=Vl,e.lookupKey=Ul,e.normalizeKeyMap=Gl,e.StringStream=qe,e.SharedTextMarker=yl,e.TextMarker=ml,e.LineWidget=dl,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=ke,e.addClass=F,e.contains=W,e.rmClass=M,e.keyNames=Pl}os.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function l(e){if(!ye(n,e)){if(n.somethingSelected())Ua({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=_a(n);Ua({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,V):(r.prevInput="",i.value=t.text.join("\n"),E(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),pe(i,"paste",(function(e){ye(n,e)||Ka(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),o(l,"prepareCopyCut"),pe(i,"cut",l),pe(i,"copy",l),pe(e.scroller,"paste",(function(t){if(!Vr(e,t)&&!ye(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){Vr(e,t)||Ce(t)})),pe(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},os.prototype.createField=function(e){this.wrapper=Ya(),this.textarea=this.wrapper.firstChild},os.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},os.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Kn(e);if(e.options.moveInputWithCursor){var i=bn(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},os.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},os.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&E(this.textarea),a&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},os.prototype.getField=function(){return this.textarea},os.prototype.supportsTouch=function(){return!1},os.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||H()!=this.textarea))try{this.textarea.focus()}catch(e){}},os.prototype.blur=function(){this.textarea.blur()},os.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},os.prototype.receivedFocus=function(){this.slowPoll()},os.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},os.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,o(r,"p"),t.polling.set(20,r)},os.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Pe(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(n.length,i.length);l1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},os.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},os.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},os.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=Pn(r,e),c=n.scroller.scrollTop;if(l&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(l)&&Hi(r,Vo)(r.doc,so(l),V);var h,f=i.style.cssText,p=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(h=window.scrollY),n.input.focus(),u&&window.scrollTo(null,h),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),o(v,"prepareSelectAllHack"),o(y,"rehide"),a&&s>=9&&v(),L){ke(e);var m=o((function(){me(window,"mouseup",m),setTimeout(y,20)}),"mouseup");pe(window,"mouseup",m)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=r.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,a&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,l=o((function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Hi(r,Zo)(r):e++<10?n.detectingSelectAll=setTimeout(l,500):(n.selForContextMenu=null,n.input.reset())}),"poll");n.detectingSelectAll=setTimeout(l,200)}}},os.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},os.prototype.setUneditable=function(){},os.prototype.needsContentAttribute=!1,o(ls,"fromTextArea"),o(as,"addLegacyProps"),Fa(Ia),$a(Ia);var ss="iter insert remove copy getEditor constructor".split(" ");for(var us in Ll.prototype)Ll.prototype.hasOwnProperty(us)&&G(ss,us)<0&&(Ia.prototype[us]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ll.prototype[us]));return xe(Ll),Ia.inputStyles={textarea:os,contenteditable:Qa},Ia.defineMode=function(e){Ia.defaults.mode||"null"==e||(Ia.defaults.mode=e),Ge.apply(this,arguments)},Ia.defineMIME=Ue,Ia.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ia.defineMIME("text/plain","null"),Ia.defineExtension=function(e,t){Ia.prototype[e]=t},Ia.defineDocExtension=function(e,t){Ll.prototype[e]=t},Ia.fromTextArea=ls,as(Ia),Ia.version="5.65.3",Ia}();var u=s.exports,c=Object.freeze(l({__proto__:null,[Symbol.toStringTag]:"Module",default:u},[s.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/382.js b/lib/wp-graphql/build/382.js new file mode 100644 index 000000000..c39eb546e --- /dev/null +++ b/lib/wp-graphql/build/382.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[382],{2382:(t,e,r)=>{r.r(e),r.d(e,{a:()=>o,m:()=>h});var n=r(3338),a=Object.defineProperty,c=(t,e)=>a(t,"name",{value:e,configurable:!0});function i(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(r){if("default"!==r&&!(r in t)){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}))})),Object.freeze(t)}c(i,"_mergeNamespaces");var o={exports:{}};!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),r=t.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(t){return t&&t.bracketRegex||/[(){}[\]]/}function i(t,e,c){var i=t.getLineHandle(e.line),l=e.ch-1,h=c&&c.afterCursor;null==h&&(h=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var s=a(c),u=!h&&l>=0&&s.test(i.text.charAt(l))&&n[i.text.charAt(l)]||s.test(i.text.charAt(l+1))&&n[i.text.charAt(++l)];if(!u)return null;var f=">"==u.charAt(1)?1:-1;if(c&&c.strict&&f>0!=(l==e.ch))return null;var g=t.getTokenTypeAt(r(e.line,l+1)),m=o(t,r(e.line,l+(f>0?1:0)),f,g,c);return null==m?null:{from:r(e.line,l),to:m&&m.pos,match:m&&m.ch==u.charAt(0),forward:f>0}}function o(t,e,c,i,o){for(var l=o&&o.maxScanLineLength||1e4,h=o&&o.maxScanLines||1e3,s=[],u=a(o),f=c>0?Math.min(e.line+h,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-h),g=e.line;g!=f;g+=c){var m=t.getLine(g);if(m){var d=c>0?0:m.length-1,p=c>0?m.length:-1;if(!(m.length>l))for(g==e.line&&(d=e.ch-(c<0?1:0));d!=p;d+=c){var k=m.charAt(d);if(u.test(k)&&(void 0===i||(t.getTokenTypeAt(r(g,d+1))||"")==(i||""))){var v=n[k];if(v&&">"==v.charAt(1)==c>0)s.push(k);else{if(!s.length)return{pos:r(g,d),ch:k};s.pop()}}}}}return g-c!=(c>0?t.lastLine():t.firstLine())&&null}function l(t,n,a){for(var o=t.state.matchBrackets.maxHighlightLineLength||1e3,l=a&&a.highlightNonMatching,h=[],s=t.listSelections(),u=0;u{r.r(n);var t=r(3338),a=r(5549),i=(r(166),r(1609),r(5795),Object.defineProperty),s=(e,n)=>i(e,"name",{value:n,configurable:!0});function o(e){c=e,u=e.length,l=d=f=-1,O(),x();const n=b();return g("EOF"),n}let c,u,l,d,f,p,h;function b(){const e=l,n=[];if(g("{"),!E("}")){do{n.push(m())}while(E(","));g("}")}return{kind:"Object",start:e,end:f,members:n}}function m(){const e=l,n="String"===h?y():null;g("String"),g(":");const r=v();return{kind:"Member",start:e,end:f,key:n,value:r}}function k(){const e=l,n=[];if(g("["),!E("]")){do{n.push(v())}while(E(","));g("]")}return{kind:"Array",start:e,end:f,values:n}}function v(){switch(h){case"[":return k();case"{":return b();case"String":case"Number":case"Boolean":case"Null":const e=y();return x(),e}g("Value")}function y(){return{kind:h,start:l,end:d,value:JSON.parse(c.slice(l,d))}}function g(e){if(h===e)return void x();let n;if("EOF"===h)n="[end of file]";else if(d-l>1)n="`"+c.slice(l,d)+"`";else{const e=c.slice(l).match(/^.+?\b/);n="`"+(e?e[0]:c[l])+"`"}throw w(`Expected ${e} but found ${n}.`)}s(o,"jsonParse"),s(b,"parseObj"),s(m,"parseMember"),s(k,"parseArr"),s(v,"parseVal"),s(y,"curToken"),s(g,"expect");class N extends Error{constructor(e,n){super(e),this.position=n}}function w(e){return new N(e,{start:l,end:d})}function E(e){if(h===e)return x(),!0}function O(){return d31;)if(92===p)switch(p=O(),p){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:O();break;case 117:O(),T(),T(),T(),T();break;default:throw w("Bad character escape sequence.")}else{if(d===u)throw w("Unterminated string.");O()}if(34!==p)throw w("Unterminated string.");O()}function T(){if(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)return O();throw w("Expected hexadecimal digit.")}function $(){45===p&&O(),48===p?O():j(),46===p&&(O(),j()),69!==p&&101!==p||(p=O(),43!==p&&45!==p||O(),j())}function j(){if(p<48||p>57)throw w("Expected decimal digit.");do{O()}while(p>=48&&p<=57)}function F(e,n,r){const t=[];return r.members.forEach((r=>{var a;if(r){const i=null===(a=r.key)||void 0===a?void 0:a.value,s=n[i];s?L(s,r.value).forEach((([n,r])=>{t.push(B(e,n,r))})):t.push(B(e,r.key,`Variable "$${i}" does not appear in any GraphQL query.`))}})),t}function L(e,n){if(!e||!n)return[];if(e instanceof a.GraphQLNonNull)return"Null"===n.kind?[[n,`Type "${e}" is non-nullable and cannot be null.`]]:L(e.ofType,n);if("Null"===n.kind)return[];if(e instanceof a.GraphQLList){const r=e.ofType;return"Array"===n.kind?Q(n.values||[],(e=>L(r,e))):L(r,n)}if(e instanceof a.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,`Type "${e}" must be an Object.`]];const r=Object.create(null),t=Q(n.members,(n=>{var t;const a=null===(t=null==n?void 0:n.key)||void 0===t?void 0:t.value;r[a]=!0;const i=e.getFields()[a];return i?L(i?i.type:void 0,n.value):[[n.key,`Type "${e}" does not have a field "${a}".`]]}));return Object.keys(e.getFields()).forEach((i=>{r[i]||e.getFields()[i].type instanceof a.GraphQLNonNull&&t.push([n,`Object of type "${e}" is missing required field "${i}".`])})),t}return"Boolean"===e.name&&"Boolean"!==n.kind||"String"===e.name&&"String"!==n.kind||"ID"===e.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===e.name&&"Number"!==n.kind||"Int"===e.name&&("Number"!==n.kind||(0|n.value)!==n.value)||(e instanceof a.GraphQLEnumType||e instanceof a.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||G(e.parseValue(n.value)))?[[n,`Expected value of type "${e}".`]]:[]}function B(e,n,r){return{message:r,severity:"error",type:"validation",from:e.posFromIndex(n.start),to:e.posFromIndex(n.end)}}function G(e){return null==e||e!=e}function Q(e,n){return Array.prototype.concat.apply([],e.map(n))}s(N,"JSONSyntaxError"),s(w,"syntaxError"),s(E,"skip"),s(O,"ch"),s(x,"lex"),s(S,"readString"),s(T,"readHex"),s($,"readNumber"),s(j,"readDigits"),t.C.registerHelper("lint","graphql-variables",((e,n,r)=>{if(!e)return[];let t;try{t=o(e)}catch(e){if(e instanceof N)return[B(r,e.position,e.message)];throw e}const a=n.variableToType;return a?F(r,a,t):[]})),s(F,"validateVariables"),s(L,"validateValue"),s(B,"lintError"),s(G,"isNullish"),s(Q,"mapCat")}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/391.js b/lib/wp-graphql/build/391.js new file mode 100644 index 000000000..47c14cb27 --- /dev/null +++ b/lib/wp-graphql/build/391.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[382,391,910],{2382:(e,t,n)=>{n.r(t),n.d(t,{a:()=>a,m:()=>c});var r=n(3338),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}i(l,"_mergeNamespaces");var a={exports:{}};!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function l(e,t,i){var l=e.getLineHandle(t.line),s=t.ch-1,c=i&&i.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var f=o(i),u=!c&&s>=0&&f.test(l.text.charAt(s))&&r[l.text.charAt(s)]||f.test(l.text.charAt(s+1))&&r[l.text.charAt(++s)];if(!u)return null;var h=">"==u.charAt(1)?1:-1;if(i&&i.strict&&h>0!=(s==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,s+1)),g=a(e,n(t.line,s+(h>0?1:0)),h,d,i);return null==g?null:{from:n(t.line,s),to:g&&g.pos,match:g&&g.ch==u.charAt(0),forward:h>0}}function a(e,t,i,l,a){for(var s=a&&a.maxScanLineLength||1e4,c=a&&a.maxScanLines||1e3,f=[],u=o(a),h=i>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),d=t.line;d!=h;d+=i){var g=e.getLine(d);if(g){var m=i>0?0:g.length-1,p=i>0?g.length:-1;if(!(g.length>s))for(d==t.line&&(m=t.ch-(i<0?1:0));m!=p;m+=i){var C=g.charAt(m);if(u.test(C)&&(void 0===l||(e.getTokenTypeAt(n(d,m+1))||"")==(l||""))){var v=r[C];if(v&&">"==v.charAt(1)==i>0)f.push(C);else{if(!f.length)return{pos:n(d,m),ch:C};f.pop()}}}}}return d-i!=(i>0?e.lastLine():e.firstLine())&&null}function s(e,r,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=o&&o.highlightNonMatching,c=[],f=e.listSelections(),u=0;u{n.r(t),n.d(t,{a:()=>a,s:()=>c});var r=n(3338),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}i(l,"_mergeNamespaces");var a={exports:{}};!function(e){var t,n,r=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function l(e,t){for(var n=o(e),r=n,i=0;if);u++){var h=e.getLine(c++);o=null==o?h:o+"\n"+h}i*=2,t.lastIndex=n.ch;var d=t.exec(o);if(d){var g=o.slice(0,d.index).split("\n"),m=d[0].split("\n"),p=n.line+g.length-1,C=g[g.length-1].length;return{from:r(p,C),to:r(p+m.length-1,1==m.length?C+m[0].length:m[m.length-1].length),match:d}}}}function f(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var l=i.index+i[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function u(e,t,n){t=l(t,"g");for(var o=n.line,i=n.ch,a=e.firstLine();o>=a;o--,i=-1){var s=e.getLine(o),c=f(s,t,i<0?0:s.length-i);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function h(e,t,n){if(!a(t))return u(e,t,n);t=l(t,"gm");for(var o,i=1,s=e.getLine(n.line).length-n.ch,c=n.line,h=e.firstLine();c>=h;){for(var d=0;d=h;d++){var g=e.getLine(c--);o=null==o?g:g+"\n"+o}i*=2;var m=f(o,t,s);if(m){var p=o.slice(0,m.index).split("\n"),C=m[0].split("\n"),v=c+p.length,S=p[p.length-1].length;return{from:r(v,S),to:r(v+C.length-1,1==C.length?S+C[0].length:C[C.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var o=0,i=n+Math.max(0,e.length-t.length);;){if(o==i)return o;var l=o+i>>1,a=r(e.slice(0,l)).length;if(a==n)return l;a>n?i=l:o=l+1}}function g(e,o,i,l){if(!o.length)return null;var a=l?t:n,s=a(o).split(/\r|\n\r?/);e:for(var c=i.line,f=i.ch,u=e.lastLine()+1-s.length;c<=u;c++,f=0){var h=e.getLine(c).slice(f),g=a(h);if(1==s.length){var m=g.indexOf(s[0]);if(-1==m)continue e;return i=d(h,g,m,a)+f,{from:r(c,d(h,g,m,a)+f),to:r(c,d(h,g,m+s[0].length,a)+f)}}var p=g.length-s[0].length;if(g.slice(p)==s[0]){for(var C=1;C=u;c--,f=-1){var h=e.getLine(c);f>-1&&(h=h.slice(0,f));var g=a(h);if(1==s.length){var m=g.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,d(h,g,m,a)),to:r(c,d(h,g,m+s[0].length,a))}}var p=s[s.length-1];if(g.slice(0,p.length)==p){var C=1;for(i=c-s.length+1;C(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var o=this.matches(t,n);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new p(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new p(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}(r.a.exports);var s=a.exports,c=Object.freeze(l({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[a.exports]))},7391:(e,t,n)=>{n.r(t),n.d(t,{s:()=>u});var r=n(3338),o=n(5910),i=n(2382),l=Object.defineProperty,a=(e,t)=>l(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}a(s,"_mergeNamespaces");var c={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,o){if(o<0&&0==r.ch)return t.clipPos(n(r.line-1));var i=t.getLine(r.line);if(o>0&&r.ch>=i.length)return t.clipPos(n(r.line+1,0));for(var l,a="start",s=r.ch,c=s,f=o<0?0:i.length,u=0;c!=f;c+=o,u++){var h=i.charAt(o<0?c-1:c),d="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==d&&h.toUpperCase()==h&&(d="W"),"start"==a)"o"!=d?(a="in",l=d):s=c+o;else if("in"==a&&l!=d){if("w"==l&&"W"==d&&o<0&&c--,"W"==l&&"w"==d&&o>0){if(c==s+1){l="w";continue}c--}break}}return n(r.line,c)}function o(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,o=[],i=-1,l=0;l=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],o=0;oi.line&&a==l.line&&0==l.ch||r.push({anchor:a==i.line?i:n(a,0),head:a==l.line?l:n(a)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],o=0;o=0;a--){var c=r[o[a]];if(!(s&&e.cmpPos(c.head,s)>0)){var f=l(t,c.head);s=f.from,t.replaceRange(n(f.word),f.from,f.to)}}}))}function m(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var o=l(t,n);if(!o.word)return;n=o.from,r=o.to}return{from:n,to:r,query:t.getRange(n,r),word:o}}function p(e,t){var r=m(e);if(r){var o=r.query,i=e.getSearchCursor(o,t?r.to:r.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(o,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):r.word&&e.setSelection(r.from,r.to))}}a(u,"selectBetweenBrackets"),t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},a(h,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var o=t.scanForBracket(r.head,1,h(t.getTokenTypeAt(r.head)));if(o&&0!=e.cmpPos(o.pos,r.head))return o.pos;var i=t.scanForBracket(r.head,-1,h(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return i&&n(i.pos.line,i.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.firstLine()-1,l=[],a=0;ai?o.push(c,f):o.length&&(o[o.length-1]=f),i=f}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(i,0),null,"+swapLine")}t.setSelections(l),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),o=[],i=t.lastLine()+1,l=r.length-1;l>=0;l--){var a=r[l],s=a.to().line+1,c=a.from().line;0!=a.to().ch||a.empty()||s--,s=0;e-=2){var r=o[e],i=o[e+1],l=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(l+"\n",n(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],o=0;o=0;i--){var l=r[i].head,a=t.getRange({line:l.line,ch:0},l),s=e.countColumn(a,null,t.getOption("tabSize")),c=t.findPosH(l,-1,"char",!1);if(a&&!/\S/.test(a)&&s%o==0){var f=new n(l.line,e.findColumn(a,s-o,o));f.ch!=l.ch&&(c=f)}t.replaceRange("",c,l,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){g(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){g(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),o=n;if(e.cmpPos(r,o)>0){var i=o;o=r,r=i}t.state.sublimeKilled=t.getRange(r,o),t.replaceRange("",r,o)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},a(m,"getTarget"),a(p,"findAndGoTo"),t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=m(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],o=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&o++;e.setSelections(r,o)}};var C=e.keyMap;C.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(C.macSublime),C.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(C.pcSublime);var v=C.default==C.macDefault;C.sublime=v?C.macSublime:C.pcSublime}(r.a.exports,o.a.exports,i.a.exports);var f=c.exports,u=Object.freeze(s({__proto__:null,[Symbol.toStringTag]:"Module",default:f},[c.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/420.js b/lib/wp-graphql/build/420.js new file mode 100644 index 000000000..250e2cc91 --- /dev/null +++ b/lib/wp-graphql/build/420.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[420,681],{9654:(e,t,n)=>{n.d(t,{a:()=>d,b:()=>s,c:()=>f,d:()=>m,e:()=>v,g:()=>l});var i=n(5549),o=n(7331),r=n(7437),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var o,r;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?c(e,n.parentType,t.name):null,n.type=null===(o=n.fieldDef)||void 0===o?void 0:o.type;break;case"SelectionSet":n.parentType=n.type?(0,i.getNamedType)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&c(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,i.getNullableType)(n.inputType):null;n.inputType=l instanceof i.GraphQLList?l.ofType:null;break;case"ObjectValue":const d=n.inputType?(0,i.getNamedType)(n.inputType):null;n.objectFieldDefs=d instanceof i.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":const s=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==s?void 0:s.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function c(e,t,n){return n===o.S.name&&e.getQueryType()===t?o.S:n===o.T.name&&e.getQueryType()===t?o.T:n===o.a.name&&(0,i.isCompositeType)(t)?o.a:t&&t.getFields?t.getFields()[n]:void 0}function p(e,t){for(let n=0;n{function i(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>i}),(0,Object.defineProperty)(i,"name",{value:"forEachState",configurable:!0})},6681:(e,t,n)=>{n.r(t);var i=n(3338),o=(n(166),n(5549),n(1609),n(5795),Object.defineProperty),r=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function u(e){const t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}function l(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement))return;if("SPAN"!==o.nodeName||void 0!==n.hoverTimeout)return;const a=o.getBoundingClientRect(),l=r((function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(d,s)}),"onMouseMove"),p=r((function(){i.C.off(document,"mousemove",l),i.C.off(e.getWrapperElement(),"mouseout",p),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0}),"onMouseOut"),d=r((function(){i.C.off(document,"mousemove",l),i.C.off(e.getWrapperElement(),"mouseout",p),n.hoverTimeout=void 0,c(e,a)}),"onHover"),s=u(e);n.hoverTimeout=setTimeout(d,s),i.C.on(document,"mousemove",l),i.C.on(e.getWrapperElement(),"mouseout",p)}function c(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(n,"info");if(o){const r=e.getTokenAt(n,!0);if(r){const a=o(r,i,e,n);a&&p(e,t,a)}}}function p(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.appendChild(n),document.body.appendChild(o);const a=o.getBoundingClientRect(),u=window.getComputedStyle(o),l=a.right-a.left+parseFloat(u.marginLeft)+parseFloat(u.marginRight),c=a.bottom-a.top+parseFloat(u.marginTop)+parseFloat(u.marginBottom);let p=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(p=t.top-c),p<0&&(p=t.bottom);let d,s=Math.max(0,window.innerWidth-l-15);s>t.left&&(s=t.left),o.style.opacity="1",o.style.top=p+"px",o.style.left=s+"px";const f=r((function(){clearTimeout(d)}),"onMouseOverPopup"),m=r((function(){clearTimeout(d),d=setTimeout(v,200)}),"onMouseOut"),v=r((function(){i.C.off(o,"mouseover",f),i.C.off(o,"mouseout",m),i.C.off(e.getWrapperElement(),"mouseout",m),o.style.opacity?(o.style.opacity="0",setTimeout((()=>{o.parentNode&&o.parentNode.removeChild(o)}),600)):o.parentNode&&o.parentNode.removeChild(o)}),"hidePopup");i.C.on(o,"mouseover",f),i.C.on(o,"mouseout",m),i.C.on(e.getWrapperElement(),"mouseout",m)}i.C.defineOption("info",!1,((e,t,n)=>{if(n&&n!==i.C.Init){const t=e.state.info.onMouseOver;i.C.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=a(t);n.onMouseOver=l.bind(null,e),i.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})),r(a,"createState"),r(u,"getHoverTime"),r(l,"onMouseOver"),r(c,"onMouseHover"),r(p,"showPopup")},6420:(e,t,n)=>{n.r(t);var i=n(5549),o=n(3338),r=n(9654),a=(n(6681),n(166),n(1609),n(5795),n(7331),n(7437),Object.defineProperty),u=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){c(e,t,n),s(e,t,n,t.type)}function c(e,t,n){var i;const o=(null===(i=t.fieldDef)||void 0===i?void 0:i.name)||"";"__"!==o.slice(0,2)&&(m(e,t,n,t.parentType),y(e,".")),y(e,o,"field-name",n,(0,r.a)(t))}function p(e,t,n){var i;y(e,"@"+((null===(i=t.directiveDef)||void 0===i?void 0:i.name)||""),"directive-name",n,(0,r.b)(t))}function d(e,t,n){var i;t.directiveDef?p(e,t,n):t.fieldDef&&c(e,t,n);const o=(null===(i=t.argDef)||void 0===i?void 0:i.name)||"";y(e,"("),y(e,o,"arg-name",n,(0,r.c)(t)),s(e,t,n,t.inputType),y(e,")")}function s(e,t,n,i){y(e,": "),m(e,t,n,i)}function f(e,t,n){var i;const o=(null===(i=t.enumValue)||void 0===i?void 0:i.name)||"";m(e,t,n,t.inputType),y(e,"."),y(e,o,"enum-value",n,(0,r.d)(t))}function m(e,t,n,o){o instanceof i.GraphQLNonNull?(m(e,t,n,o.ofType),y(e,"!")):o instanceof i.GraphQLList?(y(e,"["),m(e,t,n,o.ofType),y(e,"]")):y(e,(null==o?void 0:o.name)||"","type-name",n,(0,r.e)(t,o))}function v(e,t,n){const i=n.description;if(i){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i)),e.appendChild(n)}g(e,t,n)}function g(e,t,n){const i=n.deprecationReason;if(i){const n=document.createElement("div");n.className="info-deprecation",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i));const o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(o,n.firstChild),e.appendChild(n)}}function y(e,t,n="",i={onClick:null},o=null){if(n){const r=i.onClick;let a;r?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{r(o,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}o.C.registerHelper("info","graphql",((e,t)=>{if(!t.schema||!e.state)return;const n=e.state,i=n.kind,o=n.step,a=(0,r.g)(t.schema,e.state);if("Field"===i&&0===o&&a.fieldDef||"AliasedField"===i&&2===o&&a.fieldDef){const e=document.createElement("div");return l(e,a,t),v(e,t,a.fieldDef),e}if("Directive"===i&&1===o&&a.directiveDef){const e=document.createElement("div");return p(e,a,t),v(e,t,a.directiveDef),e}if("Argument"===i&&0===o&&a.argDef){const e=document.createElement("div");return d(e,a,t),v(e,t,a.argDef),e}if("EnumValue"===i&&a.enumValue&&a.enumValue.description){const e=document.createElement("div");return f(e,a,t),v(e,t,a.enumValue),e}if("NamedType"===i&&a.type&&a.type.description){const e=document.createElement("div");return m(e,a,t,a.type),v(e,t,a.type),e}})),u(l,"renderField"),u(c,"renderQualifiedField"),u(p,"renderDirective"),u(d,"renderArg"),u(s,"renderTypeAnnotation"),u(f,"renderEnumValue"),u(m,"renderType"),u(v,"renderDescription"),u(g,"renderDeprecation"),u(y,"text")}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/482.js b/lib/wp-graphql/build/482.js new file mode 100644 index 000000000..dab770af8 --- /dev/null +++ b/lib/wp-graphql/build/482.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[482],{4482:(t,e,n)=>{n.r(e),n.d(e,{l:()=>u});var o=n(3338),r=Object.defineProperty,i=(t,e)=>r(t,"name",{value:e,configurable:!0});function a(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}i(a,"_mergeNamespaces");var s={exports:{}};!function(t){var e="CodeMirror-lint-markers";function n(e,n,o){var r=document.createElement("div");function a(e){if(!r.parentNode)return t.off(document,"mousemove",a);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip cm-s-"+e.options.theme,r.appendChild(o.cloneNode(!0)),e.state.lint.options.selfContain?e.getWrapperElement().appendChild(r):document.body.appendChild(r),i(a,"position"),t.on(document,"mousemove",a),a(n),null!=r.style.opacity&&(r.style.opacity=1),r}function o(t){t.parentNode&&t.parentNode.removeChild(t)}function r(t){t.parentNode&&(null==t.style.opacity&&o(t),t.style.opacity=0,setTimeout((function(){o(t)}),600))}function a(e,o,a,s){var l=n(e,o,a);function u(){t.off(s,"mouseout",u),l&&(r(l),l=null)}i(u,"hide");var c=setInterval((function(){if(l)for(var t=s;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){u();break}}if(!l)return clearInterval(c)}),400);t.on(s,"mouseout",u)}function s(t,e,n){for(var o in this.marked=[],e instanceof Function&&(e={getAnnotations:e}),e&&!0!==e||(e={}),this.options={},this.linterOptions=e.options||{},l)this.options[o]=l[o];for(var o in e)l.hasOwnProperty(o)?null!=e[o]&&(this.options[o]=e[o]):e.options||(this.linterOptions[o]=e[o]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){M(t,e)},this.waitingFor=0}i(n,"showTooltip"),i(o,"rm"),i(r,"hideTooltip"),i(a,"showTooltipFor"),i(s,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(t){var n=t.state.lint;n.hasGutter&&t.clearGutter(e),n.options.highlightLines&&c(t);for(var o=0;o-1)&&l.push(t.message)}));for(var c=null,h=o.hasGutter&&document.createDocumentFragment(),g=0;g1,r.tooltips)),r.highlightLines&&t.addLineClass(a,"wrap","CodeMirror-lint-line-"+c)}}r.onUpdateLinting&&r.onUpdateLinting(n,i,t)}}function C(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout((function(){g(t)}),e.options.delay))}function y(t,e,n){for(var o=n.target||n.srcElement,r=document.createDocumentFragment(),i=0;i{n.r(t),n.d(t,{a:()=>c,d:()=>s});var r=n(3338),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}i(a,"_mergeNamespaces");var c={exports:{}};!function(e){function t(t,n,r){var o,i=t.getWrapperElement();return(o=i.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}i(t,"dialogDiv"),i(n,"closeNotification"),e.defineExtension("openDialog",(function(r,o,a){a||(a={}),n(this,null);var c=t(this,r,a.bottom),l=!1,s=this;function u(t){if("string"==typeof t)h.value=t;else{if(l)return;l=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),s.focus(),a.onClose&&a.onClose(c)}}i(u,"close");var f,h=c.getElementsByTagName("input")[0];return h?(h.focus(),a.value&&(h.value=a.value,!1!==a.selectValueOnOpen&&h.select()),a.onInput&&e.on(h,"input",(function(e){a.onInput(e,h.value,u)})),a.onKeyUp&&e.on(h,"keyup",(function(e){a.onKeyUp(e,h.value,u)})),e.on(h,"keydown",(function(t){a&&a.onKeyDown&&a.onKeyDown(t,h.value,u)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(h.blur(),e.e_stop(t),u()),13==t.keyCode&&o(h.value,t))})),!1!==a.closeOnBlur&&e.on(c,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(f=c.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){u(),s.focus()})),!1!==a.closeOnBlur&&e.on(f,"blur",u),f.focus()),u})),e.defineExtension("openConfirm",(function(r,o,a){n(this,null);var c=t(this,r,a&&a.bottom),l=c.getElementsByTagName("button"),s=!1,u=this,f=1;function h(){s||(s=!0,e.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),u.focus())}i(h,"close"),l[0].focus();for(var p=0;p{n.r(t),n.d(t,{s:()=>f});var r=n(3338),o=n(5910),i=n(924),a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}c(l,"_mergeNamespaces");var s={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function o(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:o(t),multiline:!0})}function a(e,t,n,r,o){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:o,bottom:e.options.search.bottom})}function l(e,t,n,r,o){e.openDialog?e.openDialog(t,o,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(n,r))}function s(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function f(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function h(e,n,r){n.queryText=r,n.query=f(r),e.removeOverlay(n.overlay,o(n.query)),n.overlay=t(n.query,o(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,o(n.query)))}function p(t,n,o,i){var s=r(t);if(s.query)return g(t,n);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),o&&t.openDialog){var f=null,p=c((function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(h(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),g(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)})))}),"searchNext");a(t,v(t),u,p,(function(n,o){var i=e.keyName(n),a=t.getOption("extraKeys"),c=a&&a[i]||e.keyMap[t.getOption("keyMap")][i];"findNext"==c||"findPrev"==c||"findPersistentNext"==c||"findPersistentPrev"==c?(e.e_stop(n),h(t,r(t),o),t.execCommand(c)):"find"!=c&&"findPersistent"!=c||(e.e_stop(n),p(o,n))})),i&&u&&(h(t,s,u),g(t,n))}else l(t,v(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){h(t,s,e),s.posFrom=s.posTo=t.getCursor(),g(t,n)}))}))}function g(t,n,o){t.operation((function(){var a=r(t),c=i(t,a.query,n?a.posFrom:a.posTo);(c.find(n)||(c=i(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(c.from(),c.to()),t.scrollIntoView({from:c.from(),to:c.to()},20),a.posFrom=c.from(),a.posTo=c.to(),o&&o(c.from(),c.to()))}))}function d(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function m(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var o=2;o{n.r(t),n.d(t,{a:()=>c,s:()=>s});var r=n(3338),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}i(a,"_mergeNamespaces");var c={exports:{}};!function(e){var t,n,r=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function a(e,t){for(var n=o(e),r=n,i=0;iu);f++){var h=e.getLine(s++);o=null==o?h:o+"\n"+h}i*=2,t.lastIndex=n.ch;var p=t.exec(o);if(p){var g=o.slice(0,p.index).split("\n"),d=p[0].split("\n"),m=n.line+g.length-1,v=g[g.length-1].length;return{from:r(m,v),to:r(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:p}}}}function u(e,t,n){for(var r,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=i),o=i.index+1}return r}function f(e,t,n){t=a(t,"g");for(var o=n.line,i=n.ch,c=e.firstLine();o>=c;o--,i=-1){var l=e.getLine(o),s=u(l,t,i<0?0:l.length-i);if(s)return{from:r(o,s.index),to:r(o,s.index+s[0].length),match:s}}}function h(e,t,n){if(!c(t))return f(e,t,n);t=a(t,"gm");for(var o,i=1,l=e.getLine(n.line).length-n.ch,s=n.line,h=e.firstLine();s>=h;){for(var p=0;p=h;p++){var g=e.getLine(s--);o=null==o?g:g+"\n"+o}i*=2;var d=u(o,t,l);if(d){var m=o.slice(0,d.index).split("\n"),v=d[0].split("\n"),y=s+m.length,x=m[m.length-1].length;return{from:r(y,x),to:r(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:d}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var o=0,i=n+Math.max(0,e.length-t.length);;){if(o==i)return o;var a=o+i>>1,c=r(e.slice(0,a)).length;if(c==n)return a;c>n?i=a:o=a+1}}function g(e,o,i,a){if(!o.length)return null;var c=a?t:n,l=c(o).split(/\r|\n\r?/);e:for(var s=i.line,u=i.ch,f=e.lastLine()+1-l.length;s<=f;s++,u=0){var h=e.getLine(s).slice(u),g=c(h);if(1==l.length){var d=g.indexOf(l[0]);if(-1==d)continue e;return i=p(h,g,d,c)+u,{from:r(s,p(h,g,d,c)+u),to:r(s,p(h,g,d+l[0].length,c)+u)}}var m=g.length-l[0].length;if(g.slice(m)==l[0]){for(var v=1;v=f;s--,u=-1){var h=e.getLine(s);u>-1&&(h=h.slice(0,u));var g=c(h);if(1==l.length){var d=g.lastIndexOf(l[0]);if(-1==d)continue e;return{from:r(s,p(h,g,d,c)),to:r(s,p(h,g,d+l[0].length,c))}}var m=l[l.length-1];if(g.slice(0,m.length)==m){var v=1;for(i=s-l.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var o=this.matches(t,n);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new m(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new m(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],o=this.getSearchCursor(t,this.getCursor("from"),n);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)}))}(r.a.exports);var l=c.exports,s=Object.freeze(a({__proto__:null,[Symbol.toStringTag]:"Module",default:l},[c.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/61.js b/lib/wp-graphql/build/61.js new file mode 100644 index 000000000..e9788b55a --- /dev/null +++ b/lib/wp-graphql/build/61.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[61],{5061:(e,t,r)=>{r.r(t),r.d(t,{c:()=>c});var n=r(3338),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}i(s,"_mergeNamespaces");var o={exports:{}};!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},r=e.Pos;function n(e,r){return"pairs"==r&&"string"==typeof e?e:"object"==typeof e&&null!=e[r]?e[r]:t[r]}e.defineOption("autoCloseBrackets",!1,(function(t,r,i){i&&i!=e.Init&&(t.removeKeyMap(a),t.state.closeBrackets=null),r&&(s(n(r,"pairs")),t.state.closeBrackets=r,t.addKeyMap(a))})),i(n,"getOption");var a={Backspace:c,Enter:h};function s(e){for(var t=0;t=0;o--){var h=s[o].head;t.replaceRange("",r(h.line,h.ch-1),r(h.line,h.ch+1),"+delete")}}function h(t){var r=l(t),a=r&&n(r,"explode");if(!a||t.getOption("disableInput"))return e.Pass;for(var i=t.listSelections(),s=0;s0?{line:s.head.line,ch:s.head.ch+t}:{line:s.head.line-1};r.push({anchor:o,head:o})}e.setSelections(r,a)}function f(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new r(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new r(t.head.line,t.head.ch+(n?1:-1))}}function p(t,a){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;var s=n(i,"pairs"),o=s.indexOf(a);if(-1==o)return e.Pass;for(var c,h=n(i,"closeBefore"),p=n(i,"triples"),d=s.charAt(o+1)==a,v=t.listSelections(),b=o%2==0,k=0;k1&&p.indexOf(a)>=0&&t.getRange(r(O.line,O.ch-2),O)==a+a){if(O.ch>2&&/\bstring/.test(t.getTokenTypeAt(r(O.line,O.ch-2))))return e.Pass;S="addFour"}else if(d){var x=0==O.ch?" ":t.getRange(r(O.line,O.ch-1),O);if(e.isWordChar(P)||x==a||e.isWordChar(x))return e.Pass;S="both"}else{if(!b||!(0===P.length||/\s/.test(P)||h.indexOf(P)>-1))return e.Pass;S="both"}else S=d&&g(t,O)?"both":p.indexOf(a)>=0&&t.getRange(O,r(O.line,O.ch+3))==a+a+a?"skipThree":"skip";if(c){if(c!=S)return e.Pass}else c=S}var A=o%2?s.charAt(o-1):a,m=o%2?a:s.charAt(o+1);t.operation((function(){if("skip"==c)u(t,1);else if("skipThree"==c)u(t,3);else if("surround"==c){for(var e=t.getSelections(),r=0;r{n.d(t,{C:()=>a,P:()=>o,R:()=>s});var i=Object.defineProperty,r=(e,t)=>i(e,"name",{value:t,configurable:!0});class a{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let i=null,r=null;return"string"==typeof e?(r=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),i=e):e instanceof RegExp&&(r=this._sourceText.slice(this._pos).match(e),i=null==r?void 0:r[0]),!(null==r||!("string"==typeof e||r instanceof Array&&this._sourceText.startsWith(r[0],this._pos)))&&(t&&(this._start=this._pos,i&&i.length&&(this._pos+=i.length)),r)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let i=0;for(;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}r(a,"CharacterStream");class s{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}r(s,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{n.r(t);var i=n(3338),r=(n(9669),n(5549)),a=n(166),s=n(4601),o=n(9920),l=n(7331),c=(n(1609),n(5795),Object.defineProperty),u=(e,t)=>c(e,"name",{value:t,configurable:!0});function p(e){let t;return f(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function d(e,t,n){return n===l.S.name&&e.getQueryType()===t?l.S:n===l.T.name&&e.getQueryType()===t?l.T:n===l.a.name&&(0,r.isCompositeType)(t)?l.a:"getFields"in t?t.getFields()[n]:null}function f(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function h(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r({proximity:E(m(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):g(e,(e=>!e.isDeprecated))}function g(e,t){const n=e.filter(t);return 0===n.length?e:n}function m(e){return e.toLowerCase().replace(/\W/g,"")}function E(e,t){let n=y(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function y(e,t){let n,i;const r=[],a=e.length,s=t.length;for(n=0;n<=a;n++)r[n]=[n];for(i=1;i<=s;i++)r[0][i]=i;for(n=1;n<=a;n++)for(i=1;i<=s;i++){const a=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+a))}return r[a][s]}u(p,"getDefinitionState"),u(d,"getFieldDef"),u(f,"forEachState"),u(h,"objectValues"),u(T,"hintList"),u(v,"filterAndSortList"),u(g,"filterNonEmpty"),u(m,"normalizeText"),u(E,"getProximity"),u(y,"lexicalDistance");const R={command:"editor.action.triggerSuggest",title:"Suggestions"},S=u((e=>{const t=[];if(e)try{(0,r.visit)((0,r.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t}),"collectFragmentDefs");function D(e,t,n,i,s,o){var l;const c=Object.assign(Object.assign({},o),{schema:e}),u=i||P(t,n),p="Invalid"===u.state.kind?u.state.prevState:u.state;if(!p)return[];const d=p.kind,f=p.step,v=V(e,u.state);if(d===a.R.DOCUMENT)return T(u,[{label:"query",kind:a.C.Function},{label:"mutation",kind:a.C.Function},{label:"subscription",kind:a.C.Function},{label:"fragment",kind:a.C.Function},{label:"{",kind:a.C.Constructor}]);if(d===a.R.IMPLEMENTS||d===a.R.NAMED_TYPE&&(null===(l=p.prevState)||void 0===l?void 0:l.kind)===a.R.IMPLEMENTS)return L(u,p,e,t,v);if(d===a.R.SELECTION_SET||d===a.R.FIELD||d===a.R.ALIASED_FIELD)return N(u,v,c);if(d===a.R.ARGUMENTS||d===a.R.ARGUMENT&&0===f){const e=v.argDefs;if(e)return T(u,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:R,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:a.C.Variable,type:e.type}})))}if((d===a.R.OBJECT_VALUE||d===a.R.OBJECT_FIELD&&0===f)&&v.objectFieldDefs){const e=h(v.objectFieldDefs),t=d===a.R.OBJECT_VALUE?a.C.Value:a.C.Field;return T(u,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(d===a.R.ENUM_VALUE||d===a.R.LIST_VALUE&&1===f||d===a.R.OBJECT_FIELD&&2===f||d===a.R.ARGUMENT&&2===f)return k(u,v,t,e);if(d===a.R.VARIABLE&&1===f){const n=(0,r.getNamedType)(v.inputType);return T(u,F(t,e,u).filter((e=>e.detail===(null==n?void 0:n.name))))}return d===a.R.TYPE_CONDITION&&1===f||d===a.R.NAMED_TYPE&&null!=p.prevState&&p.prevState.kind===a.R.TYPE_CONDITION?A(u,v,e):d===a.R.FRAGMENT_SPREAD&&1===f?C(u,v,e,t,Array.isArray(s)?s:S(s)):d===a.R.VARIABLE_DEFINITION&&2===f||d===a.R.LIST_TYPE&&1===f||d===a.R.NAMED_TYPE&&p.prevState&&(p.prevState.kind===a.R.VARIABLE_DEFINITION||p.prevState.kind===a.R.LIST_TYPE||p.prevState.kind===a.R.NON_NULL_TYPE)?M(u,e):d===a.R.DIRECTIVE?x(u,p,e):[]}u(D,"getAutocompleteSuggestions");const I=" {\n $1\n}",_=u((e=>{const t=e.type;if((0,r.isCompositeType)(t))return I;if((0,r.isListType)(t)&&(0,r.isCompositeType)(t.ofType))return I;if((0,r.isNonNullType)(t)){if((0,r.isCompositeType)(t.ofType))return I;if((0,r.isListType)(t.ofType)&&(0,r.isCompositeType)(t.ofType.ofType))return I}return null}),"getInsertText");function N(e,t,n){var i;if(t.parentType){const s=t.parentType;let o=[];return"getFields"in s&&(o=h(s.getFields())),(0,r.isCompositeType)(s)&&o.push(r.TypeNameMetaFieldDef),s===(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.getQueryType())&&o.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),T(e,o.map(((e,t)=>{var n;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:a.C.Field,type:e.type},r=_(e);return r&&(i.insertText=e.name+r,i.insertTextFormat=a.I.Snippet,i.command=R),i})))}return[]}function k(e,t,n,i){const s=(0,r.getNamedType)(t.inputType),o=F(n,i,e).filter((e=>e.detail===s.name));return s instanceof r.GraphQLEnumType?T(e,s.getValues().map((e=>{var t;return{label:e.name,detail:String(s),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:a.C.EnumMember,type:s}})).concat(o)):s===r.GraphQLBoolean?T(e,o.concat([{label:"true",detail:String(r.GraphQLBoolean),documentation:"Not false.",kind:a.C.Variable,type:r.GraphQLBoolean},{label:"false",detail:String(r.GraphQLBoolean),documentation:"Not true.",kind:a.C.Variable,type:r.GraphQLBoolean}])):o}function L(e,t,n,i,s){if(t.needsSeparator)return[];const o=h(n.getTypeMap()).filter(r.isInterfaceType),l=o.map((({name:e})=>e)),c=new Set;U(i,((e,t)=>{var i,o,u,p,d;if(t.name&&(t.kind!==a.R.INTERFACE_DEF||l.includes(t.name)||c.add(t.name),t.kind===a.R.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===a.R.IMPLEMENTS))if(s.interfaceDef){if(null===(o=s.interfaceDef)||void 0===o?void 0:o.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(u=s.interfaceDef)||void 0===u?void 0:u.toConfig();s.interfaceDef=new r.GraphQLInterfaceType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(s.objectTypeDef){if(null===(p=s.objectTypeDef)||void 0===p?void 0:p.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),i=null===(d=s.objectTypeDef)||void 0===d?void 0:d.toConfig();s.objectTypeDef=new r.GraphQLObjectType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}}));const u=s.interfaceDef||s.objectTypeDef,p=((null==u?void 0:u.getInterfaces())||[]).map((({name:e})=>e));return T(e,o.concat([...c].map((e=>({name:e})))).filter((({name:e})=>e!==(null==u?void 0:u.name)&&!p.includes(e))).map((e=>{const t={label:e.name,kind:a.C.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}function A(e,t,n,i){let s;if(t.parentType)if((0,r.isAbstractType)(t.parentType)){const e=(0,r.assertAbstractType)(t.parentType),i=n.getPossibleTypes(e),a=Object.create(null);i.forEach((e=>{e.getInterfaces().forEach((e=>{a[e.name]=e}))})),s=i.concat(h(a))}else s=[t.parentType];else s=h(n.getTypeMap()).filter(r.isCompositeType);return T(e,s.map((e=>{const t=(0,r.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:a.C.Field}})))}function C(e,t,n,i,s){if(!i)return[];const o=n.getTypeMap(),l=p(e.state),c=O(i);return s&&s.length>0&&c.push(...s),T(e,c.filter((e=>o[e.typeCondition.name.value]&&!(l&&l.kind===a.R.FRAGMENT_DEFINITION&&l.name===e.name.value)&&(0,r.isCompositeType)(t.parentType)&&(0,r.isCompositeType)(o[e.typeCondition.name.value])&&(0,r.doTypesOverlap)(n,t.parentType,o[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:a.C.Field,type:o[e.typeCondition.name.value]}))))}u(N,"getSuggestionsForFieldNames"),u(k,"getSuggestionsForInputValues"),u(L,"getSuggestionsForImplements"),u(A,"getSuggestionsForFragmentTypeConditions"),u(C,"getSuggestionsForFragmentSpread");const b=u(((e,t)=>{var n,i,r,a,s,o,l,c,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(r=null===(i=e.prevState)||void 0===i?void 0:i.prevState)||void 0===r?void 0:r.kind)===t?e.prevState.prevState:(null===(o=null===(s=null===(a=e.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.prevState)||void 0===o?void 0:o.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(c=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0}),"getParentDefinition");function F(e,t,n){let i,r=null;const s=Object.create({});return U(e,((e,o)=>{if((null==o?void 0:o.kind)===a.R.VARIABLE&&o.name&&(r=o.name),(null==o?void 0:o.kind)===a.R.NAMED_TYPE&&r){const e=b(o,a.R.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}r&&i&&(s[r]||(s[r]={detail:i.toString(),insertText:"$"===n.string?r:"$"+r,label:r,type:i,kind:a.C.Variable},r=null,i=null))})),h(s)}function O(e){const t=[];return U(e,((e,n)=>{n.kind===a.R.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:a.R.FRAGMENT_DEFINITION,name:{kind:r.Kind.NAME,value:n.name},selectionSet:{kind:a.R.SELECTION_SET,selections:[]},typeCondition:{kind:a.R.NAMED_TYPE,name:{kind:r.Kind.NAME,value:n.type}}})})),t}function M(e,t,n){return T(e,h(t.getTypeMap()).filter(r.isInputType).map((e=>({label:e.name,documentation:e.description,kind:a.C.Variable}))))}function x(e,t,n,i){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?T(e,n.getDirectives().filter((e=>G(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:a.C.Function})))):[]}function P(e,t){let n=null,i=null,r=null;const a=U(e,((e,a,s,o)=>{if(o===t.line&&e.getCurrentPosition()>=t.character)return n=s,i=Object.assign({},a),r=e.current(),"BREAK"}));return{start:a.start,end:a.end,string:r||a.string,state:i||a.state,style:n||a.style}}function U(e,t){const n=e.split("\n"),i=(0,o.o)();let r=i.startState(),a="",l=new s.C("");for(let e=0;e{var f;switch(t.kind){case a.R.QUERY:case"ShortQuery":T=e.getQueryType();break;case a.R.MUTATION:T=e.getMutationType();break;case a.R.SUBSCRIPTION:T=e.getSubscriptionType();break;case a.R.INLINE_FRAGMENT:case a.R.FRAGMENT_DEFINITION:t.type&&(T=e.getType(t.type));break;case a.R.FIELD:case a.R.ALIASED_FIELD:T&&t.name?(l=h?d(e,h,t.name):null,T=l?l.type:null):l=null;break;case a.R.SELECTION_SET:h=(0,r.getNamedType)(T);break;case a.R.DIRECTIVE:s=t.name?e.getDirective(t.name):null;break;case a.R.INTERFACE_DEF:t.name&&(u=null,v=new r.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case a.R.OBJECT_TYPE_DEF:t.name&&(v=null,u=new r.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case a.R.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case a.R.FIELD:i=l&&l.args;break;case a.R.DIRECTIVE:i=s&&s.args;break;case a.R.ALIASED_FIELD:{const n=null===(f=t.prevState)||void 0===f?void 0:f.name;if(!n){i=null;break}const r=h?d(e,h,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case a.R.ARGUMENT:if(i)for(let e=0;ee.value===t.name)):null;break;case a.R.LIST_VALUE:const m=(0,r.getNullableType)(c);c=m instanceof r.GraphQLList?m.ofType:null;break;case a.R.OBJECT_VALUE:const E=(0,r.getNamedType)(c);p=E instanceof r.GraphQLInputObjectType?E.getFields():null;break;case a.R.OBJECT_FIELD:const y=t.name&&p?p[t.name]:null;c=null==y?void 0:y.type;break;case a.R.NAMED_TYPE:t.name&&(T=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:s,enumValue:o,fieldDef:l,inputType:c,objectFieldDefs:p,parentType:h,type:T,interfaceDef:v,objectTypeDef:u}}u(F,"getVariableCompletions"),u(O,"getFragmentDefinitions"),u(M,"getSuggestionsForVariableDefinition"),u(x,"getSuggestionsForDirective"),u(P,"getTokenAtPosition"),u(U,"runOnlineParser"),u(G,"canUseDirective"),u(V,"getTypeInfo"),i.C.registerHelper("hint","graphql",((e,t)=>{const n=t.schema;if(!n)return;const r=e.getCursor(),a=e.getTokenAt(r),o=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new s.P(r.line,o),c={list:D(n,e.getValue(),l,a,t.externalFragments).map((e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))),from:{line:r.line,ch:o},to:{line:r.line,ch:a.end}};return(null==c?void 0:c.list)&&c.list.length>0&&(c.from=i.C.Pos(c.from.line,c.from.ch),c.to=i.C.Pos(c.to.line,c.to.ch),i.C.signal(e,"hasCompletion",e,c,a)),c}))},9920:(e,t,n)=>{n.d(t,{o:()=>o});var i=n(166),r=n(5549),a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e={eatWhitespace:e=>e.eatWhile(i.i),lexRules:i.L,parseRules:i.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,r.Kind.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:a,eatWhitespace:s,editorConfig:o}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(s(e))return"ws";const l=v(r,e);if(!l)return e.match(/\S+/)||e.match(/\s/),p(u,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return p(u,t,"Comment"),"comment";const h=c({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{i.r(e),i.d(e,{s:()=>h});var n=i(3338),o=Object.defineProperty,s=(t,e)=>o(t,"name",{value:e,configurable:!0});function r(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(i){if("default"!==i&&!(i in t)){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}}))})),Object.freeze(t)}s(r,"_mergeNamespaces");var c={exports:{}};!function(t){var e="CodeMirror-hint-active";function i(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}t.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var o in i)n[o]=i[o];return t.showHint(n)},t.defineExtension("showHint",(function(e){e=r(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var o=0;ou.clientHeight+1;if(setTimeout((function(){M=s.getScrollInfo()})),N.bottom-F>0){var E=N.bottom-N.top;if(b.top-(b.bottom-N.top)-E>0)u.style.top=(H=b.top-E-k)+"px",A=!1;else if(E>F){u.style.height=F-5+"px",u.style.top=(H=b.bottom-N.top-k)+"px";var I=s.getCursor();n.from.ch!=I.ch&&(b=s.cursorCoords(I),u.style.left=(w=b.left-C)+"px",N=u.getBoundingClientRect())}}var W,R=N.right-T;if(P&&(R+=s.display.nativeBarWidth),R>0&&(N.right-N.left>T&&(u.style.width=T-5+"px",R-=N.right-N.left-T),u.style.left=(w=b.left-R-C)+"px"),P)for(var B=u.firstChild;B;B=B.nextSibling)B.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=l(i,{moveFocus:function(t,e){o.changeActive(o.selectedHint+t,e)},setFocus:function(t){o.changeActive(t)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){i.close()},pick:function(){o.pick()},data:n})),i.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){W=setTimeout((function(){i.close()}),100)}),s.on("focus",this.onFocus=function(){clearTimeout(W)})),s.on("scroll",this.onScroll=function(){var t=s.getScrollInfo(),e=s.getWrapperElement().getBoundingClientRect();M||(M=s.getScrollInfo());var n=H+M.top-t.top,o=n-(a.pageYOffset||(r.documentElement||r.body).scrollTop);if(A||(o+=u.offsetHeight),o<=e.top||o>=e.bottom)return i.close();u.style.top=n+"px",u.style.left=w+M.left-t.left+"px"}),t.on(u,"dblclick",(function(t){var e=h(u,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),o.pick())})),t.on(u,"click",(function(t){var e=h(u,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),i.options.completeOnSingleClick&&o.pick())})),t.on(u,"mousedown",(function(){setTimeout((function(){s.focus()}),20)}));var K=this.getSelectedHintRange();return 0===K.from&&0===K.to||this.scrollToActive(),t.signal(n,"select",p[this.selectedHint],u.childNodes[this.selectedHint]),!0}function u(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n0?e(t):r(o+1)}))}s(r,"run"),r(0)}),"resolved");return r.async=!0,r.supportsSelection=!0,r}return(n=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:n})}:t.hint.anyword?function(e,i){return t.hint.anyword(e,i)}:function(){}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,i){var n=e.list[i],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,e,n):o.cm.replaceRange(c(n),n.from||e.from,n.to||e.to,"complete"),t.signal(e,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch=this.data.list.length?i=n?this.data.list.length-1:0:i<0&&(i=n?0:this.data.list.length-1),this.selectedHint!=i){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+e,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=i]).className+=" "+e,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},s(u,"applicableHelpers"),s(f,"fetchHints"),s(p,"resolveAutoHints"),t.registerHelper("hint","auto",{resolve:p}),t.registerHelper("hint","fromList",(function(e,i){var n,o=e.getCursor(),s=e.getTokenAt(o),r=t.Pos(o.line,s.start),c=o;s.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(n.a.exports);var l=c.exports,h=Object.freeze(r({__proto__:null,[Symbol.toStringTag]:"Module",default:l},[c.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/681.js b/lib/wp-graphql/build/681.js new file mode 100644 index 000000000..6b7d63ff1 --- /dev/null +++ b/lib/wp-graphql/build/681.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[681],{6681:(e,o,t)=>{t.r(o);var n=t(3338),i=(t(166),t(5549),t(1609),t(5795),Object.defineProperty),r=(e,o)=>i(e,"name",{value:o,configurable:!0});function u(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function m(e){const o=e.state.info.options;return(null==o?void 0:o.hoverTime)||500}function s(e,o){const t=e.state.info,i=o.target||o.srcElement;if(!(i instanceof HTMLElement))return;if("SPAN"!==i.nodeName||void 0!==t.hoverTimeout)return;const u=i.getBoundingClientRect(),s=r((function(){clearTimeout(t.hoverTimeout),t.hoverTimeout=setTimeout(f,l)}),"onMouseMove"),p=r((function(){n.C.off(document,"mousemove",s),n.C.off(e.getWrapperElement(),"mouseout",p),clearTimeout(t.hoverTimeout),t.hoverTimeout=void 0}),"onMouseOut"),f=r((function(){n.C.off(document,"mousemove",s),n.C.off(e.getWrapperElement(),"mouseout",p),t.hoverTimeout=void 0,a(e,u)}),"onHover"),l=m(e);t.hoverTimeout=setTimeout(f,l),n.C.on(document,"mousemove",s),n.C.on(e.getWrapperElement(),"mouseout",p)}function a(e,o){const t=e.coordsChar({left:(o.left+o.right)/2,top:(o.top+o.bottom)/2}),n=e.state.info.options,i=n.render||e.getHelper(t,"info");if(i){const r=e.getTokenAt(t,!0);if(r){const u=i(r,n,e,t);u&&p(e,o,u)}}}function p(e,o,t){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(t),document.body.appendChild(i);const u=i.getBoundingClientRect(),m=window.getComputedStyle(i),s=u.right-u.left+parseFloat(m.marginLeft)+parseFloat(m.marginRight),a=u.bottom-u.top+parseFloat(m.marginTop)+parseFloat(m.marginBottom);let p=o.bottom;a>window.innerHeight-o.bottom-15&&o.top>window.innerHeight-o.bottom&&(p=o.top-a),p<0&&(p=o.bottom);let f,l=Math.max(0,window.innerWidth-s-15);l>o.left&&(l=o.left),i.style.opacity="1",i.style.top=p+"px",i.style.left=l+"px";const c=r((function(){clearTimeout(f)}),"onMouseOverPopup"),d=r((function(){clearTimeout(f),f=setTimeout(v,200)}),"onMouseOut"),v=r((function(){n.C.off(i,"mouseover",c),n.C.off(i,"mouseout",d),n.C.off(e.getWrapperElement(),"mouseout",d),i.style.opacity?(i.style.opacity="0",setTimeout((()=>{i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)}),"hidePopup");n.C.on(i,"mouseover",c),n.C.on(i,"mouseout",d),n.C.on(e.getWrapperElement(),"mouseout",d)}n.C.defineOption("info",!1,((e,o,t)=>{if(t&&t!==n.C.Init){const o=e.state.info.onMouseOver;n.C.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(o){const t=e.state.info=u(o);t.onMouseOver=s.bind(null,e),n.C.on(e.getWrapperElement(),"mouseover",t.onMouseOver)}})),r(u,"createState"),r(m,"getHoverTime"),r(s,"onMouseOver"),r(a,"onMouseHover"),r(p,"showPopup")}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/77.js b/lib/wp-graphql/build/77.js new file mode 100644 index 000000000..c828542eb --- /dev/null +++ b/lib/wp-graphql/build/77.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[77],{5077:(e,n,t)=>{t.r(n),t.d(n,{c:()=>m});var i=t(3338),l=Object.defineProperty,o=(e,n)=>l(e,"name",{value:n,configurable:!0});function r(e,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in e)){var i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(e)}o(r,"_mergeNamespaces");var a={exports:{}};!function(e){var n={},t=/[^\s\u00a0]/,i=e.Pos,l=e.cmpPos;function r(e){var n=e.search(t);return-1==n?0:n}function a(e,n,t){return/\bstring\b/.test(e.getTokenTypeAt(i(n.line,0)))&&!/^[\'\"\`]/.test(t)}function c(e,n){var t=e.getMode();return!1!==t.useInnerComments&&t.innerMode?e.getModeAt(n):t}o(r,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=n);for(var t=this,l=1/0,o=this.listSelections(),r=null,a=o.length-1;a>=0;a--){var c=o[a].from(),m=o[a].to();c.line>=l||(m.line>=l&&(m=i(l,0)),l=c.line,null==r?t.uncomment(c,m,e)?r="un":(t.lineComment(c,m,e),r="line"):"un"==r?t.uncomment(c,m,e):t.lineComment(c,m,e))}})),o(a,"probablyInsideString"),o(c,"getMode"),e.defineExtension("lineComment",(function(e,l,o){o||(o=n);var m=this,g=c(m,e),s=m.getLine(e.line);if(null!=s&&!a(m,e,s)){var f=o.lineComment||g.lineComment;if(f){var u=Math.min(0!=l.ch||l.line==e.line?l.line+1:l.line,m.lastLine()+1),h=null==o.padding?" ":o.padding,d=o.commentBlankLines||e.line==l.line;m.operation((function(){if(o.indent){for(var n=null,l=e.line;la.length)&&(n=a)}for(l=e.line;lf||a.operation((function(){if(0!=r.fullLines){var n=t.test(a.getLine(f));a.replaceRange(u+s,i(f)),a.replaceRange(g+u,i(e.line,0));var c=r.blockCommentLead||m.blockCommentLead;if(null!=c)for(var h=e.line+1;h<=f;++h)(h!=f||n)&&a.replaceRange(c+u,i(h,0))}else{var d=0==l(a.getCursor("to"),o),p=!a.somethingSelected();a.replaceRange(s,o),d&&a.setSelection(p?o:a.getCursor("from"),o),a.replaceRange(g,e)}}))}}else(r.lineComment||m.lineComment)&&0!=r.fullLines&&a.lineComment(e,o,r)})),e.defineExtension("uncomment",(function(e,l,o){o||(o=n);var r,a=this,m=c(a,e),g=Math.min(0!=l.ch||l.line==e.line?l.line:l.line-1,a.lastLine()),s=Math.min(e.line,g),f=o.lineComment||m.lineComment,u=[],h=null==o.padding?" ":o.padding;e:if(f){for(var d=s;d<=g;++d){var p=a.getLine(d),b=p.indexOf(f);if(b>-1&&!/comment/.test(a.getTokenTypeAt(i(d,b+1)))&&(b=-1),-1==b&&t.test(p))break e;if(b>-1&&t.test(p.slice(0,b)))break e;u.push(p)}if(a.operation((function(){for(var e=s;e<=g;++e){var n=u[e-s],t=n.indexOf(f),l=t+f.length;t<0||(n.slice(l,l+h.length)==h&&(l+=h.length),r=!0,a.replaceRange("",i(e,t),i(e,l)))}})),r)return!0}var v=o.blockCommentStart||m.blockCommentStart,C=o.blockCommentEnd||m.blockCommentEnd;if(!v||!C)return!1;var k=o.blockCommentLead||m.blockCommentLead,L=a.getLine(s),x=L.indexOf(v);if(-1==x)return!1;var O=g==s?L:a.getLine(g),y=O.indexOf(C,g==s?x+v.length:0),S=i(s,x+1),T=i(g,y+1);if(-1==y||!/comment/.test(a.getTokenTypeAt(S))||!/comment/.test(a.getTokenTypeAt(T))||a.getRange(S,T,"\n").indexOf(C)>-1)return!1;var R=L.lastIndexOf(v,e.ch),E=-1==R?-1:L.slice(0,e.ch).indexOf(C,R+v.length);if(-1!=R&&-1!=E&&E+C.length!=e.ch)return!1;E=O.indexOf(C,l.ch);var M=O.slice(l.ch).lastIndexOf(v,E-l.ch);return R=-1==E||-1==M?-1:l.ch+M,(-1==E||-1==R||R==l.ch)&&(a.operation((function(){a.replaceRange("",i(g,y-(h&&O.slice(y-h.length,y)==h?h.length:0)),i(g,y+C.length));var e=x+v.length;if(h&&L.slice(e,e+h.length)==h&&(e+=h.length),a.replaceRange("",i(s,x),i(s,e)),k)for(var n=s+1;n<=g;++n){var l=a.getLine(n),o=l.indexOf(k);if(-1!=o&&!t.test(l.slice(0,o))){var r=o+k.length;h&&l.slice(r,r+h.length)==h&&(r+=h.length),a.replaceRange("",i(n,o),i(n,r))}}})),!0)}))}(i.a.exports);var c=a.exports,m=Object.freeze(r({__proto__:null,[Symbol.toStringTag]:"Module",default:c},[a.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/910.js b/lib/wp-graphql/build/910.js new file mode 100644 index 000000000..268dd47a5 --- /dev/null +++ b/lib/wp-graphql/build/910.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[910],{5910:(e,t,n)=>{n.r(t),n.d(t,{a:()=>h,s:()=>s});var r=n(3338),i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function l(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}o(l,"_mergeNamespaces");var h={exports:{}};!function(e){var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function l(e,t){for(var n=i(e),r=n,o=0;oa);f++){var u=e.getLine(s++);i=null==i?u:i+"\n"+u}o*=2,t.lastIndex=n.ch;var g=t.exec(i);if(g){var p=i.slice(0,g.index).split("\n"),d=g[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:g}}}}function a(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var l=o.index+o[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function f(e,t,n){t=l(t,"g");for(var i=n.line,o=n.ch,h=e.firstLine();i>=h;i--,o=-1){var c=e.getLine(i),s=a(c,t,o<0?0:c.length-o);if(s)return{from:r(i,s.index),to:r(i,s.index+s[0].length),match:s}}}function u(e,t,n){if(!h(t))return f(e,t,n);t=l(t,"gm");for(var i,o=1,c=e.getLine(n.line).length-n.ch,s=n.line,u=e.firstLine();s>=u;){for(var g=0;g=u;g++){var p=e.getLine(s--);i=null==i?p:p+"\n"+i}o*=2;var d=a(i,t,c);if(d){var m=i.slice(0,d.index).split("\n"),v=d[0].split("\n"),x=s+m.length,L=m[m.length-1].length;return{from:r(x,L),to:r(x+v.length-1,1==v.length?L+v[0].length:v[v.length-1].length),match:d}}}}function g(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var l=i+o>>1,h=r(e.slice(0,l)).length;if(h==n)return l;h>n?o=l:i=l+1}}function p(e,i,o,l){if(!i.length)return null;var h=l?t:n,c=h(i).split(/\r|\n\r?/);e:for(var s=o.line,a=o.ch,f=e.lastLine()+1-c.length;s<=f;s++,a=0){var u=e.getLine(s).slice(a),p=h(u);if(1==c.length){var d=p.indexOf(c[0]);if(-1==d)continue e;return o=g(u,p,d,h)+a,{from:r(s,g(u,p,d,h)+a),to:r(s,g(u,p,d+c[0].length,h)+a)}}var m=p.length-c[0].length;if(p.slice(m)==c[0]){for(var v=1;v=f;s--,a=-1){var u=e.getLine(s);a>-1&&(u=u.slice(0,a));var p=h(u);if(1==c.length){var d=p.lastIndexOf(c[0]);if(-1==d)continue e;return{from:r(s,g(u,p,d,h)),to:r(s,g(u,p,d+c[0].length,h))}}var m=c[c.length-1];if(p.slice(0,m.length)==m){var v=1;for(o=s-c.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new m(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new m(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(r.a.exports);var c=h.exports,s=Object.freeze(l({__proto__:null,[Symbol.toStringTag]:"Module",default:c},[h.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/912.js b/lib/wp-graphql/build/912.js new file mode 100644 index 000000000..d780f5d6e --- /dev/null +++ b/lib/wp-graphql/build/912.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[912],{7912:(e,t,n)=>{n.r(t);var r=n(3338),l=(n(5549),n(166)),a=n(9920),u=(n(1609),n(5795),Object.defineProperty),i=(e,t)=>u(e,"name",{value:t,configurable:!0});function s(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.C.defineMode("graphql-variables",(e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatSpace(),lexRules:o,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}})),i(s,"indent");const o={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,l.p)("{"),(0,l.l)("Variable",(0,l.o)((0,l.p)(","))),(0,l.p)("}")],Variable:[p("variable"),(0,l.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,l.t)("Number","number")],StringValue:[(0,l.t)("String","string")],BooleanValue:[(0,l.t)("Keyword","builtin")],NullValue:[(0,l.t)("Keyword","keyword")],ListValue:[(0,l.p)("["),(0,l.l)("Value",(0,l.o)((0,l.p)(","))),(0,l.p)("]")],ObjectValue:[(0,l.p)("{"),(0,l.l)("ObjectField",(0,l.o)((0,l.p)(","))),(0,l.p)("}")],ObjectField:[p("attribute"),(0,l.p)(":"),"Value"]};function p(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}i(p,"namedKey")},9920:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(166),l=n(5549),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function i(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return p(e.parseRules,t,l.Kind.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:u,editorConfig:i}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,v(t,!0)),e.sol()){const n=(null==i?void 0:i.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(u(e))return"ws";const s=g(l,e);if(!s)return e.match(/\S+/)||e.match(/\s/),p(c,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return p(c,t,"Comment"),"comment";const f=o({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(o),n.d(o,{a:()=>u,d:()=>c});var t=n(3338),r=Object.defineProperty,i=(e,o)=>r(e,"name",{value:o,configurable:!0});function a(e,o){return o.forEach((function(o){o&&"string"!=typeof o&&!Array.isArray(o)&&Object.keys(o).forEach((function(n){if("default"!==n&&!(n in e)){var t=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(e,n,t.get?t:{enumerable:!0,get:function(){return o[n]}})}}))})),Object.freeze(e)}i(a,"_mergeNamespaces");var u={exports:{}};!function(e){function o(o,n,t){var r,i=o.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?r.innerHTML=n:r.appendChild(n),e.addClass(i,"dialog-opened"),r}function n(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}i(o,"dialogDiv"),i(n,"closeNotification"),e.defineExtension("openDialog",(function(t,r,a){a||(a={}),n(this,null);var u=o(this,t,a.bottom),l=!1,c=this;function s(o){if("string"==typeof o)d.value=o;else{if(l)return;l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus(),a.onClose&&a.onClose(u)}}i(s,"close");var f,d=u.getElementsByTagName("input")[0];return d?(d.focus(),a.value&&(d.value=a.value,!1!==a.selectValueOnOpen&&d.select()),a.onInput&&e.on(d,"input",(function(e){a.onInput(e,d.value,s)})),a.onKeyUp&&e.on(d,"keyup",(function(e){a.onKeyUp(e,d.value,s)})),e.on(d,"keydown",(function(o){a&&a.onKeyDown&&a.onKeyDown(o,d.value,s)||((27==o.keyCode||!1!==a.closeOnEnter&&13==o.keyCode)&&(d.blur(),e.e_stop(o),s()),13==o.keyCode&&r(d.value,o))})),!1!==a.closeOnBlur&&e.on(u,"focusout",(function(e){null!==e.relatedTarget&&s()}))):(f=u.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){s(),c.focus()})),!1!==a.closeOnBlur&&e.on(f,"blur",s),f.focus()),s})),e.defineExtension("openConfirm",(function(t,r,a){n(this,null);var u=o(this,t,a&&a.bottom),l=u.getElementsByTagName("button"),c=!1,s=this,f=1;function d(){c||(c=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),s.focus())}i(d,"close"),l[0].focus();for(var p=0;p{n.r(t);var r=n(3338),l=(n(5549),n(166)),a=n(9920),i=(n(1609),n(5795),Object.defineProperty),s=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e,t){var n,r;const l=e.levels;return((l&&0!==l.length?l[l.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}s(o,"indent");const u=s((e=>{const t=(0,a.o)({eatWhitespace:e=>e.eatWhile(l.i),lexRules:l.L,parseRules:l.P,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}),"graphqlModeFactory");r.C.defineMode("graphql",u)},9920:(e,t,n)=>{n.d(t,{o:()=>s});var r=n(166),l=n(5549),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function s(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return c(e.parseRules,t,l.Kind.DOCUMENT),t},token:(t,n)=>o(t,n,e)}}function o(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:a,eatWhitespace:i,editorConfig:s}=n;if(t.rule&&0===t.rule.length?d(t):t.needsAdvance&&(t.needsAdvance=!1,v(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(i(e))return"ws";const o=g(l,e);if(!o)return e.match(/\S+/)||e.match(/\s/),c(p,t,"Invalid"),"invalidchar";if("Comment"===o.kind)return c(p,t,"Comment"),"comment";const f=u({},t);if("Punctuation"===o.kind)if(/^[{([]/.test(o.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(o.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.d(t,{C:()=>i,P:()=>o,R:()=>a});var r=Object.defineProperty,s=(e,t)=>r(e,"name",{value:t,configurable:!0});class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,s=null;return"string"==typeof e?(s=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(e),r=null==s?void 0:s[0]),!(null==s||!("string"==typeof e||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),s)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}s(i,"CharacterStream");class a{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}s(a,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{n.r(t);var r=n(3338),s=n(5549),i=(n(166),n(4601)),a=n(9920),o=(n(1609),n(5795),Object.defineProperty),l=(e,t)=>o(e,"name",{value:t,configurable:!0});const u=[s.LoneSchemaDefinitionRule,s.UniqueOperationTypesRule,s.UniqueTypeNamesRule,s.UniqueEnumValueNamesRule,s.UniqueFieldDefinitionNamesRule,s.UniqueDirectiveNamesRule,s.KnownTypeNamesRule,s.KnownDirectivesRule,s.UniqueDirectivesPerLocationRule,s.PossibleTypeExtensionsRule,s.UniqueArgumentNamesRule,s.UniqueInputFieldNamesRule];function c(e,t,n,r,i){const a=s.specifiedRules.filter((e=>e!==s.NoUnusedFragmentsRule&&e!==s.ExecutableDefinitionsRule&&(!r||e!==s.KnownFragmentNamesRule)));return n&&Array.prototype.push.apply(a,n),i&&Array.prototype.push.apply(a,u),(0,s.validate)(e,t,a).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===s.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}l(c,"validateWithCustomRules");const h="Error",p="Warning",d="Information",f="Hint",v={[h]:1,[p]:2,[d]:3,[f]:4},g=l(((e,t)=>{if(!e)throw new Error(t)}),"invariant");function m(e,t=null,n,r,i){var a,o;let l=null;i&&(e+="string"==typeof i?"\n\n"+i:"\n\n"+i.reduce(((e,t)=>e+((0,s.print)(t)+"\n\n")),""));try{l=(0,s.parse)(e)}catch(t){if(t instanceof s.GraphQLError){const n=S(null!==(o=null===(a=t.locations)||void 0===a?void 0:a[0])&&void 0!==o?o:{line:0,column:0},e);return[{severity:v.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}throw t}return y(l,t,n,r)}function y(e,t=null,n,r){if(!t)return[];const i=_(c(t,e,n,r),(e=>R(e,v.Error,"Validation"))),a=_((0,s.validate)(t,e,[s.NoDeprecatedCustomRule]),(e=>R(e,v.Warning,"Deprecation")));return i.concat(a)}function _(e,t){return Array.prototype.concat.apply([],e.map(t))}function R(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((s=>{const a="Variable"!==s.kind&&"name"in s&&void 0!==s.name?s.name:"variable"in s&&void 0!==s.variable?s.variable:s;if(a){g(e.locations,"GraphQL validation error requires locations.");const s=e.locations[0],o=x(a),l=s.column+(o.end-o.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new i.R(new i.P(s.line-1,s.column-1),new i.P(s.line-1,l))})}})),r}function S(e,t){const n=(0,a.o)(),r=n.startState(),s=t.split("\n");g(s.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;tm(e,t.schema,t.validationRules,void 0,t.externalFragments).map((e=>({message:e.message,severity:e.severity?T[e.severity-1]:T[0],type:e.source?k[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))))},9920:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(166),s=n(5549),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(e={eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return h(e.parseRules,t,s.Kind.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:s,parseRules:i,eatWhitespace:a,editorConfig:o}=n;if(t.rule&&0===t.rule.length?p(t):t.needsAdvance&&(t.needsAdvance=!1,d(t,!0)),e.sol()){const n=(null==o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=g(s,e);if(!l)return e.match(/\S+/)||e.match(/\s/),h(c,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return h(c,t,"Comment"),"comment";const f=u({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]{n.r(r),n.d(r,{b:()=>s});var t=n(3338),i=Object.defineProperty,o=(e,r)=>i(e,"name",{value:r,configurable:!0});function l(e,r){return r.forEach((function(r){r&&"string"!=typeof r&&!Array.isArray(r)&&Object.keys(r).forEach((function(n){if("default"!==n&&!(n in e)){var t=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,t.get?t:{enumerable:!0,get:function(){return r[n]}})}}))})),Object.freeze(e)}o(l,"_mergeNamespaces");var a={exports:{}};!function(e){function r(r){return function(n,t){var i=t.line,l=n.getLine(i);function a(r){for(var o,a=t.ch,f=0;;){var s=a<=0?-1:l.lastIndexOf(r[0],a-1);if(-1!=s){if(1==f&&sr.lastLine())return null;var t=r.getTokenAt(e.Pos(n,1));if(/\S/.test(t.string)||(t=r.getTokenAt(e.Pos(n,t.end+1))),"keyword"!=t.type||"import"!=t.string)return null;for(var i=n,o=Math.min(r.lastLine(),n+10);i<=o;++i){var l=r.getLine(i).indexOf(";");if(-1!=l)return{startCh:t.end,end:e.Pos(i,l)}}}o(t,"hasImport");var i,l=n.line,a=t(l);if(!a||t(l-1)||(i=t(l-2))&&i.end.line==l-1)return null;for(var f=a.end;;){var s=t(f.line+1);if(null==s)break;f=s.end}return{from:r.clipPos(e.Pos(l,a.startCh+1)),to:f}})),e.registerHelper("fold","include",(function(r,n){function t(n){if(nr.lastLine())return null;var t=r.getTokenAt(e.Pos(n,1));return/\S/.test(t.string)||(t=r.getTokenAt(e.Pos(n,t.end+1))),"meta"==t.type&&"#include"==t.string.slice(0,8)?t.start+8:void 0}o(t,"hasInclude");var i=n.line,l=t(i);if(null==l||null!=t(i-1))return null;for(var a=i;null!=t(a+1);)++a;return{from:e.Pos(i,l+1),to:r.clipPos(e.Pos(a))}}))}(t.a.exports);var f=a.exports,s=Object.freeze(l({__proto__:null,[Symbol.toStringTag]:"Module",default:f},[a.exports]))}}]); \ No newline at end of file diff --git a/lib/wp-graphql/build/app-rtl.css b/lib/wp-graphql/build/app-rtl.css new file mode 100644 index 000000000..4f16a8cda --- /dev/null +++ b/lib/wp-graphql/build/app-rtl.css @@ -0,0 +1,2 @@ +.graphiql-container,.graphiql-container button,.graphiql-container input{color:#141823;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:14px}.graphiql-container{display:flex;flex-direction:row;height:100%;margin:0;overflow:hidden;width:100%}.graphiql-container .editorWrap{display:flex;flex:1;flex-direction:column;overflow-x:hidden}.graphiql-container .title{font-size:18px}.graphiql-container .title em{font-family:georgia;font-size:19px}.graphiql-container .topBar,.graphiql-container .topBarWrap{display:flex;flex-direction:row}.graphiql-container .topBar{align-items:center;background:linear-gradient(#f7f7f7,#e2e2e2);border-bottom:1px solid #d0d0d0;cursor:default;flex:1;height:34px;overflow-y:visible;padding:7px 14px 6px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .toolbar{display:flex;overflow-x:visible}.graphiql-container .docExplorerShow,.graphiql-container .historyShow{background:linear-gradient(#f7f7f7,#e2e2e2);border-bottom:1px solid #d0d0d0;border-radius:0;border-left:none;border-top:none;color:#3b5998;cursor:pointer;font-size:14px;margin:0;padding:2px 18px 0 20px}.graphiql-container .docExplorerShow{border-right:1px solid rgba(0,0,0,.2)}.graphiql-container .historyShow{border-right:0;border-left:1px solid rgba(0,0,0,.2)}.graphiql-container .docExplorerShow:before{border-right:2px solid #3b5998;border-top:2px solid #3b5998;content:"";display:inline-block;height:9px;margin:0 0 -1px 3px;position:relative;transform:rotate(45deg);width:9px}.graphiql-container .editorBar{display:flex;flex:1;flex-direction:row;max-height:100%}.graphiql-container .queryWrap,.graphiql-container .resultWrap{display:flex;flex:1;flex-direction:column}.graphiql-container .resultWrap{flex-basis:1em;position:relative}.graphiql-container .docExplorerWrap,.graphiql-container .historyPaneWrap{background:#fff;box-shadow:0 0 8px rgba(0,0,0,.15);position:relative;width:100%;z-index:3}.graphiql-container .historyPaneWrap{min-width:230px;z-index:5}.graphiql-container .docExplorerResizer{cursor:col-resize;height:100%;position:absolute;width:10px;z-index:10}.graphiql-container .docExplorerHide{background:100%;border:0;cursor:pointer;font-size:18px;line-height:14px;margin:-7px 0 -6px -8px;padding:18px 12px 15px 16px}.graphiql-container div .query-editor{flex:1;position:relative}.graphiql-container .secondary-editor{display:flex;flex-direction:column;height:100%;position:relative}.graphiql-container .secondary-editor-title{background:#eee;border-bottom:1px solid #d6d6d6;border-top:1px solid #e0e0e0;color:#777;cursor:row-resize;font-variant:small-caps;font-weight:700;letter-spacing:1px;line-height:14px;padding:6px 43px 8px 0;text-transform:lowercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .codemirrorWrap,.graphiql-container .result-window{flex:1;height:100%;position:relative}.graphiql-container .footer{background:#f6f7f8;border-right:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin-right:12px;position:relative}.graphiql-container .footer:before{background:#eee;bottom:0;content:" ";right:-13px;position:absolute;top:-1px;width:12px}.result-window .CodeMirror.cm-s-graphiql{background:#f6f7f8}.graphiql-container .result-window .CodeMirror-gutters{background-color:#f6f7f8;border:none}.editor-drag-bar{background-color:#eee;border-right:1px solid #e0e0e0;border-left:1px solid #e0e0e0;cursor:col-resize;width:12px}.graphiql-container .result-window .CodeMirror-foldgutter,.graphiql-container .result-window .CodeMirror-foldgutter-folded:after,.graphiql-container .result-window .CodeMirror-foldgutter-open:after{padding-right:3px}.graphiql-container .toolbar-button{background:#fdfdfd;background:linear-gradient(#f9f9f9,#ececec);border:0;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 1px 0 hsla(0,0%,100%,.7),inset 0 1px #fff;color:#555;cursor:pointer;display:inline-block;margin:0 5px;max-width:150px;padding:3px 11px 5px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .toolbar-button:active{background:linear-gradient(#ececec,#d5d5d5);box-shadow:0 1px 0 hsla(0,0%,100%,.7),inset 0 0 0 1px rgba(0,0,0,.1),inset 0 1px 1px 1px rgba(0,0,0,.12),inset 0 0 5px rgba(0,0,0,.1)}.graphiql-container .toolbar-button.error{background:linear-gradient(#fdf3f3,#e6d6d7);color:#b00}.graphiql-container .toolbar-button-group{margin:0 5px;white-space:nowrap}.graphiql-container .toolbar-button-group>*{margin:0}.graphiql-container .toolbar-button-group>:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.graphiql-container .toolbar-button-group>:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.graphiql-container .execute-button-wrap{height:34px;margin:0 28px 0 14px;position:relative}.graphiql-container .execute-button{background:linear-gradient(#fdfdfd,#d2d3d6);border:1px solid rgba(0,0,0,.25);border-radius:17px;box-shadow:0 1px 0 #fff;cursor:pointer;fill:#444;height:34px;margin:0;padding:0;width:34px}.graphiql-container .execute-button svg,.graphiql-container .toolbar-button>svg{pointer-events:none}.graphiql-container .execute-button:active{background:linear-gradient(#e6e6e6,#c3c3c3);box-shadow:0 1px 0 #fff,inset 0 0 2px rgba(0,0,0,.2),inset 0 0 6px rgba(0,0,0,.1)}.graphiql-container .toolbar-menu,.graphiql-container .toolbar-select{position:relative}.graphiql-container .execute-options,.graphiql-container .toolbar-menu-items,.graphiql-container .toolbar-select-options{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px rgba(0,0,0,.25);margin:0;padding:6px 0;position:absolute;z-index:100}.graphiql-container .execute-options{right:-1px;min-width:100px;top:37px}.graphiql-container .toolbar-menu-items{right:1px;margin-top:-1px;min-width:110%;top:100%;visibility:hidden}.graphiql-container .toolbar-menu-items.open{visibility:visible}.graphiql-container .toolbar-select-options{right:0;min-width:100%;top:-5px;visibility:hidden}.graphiql-container .toolbar-select-options.open{visibility:visible}.graphiql-container .execute-options>li,.graphiql-container .toolbar-menu-items>li,.graphiql-container .toolbar-select-options>li{cursor:pointer;display:block;margin:none;max-width:300px;overflow:hidden;padding:2px 11px 4px 20px;white-space:nowrap}.graphiql-container .execute-options>li.selected,.graphiql-container .history-contents>li:active,.graphiql-container .history-contents>li:hover,.graphiql-container .toolbar-menu-items>li.hover,.graphiql-container .toolbar-menu-items>li:active,.graphiql-container .toolbar-menu-items>li:hover,.graphiql-container .toolbar-select-options>li.hover,.graphiql-container .toolbar-select-options>li:active,.graphiql-container .toolbar-select-options>li:hover{background:#e10098;color:#fff}.graphiql-container .toolbar-select-options>li>svg{display:inline;fill:#666;margin:0 6px 0 -6px;pointer-events:none;vertical-align:middle}.graphiql-container .toolbar-select-options>li.hover>svg,.graphiql-container .toolbar-select-options>li:active>svg,.graphiql-container .toolbar-select-options>li:hover>svg{fill:#fff}.graphiql-container .CodeMirror-scroll{overflow-scrolling:touch}.graphiql-container .CodeMirror{color:#141823;font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;font-size:13px;height:100%;right:0;position:absolute;top:0;width:100%}.graphiql-container .CodeMirror-lines{padding:20px 0}.CodeMirror-hint-information .content{box-orient:vertical;color:#141823;display:flex;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-clamp:3;line-height:16px;max-height:48px;overflow:hidden;text-overflow:-o-ellipsis-lastline}.CodeMirror-hint-information .content p:first-child{margin-top:0}.CodeMirror-hint-information .content p:last-child{margin-bottom:0}.CodeMirror-hint-information .infoType{color:#ca9800;cursor:pointer;display:inline;margin-left:.5em}.autoInsertedLeaf.cm-property{animation-duration:6s;animation-name:insertionFade;border-bottom:2px solid hsla(0,0%,100%,0);border-radius:2px;margin:-2px -4px -1px;padding:2px 4px 1px}@keyframes insertionFade{0%,to{background:hsla(0,0%,100%,0);border-color:hsla(0,0%,100%,0)}15%,85%{background:#fbffc9;border-color:#f0f3c0}}div.CodeMirror-lint-tooltip{background-color:#fff;border:0;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.45);color:#141823;font-size:13px;line-height:16px;max-width:430px;opacity:0;padding:8px 10px;transition:opacity .15s;white-space:pre-wrap}div.CodeMirror-lint-tooltip>*{padding-right:23px}div.CodeMirror-lint-tooltip>*+*{margin-top:12px}.graphiql-container .variable-editor-title-text{color:gray;cursor:pointer;display:inline-block}.graphiql-container .variable-editor-title-text.active{color:#000}.graphiql-container .tabs{align-items:center;background-image:linear-gradient(#f7f7f7,#e2e2e2);display:flex;height:42px}.graphiql-container .tab{align-items:center;border-bottom-style:none;border-right:1px solid #d3d3d3;border-left-style:none;border-top-style:none;color:rgba(0,0,0,.6);cursor:pointer;display:flex;height:100%;justify-content:center;padding-right:14px;padding-left:6px;padding-top:0;position:relative}.graphiql-container .tab:first-child:nth-last-child(2){padding-left:14px}.graphiql-container .tab:hover{background-image:linear-gradient(hsla(0,0%,96%,.7),#d7d7d7);color:rgba(0,0,0,.8)}.graphiql-container .tab.active{background-image:linear-gradient(hsla(0,0%,91%,.7),#cdcdcd);color:#000}.graphiql-container .tab .close{background:transparent;border:none;border-radius:4px;cursor:pointer;display:inline-block;margin-right:6px;padding:3px 6px}.graphiql-container .tab.active .close,.graphiql-container .tab:hover .close{opacity:1}.graphiql-container .tab .close:before{color:rgba(0,0,0,.7);content:"✕";display:inline-block;font-size:12px;font-weight:700;height:14px}.graphiql-container .tab .close:hover{background:rgba(0,0,0,.08)}.graphiql-container .tab .close:active{background:rgba(0,0,0,.12)}.graphiql-container .tab-add{align-items:center;background:transparent;border:none;border-radius:4px;color:rgba(0,0,0,.5);cursor:pointer;display:flex;font-size:26px;height:30px;justify-content:center;line-height:1;margin-right:6px;padding:0 8px 3px}.graphiql-container .tab-add:hover{background:rgba(0,0,0,.06)}.graphiql-container .tab-add:active{background:rgba(0,0,0,.1)}.graphiql-container .CodeMirror-foldmarker{background:#08f;background:linear-gradient(#43a8ff,#0f83e8);border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.2),inset 0 0 0 1px rgba(0,0,0,.1);color:#fff;font-family:arial;font-size:12px;line-height:0;margin:0 3px;padding:0 4px 1px;text-shadow:0 -1px rgba(0,0,0,.1)}.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket{color:#555;text-decoration:underline}.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket{color:red}.cm-comment{color:#666}.cm-punctuation{color:#555}.cm-keyword{color:#b11a04}.cm-def{color:#d2054e}.cm-property{color:#1f61a0}.cm-qualifier{color:#1c92a9}.cm-attribute{color:#8b2bb9}.cm-number{color:#2882f9}.cm-string{color:#d64292}.cm-builtin{color:#d47509}.cm-string-2{color:#0b7fc7}.cm-variable{color:#397d13}.cm-meta{color:#b33086}.cm-atom{color:#ca9800}.CodeMirror{color:#000;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-left:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#666;min-width:20px;padding:0 5px 0 3px;text-align:left;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#666}.CodeMirror .CodeMirror-cursor{border-right:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-right:1px solid silver}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{background:#7e7;border:0;width:auto}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{animation:blink 1.06s steps(1) infinite;border:0;width:auto}@keyframes blink{0%{background:#7e7}50%{background:none}to{background:#7e7}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-right:1px solid #ccc;position:absolute}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#666}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#666}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-30px;margin-left:-30px;outline:none;overflow:scroll!important;padding-bottom:30px;position:relative}.CodeMirror-sizer{border-left:30px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;left:0;top:0}.CodeMirror-hscrollbar{bottom:0;right:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;left:0}.CodeMirror-gutter-filler{bottom:0;right:0}.CodeMirror-gutters{right:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-30px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:none;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;word-wrap:normal;z-index:2}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;right:0;position:absolute;left:0;top:0;z-index:0}.CodeMirror-linewidget{overflow:auto;position:relative;z-index:2}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-left:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-dialog{background:inherit;color:inherit;right:0;overflow:hidden;padding:.1em .8em;position:absolute;left:0;z-index:15}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{background:transparent;border:1px solid #d3d6db;color:inherit;font-family:monospace;outline:none;width:20em}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f -1px 1px 2px,#b9f 1px -1px 2px,#b9f -1px -1px 2px,#b9f 1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror-info{background:#fff;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.45);box-sizing:border-box;color:#555;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-height:16px;margin:8px -8px;max-width:400px;opacity:0;overflow:hidden;padding:8px;position:fixed;transition:opacity .15s;z-index:50}.CodeMirror-info :first-child{margin-top:0}.CodeMirror-info :last-child{margin-bottom:0}.CodeMirror-info p{margin:1em 0}.CodeMirror-info .info-description{color:#777;line-height:16px;margin-top:1em;max-height:80px;overflow:hidden}.CodeMirror-info .info-deprecation{background:#fffae8;box-shadow:inset 0 1px 1px -1px #bfb063;color:#867f70;line-height:16px;margin:8px -8px -8px;max-height:80px;overflow:hidden;padding:8px}.CodeMirror-info .info-deprecation-label{color:#c79b2e;cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-info .info-deprecation-label+*{margin-top:0}.CodeMirror-info a{text-decoration:none}.CodeMirror-info a:hover{text-decoration:underline}.CodeMirror-info .type-name{color:#ca9800}.CodeMirror-info .field-name{color:#1f61a0}.CodeMirror-info .enum-value{color:#0b7fc7}.CodeMirror-info .arg-name{color:#8b2bb9}.CodeMirror-info .directive-name{color:#b33086}.CodeMirror-jump-token{cursor:pointer;text-decoration:underline}.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:infobackground;border:1px solid #000;border-radius:4px 4px 4px 4px;color:infotext;font-family:monospace;font-size:10pt;max-width:600px;opacity:0;overflow:hidden;padding:2px 5px;position:fixed;transition:opacity .4s;white-space:pre-wrap;z-index:100}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-position:100% 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==)}.CodeMirror-lint-mark-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;position:relative;vertical-align:middle;width:16px}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{background-position:100% 0;background-repeat:no-repeat;padding-right:18px}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=)}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-multiple{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC);background-position:0% 100%;background-repeat:no-repeat;height:100%;width:100%}.graphiql-container .spinner-container{height:36px;right:50%;position:absolute;top:50%;transform:translate(50%,-50%);width:36px;z-index:10}.graphiql-container .spinner{animation:rotation .6s linear infinite;border:6px solid hsla(0,0%,59%,.15);border-radius:100%;border-top-color:hsla(0,0%,59%,.8);display:inline-block;height:24px;position:absolute;vertical-align:middle;width:24px}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(-359deg)}}.CodeMirror-hints{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.45);font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;font-size:13px;list-style:none;margin:0;max-height:14.5em;overflow:hidden;overflow-y:auto;padding:0;position:absolute;z-index:10}.CodeMirror-hint{border-top:1px solid #f7f7f7;color:#141823;cursor:pointer;margin:0;max-width:300px;overflow:hidden;padding:2px 6px;white-space:pre}li.CodeMirror-hint-active{background-color:#08f;border-top-color:#fff;color:#fff}.CodeMirror-hint-information{border-top:1px solid silver;max-width:300px;padding:4px 6px;position:relative;z-index:1}.CodeMirror-hint-information:first-child{border-bottom:1px solid silver;border-top:none;margin-bottom:-1px}.CodeMirror-hint-deprecation{background:#fffae8;box-shadow:inset 0 1px 1px -1px #bfb063;color:#867f70;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-height:16px;margin-top:4px;max-height:80px;overflow:hidden;padding:6px}.CodeMirror-hint-deprecation .deprecation-label{color:#c79b2e;cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-hint-deprecation .deprecation-label+*{margin-top:0}.CodeMirror-hint-deprecation :last-child{margin-bottom:0}.graphiql-container .doc-explorer{background:#fff}.graphiql-container .doc-explorer-title-bar,.graphiql-container .history-title-bar{cursor:default;display:flex;height:34px;line-height:14px;padding:8px 8px 5px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-explorer-title,.graphiql-container .history-title{flex:1;font-weight:700;overflow-x:hidden;padding:10px 10px 10px 0;text-align:center;text-overflow:ellipsis;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:nowrap}.graphiql-container .doc-explorer-back{background:100%;border:0;color:#3b5998;cursor:pointer;line-height:14px;margin:-7px -8px -6px 0;overflow-x:hidden;padding:17px 16px 16px 12px;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .doc-explorer-back:before{border-right:2px solid #3b5998;border-top:2px solid #3b5998;content:"";display:inline-block;height:9px;margin:0 0 -1px 3px;position:relative;transform:rotate(45deg);width:9px}.graphiql-container .doc-explorer-rhs{position:relative}.graphiql-container .doc-explorer-contents,.graphiql-container .history-contents{background-color:#fff;border-top:1px solid #d6d6d6;bottom:0;right:0;overflow-y:auto;padding:20px 15px;position:absolute;left:0;top:47px}.graphiql-container .doc-type-description blockquote:first-child,.graphiql-container .doc-type-description p:first-child{margin-top:0}.graphiql-container .doc-explorer-contents a{cursor:pointer;text-decoration:none}.graphiql-container .doc-explorer-contents a:hover{text-decoration:underline}.graphiql-container .doc-value-description>:first-child{margin-top:4px}.graphiql-container .doc-value-description>:last-child{margin-bottom:4px}.graphiql-container .doc-category code,.graphiql-container .doc-category pre,.graphiql-container .doc-type-description code,.graphiql-container .doc-type-description pre{--saf-0:rgba(var(--sk_foreground_low,29,28,29),0.13);font-size:12px;font-variant-ligatures:none;line-height:1.50001;white-space:pre;white-space:pre-wrap;word-wrap:break-word;-webkit-tab-size:4;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:normal}.graphiql-container .doc-category code,.graphiql-container .doc-type-description code{background-color:rgba(var(--sk_foreground_min,29,28,29),.04);background-color:#fff;border:1px solid var(--saf-0);border-radius:3px;color:#e01e5a;padding:2px 3px 1px}.graphiql-container .doc-category{margin:20px 0}.graphiql-container .doc-category-title{border-bottom:1px solid #e0e0e0;color:#777;cursor:default;font-size:14px;font-variant:small-caps;font-weight:700;letter-spacing:1px;margin:0 0 10px -15px;padding:10px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-category-item{color:#555;margin:12px 0}.graphiql-container .keyword{color:#b11a04}.graphiql-container .type-name{color:#ca9800}.graphiql-container .field-name{color:#1f61a0}.graphiql-container .field-short-description{color:#666;margin-right:5px;overflow:hidden;text-overflow:ellipsis}.graphiql-container .enum-value{color:#0b7fc7}.graphiql-container .arg-name{color:#8b2bb9}.graphiql-container .arg{display:block;margin-right:1em}.graphiql-container .arg:first-child:last-child,.graphiql-container .arg:first-child:nth-last-child(2),.graphiql-container .arg:first-child:nth-last-child(2)~.arg{display:inherit;margin:inherit}.graphiql-container .arg:first-child:nth-last-child(2):after{content:", "}.graphiql-container .arg-default-value{color:#43a047}.graphiql-container .doc-deprecation{background:#fffae8;border-radius:3px;box-shadow:inset 0 0 1px #bfb063;color:#867f70;line-height:16px;margin:8px -8px;max-height:80px;overflow:hidden;padding:8px}.graphiql-container .doc-deprecation:before{color:#c79b2e;content:"Deprecated:";cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-deprecation>:first-child{margin-top:0}.graphiql-container .doc-deprecation>:last-child{margin-bottom:0}.graphiql-container .show-btn{-webkit-appearance:initial;background:#fbfcfc;border:1px solid #ccc;border-radius:3px;box-sizing:border-box;color:#555;cursor:pointer;display:block;padding:8px 12px 10px;text-align:center;width:100%}.graphiql-container .search-box{align-items:center;border-bottom:1px solid #d3d6db;display:flex;font-size:14px;margin:-15px 0 12px -15px;position:relative}.graphiql-container .search-box-icon{cursor:pointer;display:block;font-size:24px;transform:rotate(45deg);-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .search-box .search-box-clear{background-color:#d0d0d0;border:0;border-radius:12px;color:#fff;cursor:pointer;font-size:11px;padding:1px 5px 2px;position:absolute;left:3px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .search-box .search-box-clear:hover{background-color:#b9b9b9}.graphiql-container .search-box>input{border:none;box-sizing:border-box;font-size:14px;outline:none;padding:6px 20px 8px 24px;width:100%}.graphiql-container .error-container{font-weight:700;right:0;letter-spacing:1px;opacity:.5;position:absolute;left:0;text-align:center;text-transform:uppercase;top:50%;transform:translateY(-50%)}.graphiql-container .history-contents{font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;margin:0;padding:0}.graphiql-container .history-contents li{align-items:center;border-bottom:1px solid #e0e0e0;display:flex;font-size:12px;margin:0;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .history-contents li button:not(.history-label){display:none;margin-right:10px}.graphiql-container .history-contents li:focus-within button:not(.history-label),.graphiql-container .history-contents li:hover button:not(.history-label){display:inline-block}.graphiql-container .history-contents button,.graphiql-container .history-contents input{background:100%;border:0;color:inherit;font-family:inherit;font-size:inherit;line-height:14px;padding:0}.graphiql-container .history-contents input{flex-grow:1}.graphiql-container .history-contents input::-moz-placeholder{color:inherit}.graphiql-container .history-contents input::placeholder{color:inherit}.graphiql-container .history-contents button{cursor:pointer;text-align:right}.graphiql-container .history-contents .history-label{flex-grow:1;overflow:hidden;text-overflow:ellipsis} +#wpcontent{padding-right:0}#wpbody-content{padding-bottom:0}#wpbody-content .wrap{margin:0}#wpfooter{display:none}body:not(.graphiql-fullscreen) #wpbody-content{margin-bottom:-32px;position:sticky;top:32px}#wpbody-content>:not(.wrap){display:none} diff --git a/lib/wp-graphql/build/app.asset.php b/lib/wp-graphql/build/app.asset.php index f82554686..4da182445 100644 --- a/lib/wp-graphql/build/app.asset.php +++ b/lib/wp-graphql/build/app.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-element', 'wp-hooks'), 'version' => '81f173f818f820506c81'); + array('react', 'react-dom', 'wp-element', 'wp-hooks'), 'version' => '3602bbf51bf72c1cf8e4'); diff --git a/lib/wp-graphql/build/app.css b/lib/wp-graphql/build/app.css index e27a0c91d..1ebc025f1 100644 --- a/lib/wp-graphql/build/app.css +++ b/lib/wp-graphql/build/app.css @@ -1,2 +1,2 @@ -.graphiql-container,.graphiql-container button,.graphiql-container input{color:#141823;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:14px}.graphiql-container{display:flex;flex-direction:row;height:100%;margin:0;overflow:hidden;width:100%}.graphiql-container .editorWrap{display:flex;flex:1;flex-direction:column;overflow-x:hidden}.graphiql-container .title{font-size:18px}.graphiql-container .title em{font-family:georgia;font-size:19px}.graphiql-container .topBar,.graphiql-container .topBarWrap{display:flex;flex-direction:row}.graphiql-container .topBar{align-items:center;background:linear-gradient(#f7f7f7,#e2e2e2);border-bottom:1px solid #d0d0d0;cursor:default;flex:1;height:34px;overflow-y:visible;padding:7px 14px 6px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .toolbar{display:flex;overflow-x:visible}.graphiql-container .docExplorerShow,.graphiql-container .historyShow{background:linear-gradient(#f7f7f7,#e2e2e2);border-bottom:1px solid #d0d0d0;border-radius:0;border-right:none;border-top:none;color:#3b5998;cursor:pointer;font-size:14px;margin:0;padding:2px 20px 0 18px}.graphiql-container .docExplorerShow{border-left:1px solid rgba(0,0,0,.2)}.graphiql-container .historyShow{border-left:0;border-right:1px solid rgba(0,0,0,.2)}.graphiql-container .docExplorerShow:before{border-left:2px solid #3b5998;border-top:2px solid #3b5998;content:"";display:inline-block;height:9px;margin:0 3px -1px 0;position:relative;transform:rotate(-45deg);width:9px}.graphiql-container .editorBar{display:flex;flex:1;flex-direction:row;max-height:100%}.graphiql-container .queryWrap,.graphiql-container .resultWrap{display:flex;flex:1;flex-direction:column}.graphiql-container .resultWrap{border-left:1px solid #e0e0e0;flex-basis:1em;position:relative}.graphiql-container .docExplorerWrap,.graphiql-container .historyPaneWrap{background:#fff;box-shadow:0 0 8px rgba(0,0,0,.15);position:relative;z-index:3}.graphiql-container .historyPaneWrap{min-width:230px;z-index:5}.graphiql-container .docExplorerResizer{cursor:col-resize;height:100%;left:-5px;position:absolute;top:0;width:10px;z-index:10}.graphiql-container .docExplorerHide{background:0;border:0;cursor:pointer;font-size:18px;line-height:14px;margin:-7px -8px -6px 0;padding:18px 16px 15px 12px}.graphiql-container div .query-editor{flex:1;position:relative}.graphiql-container .secondary-editor{display:flex;flex-direction:column;height:30px;position:relative}.graphiql-container .secondary-editor-title{background:#eee;border-bottom:1px solid #d6d6d6;border-top:1px solid #e0e0e0;color:#777;font-variant:small-caps;font-weight:700;letter-spacing:1px;line-height:14px;padding:6px 0 8px 43px;text-transform:lowercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .codemirrorWrap,.graphiql-container .result-window{flex:1;height:100%;position:relative}.graphiql-container .footer{background:#f6f7f8;border-left:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin-left:12px;position:relative}.graphiql-container .footer:before{background:#eee;bottom:0;content:" ";left:-13px;position:absolute;top:-1px;width:12px}.result-window .CodeMirror.cm-s-graphiql{background:#f6f7f8}.graphiql-container .result-window .CodeMirror-gutters{background-color:#eee;border-color:#e0e0e0;cursor:col-resize}.graphiql-container .result-window .CodeMirror-foldgutter,.graphiql-container .result-window .CodeMirror-foldgutter-folded:after,.graphiql-container .result-window .CodeMirror-foldgutter-open:after{padding-left:3px}.graphiql-container .toolbar-button{background:#fdfdfd;background:linear-gradient(#f9f9f9,#ececec);border:0;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 1px 0 hsla(0,0%,100%,.7),inset 0 1px #fff;color:#555;cursor:pointer;display:inline-block;margin:0 5px;max-width:150px;padding:3px 11px 5px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .toolbar-button:active{background:linear-gradient(#ececec,#d5d5d5);box-shadow:0 1px 0 hsla(0,0%,100%,.7),inset 0 0 0 1px rgba(0,0,0,.1),inset 0 1px 1px 1px rgba(0,0,0,.12),inset 0 0 5px rgba(0,0,0,.1)}.graphiql-container .toolbar-button.error{background:linear-gradient(#fdf3f3,#e6d6d7);color:#b00}.graphiql-container .toolbar-button-group{margin:0 5px;white-space:nowrap}.graphiql-container .toolbar-button-group>*{margin:0}.graphiql-container .toolbar-button-group>:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.graphiql-container .toolbar-button-group>:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.graphiql-container .execute-button-wrap{height:34px;margin:0 14px 0 28px;position:relative}.graphiql-container .execute-button{background:linear-gradient(#fdfdfd,#d2d3d6);border:1px solid rgba(0,0,0,.25);border-radius:17px;box-shadow:0 1px 0 #fff;cursor:pointer;fill:#444;height:34px;margin:0;padding:0;width:34px}.graphiql-container .execute-button svg{pointer-events:none}.graphiql-container .execute-button:active{background:linear-gradient(#e6e6e6,#c3c3c3);box-shadow:0 1px 0 #fff,inset 0 0 2px rgba(0,0,0,.2),inset 0 0 6px rgba(0,0,0,.1)}.graphiql-container .toolbar-menu,.graphiql-container .toolbar-select{position:relative}.graphiql-container .execute-options,.graphiql-container .toolbar-menu-items,.graphiql-container .toolbar-select-options{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px rgba(0,0,0,.25);margin:0;padding:6px 0;position:absolute;z-index:100}.graphiql-container .execute-options{left:-1px;min-width:100px;top:37px}.graphiql-container .toolbar-menu-items{left:1px;margin-top:-1px;min-width:110%;top:100%;visibility:hidden}.graphiql-container .toolbar-menu-items.open{visibility:visible}.graphiql-container .toolbar-select-options{left:0;min-width:100%;top:-5px;visibility:hidden}.graphiql-container .toolbar-select-options.open{visibility:visible}.graphiql-container .execute-options>li,.graphiql-container .toolbar-menu-items>li,.graphiql-container .toolbar-select-options>li{cursor:pointer;display:block;margin:none;max-width:300px;overflow:hidden;padding:2px 20px 4px 11px;white-space:nowrap}.graphiql-container .execute-options>li.selected,.graphiql-container .history-contents>li:active,.graphiql-container .history-contents>li:hover,.graphiql-container .toolbar-menu-items>li.hover,.graphiql-container .toolbar-menu-items>li:active,.graphiql-container .toolbar-menu-items>li:hover,.graphiql-container .toolbar-select-options>li.hover,.graphiql-container .toolbar-select-options>li:active,.graphiql-container .toolbar-select-options>li:hover{background:#e10098;color:#fff}.graphiql-container .toolbar-select-options>li>svg{display:inline;fill:#666;margin:0 -6px 0 6px;pointer-events:none;vertical-align:middle}.graphiql-container .toolbar-select-options>li.hover>svg,.graphiql-container .toolbar-select-options>li:active>svg,.graphiql-container .toolbar-select-options>li:hover>svg{fill:#fff}.graphiql-container .CodeMirror-scroll{overflow-scrolling:touch}.graphiql-container .CodeMirror{color:#141823;font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;font-size:13px;height:100%;left:0;position:absolute;top:0;width:100%}.graphiql-container .CodeMirror-lines{padding:20px 0}.CodeMirror-hint-information .content{box-orient:vertical;color:#141823;display:flex;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-clamp:3;line-height:16px;max-height:48px;overflow:hidden;text-overflow:-o-ellipsis-lastline}.CodeMirror-hint-information .content p:first-child{margin-top:0}.CodeMirror-hint-information .content p:last-child{margin-bottom:0}.CodeMirror-hint-information .infoType{color:#ca9800;cursor:pointer;display:inline;margin-right:.5em}.autoInsertedLeaf.cm-property{animation-duration:6s;animation-name:insertionFade;border-bottom:2px solid hsla(0,0%,100%,0);border-radius:2px;margin:-2px -4px -1px;padding:2px 4px 1px}@keyframes insertionFade{0%,to{background:hsla(0,0%,100%,0);border-color:hsla(0,0%,100%,0)}15%,85%{background:#fbffc9;border-color:#f0f3c0}}div.CodeMirror-lint-tooltip{background-color:#fff;border:0;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.45);color:#141823;font-size:13px;line-height:16px;max-width:430px;opacity:0;padding:8px 10px;transition:opacity .15s;white-space:pre-wrap}div.CodeMirror-lint-tooltip>*{padding-left:23px}div.CodeMirror-lint-tooltip>*+*{margin-top:12px}.graphiql-container .variable-editor-title-text{color:gray;cursor:pointer;display:inline-block}.graphiql-container .variable-editor-title-text.active{color:#000}.graphiql-container .CodeMirror-foldmarker{background:#08f;background:linear-gradient(#43a8ff,#0f83e8);border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.2),inset 0 0 0 1px rgba(0,0,0,.1);color:#fff;font-family:arial;font-size:12px;line-height:0;margin:0 3px;padding:0 4px 1px;text-shadow:0 -1px rgba(0,0,0,.1)}.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket{color:#555;text-decoration:underline}.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket{color:red}.cm-comment{color:#666}.cm-punctuation{color:#555}.cm-keyword{color:#b11a04}.cm-def{color:#d2054e}.cm-property{color:#1f61a0}.cm-qualifier{color:#1c92a9}.cm-attribute{color:#8b2bb9}.cm-number{color:#2882f9}.cm-string{color:#d64292}.cm-builtin{color:#d47509}.cm-string-2{color:#0b7fc7}.cm-variable{color:#397d13}.cm-meta{color:#b33086}.cm-atom{color:#ca9800}.CodeMirror{color:#000;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#666;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#666}.CodeMirror .CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{background:#7e7;border:0;width:auto}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{animation:blink 1.06s steps(1) infinite;border:0;width:auto}@keyframes blink{0%{background:#7e7}50%{background:none}to{background:#7e7}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#666}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#666}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-30px;margin-right:-30px;outline:none;overflow:scroll!important;padding-bottom:30px;position:relative}.CodeMirror-sizer{border-right:30px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-30px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:none;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;word-wrap:normal;z-index:2}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{overflow:auto;position:relative;z-index:2}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-dialog{background:inherit;color:inherit;left:0;overflow:hidden;padding:.1em .8em;position:absolute;right:0;z-index:15}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{background:transparent;border:1px solid #d3d6db;color:inherit;font-family:monospace;outline:none;width:20em}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror-info{background:#fff;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.45);box-sizing:border-box;color:#555;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-height:16px;margin:8px -8px;max-width:400px;opacity:0;overflow:hidden;padding:8px;position:fixed;transition:opacity .15s;z-index:50}.CodeMirror-info :first-child{margin-top:0}.CodeMirror-info :last-child{margin-bottom:0}.CodeMirror-info p{margin:1em 0}.CodeMirror-info .info-description{color:#777;line-height:16px;margin-top:1em;max-height:80px;overflow:hidden}.CodeMirror-info .info-deprecation{background:#fffae8;box-shadow:inset 0 1px 1px -1px #bfb063;color:#867f70;line-height:16px;margin:8px -8px -8px;max-height:80px;overflow:hidden;padding:8px}.CodeMirror-info .info-deprecation-label{color:#c79b2e;cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-info .info-deprecation-label+*{margin-top:0}.CodeMirror-info a{text-decoration:none}.CodeMirror-info a:hover{text-decoration:underline}.CodeMirror-info .type-name{color:#ca9800}.CodeMirror-info .field-name{color:#1f61a0}.CodeMirror-info .enum-value{color:#0b7fc7}.CodeMirror-info .arg-name{color:#8b2bb9}.CodeMirror-info .directive-name{color:#b33086}.CodeMirror-jump-token{cursor:pointer;text-decoration:underline}.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:infobackground;border:1px solid #000;border-radius:4px 4px 4px 4px;color:infotext;font-family:monospace;font-size:10pt;max-width:600px;opacity:0;overflow:hidden;padding:2px 5px;position:fixed;transition:opacity .4s;white-space:pre-wrap;z-index:100}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-position:0 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==)}.CodeMirror-lint-mark-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;position:relative;vertical-align:middle;width:16px}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{background-position:0 0;background-repeat:no-repeat;padding-left:18px}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=)}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-multiple{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC);background-position:100% 100%;background-repeat:no-repeat;height:100%;width:100%}.graphiql-container .spinner-container{height:36px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:36px;z-index:10}.graphiql-container .spinner{animation:rotation .6s linear infinite;border:6px solid hsla(0,0%,59%,.15);border-radius:100%;border-top-color:hsla(0,0%,59%,.8);display:inline-block;height:24px;position:absolute;vertical-align:middle;width:24px}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.CodeMirror-hints{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.45);font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;font-size:13px;list-style:none;margin:0;max-height:14.5em;overflow:hidden;overflow-y:auto;padding:0;position:absolute;z-index:10}.CodeMirror-hint{border-top:1px solid #f7f7f7;color:#141823;cursor:pointer;margin:0;max-width:300px;overflow:hidden;padding:2px 6px;white-space:pre}li.CodeMirror-hint-active{background-color:#08f;border-top-color:#fff;color:#fff}.CodeMirror-hint-information{border-top:1px solid silver;max-width:300px;padding:4px 6px;position:relative;z-index:1}.CodeMirror-hint-information:first-child{border-bottom:1px solid silver;border-top:none;margin-bottom:-1px}.CodeMirror-hint-deprecation{background:#fffae8;box-shadow:inset 0 1px 1px -1px #bfb063;color:#867f70;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-height:16px;margin-top:4px;max-height:80px;overflow:hidden;padding:6px}.CodeMirror-hint-deprecation .deprecation-label{color:#c79b2e;cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-hint-deprecation .deprecation-label+*{margin-top:0}.CodeMirror-hint-deprecation :last-child{margin-bottom:0}.graphiql-container .doc-explorer{background:#fff}.graphiql-container .doc-explorer-title-bar,.graphiql-container .history-title-bar{cursor:default;display:flex;height:34px;line-height:14px;padding:8px 8px 5px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-explorer-title,.graphiql-container .history-title{flex:1;font-weight:700;overflow-x:hidden;padding:10px 0 10px 10px;text-align:center;text-overflow:ellipsis;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:nowrap}.graphiql-container .doc-explorer-back{background:0;border:0;color:#3b5998;cursor:pointer;line-height:14px;margin:-7px 0 -6px -8px;overflow-x:hidden;padding:17px 12px 16px 16px;text-overflow:ellipsis;white-space:nowrap}.doc-explorer-narrow .doc-explorer-back{width:0}.graphiql-container .doc-explorer-back:before{border-left:2px solid #3b5998;border-top:2px solid #3b5998;content:"";display:inline-block;height:9px;margin:0 3px -1px 0;position:relative;transform:rotate(-45deg);width:9px}.graphiql-container .doc-explorer-rhs{position:relative}.graphiql-container .doc-explorer-contents,.graphiql-container .history-contents{background-color:#fff;border-top:1px solid #d6d6d6;bottom:0;left:0;overflow-y:auto;padding:20px 15px;position:absolute;right:0;top:47px}.graphiql-container .doc-explorer-contents{min-width:300px}.graphiql-container .doc-type-description blockquote:first-child,.graphiql-container .doc-type-description p:first-child{margin-top:0}.graphiql-container .doc-explorer-contents a{cursor:pointer;text-decoration:none}.graphiql-container .doc-explorer-contents a:hover{text-decoration:underline}.graphiql-container .doc-value-description>:first-child{margin-top:4px}.graphiql-container .doc-value-description>:last-child{margin-bottom:4px}.graphiql-container .doc-category code,.graphiql-container .doc-category pre,.graphiql-container .doc-type-description code,.graphiql-container .doc-type-description pre{--saf-0:rgba(var(--sk_foreground_low,29,28,29),0.13);font-size:12px;font-variant-ligatures:none;line-height:1.50001;white-space:pre;white-space:pre-wrap;word-wrap:break-word;-webkit-tab-size:4;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:normal}.graphiql-container .doc-category code,.graphiql-container .doc-type-description code{background-color:rgba(var(--sk_foreground_min,29,28,29),.04);background-color:#fff;border:1px solid var(--saf-0);border-radius:3px;color:#e01e5a;padding:2px 3px 1px}.graphiql-container .doc-category{margin:20px 0}.graphiql-container .doc-category-title{border-bottom:1px solid #e0e0e0;color:#777;cursor:default;font-size:14px;font-variant:small-caps;font-weight:700;letter-spacing:1px;margin:0 -15px 10px 0;padding:10px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-category-item{color:#555;margin:12px 0}.graphiql-container .keyword{color:#b11a04}.graphiql-container .type-name{color:#ca9800}.graphiql-container .field-name{color:#1f61a0}.graphiql-container .field-short-description{color:#666;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.graphiql-container .enum-value{color:#0b7fc7}.graphiql-container .arg-name{color:#8b2bb9}.graphiql-container .arg{display:block;margin-left:1em}.graphiql-container .arg:first-child:last-child,.graphiql-container .arg:first-child:nth-last-child(2),.graphiql-container .arg:first-child:nth-last-child(2)~.arg{display:inherit;margin:inherit}.graphiql-container .arg:first-child:nth-last-child(2):after{content:", "}.graphiql-container .arg-default-value{color:#43a047}.graphiql-container .doc-deprecation{background:#fffae8;border-radius:3px;box-shadow:inset 0 0 1px #bfb063;color:#867f70;line-height:16px;margin:8px -8px;max-height:80px;overflow:hidden;padding:8px}.graphiql-container .doc-deprecation:before{color:#c79b2e;content:"Deprecated:";cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-deprecation>:first-child{margin-top:0}.graphiql-container .doc-deprecation>:last-child{margin-bottom:0}.graphiql-container .show-btn{-webkit-appearance:initial;background:#fbfcfc;border:1px solid #ccc;border-radius:3px;box-sizing:border-box;color:#555;cursor:pointer;display:block;padding:8px 12px 10px;text-align:center;width:100%}.graphiql-container .search-box{align-items:center;border-bottom:1px solid #d3d6db;display:flex;font-size:14px;margin:-15px -15px 12px 0;position:relative}.graphiql-container .search-box-icon{cursor:pointer;display:block;font-size:24px;transform:rotate(-45deg);-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .search-box .search-box-clear{background-color:#d0d0d0;border:0;border-radius:12px;color:#fff;cursor:pointer;font-size:11px;padding:1px 5px 2px;position:absolute;right:3px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .search-box .search-box-clear:hover{background-color:#b9b9b9}.graphiql-container .search-box>input{border:none;box-sizing:border-box;font-size:14px;outline:none;padding:6px 24px 8px 20px;width:100%}.graphiql-container .error-container{font-weight:700;left:0;letter-spacing:1px;opacity:.5;position:absolute;right:0;text-align:center;text-transform:uppercase;top:50%;transform:translateY(-50%)}.graphiql-container .history-contents{font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;margin:0;padding:0}.graphiql-container .history-contents li{align-items:center;border-bottom:1px solid #e0e0e0;display:flex;font-size:12px;margin:0;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .history-contents li button:not(.history-label){display:none;margin-left:10px}.graphiql-container .history-contents li:focus-within button:not(.history-label),.graphiql-container .history-contents li:hover button:not(.history-label){display:inline-block}.graphiql-container .history-contents button,.graphiql-container .history-contents input{background:0;border:0;color:inherit;font-family:inherit;font-size:inherit;line-height:14px;padding:0}.graphiql-container .history-contents input{flex-grow:1}.graphiql-container .history-contents input::-moz-placeholder{color:inherit}.graphiql-container .history-contents input::placeholder{color:inherit}.graphiql-container .history-contents button{cursor:pointer;text-align:left}.graphiql-container .history-contents .history-label{flex-grow:1;overflow:hidden;text-overflow:ellipsis} +.graphiql-container,.graphiql-container button,.graphiql-container input{color:#141823;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:14px}.graphiql-container{display:flex;flex-direction:row;height:100%;margin:0;overflow:hidden;width:100%}.graphiql-container .editorWrap{display:flex;flex:1;flex-direction:column;overflow-x:hidden}.graphiql-container .title{font-size:18px}.graphiql-container .title em{font-family:georgia;font-size:19px}.graphiql-container .topBar,.graphiql-container .topBarWrap{display:flex;flex-direction:row}.graphiql-container .topBar{align-items:center;background:linear-gradient(#f7f7f7,#e2e2e2);border-bottom:1px solid #d0d0d0;cursor:default;flex:1;height:34px;overflow-y:visible;padding:7px 14px 6px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .toolbar{display:flex;overflow-x:visible}.graphiql-container .docExplorerShow,.graphiql-container .historyShow{background:linear-gradient(#f7f7f7,#e2e2e2);border-bottom:1px solid #d0d0d0;border-radius:0;border-right:none;border-top:none;color:#3b5998;cursor:pointer;font-size:14px;margin:0;padding:2px 20px 0 18px}.graphiql-container .docExplorerShow{border-left:1px solid rgba(0,0,0,.2)}.graphiql-container .historyShow{border-left:0;border-right:1px solid rgba(0,0,0,.2)}.graphiql-container .docExplorerShow:before{border-left:2px solid #3b5998;border-top:2px solid #3b5998;content:"";display:inline-block;height:9px;margin:0 3px -1px 0;position:relative;transform:rotate(-45deg);width:9px}.graphiql-container .editorBar{display:flex;flex:1;flex-direction:row;max-height:100%}.graphiql-container .queryWrap,.graphiql-container .resultWrap{display:flex;flex:1;flex-direction:column}.graphiql-container .resultWrap{flex-basis:1em;position:relative}.graphiql-container .docExplorerWrap,.graphiql-container .historyPaneWrap{background:#fff;box-shadow:0 0 8px rgba(0,0,0,.15);position:relative;width:100%;z-index:3}.graphiql-container .historyPaneWrap{min-width:230px;z-index:5}.graphiql-container .docExplorerResizer{cursor:col-resize;height:100%;position:absolute;width:10px;z-index:10}.graphiql-container .docExplorerHide{background:0;border:0;cursor:pointer;font-size:18px;line-height:14px;margin:-7px -8px -6px 0;padding:18px 16px 15px 12px}.graphiql-container div .query-editor{flex:1;position:relative}.graphiql-container .secondary-editor{display:flex;flex-direction:column;height:100%;position:relative}.graphiql-container .secondary-editor-title{background:#eee;border-bottom:1px solid #d6d6d6;border-top:1px solid #e0e0e0;color:#777;cursor:row-resize;font-variant:small-caps;font-weight:700;letter-spacing:1px;line-height:14px;padding:6px 0 8px 43px;text-transform:lowercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .codemirrorWrap,.graphiql-container .result-window{flex:1;height:100%;position:relative}.graphiql-container .footer{background:#f6f7f8;border-left:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin-left:12px;position:relative}.graphiql-container .footer:before{background:#eee;bottom:0;content:" ";left:-13px;position:absolute;top:-1px;width:12px}.result-window .CodeMirror.cm-s-graphiql{background:#f6f7f8}.graphiql-container .result-window .CodeMirror-gutters{background-color:#f6f7f8;border:none}.editor-drag-bar{background-color:#eee;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;cursor:col-resize;width:12px}.graphiql-container .result-window .CodeMirror-foldgutter,.graphiql-container .result-window .CodeMirror-foldgutter-folded:after,.graphiql-container .result-window .CodeMirror-foldgutter-open:after{padding-left:3px}.graphiql-container .toolbar-button{background:#fdfdfd;background:linear-gradient(#f9f9f9,#ececec);border:0;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 1px 0 hsla(0,0%,100%,.7),inset 0 1px #fff;color:#555;cursor:pointer;display:inline-block;margin:0 5px;max-width:150px;padding:3px 11px 5px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .toolbar-button:active{background:linear-gradient(#ececec,#d5d5d5);box-shadow:0 1px 0 hsla(0,0%,100%,.7),inset 0 0 0 1px rgba(0,0,0,.1),inset 0 1px 1px 1px rgba(0,0,0,.12),inset 0 0 5px rgba(0,0,0,.1)}.graphiql-container .toolbar-button.error{background:linear-gradient(#fdf3f3,#e6d6d7);color:#b00}.graphiql-container .toolbar-button-group{margin:0 5px;white-space:nowrap}.graphiql-container .toolbar-button-group>*{margin:0}.graphiql-container .toolbar-button-group>:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.graphiql-container .toolbar-button-group>:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.graphiql-container .execute-button-wrap{height:34px;margin:0 14px 0 28px;position:relative}.graphiql-container .execute-button{background:linear-gradient(#fdfdfd,#d2d3d6);border:1px solid rgba(0,0,0,.25);border-radius:17px;box-shadow:0 1px 0 #fff;cursor:pointer;fill:#444;height:34px;margin:0;padding:0;width:34px}.graphiql-container .execute-button svg,.graphiql-container .toolbar-button>svg{pointer-events:none}.graphiql-container .execute-button:active{background:linear-gradient(#e6e6e6,#c3c3c3);box-shadow:0 1px 0 #fff,inset 0 0 2px rgba(0,0,0,.2),inset 0 0 6px rgba(0,0,0,.1)}.graphiql-container .toolbar-menu,.graphiql-container .toolbar-select{position:relative}.graphiql-container .execute-options,.graphiql-container .toolbar-menu-items,.graphiql-container .toolbar-select-options{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px rgba(0,0,0,.25);margin:0;padding:6px 0;position:absolute;z-index:100}.graphiql-container .execute-options{left:-1px;min-width:100px;top:37px}.graphiql-container .toolbar-menu-items{left:1px;margin-top:-1px;min-width:110%;top:100%;visibility:hidden}.graphiql-container .toolbar-menu-items.open{visibility:visible}.graphiql-container .toolbar-select-options{left:0;min-width:100%;top:-5px;visibility:hidden}.graphiql-container .toolbar-select-options.open{visibility:visible}.graphiql-container .execute-options>li,.graphiql-container .toolbar-menu-items>li,.graphiql-container .toolbar-select-options>li{cursor:pointer;display:block;margin:none;max-width:300px;overflow:hidden;padding:2px 20px 4px 11px;white-space:nowrap}.graphiql-container .execute-options>li.selected,.graphiql-container .history-contents>li:active,.graphiql-container .history-contents>li:hover,.graphiql-container .toolbar-menu-items>li.hover,.graphiql-container .toolbar-menu-items>li:active,.graphiql-container .toolbar-menu-items>li:hover,.graphiql-container .toolbar-select-options>li.hover,.graphiql-container .toolbar-select-options>li:active,.graphiql-container .toolbar-select-options>li:hover{background:#e10098;color:#fff}.graphiql-container .toolbar-select-options>li>svg{display:inline;fill:#666;margin:0 -6px 0 6px;pointer-events:none;vertical-align:middle}.graphiql-container .toolbar-select-options>li.hover>svg,.graphiql-container .toolbar-select-options>li:active>svg,.graphiql-container .toolbar-select-options>li:hover>svg{fill:#fff}.graphiql-container .CodeMirror-scroll{overflow-scrolling:touch}.graphiql-container .CodeMirror{color:#141823;font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;font-size:13px;height:100%;left:0;position:absolute;top:0;width:100%}.graphiql-container .CodeMirror-lines{padding:20px 0}.CodeMirror-hint-information .content{box-orient:vertical;color:#141823;display:flex;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-clamp:3;line-height:16px;max-height:48px;overflow:hidden;text-overflow:-o-ellipsis-lastline}.CodeMirror-hint-information .content p:first-child{margin-top:0}.CodeMirror-hint-information .content p:last-child{margin-bottom:0}.CodeMirror-hint-information .infoType{color:#ca9800;cursor:pointer;display:inline;margin-right:.5em}.autoInsertedLeaf.cm-property{animation-duration:6s;animation-name:insertionFade;border-bottom:2px solid hsla(0,0%,100%,0);border-radius:2px;margin:-2px -4px -1px;padding:2px 4px 1px}@keyframes insertionFade{0%,to{background:hsla(0,0%,100%,0);border-color:hsla(0,0%,100%,0)}15%,85%{background:#fbffc9;border-color:#f0f3c0}}div.CodeMirror-lint-tooltip{background-color:#fff;border:0;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.45);color:#141823;font-size:13px;line-height:16px;max-width:430px;opacity:0;padding:8px 10px;transition:opacity .15s;white-space:pre-wrap}div.CodeMirror-lint-tooltip>*{padding-left:23px}div.CodeMirror-lint-tooltip>*+*{margin-top:12px}.graphiql-container .variable-editor-title-text{color:gray;cursor:pointer;display:inline-block}.graphiql-container .variable-editor-title-text.active{color:#000}.graphiql-container .tabs{align-items:center;background-image:linear-gradient(#f7f7f7,#e2e2e2);display:flex;height:42px}.graphiql-container .tab{align-items:center;border-bottom-style:none;border-left:1px solid #d3d3d3;border-right-style:none;border-top-style:none;color:rgba(0,0,0,.6);cursor:pointer;display:flex;height:100%;justify-content:center;padding-left:14px;padding-right:6px;padding-top:0;position:relative}.graphiql-container .tab:first-child:nth-last-child(2){padding-right:14px}.graphiql-container .tab:hover{background-image:linear-gradient(hsla(0,0%,96%,.7),#d7d7d7);color:rgba(0,0,0,.8)}.graphiql-container .tab.active{background-image:linear-gradient(hsla(0,0%,91%,.7),#cdcdcd);color:#000}.graphiql-container .tab .close{background:transparent;border:none;border-radius:4px;cursor:pointer;display:inline-block;margin-left:6px;padding:3px 6px}.graphiql-container .tab.active .close,.graphiql-container .tab:hover .close{opacity:1}.graphiql-container .tab .close:before{color:rgba(0,0,0,.7);content:"✕";display:inline-block;font-size:12px;font-weight:700;height:14px}.graphiql-container .tab .close:hover{background:rgba(0,0,0,.08)}.graphiql-container .tab .close:active{background:rgba(0,0,0,.12)}.graphiql-container .tab-add{align-items:center;background:transparent;border:none;border-radius:4px;color:rgba(0,0,0,.5);cursor:pointer;display:flex;font-size:26px;height:30px;justify-content:center;line-height:1;margin-left:6px;padding:0 8px 3px}.graphiql-container .tab-add:hover{background:rgba(0,0,0,.06)}.graphiql-container .tab-add:active{background:rgba(0,0,0,.1)}.graphiql-container .CodeMirror-foldmarker{background:#08f;background:linear-gradient(#43a8ff,#0f83e8);border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.2),inset 0 0 0 1px rgba(0,0,0,.1);color:#fff;font-family:arial;font-size:12px;line-height:0;margin:0 3px;padding:0 4px 1px;text-shadow:0 -1px rgba(0,0,0,.1)}.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket{color:#555;text-decoration:underline}.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket{color:red}.cm-comment{color:#666}.cm-punctuation{color:#555}.cm-keyword{color:#b11a04}.cm-def{color:#d2054e}.cm-property{color:#1f61a0}.cm-qualifier{color:#1c92a9}.cm-attribute{color:#8b2bb9}.cm-number{color:#2882f9}.cm-string{color:#d64292}.cm-builtin{color:#d47509}.cm-string-2{color:#0b7fc7}.cm-variable{color:#397d13}.cm-meta{color:#b33086}.cm-atom{color:#ca9800}.CodeMirror{color:#000;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#666;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#666}.CodeMirror .CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{background:#7e7;border:0;width:auto}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{animation:blink 1.06s steps(1) infinite;border:0;width:auto}@keyframes blink{0%{background:#7e7}50%{background:none}to{background:#7e7}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#666}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#666}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-30px;margin-right:-30px;outline:none;overflow:scroll!important;padding-bottom:30px;position:relative}.CodeMirror-sizer{border-right:30px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-30px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:none;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;word-wrap:normal;z-index:2}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{overflow:auto;position:relative;z-index:2}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-dialog{background:inherit;color:inherit;left:0;overflow:hidden;padding:.1em .8em;position:absolute;right:0;z-index:15}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{background:transparent;border:1px solid #d3d6db;color:inherit;font-family:monospace;outline:none;width:20em}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror-info{background:#fff;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.45);box-sizing:border-box;color:#555;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-height:16px;margin:8px -8px;max-width:400px;opacity:0;overflow:hidden;padding:8px;position:fixed;transition:opacity .15s;z-index:50}.CodeMirror-info :first-child{margin-top:0}.CodeMirror-info :last-child{margin-bottom:0}.CodeMirror-info p{margin:1em 0}.CodeMirror-info .info-description{color:#777;line-height:16px;margin-top:1em;max-height:80px;overflow:hidden}.CodeMirror-info .info-deprecation{background:#fffae8;box-shadow:inset 0 1px 1px -1px #bfb063;color:#867f70;line-height:16px;margin:8px -8px -8px;max-height:80px;overflow:hidden;padding:8px}.CodeMirror-info .info-deprecation-label{color:#c79b2e;cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-info .info-deprecation-label+*{margin-top:0}.CodeMirror-info a{text-decoration:none}.CodeMirror-info a:hover{text-decoration:underline}.CodeMirror-info .type-name{color:#ca9800}.CodeMirror-info .field-name{color:#1f61a0}.CodeMirror-info .enum-value{color:#0b7fc7}.CodeMirror-info .arg-name{color:#8b2bb9}.CodeMirror-info .directive-name{color:#b33086}.CodeMirror-jump-token{cursor:pointer;text-decoration:underline}.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:infobackground;border:1px solid #000;border-radius:4px 4px 4px 4px;color:infotext;font-family:monospace;font-size:10pt;max-width:600px;opacity:0;overflow:hidden;padding:2px 5px;position:fixed;transition:opacity .4s;white-space:pre-wrap;z-index:100}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-position:0 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==)}.CodeMirror-lint-mark-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;position:relative;vertical-align:middle;width:16px}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{background-position:0 0;background-repeat:no-repeat;padding-left:18px}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=)}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=)}.CodeMirror-lint-marker-multiple{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC);background-position:100% 100%;background-repeat:no-repeat;height:100%;width:100%}.graphiql-container .spinner-container{height:36px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:36px;z-index:10}.graphiql-container .spinner{animation:rotation .6s linear infinite;border:6px solid hsla(0,0%,59%,.15);border-radius:100%;border-top-color:hsla(0,0%,59%,.8);display:inline-block;height:24px;position:absolute;vertical-align:middle;width:24px}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.CodeMirror-hints{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.45);font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;font-size:13px;list-style:none;margin:0;max-height:14.5em;overflow:hidden;overflow-y:auto;padding:0;position:absolute;z-index:10}.CodeMirror-hint{border-top:1px solid #f7f7f7;color:#141823;cursor:pointer;margin:0;max-width:300px;overflow:hidden;padding:2px 6px;white-space:pre}li.CodeMirror-hint-active{background-color:#08f;border-top-color:#fff;color:#fff}.CodeMirror-hint-information{border-top:1px solid silver;max-width:300px;padding:4px 6px;position:relative;z-index:1}.CodeMirror-hint-information:first-child{border-bottom:1px solid silver;border-top:none;margin-bottom:-1px}.CodeMirror-hint-deprecation{background:#fffae8;box-shadow:inset 0 1px 1px -1px #bfb063;color:#867f70;font-family:system,-apple-system,San Francisco,\.SFNSDisplay-Regular,Segoe UI,Segoe,Segoe WP,Helvetica Neue,helvetica,Lucida Grande,arial,sans-serif;font-size:13px;line-height:16px;margin-top:4px;max-height:80px;overflow:hidden;padding:6px}.CodeMirror-hint-deprecation .deprecation-label{color:#c79b2e;cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-hint-deprecation .deprecation-label+*{margin-top:0}.CodeMirror-hint-deprecation :last-child{margin-bottom:0}.graphiql-container .doc-explorer{background:#fff}.graphiql-container .doc-explorer-title-bar,.graphiql-container .history-title-bar{cursor:default;display:flex;height:34px;line-height:14px;padding:8px 8px 5px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-explorer-title,.graphiql-container .history-title{flex:1;font-weight:700;overflow-x:hidden;padding:10px 0 10px 10px;text-align:center;text-overflow:ellipsis;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:nowrap}.graphiql-container .doc-explorer-back{background:0;border:0;color:#3b5998;cursor:pointer;line-height:14px;margin:-7px 0 -6px -8px;overflow-x:hidden;padding:17px 12px 16px 16px;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .doc-explorer-back:before{border-left:2px solid #3b5998;border-top:2px solid #3b5998;content:"";display:inline-block;height:9px;margin:0 3px -1px 0;position:relative;transform:rotate(-45deg);width:9px}.graphiql-container .doc-explorer-rhs{position:relative}.graphiql-container .doc-explorer-contents,.graphiql-container .history-contents{background-color:#fff;border-top:1px solid #d6d6d6;bottom:0;left:0;overflow-y:auto;padding:20px 15px;position:absolute;right:0;top:47px}.graphiql-container .doc-type-description blockquote:first-child,.graphiql-container .doc-type-description p:first-child{margin-top:0}.graphiql-container .doc-explorer-contents a{cursor:pointer;text-decoration:none}.graphiql-container .doc-explorer-contents a:hover{text-decoration:underline}.graphiql-container .doc-value-description>:first-child{margin-top:4px}.graphiql-container .doc-value-description>:last-child{margin-bottom:4px}.graphiql-container .doc-category code,.graphiql-container .doc-category pre,.graphiql-container .doc-type-description code,.graphiql-container .doc-type-description pre{--saf-0:rgba(var(--sk_foreground_low,29,28,29),0.13);font-size:12px;font-variant-ligatures:none;line-height:1.50001;white-space:pre;white-space:pre-wrap;word-wrap:break-word;-webkit-tab-size:4;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:normal}.graphiql-container .doc-category code,.graphiql-container .doc-type-description code{background-color:rgba(var(--sk_foreground_min,29,28,29),.04);background-color:#fff;border:1px solid var(--saf-0);border-radius:3px;color:#e01e5a;padding:2px 3px 1px}.graphiql-container .doc-category{margin:20px 0}.graphiql-container .doc-category-title{border-bottom:1px solid #e0e0e0;color:#777;cursor:default;font-size:14px;font-variant:small-caps;font-weight:700;letter-spacing:1px;margin:0 -15px 10px 0;padding:10px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-category-item{color:#555;margin:12px 0}.graphiql-container .keyword{color:#b11a04}.graphiql-container .type-name{color:#ca9800}.graphiql-container .field-name{color:#1f61a0}.graphiql-container .field-short-description{color:#666;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.graphiql-container .enum-value{color:#0b7fc7}.graphiql-container .arg-name{color:#8b2bb9}.graphiql-container .arg{display:block;margin-left:1em}.graphiql-container .arg:first-child:last-child,.graphiql-container .arg:first-child:nth-last-child(2),.graphiql-container .arg:first-child:nth-last-child(2)~.arg{display:inherit;margin:inherit}.graphiql-container .arg:first-child:nth-last-child(2):after{content:", "}.graphiql-container .arg-default-value{color:#43a047}.graphiql-container .doc-deprecation{background:#fffae8;border-radius:3px;box-shadow:inset 0 0 1px #bfb063;color:#867f70;line-height:16px;margin:8px -8px;max-height:80px;overflow:hidden;padding:8px}.graphiql-container .doc-deprecation:before{color:#c79b2e;content:"Deprecated:";cursor:default;display:block;font-size:9px;font-weight:700;letter-spacing:1px;line-height:1;padding-bottom:5px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .doc-deprecation>:first-child{margin-top:0}.graphiql-container .doc-deprecation>:last-child{margin-bottom:0}.graphiql-container .show-btn{-webkit-appearance:initial;background:#fbfcfc;border:1px solid #ccc;border-radius:3px;box-sizing:border-box;color:#555;cursor:pointer;display:block;padding:8px 12px 10px;text-align:center;width:100%}.graphiql-container .search-box{align-items:center;border-bottom:1px solid #d3d6db;display:flex;font-size:14px;margin:-15px -15px 12px 0;position:relative}.graphiql-container .search-box-icon{cursor:pointer;display:block;font-size:24px;transform:rotate(-45deg);-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .search-box .search-box-clear{background-color:#d0d0d0;border:0;border-radius:12px;color:#fff;cursor:pointer;font-size:11px;padding:1px 5px 2px;position:absolute;right:3px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphiql-container .search-box .search-box-clear:hover{background-color:#b9b9b9}.graphiql-container .search-box>input{border:none;box-sizing:border-box;font-size:14px;outline:none;padding:6px 24px 8px 20px;width:100%}.graphiql-container .error-container{font-weight:700;left:0;letter-spacing:1px;opacity:.5;position:absolute;right:0;text-align:center;text-transform:uppercase;top:50%;transform:translateY(-50%)}.graphiql-container .history-contents{font-family:Consolas,Inconsolata,Droid Sans Mono,Monaco,monospace;margin:0;padding:0}.graphiql-container .history-contents li{align-items:center;border-bottom:1px solid #e0e0e0;display:flex;font-size:12px;margin:0;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap}.graphiql-container .history-contents li button:not(.history-label){display:none;margin-left:10px}.graphiql-container .history-contents li:focus-within button:not(.history-label),.graphiql-container .history-contents li:hover button:not(.history-label){display:inline-block}.graphiql-container .history-contents button,.graphiql-container .history-contents input{background:0;border:0;color:inherit;font-family:inherit;font-size:inherit;line-height:14px;padding:0}.graphiql-container .history-contents input{flex-grow:1}.graphiql-container .history-contents input::-moz-placeholder{color:inherit}.graphiql-container .history-contents input::placeholder{color:inherit}.graphiql-container .history-contents button{cursor:pointer;text-align:left}.graphiql-container .history-contents .history-label{flex-grow:1;overflow:hidden;text-overflow:ellipsis} #wpcontent{padding-left:0}#wpbody-content{padding-bottom:0}#wpbody-content .wrap{margin:0}#wpfooter{display:none}body:not(.graphiql-fullscreen) #wpbody-content{margin-bottom:-32px;position:sticky;top:32px}#wpbody-content>:not(.wrap){display:none} diff --git a/lib/wp-graphql/build/app.js b/lib/wp-graphql/build/app.js index 2d6997142..b66ae461c 100644 --- a/lib/wp-graphql/build/app.js +++ b/lib/wp-graphql/build/app.js @@ -1,7 +1,7 @@ -(()=>{var e,t={5581:(e,t,n)=>{"use strict";var r=n(1609),i=n.n(r),o=n(6087);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var m=n(6942),g=n.n(m);function v(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function y(e){return Math.min(1,Math.max(0,e))}function b(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function E(e){return e<=1?"".concat(100*Number(e),"%"):e}function w(e){return 1===e.length?"0"+e:String(e)}function T(e,t,n){e=v(e,255),t=v(t,255),n=v(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function k(e,t,n){e=v(e,255),t=v(t,255),n=v(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-R*t:Math.round(e.h)+R*t:n?Math.round(e.h)+R*t:Math.round(e.h)-R*t)<0?r+=360:r>=360&&(r-=360),r}function U(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-M*t:t===B?e.s+M:e.s+j*t)>1&&(r=1),n&&t===V&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function H(e,t,n){var r;return(r=n?e.v+F*t:e.v-$*t)>1&&(r=1),Number(r.toFixed(2))}function K(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=N(e),i=V;i>0;i-=1){var o=z(r),a=G(N({h:Q(o,i,!0),s:U(o,i,!0),v:H(o,i,!0)}));n.push(a)}n.push(G(r));for(var s=1;s<=B;s+=1){var l=z(r),c=G(N({h:Q(l,s),s:U(l,s),v:H(l,s)}));n.push(c)}return"dark"===t.theme?q.map((function(e){var r,i,o,a=e.index,s=e.opacity;return G((r=N(t.backgroundColor||"#141414"),o=100*s/100,{r:((i=N(n[a])).r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b}))})):n}var W={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Y={},X={};Object.keys(W).forEach((function(e){Y[e]=K(W[e]),Y[e].primary=Y[e][5],X[e]=K(W[e],{theme:"dark",backgroundColor:"#141414"}),X[e].primary=X[e][5]})),Y.red,Y.volcano,Y.gold,Y.orange,Y.yellow,Y.lime,Y.green,Y.cyan;var J=Y.blue;Y.geekblue,Y.purple,Y.magenta,Y.grey,Y.grey;const Z=(0,r.createContext)({});function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):oe}function le(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ce(e){return Array.from((ae.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ne())return null;var n=t.csp,r=t.prepend,i=t.priority,o=void 0===i?0:i,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(re,a),s&&o&&l.setAttribute(ie,"".concat(o)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=le(t),u=c.firstChild;if(r){if(s){var p=(t.styles||ce(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(re)))return!1;var t=Number(e.getAttribute(ie)||0);return o>=t}));if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=le(t);return(t.styles||ce(n)).find((function(n){return n.getAttribute(se(t))===e}))}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=pe(e,t);n&&le(t).removeChild(n)}function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=le(n),i=ce(r),o=te(te({},n),{},{styles:i});!function(e,t){var n=ae.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=ue("",t),i=r.parentNode;ae.set(e,i),e.removeChild(r)}}(r,o);var a,s,l,c=pe(t,o);if(c)return null!==(a=o.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(s=o.csp)||void 0===s?void 0:s.nonce)&&(c.nonce=null===(l=o.csp)||void 0===l?void 0:l.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=ue(e,o);return u.setAttribute(se(o),t),u}function he(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function me(e){return function(e){return he(e)instanceof ShadowRoot}(e)?he(e):null}var ge={},ve=[];function ye(e,t){}function be(e,t){}function Ee(e,t,n){t||ge[n]||(e(!1,n),ge[n]=!0)}function we(e,t){Ee(ye,e,t)}we.preMessage=function(e){ve.push(e)},we.resetWarned=function(){ge={}},we.noteOnce=function(e,t){Ee(be,e,t)};const Te=we;function Se(e){return"object"===p(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===p(e.icon)||"function"==typeof e.icon)}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,i=e[n];return"class"===n?(t.className=i,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i),t}),{})}function Oe(e,t,n){return n?i().createElement(e.tag,te(te({key:t},ke(e.attrs)),n),(e.children||[]).map((function(n,r){return Oe(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):i().createElement(e.tag,te({key:t},ke(e.attrs)),(e.children||[]).map((function(n,r){return Oe(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function xe(e){return K(e)[0]}function Ce(e){return e?Array.isArray(e)?e:[e]:[]}var _e=["icon","className","onClick","style","primaryColor","secondaryColor"],Ne={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ie=function(e){var t,n,i,o,a,s,l,c=e.icon,u=e.className,p=e.onClick,d=e.style,f=e.primaryColor,m=e.secondaryColor,g=h(e,_e),v=r.useRef(),y=Ne;if(f&&(y={primaryColor:f,secondaryColor:m||xe(f)}),t=v,n=(0,r.useContext)(Z),i=n.csp,o=n.prefixCls,a="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(a=a.replace(/anticon/g,o)),(0,r.useEffect)((function(){var e=me(t.current);fe(a,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=Se(c),l="icon should be icon definiton, but got ".concat(c),Te(s,"[@ant-design/icons] ".concat(l)),!Se(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=te(te({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),Oe(b.icon,"svg-".concat(b.name),te(te({className:u,onClick:p,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};Ie.displayName="IconReact",Ie.getTwoToneColors=function(){return te({},Ne)},Ie.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ne.primaryColor=t,Ne.secondaryColor=n||xe(t),Ne.calculated=!!n};const Le=Ie;function Ae(e){var t=u(Ce(e),2),n=t[0],r=t[1];return Le.setTwoToneColors({primaryColor:n,secondaryColor:r})}var De=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ae(J.primary);var Pe=r.forwardRef((function(e,t){var n=e.className,i=e.icon,o=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,p=e.twoToneColor,d=h(e,De),m=r.useContext(Z),v=m.prefixCls,y=void 0===v?"anticon":v,b=m.rootClassName,E=g()(b,y,f(f({},"".concat(y,"-").concat(i.name),!!i.name),"".concat(y,"-spin"),!!o||"loading"===i.name),n),w=l;void 0===w&&c&&(w=-1);var T=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,S=u(Ce(p),2),k=S[0],O=S[1];return r.createElement("span",a({role:"img","aria-label":i.name},d,{ref:t,tabIndex:w,onClick:c,className:E}),r.createElement(Le,{icon:i,primaryColor:k,secondaryColor:O,style:T}))}));Pe.displayName="AntdIcon",Pe.getTwoToneColor=function(){var e=Le.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Pe.setTwoToneColor=Ae;const Re=Pe;var Me=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:s}))};const je=r.forwardRef(Me),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var $e=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:Fe}))};const Ve=r.forwardRef($e),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var qe=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:Be}))};const ze=r.forwardRef(qe),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var Qe=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:Ge}))};const Ue=r.forwardRef(Qe);function He(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ke(e,t){var n=te({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const We=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:Ye}=We,Xe=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Je=n(4363);function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Ze(e)):(0,Je.isFragment)(e)&&e.props?n=n.concat(Ze(e.props.children,t)):n.push(e))})),n}const et={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var tt=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:et}))};const nt=r.forwardRef(tt);const rt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},it=r.createContext({}),ot=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),at=r.forwardRef(((e,t)=>{const{prefixCls:n,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:p=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:v,onBreakpoint:y}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"collapsed"in e&&T(e.collapsed)}),[e.collapsed]);const O=(t,n)=>{"collapsed"in e||T(t),null==v||v(t,n)},x=(0,r.useRef)();x.current=e=>{k(e.matches),null==y||y(e.matches),w!==e.matches&&O(e.matches,"responsive")},(0,r.useEffect)((()=>{function e(e){return x.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&m&&m in rt){t=n(`screen and (max-width: ${rt[m]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[m]),(0,r.useEffect)((()=>{const e=ot("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const C=()=>{O(!w,"clickTrigger")},{getPrefixCls:_}=(0,r.useContext)(We),N=r.useMemo((()=>({siderCollapsed:w})),[w]);return r.createElement(it.Provider,{value:N},(()=>{const e=_("layout-sider",n),s=Ke(b,["collapsed"]),m=w?f:d,v=(x=m,!isNaN(parseFloat(x))&&isFinite(x)?`${m}px`:String(m)),y=0===parseFloat(String(f||0))?r.createElement("span",{onClick:C,className:g()(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${p?"right":"left"}`),style:h},o||r.createElement(nt,null)):null,E={expanded:p?r.createElement(ze,null):r.createElement(Ue,null),collapsed:p?r.createElement(Ue,null):r.createElement(ze,null)}[w?"collapsed":"expanded"],T=null!==o?y||r.createElement("div",{className:`${e}-trigger`,onClick:C,style:{width:v}},o||E):null,k=Object.assign(Object.assign({},c),{flex:`0 0 ${v}`,maxWidth:v,minWidth:v,width:v}),O=g()(e,`${e}-${l}`,{[`${e}-collapsed`]:!!w,[`${e}-has-trigger`]:u&&null!==o&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(v)},i);var x;return r.createElement("aside",Object.assign({className:O},s,{style:k,ref:t}),r.createElement("div",{className:`${e}-children`},a),u||S&&y?T:null)})())})),st=at,lt=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function ct(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}const ut=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(Te(!a,"Warning: There may be circular references"),a)return!1;if(t===i)return!0;if(n&&o>1)return!1;r.add(t);var s=o+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var l=0;l1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i=i?null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=u(e,2)[1];return r.internalGet(t)[1]4&&void 0!==arguments[4]&&arguments[4])return e;var r=te(te({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},f(f({},vt,t),yt,n)),i=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ft=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=u(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},$t=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,o,a=u(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(o=n.ignore)&&void 0!==o&&o[s])){var c,p=jt(s,null==n?void 0:n.prefix);r[p]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(p,")")}})),[i,Ft(r,t,{scope:null==n?void 0:n.scope})]},Vt=ne()?r.useLayoutEffect:r.useEffect,Bt=function(e,t){var n=r.useRef(!0);Vt((function(){return e(n.current)}),t),Vt((function(){return n.current=!1,function(){n.current=!0}}),[])},qt=function(e,t){Bt((function(t){if(!t)return e()}),t)};const zt=Bt;var Gt=te({},r).useInsertionEffect;const Qt=Gt?function(e,t,n){return Gt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),zt((function(){return t(!0)}),n)},Ut=void 0!==te({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}},Ht=function(){return!1};function Kt(e,t,n,i,o){var a=r.useContext(wt).cache,s=mt([e].concat(He(t))),l=Ut([s]),c=(Ht(),function(e){a.opUpdate(s,(function(t){var r=u(t||[void 0,void 0],2),i=r[0],o=[void 0===i?0:i,r[1]||n()];return e?e(o):o}))});r.useMemo((function(){c()}),[s]);var p=a.opGet(s)[1];return Qt((function(){null==o||o(p)}),(function(e){return c((function(t){var n=u(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(p)),[r+1,i]})),function(){a.opUpdate(s,(function(t){var n=u(t||[],2),r=n[0],o=void 0===r?0:r,c=n[1];return 0==o-1?(l((function(){!e&&a.opGet(s)||null==i||i(c,!1)})),null):[o-1,c]}))}}),[s]),p}var Wt={},Yt="css",Xt=new Map,Jt=0;var Zt=function(e,t,n,r){var i=te(te({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i},en="token";function tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,r.useContext)(wt),o=i.cache.instanceId,a=i.container,s=n.salt,l=void 0===s?"":s,c=n.override,p=void 0===c?Wt:c,d=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=function(e,n){for(var r=xt,i=0;iJt&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(vt,'="').concat(e,'"]')).forEach((function(e){var n;e[bt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Xt.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=u(e,4),n=t[0],r=t[3];if(h&&r){var i=fe(r,lt("css-variables-".concat(n._themeKey)),{mark:yt,prepend:"queue",attachTo:a,priority:-999});i[bt]=o,i.setAttribute(vt,n._themeKey)}}));return b}const nn={animationIterationCount: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,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};var rn="comm",on="rule",an="decl",sn="@import",ln="@keyframes",cn="@layer",un=Math.abs,pn=String.fromCharCode;function dn(e){return e.trim()}function fn(e,t,n){return e.replace(t,n)}function hn(e,t,n){return e.indexOf(t,n)}function mn(e,t){return 0|e.charCodeAt(t)}function gn(e,t,n){return e.slice(t,n)}function vn(e){return e.length}function yn(e,t){return t.push(e),e}function bn(e,t){for(var n="",r=0;r0?mn(xn,--kn):0,Tn--,10===On&&(Tn=1,wn--),On}function In(){return On=kn2||Pn(On)>3?"":" "}function jn(e,t){for(;--t&&In()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return Dn(e,An()+(t<6&&32==Ln()&&32==In()))}function Fn(e){for(;In();)switch(On){case e:return kn;case 34:case 39:34!==e&&39!==e&&Fn(On);break;case 40:41===e&&Fn(e);break;case 92:In()}return kn}function $n(e,t){for(;In()&&e+On!==57&&(e+On!==84||47!==Ln()););return"/*"+Dn(t,kn-1)+"*"+pn(47===e?e:In())}function Vn(e){for(;!Pn(Ln());)In();return Dn(e,kn)}function Bn(e){return function(e){return xn="",e}(qn("",null,null,null,[""],e=function(e){return wn=Tn=1,Sn=vn(xn=e),kn=0,[]}(e),0,[0],e))}function qn(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",E=i,w=o,T=r,S=b;g;)switch(h=y,y=In()){case 40:if(108!=h&&58==mn(S,p-1)){-1!=hn(S+=fn(Rn(y),"&","&\f"),"&\f",un(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Rn(y);break;case 9:case 10:case 13:case 32:S+=Mn(h);break;case 92:S+=jn(An()-1,7);continue;case 47:switch(Ln()){case 42:case 47:yn(Gn($n(In(),An()),t,n,l),l);break;default:S+="/"}break;case 123*m:s[c++]=vn(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=fn(S,/\f/g,"")),f>0&&vn(S)-p&&yn(f>32?Qn(S+";",r,n,p-1,l):Qn(fn(S," ","")+";",r,n,p-2,l),l);break;case 59:S+=";";default:if(yn(T=zn(S,t,n,c,u,i,s,b,E=[],w=[],p,o),o),123===y)if(0===u)qn(S,t,T,T,E,o,p,s,w);else switch(99===d&&110===mn(S,3)?100:d){case 100:case 108:case 109:case 115:qn(e,T,T,r&&yn(zn(e,T,T,0,0,i,s,b,i,E=[],p,w),w),i,w,p,s,r?E:w);break;default:qn(S,T,T,T,[""],w,0,s,w)}}c=u=f=0,m=v=1,b=S="",p=a;break;case 58:p=1+vn(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Nn())continue;switch(S+=pn(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(vn(S)-1)*v,v=1;break;case 64:45===Ln()&&(S+=Rn(In())),d=Ln(),u=p=vn(b=S+=Vn(An())),y++;break;case 45:45===h&&2==vn(S)&&(m=0)}}return o}function zn(e,t,n,r,i,o,a,s,l,c,u,p){for(var d=i-1,f=0===i?o:[""],h=function(e){return e.length}(f),m=0,g=0,v=0;m0?f[y]+" "+b:fn(b,/&\f/g,f[y])))&&(l[v++]=E);return Cn(e,t,n,0===i?on:s,l,c,u,p)}function Gn(e,t,n,r){return Cn(e,t,n,rn,pn(On),gn(e,2,-2),0,r)}function Qn(e,t,n,r,i){return Cn(e,t,n,an,gn(e,0,r),gn(e,r+1,-1),r,i)}var Un,Hn="data-ant-cssinjs-cache-path",Kn="_FILE_STYLE__",Wn=!0;var Yn="_multi_value_";function Xn(e){return bn(Bn(e),En).replace(/\{%%%\:[^;];}/g,";")}var Jn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=(n.path,n.hashPriority),d=n.transformers,f=void 0===d?[]:d,h=(n.linters,""),m={};function g(t){var r=t.getName(s);if(!m[r]){var i=u(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];m[r]="@keyframes ".concat(t.getName(s)).concat(i)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(v.forEach((function(t){var r="string"!=typeof t||i?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)g(r);else{var l=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==p(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===p(e)&&e&&("_skip_check_"in e||Yn in e)}(r)){var d;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;nn[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(s)),h+="".concat(n,":").concat(r,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===p(r)&&null!=r&&r[Yn]&&Array.isArray(f)?f.forEach((function(e){S(t,e)})):S(t,f)}else{var v=!1,y=t.trim(),b=!1;(i||o)&&s?y.startsWith("@")?v=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r,o=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(o).concat(i).concat(r.slice(o.length))].concat(He(n.slice(1))).join(" ")}));return o.join(",")}(t,s,c):!i||s||"&"!==y&&""!==y||(y="",b=!0);var E=u(e(r,n,{root:b,injectHash:v,parentSelectors:[].concat(He(a),[y])}),2),w=E[0],T=E[1];m=te(te({},m),T),h+="".concat(y).concat(w)}}))}})),i){if(l&&(void 0===Dt&&(Dt=function(e,t,n){if(ne()){var r,i;fe(e,Lt);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o);var a=n?n(o):null===(r=getComputedStyle(o).content)||void 0===r?void 0:r.includes(At);return null===(i=o.parentNode)||void 0===i||i.removeChild(o),de(Lt),a}return!1}("@layer ".concat(Lt," { .").concat(Lt,' { content: "').concat(At,'"!important; } }'),(function(e){e.className=Lt}))),Dt)){var y=l.split(","),b=y[y.length-1].trim();h="@layer ".concat(b," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,m]};function Zn(e,t){return lt("".concat(e.join("%")).concat(t))}function er(){return null}var tr="style";function nr(e,t){var n=e.token,i=e.path,o=e.hashId,s=e.layer,l=e.nonce,c=e.clientOnly,p=e.order,d=void 0===p?0:p,h=r.useContext(wt),m=h.autoClear,g=(h.mock,h.defaultCache),v=h.hashPriority,y=h.container,b=h.ssrInline,E=h.transformers,w=h.linters,T=h.cache,S=n._tokenKey,k=[S].concat(He(i)),O=Pt,x=Kt(tr,k,(function(){var e=k.join("|");if(function(e){return function(){if(!Un&&(Un={},ne())){var e=document.createElement("div");e.className=Hn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=u(e.split(":"),2),n=t[0],r=t[1];Un[n]=r}));var n,r=document.querySelector("style[".concat(Hn,"]"));r&&(Wn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Un[e]}(e)){var n=function(e){var t=Un[e],n=null;if(t&&ne())if(Wn)n=Kn;else{var r=document.querySelector("style[".concat(yt,'="').concat(Un[e],'"]'));r?n=r.innerHTML:delete Un[e]}return[n,t]}(e),r=u(n,2),a=r[0],l=r[1];if(a)return[a,S,l,{},c,d]}var p=t(),f=u(Jn(p,{hashId:o,hashPriority:v,layer:s,path:i.join("-"),transformers:E,linters:w}),2),h=f[0],m=f[1],g=Xn(h),y=Zn(k,g);return[g,S,y,m,c,d]}),(function(e,t){var n=u(e,3)[2];(t||m)&&Pt&&de(n,{mark:yt})}),(function(e){var t=u(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(O&&n!==Kn){var o={mark:yt,prepend:"queue",attachTo:y,priority:d},a="function"==typeof l?l():l;a&&(o.csp={nonce:a});var s=fe(n,r,o);s[bt]=T.instanceId,s.setAttribute(vt,S),Object.keys(i).forEach((function(e){fe(Xn(i[e]),"_effect-".concat(e),o)}))}})),C=u(x,3),_=C[0],N=C[1],I=C[2];return function(e){var t;return t=b&&!O&&g?r.createElement("style",a({},f(f({},vt,N),yt,I),{dangerouslySetInnerHTML:{__html:_}})):r.createElement(er,null),r.createElement(r.Fragment,null,t,e)}}var rr="cssVar";f(f(f({},tr,(function(e,t,n){var r=u(e,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],p=(n||{}).plain;if(l)return null;var d=i,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Mt(i,o,a,f,p),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Xn(s[e]);d+=Mt(n,o,"_effect-".concat(e),f,p)}})),[c,a,d]})),en,(function(e,t,n){var r=u(e,5),i=r[2],o=r[3],a=r[4],s=(n||{}).plain;if(!o)return null;var l=i._tokenKey;return[-999,l,Mt(o,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),rr,(function(e,t,n){var r=u(e,4),i=r[1],o=r[2],a=r[3],s=(n||{}).plain;return i?[-999,o,Mt(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var ir=function(){function e(t,n){pt(this,e),f(this,"name",void 0),f(this,"style",void 0),f(this,"_keyframe",!0),this.name=t,this.style=n}return ft(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const or=ir;function ar(e){return e.notSplit=!0,e}function sr(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},vr=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),yr=(e,t,n)=>{const{fontFamily:r,fontSize:i}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:o]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},br=e=>({outline:`${Rt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Er=e=>({"&:focus-visible":Object.assign({},br(e))}),wr="5.15.4",Tr={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Sr=Object.assign(Object.assign({},Tr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var kr=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var i=N(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=b(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=k(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=k(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=T(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=T(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),O(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,i){var o,a=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16)),w((o=r,Math.round(255*parseFloat(o)).toString(16)))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*v(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*v(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+O(this.r,this.g,this.b,!1),t=0,n=Object.entries(_);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=y(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=y(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=y(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=y(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;anew kr(e).setAlpha(t).toRgbString(),xr=(e,t)=>new kr(e).darken(t).toHexString(),Cr=e=>{const t=K(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},_r=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Or(r,.88),colorTextSecondary:Or(r,.65),colorTextTertiary:Or(r,.45),colorTextQuaternary:Or(r,.25),colorFill:Or(r,.15),colorFillSecondary:Or(r,.06),colorFillTertiary:Or(r,.04),colorFillQuaternary:Or(r,.02),colorBgLayout:xr(n,4),colorBgContainer:xr(n,0),colorBgElevated:xr(n,0),colorBgSpotlight:Or(r,.85),colorBgBlur:"transparent",colorBorder:xr(n,15),colorBorderSecondary:xr(n,6)}};function Nr(e){return(e+8)/e}const Ir=(Lr=function(e){const t=Object.keys(Tr).map((t=>{const n=K(e[t]);return new Array(10).fill(1).reduce(((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,p=n(l),d=n(i),f=n(o),h=n(a),m=n(s),g=r(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new kr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Cr,generateNeutralColorPalettes:_r})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,i=e*Math.pow(2.71828,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Nr(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},(e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}})(r))}(e))},Ar=Array.isArray(Lr)?Lr:[Lr],Ot.has(Ar)||Ot.set(Ar,new kt(Ar)),Ot.get(Ar));var Lr,Ar;const Dr={token:Sr,override:{override:Sr},hashed:!0},Pr=i().createContext(Dr);function Rr(e){return e>=0&&e<=255}const Mr=function(e,t){const{r:n,g:r,b:i,a:o}=new kr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new kr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),o=Math.round((r-s*(1-e))/e),c=Math.round((i-l*(1-e))/e);if(Rr(t)&&Rr(o)&&Rr(c))return new kr({r:t,g:o,b:c,a:Math.round(100*e)/100}).toRgbString()}return new kr({r:n,g:r,b:i,a:1}).toRgbString()};var jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{delete r[e]}));const i=Object.assign(Object.assign({},n),r);if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Mr(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Mr(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Mr(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:4*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Mr(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new kr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new kr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new kr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var $r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=$r(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=Fr(a),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,i=$r(n,["theme"]);let o=i;r&&(o=zr(Object.assign(Object.assign({},a),i),{override:i},r)),a[t]=o})),a};function Gr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=i().useContext(Pr),a=`${wr}-${t||""}`,s=n||Ir,[l,c,u]=tn(s,[Sr,e],{salt:a,override:r,getComputedToken:zr,formatToken:Fr,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Vr,ignore:Br,preserve:qr}});return[s,u,t?c:"",l,o]}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qr(e)}function Ur(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ur=function(){return!!e})()}function Hr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kr(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hr(e)}function Wr(e,t,n){return t=Qr(t),Kr(e,Ur()?Reflect.construct(t,n||[],Qr(e).constructor):t.apply(e,n))}function Yr(e,t){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yr(e,t)}function Xr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yr(e,t)}const Jr=ft((function e(){pt(this,e)}));let Zr=function(e){function t(e){var n;return pt(this,t),(n=Wr(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Xr(t,e),ft(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(Jr);const ei="CALC_UNIT";function ti(e){return"number"==typeof e?`${e}${ei}`:e}let ni=function(e){function t(e){var n;return pt(this,t),(n=Wr(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ti(e):"string"==typeof e&&(n.result=e),n}return Xr(t,e),ft(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${ti(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${ti(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${ei}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(Jr);const ri="undefined"!=typeof CSSINJS_STATISTIC;let ii=!0;function oi(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ii=!0,r}const ai={};function si(){}const li=(e,t,n)=>{var r;return"function"==typeof n?n(oi(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},ci=(e,t,n,r)=>{const i=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==i?void 0:i[t])||(null==i?void 0:i[n]))&&(null!==(r=i[n])&&void 0!==r||(i[n]=null==i?void 0:i[t]))}))}const o=Object.assign(Object.assign({},n),i);return Object.keys(o).forEach((e=>{o[e]===t[e]&&delete o[e]})),o};function ui(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,s=o.join("-");return function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[l,c,u,p,d]=Gr(),{getPrefixCls:f,iconPrefixCls:h,csp:m}=(0,r.useContext)(We),g=f(),v=d?"css":"js",y=(e=>{const t="css"===e?ni:Zr;return e=>new t(e)})(v),{max:b,min:E}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;nRt(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;nRt(e))).join(",")})`}}}(v),w={theme:l,token:p,hashId:u,nonce:()=>null==m?void 0:m.nonce,clientOnly:i.clientOnly,order:i.order||-999};nr(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":vr(p)}])),((e,t)=>{const[n,r]=Gr();nr({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))})(h,m);const T=nr(Object.assign(Object.assign({},w),{path:[s,e,h]}),(()=>{if(!1===i.injectStyle)return[];const{token:r,flush:s}=(e=>{let t,n=e,r=si;return ri&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ii&&t.add(n),e[n])}),r=(e,n)=>{var r;ai[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=ai[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(p),l=li(a,c,n),f=`.${e}`,m=ci(a,c,l,{deprecatedTokens:i.deprecatedTokens});d&&Object.keys(l).forEach((e=>{l[e]=`var(${jt(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(a,d.prefix))})`}));const v=oi(r,{componentCls:f,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:y,max:b,min:E},d?l:m),w=t(v,{hashId:u,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return s(a,m),[!1===i.resetStyle?null:yr(v,e,o),w]}));return[T,u]}}const pi=(e,t,n,o)=>{const a=ui(e,t,n,o),s=((e,t,n)=>{function o(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:a={},injectStyle:s=!0}=null!=n?n:{},l={[o("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{l[o(e)]=a[e]}));const c=i=>{let{rootCls:a,cssVar:s}=i;const[,c]=Gr();return function(e,t){var n=e.key,i=e.prefix,o=e.unitless,a=e.ignore,s=e.token,l=e.scope,c=void 0===l?"":l,p=(0,r.useContext)(wt),d=p.cache.instanceId,f=p.container,h=s._tokenKey,m=[].concat(He(e.path),[n,c,h]),g=Kt(rr,m,(function(){var e=t(),r=u($t(e,n,{prefix:i,unitless:o,ignore:a,scope:c}),2),s=r[0],l=r[1];return[s,l,Zn(m,l),n]}),(function(e){var t=u(e,3)[2];Pt&&de(t,{mark:yt})}),(function(e){var t=u(e,3),r=t[1],i=t[2];if(r){var o=fe(r,i,{mark:yt,prepend:"queue",attachTo:f,priority:-999});o[bt]=d,o.setAttribute(vt,n)}}))}({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},Vr),l),ignore:Br,token:c,scope:a},(()=>{const r=li(e,c,t),i=ci(e,c,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{i[o(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=Gr();return[r=>s&&n?i().createElement(i().Fragment,null,i().createElement(c,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,o);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e,t),[r,i]=s(t);return[r,n,i]}},di=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:i},[`${t}-sider-zero-width-trigger`]:{color:o,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},fi=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:p,zeroTriggerHeight:d,zeroTriggerWidth:f,motionDurationMid:h,motionDurationSlow:m,fontSize:g,borderRadius:v,bodyBg:y,headerBg:b,siderBg:E}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:E,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:i,lineHeight:Rt(p),textAlign:"center",background:a,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(f).mul(-1).equal(),zIndex:1,width:f,height:d,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:E,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(f).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},di(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Rt(s),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},hi=pi("Layout",(e=>[fi(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ir.forwardRef(((i,o)=>r.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},i))))}const vi=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:i,className:o,tagName:a}=e,s=mi(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=r.useContext(We),c=l("layout",n),[u,p,d]=hi(c),f=i?`${c}-${i}`:c;return u(r.createElement(a,Object.assign({className:g()(n||f,o,p,d),ref:t},s)))})),yi=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(We),[i,o]=r.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:p,style:d}=e,f=Ke(mi(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:m}=r.useContext(We),v=h("layout",a),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||Ze(t).some((e=>e.type===st))}(i,c,u),[b,E,w]=hi(v),T=g()(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:"rtl"===n},null==m?void 0:m.className,s,l,E,w),S=r.useMemo((()=>({siderHook:{addSider:e=>{o((t=>[].concat(He(t),[e])))},removeSider:e=>{o((t=>t.filter((t=>t!==e))))}}})),[]);return b(r.createElement(Xe.Provider,{value:S},r.createElement(p,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},null==m?void 0:m.style),d)},f),c)))})),bi=gi({tagName:"div",displayName:"Layout"})(yi),Ei=gi({suffixCls:"header",tagName:"header",displayName:"Header"})(vi),wi=gi({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(vi),Ti=gi({suffixCls:"content",tagName:"main",displayName:"Content"})(vi),Si=bi;Si.Header=Ei,Si.Footer=wi,Si.Content=Ti,Si.Sider=st,Si._InternalSiderContext=it;const ki=Si,Oi=window.ReactDOM;var xi=n.n(Oi);function Ci(e){return e instanceof HTMLElement||e instanceof SVGElement}function _i(e){return Ci(e)?e:e instanceof i().Component?xi().findDOMNode(e):null}var Ni=r.createContext(null),Ii=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){Li&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ri?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Li&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Pi.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ji=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Ki="undefined"!=typeof WeakMap?new WeakMap:new Ii,Wi=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Mi.getInstance(),r=new Hi(t,n,this);Ki.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Wi.prototype[e]=function(){var t;return(t=Ki.get(this))[e].apply(t,arguments)}}));const Yi=void 0!==Ai.ResizeObserver?Ai.ResizeObserver:Wi;var Xi=new Map,Ji=new Yi((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Xi.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Zi(e){var t=Ur();return function(){var n,r=Qr(e);if(t){var i=Qr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Kr(this,n)}}var eo=function(e){Xr(n,e);var t=Zi(n);function n(){return pt(this,n),t.apply(this,arguments)}return ft(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function to(e,t){var n=e.children,i=e.disabled,o=r.useRef(null),a=r.useRef(null),s=r.useContext(Ni),l="function"==typeof n,c=l?n(o):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&r.isValidElement(c)&&hr(c),f=fr(d?c.ref:null,o),h=function(){var e;return _i(o.current)||(o.current&&"object"===p(o.current)?_i(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||_i(a.current)};r.useImperativeHandle(t,(function(){return h()}));var m=r.useRef(e);m.current=e;var g=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,a=i.height,l=e.offsetWidth,c=e.offsetHeight,p=Math.floor(o),d=Math.floor(a);if(u.current.width!==p||u.current.height!==d||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:p,height:d,offsetWidth:l,offsetHeight:c};u.current=f;var h=l===Math.round(o)?o:l,g=c===Math.round(a)?a:c,v=te(te({},f),{},{offsetWidth:h,offsetHeight:g});null==s||s(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return r.useEffect((function(){var e,t,n=h();return n&&!i&&(e=n,t=g,Xi.has(e)||(Xi.set(e,new Set),Ji.observe(e)),Xi.get(e).add(t)),function(){return function(e,t){Xi.has(e)&&(Xi.get(e).delete(t),Xi.get(e).size||(Ji.unobserve(e),Xi.delete(e)))}(n,g)}}),[o.current,i]),r.createElement(eo,{ref:a},d?r.cloneElement(c,{ref:f}):c)}const no=r.forwardRef(to);function ro(e,t){var n=e.children;return("function"==typeof n?[n]:Ze(n)).map((function(n,i){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(no,a({},e,{key:o,ref:0===i?t:void 0}),n)}))}var io=r.forwardRef(ro);io.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(Ni),s=r.useCallback((function(e,t,r){i.current+=1;var s=i.current;o.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){s===i.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(Ni.Provider,{value:s},t)};const oo=io;var ao=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],so=void 0;function lo(e,t){var n=e.prefixCls,i=e.invalidate,o=e.item,s=e.renderItem,l=e.responsive,c=e.responsiveDisabled,u=e.registerSize,p=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,y=e.order,b=e.component,E=void 0===b?"div":b,w=h(e,ao),T=l&&!v;function S(e){u(p,e)}r.useEffect((function(){return function(){S(null)}}),[]);var k,O=s&&o!==so?s(o):m;i||(k={opacity:T?0:1,height:T?0:so,overflowY:T?"hidden":so,order:l?y:so,pointerEvents:T?"none":so,position:T?"absolute":so});var x={};T&&(x["aria-hidden"]=!0);var C=r.createElement(E,a({className:g()(!i&&n,d),style:te(te({},k),f)},x,w,{ref:t}),O);return l&&(C=r.createElement(oo,{onResize:function(e){S(e.offsetWidth)},disabled:c},C)),C}var co=r.forwardRef(lo);co.displayName="Item";const uo=co;var po=function(e){return+setTimeout(e,16)},fo=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(po=function(e){return window.requestAnimationFrame(e)},fo=function(e){return window.cancelAnimationFrame(e)});var ho=0,mo=new Map;function go(e){mo.delete(e)}var vo=function(e){var t=ho+=1;return function n(r){if(0===r)go(t),e();else{var i=po((function(){n(r-1)}));mo.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};vo.cancel=function(e){var t=mo.get(e);return go(e),fo(t)};const yo=vo;function bo(e,t){var n=u(r.useState(t),2),i=n[0],o=n[1];return[i,sr((function(t){e((function(){o(t)}))}))]}var Eo=i().createContext(null),wo=["component"],To=["className"],So=["className"],ko=function(e,t){var n=r.useContext(Eo);if(!n){var i=e.component,o=void 0===i?"div":i,s=h(e,wo);return r.createElement(o,a({},s,{ref:t}))}var l=n.className,c=h(n,To),u=e.className,p=h(e,So);return r.createElement(Eo.Provider,{value:null},r.createElement(uo,a({ref:t,className:g()(l,u)},c,p)))},Oo=r.forwardRef(ko);Oo.displayName="RawItem";const xo=Oo;var Co=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_o="responsive",No="invalidate";function Io(e){return"+ ".concat(e.length," ...")}function Lo(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-overflow":i,s=e.data,l=void 0===s?[]:s,c=e.renderItem,p=e.renderRawItem,d=e.itemKey,f=e.itemWidth,m=void 0===f?10:f,v=e.ssr,y=e.style,b=e.className,E=e.maxCount,w=e.renderRest,T=e.renderRawRest,S=e.suffix,k=e.component,O=void 0===k?"div":k,x=e.itemComponent,C=e.onVisibleChange,_=h(e,Co),N="full"===v,I=(n=r.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)yo(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Oi.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),L=u(bo(I,null),2),A=L[0],D=L[1],P=A||0,R=u(bo(I,new Map),2),M=R[0],j=R[1],F=u(bo(I,0),2),$=F[0],V=F[1],B=u(bo(I,0),2),q=B[0],z=B[1],G=u(bo(I,0),2),Q=G[0],U=G[1],H=u((0,r.useState)(null),2),K=H[0],W=H[1],Y=u((0,r.useState)(null),2),X=Y[0],J=Y[1],Z=r.useMemo((function(){return null===X&&N?Number.MAX_SAFE_INTEGER:X||0}),[X,A]),ee=u((0,r.useState)(!1),2),ne=ee[0],re=ee[1],ie="".concat(o,"-item"),oe=Math.max($,q),ae=E===_o,se=l.length&&ae,le=E===No,ce=se||"number"==typeof E&&l.length>E,ue=(0,r.useMemo)((function(){var e=l;return se?e=null===A&&N?l:l.slice(0,Math.min(l.length,P/m)):"number"==typeof E&&(e=l.slice(0,E)),e}),[l,m,A,E,se]),pe=(0,r.useMemo)((function(){return se?l.slice(Z+1):l.slice(ue.length)}),[l,ue,se,Z]),de=(0,r.useCallback)((function(e,t){var n;return"function"==typeof d?d(e):null!==(n=d&&(null==e?void 0:e[d]))&&void 0!==n?n:t}),[d]),fe=(0,r.useCallback)(c||function(e){return e},[c]);function he(e,t,n){(X!==e||void 0!==t&&t!==K)&&(J(e),n||(re(eP){he(r-1,e-i-Q+q);break}}S&&ge(0)+Q>P&&W(null)}}),[P,M,q,Q,de,ue]);var ve=ne&&!!pe.length,ye={};null!==K&&se&&(ye={position:"absolute",left:K,top:0});var be,Ee={prefixCls:ie,responsive:se,component:x,invalidate:le},we=p?function(e,t){var n=de(e,t);return r.createElement(Eo.Provider,{key:n,value:te(te({},Ee),{},{order:t,item:e,itemKey:n,registerSize:me,display:t<=Z})},p(e,t))}:function(e,t){var n=de(e,t);return r.createElement(uo,a({},Ee,{order:t,key:n,item:e,renderItem:fe,itemKey:n,registerSize:me,display:t<=Z}))},Te={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:function(e,t){z(t),V(q)},display:ve};if(T)T&&(be=r.createElement(Eo.Provider,{value:te(te({},Ee),Te)},T(pe)));else{var Se=w||Io;be=r.createElement(uo,a({},Ee,Te),"function"==typeof Se?Se(pe):Se)}var ke=r.createElement(O,a({className:g()(!le&&o,b),style:y,ref:t},_),ue.map(we),ce?be:null,S&&r.createElement(uo,a({},Ee,{responsive:ae,responsiveDisabled:!se,order:Z,className:"".concat(ie,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:ye}),S));return ae&&(ke=r.createElement(oo,{onResize:function(e,t){D(t.clientWidth)},disabled:!se},ke)),ke}var Ao=r.forwardRef(Lo);Ao.displayName="Overflow",Ao.Item=xo,Ao.RESPONSIVE=_o,Ao.INVALIDATE=No;const Do=Ao;var Po=r.createContext(null);function Ro(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Mo(e){return Ro(r.useContext(Po),e)}var jo=["children","locked"],Fo=r.createContext(null);function $o(e){var t=e.children,n=e.locked,i=h(e,jo),o=r.useContext(Fo),a=ct((function(){return e=i,t=te({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,i],(function(e,t){return!(n||e[0]===t[0]&&ut(e[1],t[1],!0))}));return r.createElement(Fo.Provider,{value:a},t)}var Vo=[],Bo=r.createContext(null);function qo(){return r.useContext(Bo)}var zo=r.createContext(Vo);function Go(e){var t=r.useContext(zo);return r.useMemo((function(){return void 0!==e?[].concat(He(t),[e]):t}),[t,e])}var Qo=r.createContext(null);const Uo=r.createContext({}),Ho=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1};function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ho(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Wo={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Wo.F1&&t<=Wo.F12)return!1;switch(t){case Wo.ALT:case Wo.CAPS_LOCK:case Wo.CONTEXT_MENU:case Wo.CTRL:case Wo.DOWN:case Wo.END:case Wo.ESC:case Wo.HOME:case Wo.INSERT:case Wo.LEFT:case Wo.MAC_FF_META:case Wo.META:case Wo.NUMLOCK:case Wo.NUM_CENTER:case Wo.PAGE_DOWN:case Wo.PAGE_UP:case Wo.PAUSE:case Wo.PRINT_SCREEN:case Wo.RIGHT:case Wo.SHIFT:case Wo.UP:case Wo.WIN_KEY:case Wo.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Wo.ZERO&&e<=Wo.NINE)return!0;if(e>=Wo.NUM_ZERO&&e<=Wo.NUM_MULTIPLY)return!0;if(e>=Wo.A&&e<=Wo.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Wo.SPACE:case Wo.QUESTION_MARK:case Wo.NUM_PLUS:case Wo.NUM_MINUS:case Wo.NUM_PERIOD:case Wo.NUM_DIVISION:case Wo.SEMICOLON:case Wo.DASH:case Wo.EQUALS:case Wo.COMMA:case Wo.PERIOD:case Wo.SLASH:case Wo.APOSTROPHE:case Wo.SINGLE_QUOTE:case Wo.OPEN_SQUARE_BRACKET:case Wo.BACKSLASH:case Wo.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Yo=Wo;var Xo=Yo.LEFT,Jo=Yo.RIGHT,Zo=Yo.UP,ea=Yo.DOWN,ta=Yo.ENTER,na=Yo.ESC,ra=Yo.HOME,ia=Yo.END,oa=[Zo,ea,Xo,Jo];function aa(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=He(e.querySelectorAll("*")).filter((function(e){return Ko(e,t)}));return Ko(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function sa(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=aa(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}var la=function(e,t){var n=new Set,r=new Map,i=new Map;return e.forEach((function(e){var o=document.querySelector("[data-menu-id='".concat(Ro(t,e),"']"));o&&(n.add(o),i.set(o,e),r.set(e,o))})),{elements:n,key2element:r,element2key:i}};var ca="__RC_UTIL_PATH_SPLIT__",ua=function(e){return e.join(ca)},pa="rc-menu-more";function da(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;fe("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else de(n);var i;return function(){de(n)}}),[t,n])}var ja=!1,Fa=function(e){return!1!==e&&(ne()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},$a=r.forwardRef((function(e,t){var n=e.open,i=e.autoLock,o=e.getContainer,a=(e.debug,e.autoDestroy),s=void 0===a||a,l=e.children,c=u(r.useState(n),2),p=c[0],d=c[1],f=p||n;r.useEffect((function(){(s||n)&&d(n)}),[n,s]);var h=u(r.useState((function(){return Fa(o)})),2),m=h[0],g=h[1];r.useEffect((function(){var e=Fa(o);g(null!=e?e:null)}));var v=function(e,t){var n=u(r.useState((function(){return ne()?document.createElement("div"):null})),1)[0],i=r.useRef(!1),o=r.useContext(Aa),a=u(r.useState(Da),2),s=a[0],l=a[1],c=o||(i.current?void 0:function(e){l((function(t){return[e].concat(He(t))}))});function p(){n.parentElement||document.body.appendChild(n),i.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),i.current=!1}return zt((function(){return e?o?o(p):p():d(),d}),[e]),zt((function(){s.length&&(s.forEach((function(e){return e()})),l(Da))}),[s]),[n,c]}(f&&!m),y=u(v,2),b=y[0],E=y[1],w=null!=m?m:b;Ma(i&&n&&ne()&&(w===b||w===document.body));var T=null;l&&hr(l)&&t&&(T=l.ref);var S=fr(T,t);if(!f||!ne()||void 0===m)return null;var k=!1===w||ja,O=l;return t&&(O=r.cloneElement(l,{ref:S})),r.createElement(Aa.Provider,{value:E},k?O:(0,Oi.createPortal)(O,w))}));const Va=$a;var Ba=0,qa=te({},r).useId;const za=qa?function(e){var t=qa();return e||t}:function(e){var t=u(r.useState("ssr-id"),2),n=t[0],i=t[1];return r.useEffect((function(){var e=Ba;Ba+=1,i("rc_unique_".concat(e))}),[]),e||n},Ga=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var Qa=r.createContext({}),Ua=function(e){Xr(n,e);var t=Zi(n);function n(){return pt(this,n),t.apply(this,arguments)}return ft(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const Ha=Ua;var Ka="none",Wa="appear",Ya="enter",Xa="leave",Ja="none",Za="prepare",es="start",ts="active",ns="end",rs="prepared";function is(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var os,as,ss,ls=(os=ne(),as="undefined"!=typeof window?window:{},ss={animationend:is("Animation","AnimationEnd"),transitionend:is("Transition","TransitionEnd")},os&&("AnimationEvent"in as||delete ss.animationend.animation,"TransitionEvent"in as||delete ss.transitionend.transition),ss),cs={};if(ne()){var us=document.createElement("div");cs=us.style}var ps={};function ds(e){if(ps[e])return ps[e];var t=ls[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=yo((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),l=u(s,2),c=l[0],p=l[1],d=t?ws:Es;return bs((function(){if(o!==Ja&&o!==ns){var e=d.indexOf(o),t=d[e+1],r=n(o);r===Ts?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),r.useEffect((function(){return function(){p()}}),[]),[function(){a(Za,!0)},o]}(A,!e,(function(e){if(e===Za){var t=Q[Za];return t?t($()):Ts}var n;return K in Q&&M((null===(n=Q[K])||void 0===n?void 0:n.call(Q,$(),null))||null),K===ts&&(z($()),d>0&&(clearTimeout(F.current),F.current=setTimeout((function(){q({deadline:!0})}),d))),K===rs&&B(),true})),2),H=U[0],K=U[1],W=Ss(K);V.current=W,bs((function(){I(t);var n,r=j.current;j.current=!0,!r&&t&&l&&(n=Wa),r&&t&&a&&(n=Ya),(r&&!t&&p||!r&&h&&!t&&p)&&(n=Xa);var i=G(n);n&&(e||i[Za])?(D(n),H()):D(Ka)}),[t]),(0,r.useEffect)((function(){(A===Wa&&!l||A===Ya&&!a||A===Xa&&!p)&&D(Ka)}),[l,a,p]),(0,r.useEffect)((function(){return function(){j.current=!1,clearTimeout(F.current)}}),[]);var Y=r.useRef(!1);(0,r.useEffect)((function(){N&&(Y.current=!0),void 0!==N&&A===Ka&&((Y.current||N)&&(null==C||C(N)),Y.current=!0)}),[N,A]);var X=R;return Q[Za]&&K===es&&(X=te({transition:"none"},X)),[A,K,X,null!=N?N:t]}(m,o,(function(){try{return v.current instanceof HTMLElement?v.current:_i(y.current)}catch(e){return null}}),e),E=u(b,4),w=E[0],T=E[1],S=E[2],k=E[3],O=r.useRef(k);k&&(O.current=!0);var x,C=r.useCallback((function(e){v.current=e,pr(n,e)}),[n]),_=te(te({},h),{},{visible:o});if(c)if(w===Ka)x=k?c(te({},_),C):!s&&O.current&&d?c(te(te({},_),{},{className:d}),C):l||!s&&!d?c(te(te({},_),{},{style:{display:"none"}}),C):null;else{var N,I;T===Za?I="prepare":Ss(T)?I="active":T===es&&(I="start");var L=ys(p,"".concat(w,"-").concat(I));x=c(te(te({},_),{},{className:g()(ys(p,w),(N={},f(N,L,L&&I),f(N,p,"string"==typeof p),N)),style:S}),C)}else x=null;return r.isValidElement(x)&&hr(x)&&(x.ref||(x=r.cloneElement(x,{ref:C}))),r.createElement(Ha,{ref:y},x)}));return n.displayName="CSSMotion",n}(ms);var Os="add",xs="keep",Cs="remove",_s="removed";function Ns(e){var t;return te(te({},t=e&&"object"===p(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Is(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Ns)}var Ls=["component","children","onVisibleChanged","onAllRemoved"],As=["status"],Ds=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ks,n=function(e){Xr(i,e);var n=Zi(i);function i(){var e;pt(this,i);for(var t=arguments.length,r=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Is(e),a=Is(t);o.forEach((function(e){for(var t=!1,o=r;o1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Cs}))).forEach((function(t){t.key===e&&(t.status=xs)}))})),n}(r,i);return{keyEntities:o.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==_s||e.status!==Cs}))}}}]),i}(r.Component);f(n,"defaultProps",{component:"div"})}(ms);const Ps=ks;function Rs(e){var t=e.prefixCls,n=e.align,i=e.arrow,o=e.arrowPos,a=i||{},s=a.className,l=a.content,c=o.x,u=void 0===c?0:c,p=o.y,d=void 0===p?0:p,f=r.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],y=m[0],b=m[1],E=v[0],w=v[1];y!==E&&["t","b"].includes(y)?"t"===y?h.top=0:h.bottom=0:h.top=d,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return r.createElement("div",{ref:f,className:g()("".concat(t,"-arrow"),s),style:h},l)}function Ms(e){var t=e.prefixCls,n=e.open,i=e.zIndex,o=e.mask,s=e.motion;return o?r.createElement(Ps,a({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:i},className:g()("".concat(t,"-mask"),n)})})):null}var js=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Fs=js;var $s=r.forwardRef((function(e,t){var n=e.popup,i=e.className,o=e.prefixCls,s=e.style,l=e.target,c=e.onVisibleChanged,p=e.open,d=e.keepDom,f=e.fresh,h=e.onClick,m=e.mask,v=e.arrow,y=e.arrowPos,b=e.align,E=e.motion,w=e.maskMotion,T=e.forceRender,S=e.getPopupContainer,k=e.autoDestroy,O=e.portal,x=e.zIndex,C=e.onMouseEnter,_=e.onMouseLeave,N=e.onPointerEnter,I=e.ready,L=e.offsetX,A=e.offsetY,D=e.offsetR,P=e.offsetB,R=e.onAlign,M=e.onPrepare,j=e.stretch,F=e.targetWidth,$=e.targetHeight,V="function"==typeof n?n():n,B=p||d,q=(null==S?void 0:S.length)>0,z=u(r.useState(!S||!q),2),G=z[0],Q=z[1];if(zt((function(){!G&&q&&l&&Q(!0)}),[G,q,l]),!G)return null;var U="auto",H={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(I||!p){var K,W=b.points,Y=b.dynamicInset||(null===(K=b._experimental)||void 0===K?void 0:K.dynamicInset),X=Y&&"r"===W[0][1],J=Y&&"b"===W[0][0];X?(H.right=D,H.left=U):(H.left=L,H.right=U),J?(H.bottom=P,H.top=U):(H.top=A,H.bottom=U)}var Z={};return j&&(j.includes("height")&&$?Z.height=$:j.includes("minHeight")&&$&&(Z.minHeight=$),j.includes("width")&&F?Z.width=F:j.includes("minWidth")&&F&&(Z.minWidth=F)),p||(Z.pointerEvents="none"),r.createElement(O,{open:T||B,getContainer:S&&function(){return S(l)},autoDestroy:k},r.createElement(Ms,{prefixCls:o,open:p,zIndex:x,mask:m,motion:w}),r.createElement(oo,{onResize:R,disabled:!p},(function(e){return r.createElement(Ps,a({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(o,"-hidden")},E,{onAppearPrepare:M,onEnterPrepare:M,visible:p,onVisibleChanged:function(e){var t;null==E||null===(t=E.onVisibleChanged)||void 0===t||t.call(E,e),c(e)}}),(function(n,a){var l=n.className,c=n.style,u=g()(o,l,i);return r.createElement("div",{ref:dr(e,t,a),className:u,style:te(te(te(te({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},H),Z),c),{},{boxSizing:"border-box",zIndex:x},s),onMouseEnter:C,onMouseLeave:_,onPointerEnter:N,onClick:h},v&&r.createElement(Rs,{prefixCls:o,arrow:v,arrowPos:y,align:b}),r.createElement(Fs,{cache:!p&&!f},V))}))})))}));const Vs=$s;var Bs=r.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,o=hr(n),a=r.useCallback((function(e){pr(t,i?i(e):e)}),[i]),s=fr(a,n.ref);return o?r.cloneElement(n,{ref:s}):n}));const qs=Bs,zs=r.createContext(null);function Gs(e){return e?Array.isArray(e)?e:[e]:[]}function Qs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Us(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Hs(e){return e.ownerDocument.defaultView}function Ks(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Hs(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Ws(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Ys(e){return Ws(parseFloat(e),0)}function Xs(e,t){var n=te({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Hs(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,p=e.clientHeight,d=e.offsetWidth,f=e.clientWidth,h=Ys(o),m=Ys(a),g=Ys(s),v=Ys(l),y=Ws(Math.round(c.width/d*1e3)/1e3),b=Ws(Math.round(c.height/u*1e3)/1e3),E=(d-f-g-v)*y,w=(u-p-h-m)*b,T=h*b,S=m*b,k=g*y,O=v*y,x=0,C=0;if("clip"===r){var _=Ys(i);x=_*y,C=_*b}var N=c.x+k-x,I=c.y+T-C,L=N+c.width+2*x-k-O-E,A=I+c.height+2*C-T-S-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,I),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,A)}})),n}function Js(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Zs(e,t){var n=u(t||[],2),r=n[0],i=n[1];return[Js(e.width,r),Js(e.height,i)]}function el(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function tl(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function nl(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var rl=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const il=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Va,t=r.forwardRef((function(t,n){var i=t.prefixCls,o=void 0===i?"rc-trigger-popup":i,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,p=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,m=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,y=t.mouseEnterDelay,b=t.mouseLeaveDelay,E=void 0===b?.1:b,w=t.focusDelay,T=t.blurDelay,S=t.mask,k=t.maskClosable,O=void 0===k||k,x=t.getPopupContainer,C=t.forceRender,_=t.autoDestroy,N=t.destroyPopupOnHide,I=t.popup,L=t.popupClassName,A=t.popupStyle,D=t.popupPlacement,P=t.builtinPlacements,R=void 0===P?{}:P,M=t.popupAlign,j=t.zIndex,F=t.stretch,$=t.getPopupClassNameFromAlign,V=t.fresh,B=t.alignPoint,q=t.onPopupClick,z=t.onPopupAlign,G=t.arrow,Q=t.popupMotion,U=t.maskMotion,H=t.popupTransitionName,K=t.popupAnimation,W=t.maskTransitionName,Y=t.maskAnimation,X=t.className,J=t.getTriggerDOMNode,Z=h(t,rl),ee=_||N||!1,ne=u(r.useState(!1),2),re=ne[0],ie=ne[1];zt((function(){ie(Ga())}),[]);var oe=r.useRef({}),ae=r.useContext(zs),se=r.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=za(),ce=u(r.useState(null),2),ue=ce[0],pe=ce[1],de=sr((function(e){Ci(e)&&ue!==e&&pe(e),null==ae||ae.registerSubPopup(le,e)})),fe=u(r.useState(null),2),he=fe[0],ge=fe[1],ve=r.useRef(null),ye=sr((function(e){Ci(e)&&he!==e&&(ge(e),ve.current=e)})),be=r.Children.only(a),Ee=(null==be?void 0:be.props)||{},we={},Te=sr((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=me(r))||void 0===t?void 0:t.host)===e||e===r||(null==ue?void 0:ue.contains(e))||(null===(n=me(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=Us(o,Q,K,H),ke=Us(o,U,Y,W),Oe=u(r.useState(f||!1),2),xe=Oe[0],Ce=Oe[1],_e=null!=d?d:xe,Ne=sr((function(e){void 0===d&&Ce(e)}));zt((function(){Ce(d||!1)}),[d]);var Ie=r.useRef(_e);Ie.current=_e;var Le=r.useRef([]);Le.current=[];var Ae=sr((function(e){var t;Ne(e),(null!==(t=Le.current[Le.current.length-1])&&void 0!==t?t:_e)!==e&&(Le.current.push(e),null==m||m(e))})),De=r.useRef(),Pe=function(){clearTimeout(De.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Pe(),0===t?Ae(e):De.current=setTimeout((function(){Ae(e)}),1e3*t)};r.useEffect((function(){return Pe}),[]);var Me=u(r.useState(!1),2),je=Me[0],Fe=Me[1];zt((function(e){e&&!_e||Fe(!0)}),[_e]);var $e=u(r.useState(null),2),Ve=$e[0],Be=$e[1],qe=u(r.useState([0,0]),2),ze=qe[0],Ge=qe[1],Qe=function(e){Ge([e.clientX,e.clientY])},Ue=function(e,t,n,i,o,a,s){var l=u(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[i]||{}}),2),c=l[0],p=l[1],d=r.useRef(0),f=r.useMemo((function(){return t?Ks(t):[]}),[t]),h=r.useRef({});e||(h.current={});var m=sr((function(){if(t&&n&&e){var r,l,c,d=t,m=d.ownerDocument,g=Hs(d).getComputedStyle(d),v=g.width,y=g.height,b=g.position,E=d.style.left,w=d.style.top,T=d.style.right,S=d.style.bottom,k=d.style.overflow,O=te(te({},o[i]),a),x=m.createElement("div");if(null===(r=d.parentElement)||void 0===r||r.appendChild(x),x.style.left="".concat(d.offsetLeft,"px"),x.style.top="".concat(d.offsetTop,"px"),x.style.position=b,x.style.height="".concat(d.offsetHeight,"px"),x.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(n))c={x:n[0],y:n[1],width:0,height:0};else{var C=n.getBoundingClientRect();c={x:C.x,y:C.y,width:C.width,height:C.height}}var _=d.getBoundingClientRect(),N=m.documentElement,I=N.clientWidth,L=N.clientHeight,A=N.scrollWidth,D=N.scrollHeight,P=N.scrollTop,R=N.scrollLeft,M=_.height,j=_.width,F=c.height,$=c.width,V={left:0,top:0,right:I,bottom:L},B={left:-R,top:-P,right:A-R,bottom:D-P},q=O.htmlRegion,z="visible",G="visibleFirst";"scroll"!==q&&q!==G&&(q=z);var Q=q===G,U=Xs(B,f),H=Xs(V,f),K=q===z?H:U,W=Q?H:K;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var Y=d.getBoundingClientRect();d.style.left=E,d.style.top=w,d.style.right=T,d.style.bottom=S,d.style.overflow=k,null===(l=d.parentElement)||void 0===l||l.removeChild(x);var X=Ws(Math.round(j/parseFloat(v)*1e3)/1e3),J=Ws(Math.round(M/parseFloat(y)*1e3)/1e3);if(0===X||0===J||Ci(n)&&!Ho(n))return;var Z=O.offset,ee=O.targetOffset,ne=u(Zs(_,Z),2),re=ne[0],ie=ne[1],oe=u(Zs(c,ee),2),ae=oe[0],se=oe[1];c.x-=ae,c.y-=se;var le=u(O.points||[],2),ce=le[0],ue=el(le[1]),pe=el(ce),de=tl(c,ue),fe=tl(_,pe),he=te({},O),me=de.x-fe.x+re,ge=de.y-fe.y+ie;function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=_.x+e,i=_.y+t,o=r+j,a=i+M,s=Math.max(r,n.left),l=Math.max(i,n.top),c=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var ve,ye,be,Ee,we=ct(me,ge),Te=ct(me,ge,H),Se=tl(c,["t","l"]),ke=tl(_,["t","l"]),Oe=tl(c,["b","r"]),xe=tl(_,["b","r"]),Ce=O.overflow||{},_e=Ce.adjustX,Ne=Ce.adjustY,Ie=Ce.shiftX,Le=Ce.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function ut(){ve=_.y+ge,ye=ve+M,be=_.x+me,Ee=be+j}ut();var De=Ae(Ne),Pe=pe[0]===ue[0];if(De&&"t"===pe[0]&&(ye>W.bottom||h.current.bt)){var Re=ge;Pe?Re-=M-F:Re=Se.y-xe.y-ie;var Me=ct(me,Re),je=ct(me,Re,H);Me>we||Me===we&&(!Q||je>=Te)?(h.current.bt=!0,ge=Re,ie=-ie,he.points=[nl(pe,0),nl(ue,0)]):h.current.bt=!1}if(De&&"b"===pe[0]&&(vewe||$e===we&&(!Q||Ve>=Te)?(h.current.tb=!0,ge=Fe,ie=-ie,he.points=[nl(pe,0),nl(ue,0)]):h.current.tb=!1}var Be=Ae(_e),qe=pe[1]===ue[1];if(Be&&"l"===pe[1]&&(Ee>W.right||h.current.rl)){var ze=me;qe?ze-=j-$:ze=Se.x-xe.x-re;var Ge=ct(ze,ge),Qe=ct(ze,ge,H);Ge>we||Ge===we&&(!Q||Qe>=Te)?(h.current.rl=!0,me=ze,re=-re,he.points=[nl(pe,1),nl(ue,1)]):h.current.rl=!1}if(Be&&"r"===pe[1]&&(bewe||He===we&&(!Q||Ke>=Te)?(h.current.lr=!0,me=Ue,re=-re,he.points=[nl(pe,1),nl(ue,1)]):h.current.lr=!1}ut();var We=!0===Ie?0:Ie;"number"==typeof We&&(beH.right&&(me-=Ee-H.right-re,c.x>H.right-We&&(me+=c.x-H.right+We)));var Ye=!0===Le?0:Le;"number"==typeof Ye&&(veH.bottom&&(ge-=ye-H.bottom-ie,c.y>H.bottom-Ye&&(ge+=c.y-H.bottom+Ye)));var Xe=_.x+me,Je=Xe+j,Ze=_.y+ge,et=Ze+M,tt=c.x,nt=tt+$,rt=c.y,it=rt+F,ot=(Math.max(Xe,tt)+Math.min(Je,nt))/2-Xe,at=(Math.max(Ze,rt)+Math.min(et,it))/2-Ze;null==s||s(t,he);var st=Y.right-_.x-(me+_.width),lt=Y.bottom-_.y-(ge+_.height);p({ready:!0,offsetX:me/X,offsetY:ge/J,offsetR:st/X,offsetB:lt/J,arrowX:ot/X,arrowY:at/J,scaleX:X,scaleY:J,align:he})}})),g=function(){p((function(e){return te(te({},e),{},{ready:!1})}))};return zt(g,[i]),zt((function(){e||g()}),[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(_e,ue,B?ze:he,D,R,M,z),Ke=u(Ue,11),We=Ke[0],Ye=Ke[1],Xe=Ke[2],Je=Ke[3],Ze=Ke[4],et=Ke[5],tt=Ke[6],nt=Ke[7],rt=Ke[8],it=Ke[9],ot=Ke[10],at=function(e,t,n,i){return r.useMemo((function(){var r=Gs(null!=n?n:t),o=Gs(null!=i?i:t),a=new Set(r),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,i])}(re,l,c,p),st=u(at,2),lt=st[0],ct=st[1],ut=lt.has("click"),pt=ct.has("click")||ct.has("contextMenu"),dt=sr((function(){je||ot()}));!function(e,t,n,r,i){zt((function(){if(e&&t&&n){var i=n,o=Ks(t),a=Ks(i),s=Hs(i),l=new Set([s].concat(He(o),He(a)));function c(){r(),Ie.current&&B&&pt&&Re(!1)}return l.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),s.addEventListener("resize",c,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",c),s.removeEventListener("resize",c)}))}}}),[e,t,n])}(_e,he,ue,dt),zt((function(){dt()}),[ze,D]),zt((function(){!_e||null!=R&&R[D]||dt()}),[JSON.stringify(M)]);var ft=r.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1?a-1:0),l=1;l1?n-1:0),i=1;i1?n-1:0),i=1;i1&&(E.motionAppear=!1);var w=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||y(!0),null==w?void 0:w(e)},v?null:r.createElement($o,{mode:s,locked:!m.current},r.createElement(Ps,a({visible:b},E,{forceRender:p,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,i=e.style;return r.createElement(Ia,{id:t,className:n,style:i},o)})))}var dl=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],fl=["active"],hl=function(e){var t=e.style,n=e.className,i=e.title,o=e.eventKey,s=(e.warnKey,e.disabled),l=e.internalPopupClose,c=e.children,p=e.itemIcon,d=e.expandIcon,m=e.popupClassName,v=e.popupOffset,y=e.popupStyle,b=e.onClick,E=e.onMouseEnter,w=e.onMouseLeave,T=e.onTitleClick,S=e.onTitleMouseEnter,k=e.onTitleMouseLeave,O=h(e,dl),x=Mo(o),C=r.useContext(Fo),_=C.prefixCls,N=C.mode,I=C.openKeys,L=C.disabled,A=C.overflowDisabled,D=C.activeKey,P=C.selectedKeys,R=C.itemIcon,M=C.expandIcon,j=C.onItemClick,F=C.onOpenChange,$=C.onActive,V=r.useContext(Uo)._internalRenderSubMenuItem,B=r.useContext(Qo).isSubPathKey,q=Go(),z="".concat(_,"-submenu"),G=L||s,Q=r.useRef(),U=r.useRef(),H=null!=p?p:R,K=null!=d?d:M,W=I.includes(o),Y=!A&&W,X=B(P,o),J=ma(o,G,S,k),Z=J.active,ee=h(J,fl),ne=u(r.useState(!1),2),re=ne[0],ie=ne[1],oe=function(e){G||ie(e)},ae=r.useMemo((function(){return Z||"inline"!==N&&(re||B([D],o))}),[N,Z,D,re,o,B]),se=ga(q.length),le=da((function(e){null==b||b(ba(e)),j(e)})),ce=x&&"".concat(x,"-popup"),ue=r.createElement("div",a({role:"menuitem",style:se,className:"".concat(z,"-title"),tabIndex:G?null:-1,ref:Q,title:"string"==typeof i?i:null,"data-menu-id":A&&x?null:x,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":G,onClick:function(e){G||(null==T||T({key:o,domEvent:e}),"inline"===N&&F(o,!W))},onFocus:function(){$(o)}},ee),i,r.createElement(va,{icon:"horizontal"!==N?K:void 0,props:te(te({},e),{},{isOpen:Y,isSubMenu:!0})},r.createElement("i",{className:"".concat(z,"-arrow")}))),pe=r.useRef(N);if("inline"!==N&&q.length>1?pe.current="vertical":pe.current=N,!A){var de=pe.current;ue=r.createElement(ul,{mode:de,prefixCls:z,visible:!l&&Y&&"inline"!==N,popupClassName:m,popupOffset:v,popupStyle:y,popup:r.createElement($o,{mode:"horizontal"===de?"vertical":de},r.createElement(Ia,{id:ce,ref:U},c)),disabled:G,onVisibleChange:function(e){"inline"!==N&&F(o,e)}},ue)}var fe=r.createElement(Do.Item,a({role:"none"},O,{component:"li",style:t,className:g()(z,"".concat(z,"-").concat(N),n,f(f(f(f({},"".concat(z,"-open"),Y),"".concat(z,"-active"),ae),"".concat(z,"-selected"),X),"".concat(z,"-disabled"),G)),onMouseEnter:function(e){oe(!0),null==E||E({key:o,domEvent:e})},onMouseLeave:function(e){oe(!1),null==w||w({key:o,domEvent:e})}}),ue,!A&&r.createElement(pl,{id:ce,open:Y,keyPath:q},c));return V&&(fe=V(fe,e,{selected:X,active:ae,open:Y,disabled:G})),r.createElement($o,{onItemClick:le,mode:"horizontal"===N?"vertical":N,itemIcon:H,expandIcon:K},fe)};function ml(e){var t,n=e.eventKey,i=e.children,o=Go(n),a=La(i,o),s=qo();return r.useEffect((function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}}),[o]),t=s?a:r.createElement(hl,e,a),r.createElement(zo.Provider,{value:o},t)}var gl=["className","title","eventKey","children"],vl=["children"],yl=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=h(e,gl),s=r.useContext(Fo).prefixCls,l="".concat(s,"-item-group");return r.createElement("li",a({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:g()(l,t)}),r.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))};function bl(e){var t=e.children,n=h(e,vl),i=La(t,Go(n.eventKey));return qo()?i:r.createElement(yl,Ke(n,["warnKey"]),i)}function El(e){var t=e.className,n=e.style,i=r.useContext(Fo).prefixCls;return qo()?null:r.createElement("li",{role:"separator",className:g()("".concat(i,"-item-divider"),t),style:n})}var wl=["label","children","key","type"];function Tl(e){return(e||[]).map((function(e,t){if(e&&"object"===p(e)){var n=e,i=n.label,o=n.children,s=n.key,l=n.type,c=h(n,wl),u=null!=s?s:"tmp-".concat(t);return o||"group"===l?"group"===l?r.createElement(bl,a({key:u},c,{title:i}),Tl(o)):r.createElement(ml,a({key:u},c,{title:i}),Tl(o)):"divider"===l?r.createElement(El,a({key:u},c)):r.createElement(xa,a({key:u},c),i)}return null})).filter((function(e){return e}))}function Sl(e,t,n){var r=e;return t&&(r=Tl(t)),La(r,n)}var kl=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ol=[],xl=r.forwardRef((function(e,t){var n,i=e,o=i.prefixCls,s=void 0===o?"rc-menu":o,l=i.rootClassName,c=i.style,p=i.className,d=i.tabIndex,m=void 0===d?0:d,v=i.items,y=i.children,b=i.direction,E=i.id,w=i.mode,T=void 0===w?"vertical":w,S=i.inlineCollapsed,k=i.disabled,O=i.disabledOverflow,x=i.subMenuOpenDelay,C=void 0===x?.1:x,_=i.subMenuCloseDelay,N=void 0===_?.1:_,I=i.forceSubMenuRender,L=i.defaultOpenKeys,A=i.openKeys,D=i.activeKey,P=i.defaultActiveFirst,R=i.selectable,M=void 0===R||R,j=i.multiple,F=void 0!==j&&j,$=i.defaultSelectedKeys,V=i.selectedKeys,B=i.onSelect,q=i.onDeselect,z=i.inlineIndent,G=void 0===z?24:z,Q=i.motion,U=i.defaultMotions,H=i.triggerSubMenuAction,K=void 0===H?"hover":H,W=i.builtinPlacements,Y=i.itemIcon,X=i.expandIcon,J=i.overflowedIndicator,Z=void 0===J?"...":J,ee=i.overflowedIndicatorPopupClassName,ne=i.getPopupContainer,re=i.onClick,ie=i.onOpenChange,oe=i.onKeyDown,ae=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),se=i._internalRenderSubMenuItem,le=h(i,kl),ce=r.useMemo((function(){return Sl(y,v,Ol)}),[y,v]),ue=u(r.useState(!1),2),pe=ue[0],de=ue[1],fe=r.useRef(),he=function(e){var t=u(ur(e,{value:e}),2),n=t[0],i=t[1];return r.useEffect((function(){ha+=1;var e="".concat(fa,"-").concat(ha);i("rc-menu-uuid-".concat(e))}),[]),n}(E),me="rtl"===b,ge=u(ur(L,{value:A,postState:function(e){return e||Ol}}),2),ve=ge[0],ye=ge[1],be=function(e){function t(){ye(e),null==ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Oi.flushSync)(t):t()},Ee=u(r.useState(ve),2),we=Ee[0],Te=Ee[1],Se=r.useRef(!1),ke=u(r.useMemo((function(){return"inline"!==T&&"vertical"!==T||!S?[T,!1]:["vertical",S]}),[T,S]),2),Oe=ke[0],xe=ke[1],Ce="inline"===Oe,_e=u(r.useState(Oe),2),Ne=_e[0],Ie=_e[1],Le=u(r.useState(xe),2),Ae=Le[0],De=Le[1];r.useEffect((function(){Ie(Oe),De(xe),Se.current&&(Ce?ye(we):be(Ol))}),[Oe,xe]);var Pe=u(r.useState(0),2),Re=Pe[0],Me=Pe[1],je=Re>=ce.length-1||"horizontal"!==Ne||O;r.useEffect((function(){Ce&&Te(ve)}),[ve]),r.useEffect((function(){return Se.current=!0,function(){Se.current=!1}}),[]);var Fe=function(){var e=u(r.useState({}),2)[1],t=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),i=u(r.useState([]),2),o=i[0],a=i[1],s=(0,r.useRef)(0),l=(0,r.useRef)(!1),c=(0,r.useCallback)((function(r,i){var o=ua(i);n.current.set(o,r),t.current.set(r,o),s.current+=1;var a,c=s.current;a=function(){c===s.current&&(l.current||e({}))},Promise.resolve().then(a)}),[]),p=(0,r.useCallback)((function(e,r){var i=ua(r);n.current.delete(i),t.current.delete(e)}),[]),d=(0,r.useCallback)((function(e){a(e)}),[]),f=(0,r.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(ca);return n&&o.includes(r[0])&&r.unshift(pa),r}),[o]),h=(0,r.useCallback)((function(e,t){return e.some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,r.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(ca),i=new Set;return He(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return r.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:c,unregisterPath:p,refreshOverflowKeys:d,isSubPathKey:h,getKeyPath:f,getKeys:function(){var e=He(t.current.keys());return o.length&&e.push(pa),e},getSubPathKeys:m}}(),$e=Fe.registerPath,Ve=Fe.unregisterPath,Be=Fe.refreshOverflowKeys,qe=Fe.isSubPathKey,ze=Fe.getKeyPath,Ge=Fe.getKeys,Qe=Fe.getSubPathKeys,Ue=r.useMemo((function(){return{registerPath:$e,unregisterPath:Ve}}),[$e,Ve]),Ke=r.useMemo((function(){return{isSubPathKey:qe}}),[qe]);r.useEffect((function(){Be(je?Ol:ce.slice(Re+1).map((function(e){return e.key})))}),[Re,je]);var We=u(ur(D||P&&(null===(n=ce[0])||void 0===n?void 0:n.key),{value:D}),2),Ye=We[0],Xe=We[1],Je=da((function(e){Xe(e)})),Ze=da((function(){Xe(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:fe.current,focus:function(e){var t,n,r=Ge(),i=la(r,he),o=i.elements,a=i.key2element,s=i.element2key,l=aa(fe.current,o),c=null!=Ye?Ye:l[0]?s.get(l[0]):null===(t=ce.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var et=u(ur($||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?Ol:[e]}}),2),tt=et[0],nt=et[1],rt=da((function(e){null==re||re(ba(e)),function(e){if(M){var t,n=e.key,r=tt.includes(n);t=F?r?tt.filter((function(e){return e!==n})):[].concat(He(tt),[n]):[n],nt(t);var i=te(te({},e),{},{selectedKeys:t});r?null==q||q(i):null==B||B(i)}!F&&ve.length&&"inline"!==Ne&&be(Ol)}(e)})),it=da((function(e,t){var n=ve.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ne){var r=Qe(e);n=n.filter((function(e){return!r.has(e)}))}ut(ve,n,!0)||be(n,!0)})),ot=function(e,t,n,i,o,a,s,l,c,u){var p=r.useRef(),d=r.useRef();d.current=t;var h=function(){yo.cancel(p.current)};return r.useEffect((function(){return function(){h()}}),[]),function(r){var m=r.which;if([].concat(oa,[ta,na,ra,ia]).includes(m)){var g=a(),v=la(g,i),y=v,b=y.elements,E=y.key2element,w=y.element2key,T=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(E.get(t),b),S=w.get(T),k=function(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if("inline"===e&&r===ta)return{inlineTrigger:!0};var c=f(f({},Zo,o),ea,a),u=f(f(f(f({},Xo,n?a:o),Jo,n?o:a),ea,s),ta,s),p=f(f(f(f(f(f({},Zo,o),ea,a),ta,s),na,l),Xo,n?s:l),Jo,n?l:s);switch(null===(i={inline:c,horizontal:u,vertical:p,inlineSub:c,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[r]){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===s(S,!0).length,n,m);if(!k&&m!==ra&&m!==ia)return;(oa.includes(m)||[ra,ia].includes(m))&&r.preventDefault();var O=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);l(r),h(),p.current=yo((function(){d.current===r&&t.focus()}))}};if([ra,ia].includes(m)||k.sibling||!T){var x,C,_=aa(x=T&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(T):o.current,b);C=m===ra?_[0]:m===ia?_[_.length-1]:sa(x,b,T,k.offset),O(C)}else if(k.inlineTrigger)c(S);else if(k.offset>0)c(S,!0),h(),p.current=yo((function(){v=la(g,i);var e=T.getAttribute("aria-controls"),t=sa(document.getElementById(e),v.elements);O(t)}),5);else if(k.offset<0){var N=s(S,!0),I=N[N.length-2],L=E.get(I);c(I,!1),O(L)}}null==u||u(r)}}(Ne,Ye,me,he,fe,Ge,ze,Xe,(function(e,t){var n=null!=t?t:!ve.includes(e);it(e,n)}),oe);r.useEffect((function(){de(!0)}),[]);var at=r.useMemo((function(){return{_internalRenderMenuItem:ae,_internalRenderSubMenuItem:se}}),[ae,se]),st="horizontal"!==Ne||O?ce:ce.map((function(e,t){return r.createElement($o,{key:e.key,overflowDisabled:t>Re},e)})),lt=r.createElement(Do,a({id:E,ref:fe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:xa,className:g()(s,"".concat(s,"-root"),"".concat(s,"-").concat(Ne),p,f(f({},"".concat(s,"-inline-collapsed"),Ae),"".concat(s,"-rtl"),me),l),dir:b,style:c,role:"menu",tabIndex:m,data:st,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ce.slice(-t):null;return r.createElement(ml,{eventKey:pa,title:Z,disabled:je,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Ne||O?Do.INVALIDATE:Do.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Me(e)},onKeyDown:ot},le));return r.createElement(Uo.Provider,{value:at},r.createElement(Po.Provider,{value:he},r.createElement($o,{prefixCls:s,rootClassName:l,mode:Ne,openKeys:ve,rtl:me,disabled:k,motion:pe?Q:null,defaultMotions:pe?U:null,activeKey:Ye,onActive:Je,onInactive:Ze,selectedKeys:tt,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:N,forceSubMenuRender:I,builtinPlacements:W,triggerSubMenuAction:K,getPopupContainer:ne,itemIcon:Y,expandIcon:X,onItemClick:rt,onOpenChange:it},r.createElement(Qo.Provider,{value:Ke},lt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(Bo.Provider,{value:Ue},ce)))))})),Cl=xl;Cl.Item=xa,Cl.SubMenu=ml,Cl.ItemGroup=bl,Cl.Divider=El;const _l=Cl,Nl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Il=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:Nl}))};const Ll=r.forwardRef(Il),Al=()=>({height:0,opacity:0}),Dl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Pl=e=>({height:e?e.offsetHeight:0}),Rl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ml=(e,t,n)=>void 0!==n?n:`${e}-${t}`,jl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Al,onEnterStart:Al,onAppearActive:Dl,onEnterActive:Dl,onLeaveStart:Pl,onLeaveActive:Al,onAppearEnd:Rl,onEnterEnd:Rl,onLeaveEnd:Rl,motionDeadline:500}};function Fl(e){return e&&i().isValidElement(e)&&e.type===i().Fragment}const $l=(e,t,n)=>i().isValidElement(e)?i().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function Vl(e,t){return $l(e,e,t)}const Bl=e=>{const[,,,,t]=Gr();return t?`${e}-css-var`:""};const ql=e=>{const{prefixCls:t,className:n,dashed:i}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Rt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},rc=8;function ic(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?rc:r}}function oc(e,t){return e?t:{}}function ac(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},nc(e,t,i)),{"&:before":{background:t}})]},oc(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),oc(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),oc(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),oc(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}const sc={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},lc={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},cc=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function uc(){}const pc=r.createContext(null),dc=e=>{let{children:t}=e;return r.createElement(pc.Provider,{value:null},t)},fc=e=>({animationDuration:e,animationFillMode:"both"}),hc=e=>({animationDuration:e,animationFillMode:"both"}),mc=function(e,t,n,r){const i=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},fc(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},hc(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gc=new or("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vc=new or("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),yc=new or("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bc=new or("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ec=new or("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wc=new or("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Tc={zoom:{inKeyframes:gc,outKeyframes:vc},"zoom-big":{inKeyframes:yc,outKeyframes:bc},"zoom-big-fast":{inKeyframes:yc,outKeyframes:bc},"zoom-left":{inKeyframes:new or("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new or("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new or("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new or("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Ec,outKeyframes:wc},"zoom-down":{inKeyframes:new or("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new or("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Sc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Tc[t];return[mc(r,i,o,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},kc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Oc(e,t){return kc.reduce(((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))}),{})}const xc=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${Rt(e.calc(c).div(2).equal())} ${Rt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,rc)}},[`${t}-content`]:{position:"relative"}}),Oc(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},ac(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Cc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ic({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=i,a=1*r/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),l=i-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*i-l,p=c,d=2*i-a,f=s,h=2*i-0,m=o,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${p} L ${d} ${f} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`}}(oi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),_c=function(e){const t=pi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,i=oi(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[xc(i),Sc(e,"zoom-big-fast")]}),Cc,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Nc=kc.map((e=>`${e}-inverse`));function Ic(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?kc.includes(e):[].concat(He(Nc),He(kc)).includes(e)}(t),r=g()({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const Lc=r.forwardRef(((e,t)=>{var n,i;const{prefixCls:o,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:p,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:m=!0,title:v,overlay:y,builtinPlacements:b,arrowPointAtCenter:E=!1,autoAdjustOverflow:w=!0}=e,T=!!m,[,S]=Gr(),{getPopupContainer:k,getPrefixCls:O,direction:x}=r.useContext(We),C=(()=>{const e=()=>{};return e.deprecated=uc,e})(),_=r.useRef(null),N=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>({forceAlign:N,forcePopupAlign:()=>{C.deprecated(!1,"forcePopupAlign","forceAlign"),N()}})));const[I,L]=ur(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(i=e.defaultOpen)&&void 0!==i?i:e.defaultVisible}),A=!v&&!y&&0!==v,D=r.useMemo((()=>{var e,t;let n=E;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:E),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(sc).forEach((e=>{const c=r&&lc[e]||sc[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,cc.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+i}const p=ic({contentRadius:o,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-p.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=p.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const i=r&&"object"==typeof r?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,p,t,n),a&&(u.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:T?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[E,m,b,S]),P=r.useMemo((()=>0===v?v:y||v||""),[y,v]),R=r.createElement(dc,null,"function"==typeof P?P():P),{getPopupContainer:M,placement:j="top",mouseEnterDelay:F=.1,mouseLeaveDelay:$=.1,overlayStyle:V,rootClassName:B}=e,q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var n,r;L(!A&&t),A||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:Ml(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?Vl(H,{className:W}):H);return Y(r.createElement(Xl.Provider,{value:ie},oe))}));Lc._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:i="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=r.useContext(We),c=l("tooltip",t),[u,p,d]=_c(c),f=Ic(c,a),h=f.arrowStyle,m=Object.assign(Object.assign({},s),f.overlayStyle),v=g()(p,d,c,`${c}-pure`,`${c}-placement-${i}`,n,f.className);return u(r.createElement("div",{className:v,style:h},r.createElement("div",{className:`${c}-arrow`}),r.createElement(zl,Object.assign({},e,{className:p,prefixCls:c,overlayInnerStyle:m}),o)))};const Ac=Lc,Dc=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Pc=e=>{var t;const{className:n,children:i,icon:o,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:p,inlineCollapsed:d}=r.useContext(Dc),{siderCollapsed:f}=r.useContext(it);let h=a;void 0===a?h=c?i:"":!1===a&&(h="");const m={title:h};f||d||(m.title=null,m.open=!1);const v=Ze(i).length;let y=r.createElement(xa,Object.assign({},Ke(e,["title","icon","danger"]),{className:g()({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(o?v+1:v)},n),title:"string"==typeof a?a:void 0}),Vl(o,{className:g()(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=r.createElement("span",{className:`${l}-title-content`},i);return(!o||r.isValidElement(i)&&"span"===i.type)&&i&&e&&c&&"string"==typeof i?r.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):t})(d));return p||(y=r.createElement(Ac,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},Rc=e=>{var t;const{popupClassName:n,icon:i,title:o,theme:a}=e,s=r.useContext(Dc),{prefixCls:l,inlineCollapsed:c,theme:u}=s,p=Go();let d;if(i){const e=r.isValidElement(o)&&"span"===o.type;d=r.createElement(r.Fragment,null,Vl(i,{className:g()(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?o:r.createElement("span",{className:`${l}-title-content`},o))}else d=c&&!p.length&&o&&"string"==typeof o?r.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):r.createElement("span",{className:`${l}-title-content`},o);const f=r.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[h]=tc("Menu");return r.createElement(Dc.Provider,{value:f},r.createElement(ml,Object.assign({},Ke(e,["icon"]),{title:d,popupClassName:g()(l,n,`${l}-${a||u}`),popupStyle:{zIndex:h}})))};var Mc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{if(e&&"object"==typeof e){const n=e,{label:i,children:o,key:a,type:s}=n,l=Mc(n,["label","children","key","type"]),c=null!=a?a:`tmp-${t}`;return o||"group"===s?"group"===s?r.createElement(bl,Object.assign({key:c},l,{title:i}),jc(o)):r.createElement(Rc,Object.assign({key:c},l,{title:i}),jc(o)):"divider"===s?r.createElement(ql,Object.assign({key:c},l)):r.createElement(Pc,Object.assign({key:c},l),i)}return null})).filter((e=>e))}function Fc(e){return r.useMemo((()=>e?jc(e):e),[e])}const $c=r.createContext(null),Vc=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Bc={"slide-up":{inKeyframes:new or("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new or("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new or("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new or("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new or("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new or("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new or("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new or("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},qc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Bc[t];return[mc(r,i,o,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},zc=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Rt(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Gc=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Rt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Rt(n)})`}}}}},Qc=e=>Object.assign({},br(e)),Uc=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:o,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:d,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:E,dangerItemColor:w,dangerItemHoverColor:T,dangerItemSelectedColor:S,dangerItemActiveBg:k,dangerItemSelectedBg:O,popupBg:x,itemHoverBg:C,itemActiveBg:_,menuSubMenuBg:N,horizontalItemSelectedColor:I,horizontalItemSelectedBg:L,horizontalItemBorderRadius:A,horizontalItemHoverBg:D}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Qc(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Qc(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:x},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:x},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${Rt(c)} solid transparent`,transition:`border-color ${d} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Rt(p)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Rt(u)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${f}`,`opacity ${g} ${f}`].join(",")}}}}}},Hc=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l}=e,c=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Rt(n),paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Rt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:c}}},Kc=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:p,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:Rt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Hc(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Hc(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Rt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Rt(e.calc(p).div(2).equal())} - ${Rt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Rt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},mr),{paddingInline:f})}}]},Wc=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Yc=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Rt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Rt(a)})`}}}}},Xc=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:p,borderRadiusLG:d,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Rt(s)} ${Rt(l)}`,fontSize:y,lineHeight:v,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Wc(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Rt(e.calc(r).mul(2).equal())} ${Rt(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},Wc(e)),Yc(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Yc(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Rt(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Rt(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Rt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Rt(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Rt(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Jc=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:p,colorFillContent:d,lineWidth:f,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:E,padding:w,fontSize:T,controlHeightSM:S,fontSizeLG:k,colorTextLightSolid:O,colorErrorHover:x}=e,C=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,_=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,N=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new kr(O).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:d,itemActiveBg:m,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:C,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:_,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:E,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:T,iconMarginInlineEnd:S-T,collapsedIconSize:k,groupTitleFontSize:T,darkItemDisabledColor:new kr(O).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:O,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:C?`calc(100% + ${_}px)`:`calc(100% - ${2*N}px)`}},Zc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=pi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:p,darkGroupTitleColor:d,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,E=e.calc(r).div(7).mul(5).equal(),w=oi(e,{menuArrowSize:E,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(E).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),T=oi(w,{itemColor:i,itemHoverColor:f,groupTitleColor:d,itemSelectedColor:l,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:h,dangerItemColor:o,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Xc(w),zc(w),Kc(w),Uc(w,"light"),Uc(T,"dark"),Gc(w),Vc(w),qc(w,"slide-up"),qc(w,"slide-down"),Sc(w,"zoom-big")]}),Jc,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)};function eu(e){return null===e||!1===e}const tu=(0,r.forwardRef)(((e,t)=>{var n;const i=r.useContext($c),o=i||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=r.useContext(We),u=a(),{prefixCls:p,className:d,style:f,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:y,siderCollapsed:b,items:E,children:w,rootClassName:T,mode:S,selectable:k,onClick:O,overflowedIndicatorPopupClassName:x}=e,C=Ke(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ivoid 0!==b?b:y),[y,b]),D={horizontal:{motionName:`${u}-slide-up`},inline:jl(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",p||o.prefixCls),R=Bl(P),[M,j,F]=Zc(P,R,!i),$=g()(`${P}-${h}`,null==c?void 0:c.className,d),V=r.useMemo((()=>{var e,t;if("function"==typeof m||eu(m))return m||null;if("function"==typeof o.expandIcon||eu(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||eu(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const n=null!==(e=null!=m?m:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==c?void 0:c.expandIcon;return Vl(n,{className:g()(`${P}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null==o?void 0:o.expandIcon,null==c?void 0:c.expandIcon,P]),B=r.useMemo((()=>({prefixCls:P,inlineCollapsed:A||!1,direction:l,firstLevel:!0,theme:h,mode:I,disableMenuItemTitleTooltip:v})),[P,A,l,v,h]);return M(r.createElement($c.Provider,{value:null},r.createElement(Dc.Provider,{value:B},r.createElement(_l,Object.assign({getPopupContainer:s,overflowedIndicator:r.createElement(Ll,null),overflowedIndicatorPopupClassName:g()(P,`${P}-${h}`,x),mode:I,selectable:L,onClick:N},C,{inlineCollapsed:A,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:$,prefixCls:P,direction:l,defaultMotions:D,expandIcon:V,ref:t,rootClassName:g()(T,j,o.rootClassName,F,R)}),_))))})),nu=tu,ru=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),i=r.useContext(it);return(0,r.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),r.createElement(nu,Object.assign({ref:n},e,i))}));ru.Item=Pc,ru.SubMenu=Rc,ru.Divider=ql,ru.ItemGroup=bl;const iu=ru;var ou=n(2833),au=n.n(ou);const su=function(e){function t(e,r,l,c,d){for(var f,h,m,g,E,T=0,S=0,k=0,O=0,x=0,A=0,P=m=f=0,M=0,j=0,F=0,$=0,V=l.length,B=V-1,q="",z="",G="",Q="";Mf)&&($=(q=q.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Ou=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&ku(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=_u&&(_u=t+1),xu.set(e,t),Cu.set(t,e)},Au="style["+wu+'][data-styled-version="5.3.5"]',Du=new RegExp("^"+wu+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Pu=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(wu))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(wu,"active"),r.setAttribute("data-styled-version","5.3.5");var a=Mu();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Fu=function(){function e(e){var t=this.element=ju(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Gu=/(a)(d)/gi,Qu=function(e){return String.fromCharCode(e+(e>25?39:97))};function Uu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Qu(t%52)+n;return(Qu(t%52)+n).replace(Gu,"$1-$2")}var Hu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ku=function(e){return Hu(5381,e)};function Wu(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Hu(this.baseHash,n.hash),u="",p=0;p>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),Ju=/^\s*\/\/.*$/gm,Zu=[":","[",".","#"];function ep(e){var t,n,r,i,o=void 0===e?vu:e,a=o.options,s=void 0===a?vu:a,l=o.plugins,c=void 0===l?gu:l,u=new su(s),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,p){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),f=function(e,r,o){return 0===r&&-1!==Zu.indexOf(o[n.length])||o.match(i)?e:"."+t};function h(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Ju,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),h.hash=c.length?c.reduce((function(e,t){return t.name||ku(15),Hu(e,t.name)}),5381).toString():"",h}var tp=i().createContext(),np=(tp.Consumer,i().createContext()),rp=(np.Consumer,new zu),ip=ep();function op(){return(0,r.useContext)(tp)||rp}function ap(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],o=t[1],a=op(),s=(0,r.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,r.useMemo)((function(){return ep({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,r.useEffect)((function(){au()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(tp.Provider,{value:s},i().createElement(np.Provider,{value:l},e.children))}var sp=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ip);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return ku(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ip),this.name+e.hash},e}(),lp=/([A-Z])/,cp=/([A-Z])/g,up=/^ms-/,pp=function(e){return"-"+e.toLowerCase()};function dp(e){return lp.test(e)?e.replace(cp,pp).replace(up,"-ms-"):e}var fp=function(e){return null==e||!1===e||""===e};function hp(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,yp=/(^-|-$)/g;function bp(e){return e.replace(vp,"-").replace(yp,"")}function Ep(e){return"string"==typeof e&&!0}var wp=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Tp=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Sp(e,t,n){var r=e[n];wp(t)&&wp(r)?kp(r,t):e[n]=t}function kp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.5"+n+xp[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,p=t.displayName,d=void 0===p?function(e){return Ep(e)?"styled."+e:"Styled("+bu(e)+")"}(e):p,f=t.displayName&&t.componentId?bp(t.displayName)+"-"+t.componentId:t.componentId||u,h=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,m=t.shouldForwardProp;o&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var g,v=new Xu(n,f,o?e.componentStyle:void 0),y=v.isStatic&&0===l.length,b=function(e,t){return function(e,t,n,i){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,p=e.target,d=function(e,t,n){void 0===e&&(e=vu);var r=fu({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in yu(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(function(e,t,n){return void 0===n&&(n=vu),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,r.useContext)(Op),s)||vu,t,o),f=d[0],h=d[1],m=function(e,t,n,i){var o=op(),a=(0,r.useContext)(np)||ip;return t?e.generateAndInjectStyles(vu,o,a):e.generateAndInjectStyles(n,o,a)}(a,i,f),g=n,v=h.$as||t.$as||h.as||t.as||p,y=Ep(v),b=h!==t?fu({},t,{},h):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(c?c(w,uu,v):!y||uu(w))&&(E[w]=b[w]));return t.style&&h.style!==t.style&&(E.style=fu({},t.style,{},h.style)),E.className=Array.prototype.concat(l,u,m!==u?m:null,t.className,h.className).filter(Boolean).join(" "),E.ref=g,(0,r.createElement)(v,E)}(g,e,t,y)};return b.displayName=d,(g=i().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=m,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):gu,g.styledComponentId=f,g.target=o?e.target:e,g.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ep(e)?e:bp(bu(e)));return Cp(e,fu({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?kp({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},a&&du()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var _p,Np=function(e){return function e(t,n,r){if(void 0===r&&(r=vu),!(0,Je.isValidElementType)(n))return ku(1,String(n));var i=function(){return t(n,r,gp.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,fu({},r,{},i))},i.attrs=function(i){return e(t,n,fu({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Cp,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Np[e]=Np(e)})),(_p=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Wu(e),zu.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var i=r(hp(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},_p.removeStyles=function(e,t){t.clearRules(this.componentId+e)},_p.renderStyles=function(e,t,n,r){e>2&&zu.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Mu();return""},this.getStyleTags=function(){return e.sealed?ku(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return ku(2);var n=((t={})[wu]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Mu();return r&&(n.nonce=r),[i().createElement("style",fu({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new zu({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?ku(2):i().createElement(ap,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return ku(3)}}();const Ip=Np;var Lp=n(3408);const Ap=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},gr(e)),{borderBlockStart:`${Rt(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Rt(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Rt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Rt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Rt(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Rt(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Dp=pi("Divider",(e=>{const t=oi(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Ap(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const Pp=e=>{const{getPrefixCls:t,direction:n,divider:i}=r.useContext(We),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:p,dashed:d,plain:f,style:h}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?`-${s}`:s,T=!!p,S="left"===s&&null!=l,k="right"===s&&null!=l,O=g()(v,null==i?void 0:i.className,b,E,`${v}-${a}`,{[`${v}-with-text`]:T,[`${v}-with-text${w}`]:T,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!f,[`${v}-rtl`]:"rtl"===n,[`${v}-no-default-orientation-margin-left`]:S,[`${v}-no-default-orientation-margin-right`]:k},c,u),x=r.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),C=Object.assign(Object.assign({},S&&{marginLeft:x}),k&&{marginRight:x});return y(r.createElement("div",Object.assign({className:O,style:Object.assign(Object.assign({},null==i?void 0:i.style),h)},m,{role:"separator"}),p&&"vertical"!==a&&r.createElement("span",{className:`${v}-inner-text`,style:C},p)))},Rp=["xxl","xl","lg","md","sm","xs"];const Mp=(0,r.createContext)({}),jp=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Fp=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let e=i;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/i*100}%`,maxWidth:e/i*100+"%"}],o[`${r}${t}-push-${e}`]={insetInlineStart:e/i*100+"%"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:e/i*100+"%"},o[`${r}${t}-offset-${e}`]={marginInlineStart:e/i*100+"%"},o[`${r}${t}-order-${e}`]={order:e});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),$p=pi("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),Vp=pi("Grid",(e=>{const t=oi(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[jp(t),Fp(t,""),Fp(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Rt(t)})`]:Object.assign({},Fp(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function Bp(e,t){const[n,i]=r.useState("string"==typeof e?e:"");return r.useEffect((()=>{(()=>{if("string"==typeof e&&i(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:a,className:s,style:l,children:c,gutter:u=0,wrap:p}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Rp).reverse();return n.forEach(((e,r)=>{const i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],i=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},o=window.matchMedia(n);o.addListener(i),this.matchHandlers[n]={mql:o,listener:i},i(o)}))},responsiveMap:t}}),[e])}();r.useEffect((()=>{const e=S.subscribe((e=>{b(e);const t=T.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&v(e)}));return()=>S.unsubscribe(e)}),[]);const k=f("row",n),[O,x,C]=$p(k),_=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?_[0]/-2:void 0;L&&(I.marginLeft=L,I.marginRight=L);const[A,D]=_;I.rowGap=D;const P=r.useMemo((()=>({gutter:[A,D],wrap:p})),[A,D,p]);return O(r.createElement(Mp.Provider,{value:P},r.createElement("div",Object.assign({},d,{className:N,style:Object.assign(Object.assign({},I),l),ref:t}),c)))})),zp=qp;function Gp(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Qp=["xs","sm","md","lg","xl","xxl"],Up=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i}=r.useContext(We),{gutter:o,wrap:a}=r.useContext(Mp),{prefixCls:s,span:l,order:c,offset:u,push:p,pull:d,className:f,children:h,flex:m,style:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete y[t],k=Object.assign(Object.assign({},k),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===i}),n.flex&&(k[`${b}-${t}-flex`]=!0,S[`--${b}-${t}-flex`]=Gp(n.flex))}));const O=g()(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${p}`]:p,[`${b}-pull-${d}`]:d},f,k,w,T),x={};if(o&&o[0]>0){const e=o[0]/2;x.paddingLeft=e,x.paddingRight=e}return m&&(x.flex=Gp(m),!1!==a||x.minWidth||(x.minWidth=0)),E(r.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},x),v),S),className:O,ref:t}),h))})),Hp=Up,Kp=r.createContext(void 0),Wp=e=>{const t=i().useContext(Kp);return i().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Yp=e=>{const{prefixCls:t,className:n,style:i,size:o,shape:a}=e,s=g()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=g()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),c=r.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return r.createElement("span",{className:g()(t,s,l,n),style:Object.assign(Object.assign({},c),i)})},Xp=new or("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Jp=e=>({height:e,lineHeight:Rt(e)}),Zp=e=>Object.assign({width:e},Jp(e)),ed=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Xp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),td=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Jp(e)),nd=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Zp(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Zp(i)),[`${t}${t}-sm`]:Object.assign({},Zp(o))}},rd=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},td(t,s)),[`${r}-lg`]:Object.assign({},td(i,s)),[`${r}-sm`]:Object.assign({},td(o,s))}},id=e=>Object.assign({width:e},Jp(e)),od=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},id(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},id(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ad=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},sd=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Jp(e)),ld=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},sd(r,s))},ad(e,r,n)),{[`${n}-lg`]:Object.assign({},sd(i,s))}),ad(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},sd(o,s))}),ad(e,o,`${n}-sm`))},cd=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:p,padding:d,marginSM:f,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},Zp(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Zp(c)),[`${n}-sm`]:Object.assign({},Zp(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:p,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[`${i}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:p,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:f,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ld(e)),nd(e)),rd(e)),od(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${i} > li,\n ${n},\n ${o},\n ${a},\n ${s}\n `]:Object.assign({},ed(e))}}},ud=pi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=oi(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[cd(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var dd=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:pd}))};const fd=r.forwardRef(dd),hd=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},md=e=>{const{prefixCls:t,className:n,style:i,rows:o}=e,a=He(Array(o)).map(((t,n)=>r.createElement("li",{key:n,style:{width:hd(n,e)}})));return r.createElement("ul",{className:g()(t,n),style:i},a)},gd=e=>{let{prefixCls:t,className:n,width:i,style:o}=e;return r.createElement("h3",{className:g()(t,n),style:Object.assign({width:i},o)})};function vd(e){return e&&"object"==typeof e?e:{}}const yd=e=>{const{prefixCls:t,loading:n,className:i,rootClassName:o,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:p,round:d}=e,{getPrefixCls:f,direction:h,skeleton:m}=r.useContext(We),v=f("skeleton",t),[y,b,E]=ud(v);if(n||!("loading"in e)){const e=!!l,t=!!c,n=!!u;let s,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),vd(l));s=r.createElement("div",{className:`${v}-header`},r.createElement(Yp,Object.assign({},e)))}if(t||n){let i,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),vd(c));i=r.createElement(gd,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),vd(u));o=r.createElement(md,Object.assign({},n))}f=r.createElement("div",{className:`${v}-content`},i,o)}const w=g()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:p,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:d},null==m?void 0:m.className,i,o,b,E);return y(r.createElement("div",{className:w,style:Object.assign(Object.assign({},null==m?void 0:m.style),a)},s,f))}return null!=s?s:null};yd.Button=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=r.useContext(We),c=l("skeleton",t),[u,p,d]=ud(c),f=Ke(e,["prefixCls"]),h=g()(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,i,p,d);return u(r.createElement("div",{className:h},r.createElement(Yp,Object.assign({prefixCls:`${c}-button`,size:s},f))))},yd.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=r.useContext(We),c=l("skeleton",t),[u,p,d]=ud(c),f=Ke(e,["prefixCls","className"]),h=g()(c,`${c}-element`,{[`${c}-active`]:o},n,i,p,d);return u(r.createElement("div",{className:h},r.createElement(Yp,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},f))))},yd.Input=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a,size:s="default"}=e,{getPrefixCls:l}=r.useContext(We),c=l("skeleton",t),[u,p,d]=ud(c),f=Ke(e,["prefixCls"]),h=g()(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,i,p,d);return u(r.createElement("div",{className:h},r.createElement(Yp,Object.assign({prefixCls:`${c}-input`,size:s},f))))},yd.Image=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a}=e,{getPrefixCls:s}=r.useContext(We),l=s("skeleton",t),[c,u,p]=ud(l),d=g()(l,`${l}-element`,{[`${l}-active`]:a},n,i,u,p);return c(r.createElement("div",{className:d},r.createElement("div",{className:g()(`${l}-image`,n),style:o},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},yd.Node=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a,children:s}=e,{getPrefixCls:l}=r.useContext(We),c=l("skeleton",t),[u,p,d]=ud(c),f=g()(c,`${c}-element`,{[`${c}-active`]:a},p,n,i,d),h=null!=s?s:r.createElement(fd,null);return u(r.createElement("div",{className:f},r.createElement("div",{className:g()(`${c}-image`,n),style:o},h)))};const bd=yd,Ed={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var wd=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:Ed}))};const Td=r.forwardRef(wd),Sd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var kd=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:Sd}))};const Od=r.forwardRef(kd),xd=(0,r.createContext)(null);var Cd={width:0,height:0,left:0,top:0};function _d(e,t){var n=r.useRef(e),i=u(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var Nd=Math.pow(.995,20);function Id(e){var t=u((0,r.useState)(0),2),n=t[0],i=t[1],o=(0,r.useRef)(0),a=(0,r.useRef)();return a.current=e,qt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}var Ld={width:0,height:0,left:0,top:0,right:0};function Ad(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Dd(e){return String(e).replace(/"/g,"TABS_DQ")}function Pd(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Rd=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.editable,o=e.locale,a=e.style;return i&&!1!==i.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}));const Md=Rd;var jd=r.forwardRef((function(e,t){var n,i=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==p(a)||r.isValidElement(a)?s.right=a:s=a,"right"===i&&(n=s.right),"left"===i&&(n=s.left),n?r.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));const Fd=jd;var $d=Yo.ESC,Vd=Yo.TAB;const Bd=(0,r.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,s=(0,r.useMemo)((function(){return"function"==typeof n?n():n}),[n]),l=dr(t,null==s?void 0:s.ref);return i().createElement(i().Fragment,null,o&&i().createElement("div",{className:"".concat(a,"-arrow")}),i().cloneElement(s,{ref:hr(s)?l:void 0}))}));var qd={adjustX:1,adjustY:1},zd=[0,0];const Gd={topLeft:{points:["bl","tl"],overflow:qd,offset:[0,-4],targetOffset:zd},top:{points:["bc","tc"],overflow:qd,offset:[0,-4],targetOffset:zd},topRight:{points:["br","tr"],overflow:qd,offset:[0,-4],targetOffset:zd},bottomLeft:{points:["tl","bl"],overflow:qd,offset:[0,4],targetOffset:zd},bottom:{points:["tc","bc"],overflow:qd,offset:[0,4],targetOffset:zd},bottomRight:{points:["tr","br"],overflow:qd,offset:[0,4],targetOffset:zd}};var Qd=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ud(e,t){var n,o=e.arrow,s=void 0!==o&&o,l=e.prefixCls,c=void 0===l?"rc-dropdown":l,p=e.transitionName,d=e.animation,m=e.align,v=e.placement,y=void 0===v?"bottomLeft":v,b=e.placements,E=void 0===b?Gd:b,w=e.getPopupContainer,T=e.showAction,S=e.hideAction,k=e.overlayClassName,O=e.overlayStyle,x=e.visible,C=e.trigger,_=void 0===C?["hover"]:C,N=e.autoFocus,I=e.overlay,L=e.children,A=e.onVisibleChange,D=h(e,Qd),P=u(i().useState(),2),R=P[0],M=P[1],j="visible"in e?x:R,F=i().useRef(null),$=i().useRef(null),V=i().useRef(null);i().useImperativeHandle(t,(function(){return F.current}));var B=function(e){M(e),null==A||A(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=r.useRef(!1),l=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case $d:l();break;case Vd:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),o&&yo(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:j,triggerRef:V,onVisibleChange:B,autoFocus:N,overlayRef:$});var q,z,G,Q=function(){return i().createElement(Bd,{ref:$,overlay:I,prefixCls:c,arrow:s})},U=i().cloneElement(L,{className:g()(null===(n=L.props)||void 0===n?void 0:n.className,j&&(q=e.openClassName,void 0!==q?q:"".concat(c,"-open"))),ref:hr(L)?dr(V,L.ref):void 0}),H=S;return H||-1===_.indexOf("contextMenu")||(H=["click"]),i().createElement(il,a({builtinPlacements:E},D,{prefixCls:c,ref:F,popupClassName:g()(k,f({},"".concat(c,"-show-arrow"),s)),popupStyle:O,action:_,showAction:T,hideAction:H,popupPlacement:y,popupAlign:m,popupTransitionName:p,popupAnimation:d,popupVisible:j,stretch:(z=e.minOverlayWidthMatchTrigger,G=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!G)?"minWidth":""),popup:"function"==typeof I?Q:Q(),onPopupVisibleChange:B,onPopupClick:function(t){var n=e.onOverlayClick;M(!1),n&&n(t)},getPopupContainer:w}),U)}const Hd=i().forwardRef(Ud);var Kd=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.id,o=e.tabs,a=e.locale,s=e.mobile,l=e.moreIcon,c=void 0===l?"More":l,p=e.moreTransitionName,d=e.style,h=e.className,m=e.editable,v=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,E=e.onTabClick,w=e.getPopupContainer,T=e.popupClassName,S=u((0,r.useState)(!1),2),k=S[0],O=S[1],x=u((0,r.useState)(null),2),C=x[0],_=x[1],N="".concat(i,"-more-popup"),I="".concat(n,"-dropdown"),L=null!==C?"".concat(N,"-").concat(C):null,A=null==a?void 0:a.dropdownAriaLabel,D=r.createElement(_l,{onClick:function(e){var t=e.key,n=e.domEvent;E(t,n),O(!1)},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[C],"aria-label":void 0!==A?A:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,s=e.label,l=Pd(t,o,m,n);return r.createElement(xa,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,s),l&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},o||m.removeIcon||"×"))})));function P(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===C}))||0,r=t.length,i=0;it?"left":"right"})})),V=u($,2),B=V[0],q=V[1],z=_d(0,(function(e,t){!F&&x&&x({direction:e>t?"top":"bottom"})})),G=u(z,2),Q=G[0],U=G[1],H=u((0,r.useState)([0,0]),2),K=H[0],W=H[1],Y=u((0,r.useState)([0,0]),2),X=Y[0],J=Y[1],Z=u((0,r.useState)([0,0]),2),ee=Z[0],ne=Z[1],re=u((0,r.useState)([0,0]),2),ie=re[0],oe=re[1],ae=(n=new Map,o=(0,r.useRef)([]),s=u((0,r.useState)({}),2)[1],l=(0,r.useRef)("function"==typeof n?n():n),c=Id((function(){var e=l.current;o.current.forEach((function(t){e=t(e)})),o.current=[],l.current=e,s({})})),[l.current,function(e){o.current.push(e),c()}]),se=u(ae,2),le=se[0],ce=se[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Cd,o=i.left+i.width,a=0;abe?be:e}F&&y?(ye=0,be=Math.max(0,de-ge)):(ye=Math.min(0,ge-de),be=0);var we=(0,r.useRef)(null),Te=u((0,r.useState)(),2),Se=Te[0],ke=Te[1];function Oe(){ke(Date.now())}function xe(){we.current&&clearTimeout(we.current)}!function(e,t){var n=u((0,r.useState)(),2),i=n[0],o=n[1],a=u((0,r.useState)(0),2),s=a[0],l=a[1],c=u((0,r.useState)(0),2),p=c[0],d=c[1],f=u((0,r.useState)(),2),h=f[0],m=f[1],g=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY;o({x:r,y:a});var c=r-i.x,u=a-i.y;t(c,u);var p=Date.now();l(p),d(p-s),m({x:c,y:u})}},onTouchEnd:function(){if(i&&(o(null),m(null),h)){var e=h.x/p,n=h.y/p,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var s=e,l=n;g.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(g.current):t(20*(s*=Nd),20*(l*=Nd))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,o=Math.abs(n),a=Math.abs(r);o===a?i="x"===v.current?n:r:o>a?(i=n,v.current="x"):(i=r,v.current="y"),t(-i,-i)&&e.preventDefault()}},r.useEffect((function(){function t(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){y.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(P,(function(e,t){function n(e,t){e((function(e){return Ee(e+t)}))}return!!me&&(F?n(q,e):n(U,t),xe(),Oe(),!0)})),(0,r.useEffect)((function(){return xe(),Se&&(we.current=setTimeout((function(){ke(0)}),100)),xe}),[Se]);var Ce=function(e,t,n,i,o,a,s){var l,c,u,p=s.tabs,d=s.tabPosition,f=s.rtl;return["top","bottom"].includes(d)?(l="width",c=f?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),(0,r.useMemo)((function(){if(!p.length)return[0,0];for(var n=p.length,r=n,i=0;iu+t){r=i-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(p[s].key)||Ld)[c]=r?[0,0]:[a,r]}),[e,t,i,o,a,u,d,p.map((function(e){return e.key})).join("_"),f])}(ue,ge,F?B:Q,de,fe,he,te(te({},e),{},{tabs:I})),_e=u(Ce,2),Ne=_e[0],Ie=_e[1],Le=sr((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(F){var n=B;y?t.rightB+ge&&(n=t.right+t.width-ge):t.left<-B?n=-t.left:t.left+t.width>-B+ge&&(n=-(t.left+t.width-ge)),U(0),q(Ee(n))}else{var r=Q;t.top<-Q?r=-t.top:t.top+t.height>-Q+ge&&(r=-(t.top+t.height-ge)),q(0),U(Ee(r))}})),Ae={};"top"===T||"bottom"===T?Ae[y?"marginRight":"marginLeft"]=S:Ae.marginTop=S;var De=I.map((function(e,t){var n=e.key;return r.createElement(Yd,{id:h,prefixCls:N,key:n,tab:e,style:0===t?void 0:Ae,closable:e.closable,editable:E,active:n===v,renderWrapper:k,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){O(n,e)},onFocus:function(){Le(n),Oe(),P.current&&(y||(P.current.scrollLeft=0),P.current.scrollTop=0)}})})),Pe=function(){return ce((function(){var e,t=new Map,n=null===(e=R.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var r,i=e.key,o=null===(r=R.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Dd(i),'"]'));if(o){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,i=e.offsetTop,o=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,r,o,i]}(o,n),s=u(a,4),l=s[0],c=s[1],p=s[2],d=s[3];t.set(i,{width:l,height:c,left:p,top:d})}})),t}))};(0,r.useEffect)((function(){Pe()}),[I.map((function(e){return e.key})).join("_")]);var Re=Id((function(){var e=Xd(L),t=Xd(A),n=Xd(D);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Xd(j);ne(r);var i=Xd(M);oe(i);var o=Xd(R);J([o[0]-r[0],o[1]-r[1]]),Pe()})),Me=I.slice(0,Ne),je=I.slice(Ie+1),Fe=[].concat(He(Me),He(je)),$e=ue.get(v),Ve=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,a=e.indicator,s=void 0===a?{}:a,l=s.size,c=s.align,p=void 0===c?"center":c,d=u((0,r.useState)(),2),f=d[0],h=d[1],m=(0,r.useRef)(),g=i().useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){yo.cancel(m.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var r=o?"right":"left";"start"===p&&(e[r]=t[r]),"center"===p&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===p&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===p&&(e.top=t.top),"center"===p&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===p&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=yo((function(){h(e)})),v}),[t,n,o,p,g]),{style:f}}({activeTabOffset:$e,horizontal:F,indicator:C,rtl:y}).style;(0,r.useEffect)((function(){Le()}),[v,ye,be,Ad($e),Ad(ue),F]),(0,r.useEffect)((function(){Re()}),[y]);var Be,qe,ze,Ge,Qe=!!Fe.length,Ue="".concat(N,"-nav-wrap");return F?y?(qe=B>0,Be=B!==be):(Be=B<0,qe=B!==ye):(ze=Q<0,Ge=Q!==ye),r.createElement(oo,{onResize:Re},r.createElement("div",{ref:fr(t,L),role:"tablist",className:g()("".concat(N,"-nav"),p),style:d,onKeyDown:function(){Oe()}},r.createElement(Fd,{ref:A,position:"left",extra:b,prefixCls:N}),r.createElement(oo,{onResize:Re},r.createElement("div",{className:g()(Ue,f(f(f(f({},"".concat(Ue,"-ping-left"),Be),"".concat(Ue,"-ping-right"),qe),"".concat(Ue,"-ping-top"),ze),"".concat(Ue,"-ping-bottom"),Ge)),ref:P},r.createElement(oo,{onResize:Re},r.createElement("div",{ref:R,className:"".concat(N,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(Q,"px)"),transition:Se?"none":void 0}},De,r.createElement(Md,{ref:j,prefixCls:N,locale:w,editable:E,style:te(te({},0===De.length?void 0:Ae),{},{visibility:Qe?"hidden":null})}),r.createElement("div",{className:g()("".concat(N,"-ink-bar"),f({},"".concat(N,"-ink-bar-animated"),m.inkBar)),style:Ve}))))),r.createElement(Wd,a({},e,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:M,prefixCls:N,tabs:Fe,className:!Qe&&ve,tabMoving:!!Se})),r.createElement(Fd,{ref:D,position:"right",extra:b,prefixCls:N})))}));const ef=Zd;var tf=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,o=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:o,className:g()(n,s&&"".concat(n,"-active"),i),ref:t},c)}));const nf=tf;var rf=["renderTabBar"],of=["label","key"];const af=function(e){var t=e.renderTabBar,n=h(e,rf),i=r.useContext(xd).tabs;return t?t(te(te({},n),{},{panes:i.map((function(e){var t=e.label,n=e.key,i=h(e,of);return r.createElement(nf,a({tab:t,key:n,tabKey:n},i))}))}),ef):r.createElement(ef,n)};var sf=["key","forceRender","style","className","destroyInactiveTabPane"];const lf=function(e){var t=e.id,n=e.activeKey,i=e.animated,o=e.tabPosition,s=e.destroyInactiveTabPane,l=r.useContext(xd),c=l.prefixCls,u=l.tabs,p=i.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:g()("".concat(c,"-content-holder"))},r.createElement("div",{className:g()("".concat(c,"-content"),"".concat(c,"-content-").concat(o),f({},"".concat(c,"-content-animated"),p))},u.map((function(e){var o=e.key,l=e.forceRender,c=e.style,u=e.className,f=e.destroyInactiveTabPane,m=h(e,sf),v=o===n;return r.createElement(Ps,a({key:o,visible:v,forceRender:l,removeOnLeave:!(!s&&!f),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),(function(e,n){var i=e.style,s=e.className;return r.createElement(nf,a({},m,{prefixCls:d,id:t,tabKey:o,animated:p,active:v,style:te(te({},c),i),className:g()(u,s),ref:n}))}))}))))};var cf=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uf=0,pf=r.forwardRef((function(e,t){var n=e.id,i=e.prefixCls,o=void 0===i?"rc-tabs":i,s=e.className,l=e.items,c=e.direction,d=e.activeKey,m=e.defaultActiveKey,v=e.editable,y=e.animated,b=e.tabPosition,E=void 0===b?"top":b,w=e.tabBarGutter,T=e.tabBarStyle,S=e.tabBarExtraContent,k=e.locale,O=e.moreIcon,x=e.moreTransitionName,C=e.destroyInactiveTabPane,_=e.renderTabBar,N=e.onChange,I=e.onTabClick,L=e.onTabScroll,A=e.getPopupContainer,D=e.popupClassName,P=e.indicator,R=h(e,cf),M=r.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===p(e)&&"key"in e}))}),[l]),j="rtl"===c,F=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:te({inkBar:!0},"object"===p(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(y),$=u((0,r.useState)(!1),2),V=$[0],B=$[1];(0,r.useEffect)((function(){B(Ga())}),[]);var q=u(ur((function(){var e;return null===(e=M[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:m}),2),z=q[0],G=q[1],Q=u((0,r.useState)((function(){return M.findIndex((function(e){return e.key===z}))})),2),U=Q[0],H=Q[1];(0,r.useEffect)((function(){var e,t=M.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(U,M.length-1)),G(null===(e=M[t])||void 0===e?void 0:e.key)),H(t)}),[M.map((function(e){return e.key})).join("_"),z,U]);var K=u(ur(null,{value:n}),2),W=K[0],Y=K[1];(0,r.useEffect)((function(){n||(Y("rc-tabs-".concat(uf)),uf+=1)}),[]);var X={id:W,activeKey:z,animated:F,tabPosition:E,rtl:j,mobile:V},J=te(te({},X),{},{editable:v,locale:k,moreIcon:O,moreTransitionName:x,tabBarGutter:w,onTabClick:function(e,t){null==I||I(e,t);var n=e!==z;G(e),n&&(null==N||N(e))},onTabScroll:L,extra:S,style:T,panes:null,getPopupContainer:A,popupClassName:D,indicator:P});return r.createElement(xd.Provider,{value:{tabs:M,prefixCls:o}},r.createElement("div",a({ref:t,id:n,className:g()(o,"".concat(o,"-").concat(E),f(f(f({},"".concat(o,"-mobile"),V),"".concat(o,"-editable"),v),"".concat(o,"-rtl"),j),s)},R),r.createElement(af,a({},J,{renderTabBar:_})),r.createElement(lf,a({destroyInactiveTabPane:C},X,{animated:F}))))}));const df=pf,ff={motionAppear:!1,motionEnter:!0,motionLeave:!0};const hf=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[qc(e,"slide-up"),qc(e,"slide-down")]]},mf=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Rt(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Rt(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Rt(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Rt(e.borderRadiusLG)} 0 0 ${Rt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},gf=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},gr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Rt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},mr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Rt(e.paddingXXS)} ${Rt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},vf=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Rt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Rt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},yf=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Rt(e.borderRadius)} ${Rt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Rt(e.borderRadius)} ${Rt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Rt(e.borderRadius)} ${Rt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Rt(e.borderRadius)} 0 0 ${Rt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},bf=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Er(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},Ef=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Rt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Rt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Rt(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},wf=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${Rt(e.paddingXS)}`,background:"transparent",border:`${Rt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Er(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),bf(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Tf=pi("Tabs",(e=>{const t=oi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Rt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Rt(e.horizontalItemGutter)}`});return[yf(t),Ef(t),vf(t),gf(t),mf(t),wf(t),hf(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const Sf=e=>{var t,n,i,o,a,s,l,c;const{type:u,className:p,rootClassName:d,size:f,onEdit:h,hideAdd:m,centered:v,addIcon:y,removeIcon:b,moreIcon:E,popupClassName:w,children:T,items:S,animated:k,style:O,indicatorSize:x,indicator:C}=e,_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let{key:n,event:r}=t;null==h||h("add"===e?r:n,e)},removeIcon:null!==(t=null!=b?b:null==L?void 0:L.removeIcon)&&void 0!==t?t:r.createElement(Td,null),addIcon:(null!=y?y:null==L?void 0:L.addIcon)||r.createElement(Od,null),showAdd:!0!==m});const V=A(),B=Wp(f),q=function(e,t){if(e)return e;const n=Ze(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:i}=r,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie))}(n)}(S,T),z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},ff),{motionName:Ml(e,"switch")})),t}(P,k),G=Object.assign(Object.assign({},null==L?void 0:L.style),O),Q={align:null!==(n=null==C?void 0:C.align)&&void 0!==n?n:null===(i=null==L?void 0:L.indicator)||void 0===i?void 0:i.align,size:null!==(l=null!==(a=null!==(o=null==C?void 0:C.size)&&void 0!==o?o:x)&&void 0!==a?a:null===(s=null==L?void 0:L.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==L?void 0:L.indicatorSize};return M(r.createElement(df,Object.assign({direction:I,getPopupContainer:D,moreTransitionName:`${V}-slide-up`},_,{items:q,className:g()({[`${P}-${B}`]:B,[`${P}-card`]:["card","editable-card"].includes(u),[`${P}-editable-card`]:"editable-card"===u,[`${P}-centered`]:v},null==L?void 0:L.className,p,d,j,F,R),popupClassName:g()(w,j,F,R),style:G,editable:$,moreIcon:null!==(c=null!=E?E:null==L?void 0:L.moreIcon)&&void 0!==c?c:r.createElement(Ll,null),prefixCls:P,animated:z,indicator:Q})))};Sf.TabPane=()=>null;const kf=Sf;const Of=e=>{var{prefixCls:t,className:n,hoverable:i=!0}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Rt(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},mr),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Cf=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Rt(i)} 0 0 0 ${n},\n 0 ${Rt(i)} 0 0 ${n},\n ${Rt(i)} ${Rt(i)} 0 0 ${n},\n ${Rt(i)} 0 0 0 ${n} inset,\n 0 ${Rt(i)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},_f=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Rt(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Rt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Rt(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Rt(e.lineWidth)} ${e.lineType} ${o}`}}})},Nf=e=>Object.assign(Object.assign({margin:`${Rt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},mr),"&-description":{color:e.colorTextDescription}}),If=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Rt(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Rt(e.padding)} ${Rt(n)}`}}},Lf=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Af=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,cardPaddingBase:s,extraColor:l}=e;return{[n]:Object.assign(Object.assign({},gr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:xf(e),[`${n}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:` 0 0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-grid`]:Cf(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:_f(e),[`${n}-meta`]:Nf(e)}),[`${n}-bordered`]:{border:`${Rt(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:If(e),[`${n}-loading`]:Lf(e),[`${n}-rtl`]:{direction:"rtl"}}},Df=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Rt(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Pf=pi("Card",(e=>{const t=oi(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Af(t),Df(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var Rf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:i}=e;return r.createElement("ul",{className:t,style:i},n.map(((e,t)=>{const i=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:i},r.createElement("span",null,e))})))},jf=r.forwardRef(((e,t)=>{const{prefixCls:n,className:i,rootClassName:o,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:p,bordered:d=!0,size:f,type:h,cover:m,actions:v,tabList:y,children:b,activeTabKey:E,defaultActiveTabKey:w,tabBarExtraContent:T,hoverable:S,tabProps:k={},classNames:O,styles:x}=e,C=Rf(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:N,card:I}=r.useContext(We),L=e=>{var t;return g()(null===(t=null==I?void 0:I.classNames)||void 0===t?void 0:t[e],null==O?void 0:O[e])},A=e=>{var t;return Object.assign(Object.assign({},null===(t=null==I?void 0:I.styles)||void 0===t?void 0:t[e]),null==x?void 0:x[e])},D=r.useMemo((()=>{let e=!1;return r.Children.forEach(b,(t=>{t&&t.type&&t.type===Of&&(e=!0)})),e}),[b]),P=_("card",n),[R,M,j]=Pf(P),F=r.createElement(bd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),$=void 0!==E,V=Object.assign(Object.assign({},k),{[$?"activeKey":"defaultActiveKey"]:$?E:w,tabBarExtraContent:T});let B;const q=Wp(f),z=q&&"default"!==q?q:"large",G=y?r.createElement(kf,Object.assign({size:z},V,{className:`${P}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:y.map((e=>{var{tab:t}=e,n=Rf(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||s||G){const e=g()(`${P}-head`,L("header")),t=g()(`${P}-head-title`,L("title")),n=g()(`${P}-extra`,L("extra")),i=Object.assign(Object.assign({},l),A("header"));B=r.createElement("div",{className:e,style:i},r.createElement("div",{className:`${P}-head-wrapper`},u&&r.createElement("div",{className:t,style:A("title")},u),s&&r.createElement("div",{className:n,style:A("extra")},s)),G)}const Q=g()(`${P}-cover`,L("cover")),U=m?r.createElement("div",{className:Q,style:A("cover")},m):null,H=g()(`${P}-body`,L("body")),K=Object.assign(Object.assign({},c),A("body")),W=r.createElement("div",{className:H,style:K},p?F:b),Y=g()(`${P}-actions`,L("actions")),X=v&&v.length?r.createElement(Mf,{actionClasses:Y,actionStyle:A("actions"),actions:v}):null,J=Ke(C,["onTabChange"]),Z=g()(P,null==I?void 0:I.className,{[`${P}-loading`]:p,[`${P}-bordered`]:d,[`${P}-hoverable`]:S,[`${P}-contain-grid`]:D,[`${P}-contain-tabs`]:y&&y.length,[`${P}-${q}`]:q,[`${P}-type-${h}`]:!!h,[`${P}-rtl`]:"rtl"===N},i,o,M,j),ee=Object.assign(Object.assign({},null==I?void 0:I.style),a);return R(r.createElement("div",Object.assign({ref:t},J,{className:Z,style:ee}),B,U,W,X))}));const Ff=jf;Ff.Grid=Of,Ff.Meta=e=>{const{prefixCls:t,className:n,avatar:i,title:o,description:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},Bf=ui("Wave",(e=>[Vf(e)]));function qf(){qf=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new L(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function y(){}function b(){}function E(){}var w={};c(w,a,(function(){return this}));var T=Object.getPrototypeOf,S=T&&T(T(A([])));S&&S!==n&&r.call(S,a)&&(w=S);var k=E.prototype=y.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==p(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=_(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?g:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function _(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function zf(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Gf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){zf(o,r,i,a,s,"next",e)}function s(e){zf(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Qf,Uf=te({},Oi),Hf=Uf.version,Kf=Uf.render,Wf=Uf.unmountComponentAtNode;try{Number((Hf||"").split(".")[0])>=18&&(Qf=Uf.createRoot)}catch(e){}function Yf(e){var t=Uf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===p(t)&&(t.usingClientEntryPoint=e)}var Xf="__rc_react_root__";function Jf(_x){return Zf.apply(this,arguments)}function Zf(){return(Zf=Gf(qf().mark((function e(t){return qf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Xf])||void 0===e||e.unmount(),delete t[Xf]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function eh(e){Wf(e)}function th(){return(th=Gf(qf().mark((function e(t){return qf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Qf){e.next=2;break}return e.abrupt("return",Jf(t));case 2:eh(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nh(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const rh="ant-wave-target";function ih(e){return Number.isNaN(e)?0:e}const oh=e=>{const{className:t,target:n,component:i}=e,o=r.useRef(null),[a,s]=r.useState(null),[l,c]=r.useState([]),[u,p]=r.useState(0),[d,f]=r.useState(0),[h,m]=r.useState(0),[v,y]=r.useState(0),[b,E]=r.useState(!1),w={left:u,top:d,width:h,height:v,borderRadius:l.map((e=>`${e}px`)).join(" ")};function T(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return nh(t)?t:nh(n)?n:nh(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;p(t?n.offsetLeft:ih(-parseFloat(r))),f(t?n.offsetTop:ih(-parseFloat(i))),m(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([o,a,u,l].map((e=>ih(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),r.useEffect((()=>{if(n){const e=yo((()=>{T(),E(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(T),t.observe(n)),()=>{yo.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const S=("Checkbox"===i||"Radio"===i)&&(null==n?void 0:n.classList.contains(rh));return r.createElement(Ps,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;(function(e){return th.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return r.createElement("div",{ref:o,className:g()(t,{"wave-quick":S},n),style:w})}))},ah=(e,t)=>{var n;const{component:i}=t;if("Checkbox"===i&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),function(e,t){Qf?function(e,t){Yf(!0);var n=t[Xf]||Qf(t);Yf(!1),n.render(e),t[Xf]=n}(e,t):function(e,t){Kf(e,t)}(e,t)}(r.createElement(oh,Object.assign({},t,{target:e})),o)},sh=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:a}=(0,r.useContext)(We),s=(0,r.useRef)(null),l=a("wave"),[,c]=Bf(l),u=function(e,t,n){const{wave:i}=r.useContext(We),[,o,a]=Gr(),s=sr((r=>{const s=e.current;if((null==i?void 0:i.disabled)||!s)return;const l=s.querySelector(`.${rh}`)||s,{showEffect:c}=i||{};(c||ah)(l,{className:t,token:o,component:n,event:r,hashId:a})})),l=r.useRef();return e=>{yo.cancel(l.current),l.current=yo((()=>{s(e)}))}}(s,g()(l,c),o);return i().useEffect((()=>{const e=s.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Ho(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),i().isValidElement(t)?Vl(t,{ref:hr(t)?dr(t.ref,s):s}):null!=t?t:null},lh=r.createContext(!1);const ch=r.createContext(void 0),uh=/^[\u4e00-\u9fa5]{2}$/,ph=uh.test.bind(uh);function dh(e){return"string"==typeof e}function fh(e){return"text"===e||"link"===e}const hh=(0,r.forwardRef)(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,s=g()(`${a}-icon`,n);return i().createElement("span",{ref:t,className:s,style:r},o)})),mh=hh,gh={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var vh=function(e,t){return r.createElement(Re,a({},e,{ref:t,icon:gh}))};const yh=r.forwardRef(vh),bh=(0,r.forwardRef)(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const s=g()(`${n}-loading-icon`,r);return i().createElement(mh,{prefixCls:n,className:s,style:o,ref:t},i().createElement(yh,{className:a}))})),Eh=()=>({width:0,opacity:0,transform:"scale(0)"}),wh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Th=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,s=!!n;return r?i().createElement(bh,{prefixCls:t,className:o,style:a}):i().createElement(Ps,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Eh,onAppearActive:wh,onEnterStart:Eh,onEnterActive:wh,onLeaveStart:wh,onLeaveActive:Eh},((e,n)=>{let{className:r,style:s}=e;return i().createElement(bh,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:r})}))},Sh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),kh=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Sh(`${t}-primary`,i),Sh(`${t}-danger`,o)]}},Oh=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return oi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},xh=e=>{var t,n,r,i,o,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(i=e.contentLineHeight)&&void 0!==i?i:Nr(s),p=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:Nr(l),d=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Nr(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:p,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},Ch=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Rt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Er(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},_h=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Nh=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ih=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Lh=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ah=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},_h(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),Dh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Lh(e))}),Ph=e=>Object.assign({},Dh(e)),Rh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Mh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ph(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),_h(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ah(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},_h(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ah(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Dh(e))}),jh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ph(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),_h(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Ah(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},_h(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ah(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Dh(e))}),Fh=e=>Object.assign(Object.assign({},Mh(e)),{borderStyle:"dashed"}),$h=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},_h(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Rh(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},_h(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Rh(e))}),Vh=e=>Object.assign(Object.assign(Object.assign({},_h(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Rh(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Rh(e)),_h(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Bh=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Mh(e),[`${t}-primary`]:jh(e),[`${t}-dashed`]:Fh(e),[`${t}-link`]:$h(e),[`${t}-text`]:Vh(e),[`${t}-ghost`]:Ah(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},qh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:i,lineHeight:o,height:r,padding:`${Rt(c)} ${Rt(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Nh(e)},{[`${n}${n}-round${t}`]:Ih(e)}]},zh=e=>{const t=oi(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return qh(t,e.componentCls)},Gh=e=>{const t=oi(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return qh(t,`${e.componentCls}-sm`)},Qh=e=>{const t=oi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qh(t,`${e.componentCls}-lg`)},Uh=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Hh=pi("Button",(e=>{const t=Oh(e);return[Ch(t),zh(t),Gh(t),Qh(t),Uh(t),Bh(t),kh(t)]}),xh,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Kh(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Wh(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Yh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Kh(e,r,t)),Wh(n,r,t))}}function Xh(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Jh(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Xh(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Zh=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Rt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Rt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},em=((e,t,n,r)=>{const i=ui(["Button","compact"],(e=>{const t=Oh(e);return[Yh(t),Jh(t),Zh(t)]}),n,Object.assign({resetStyle:!1,order:-998},void 0));return e=>{let{prefixCls:t,rootCls:n=t}=e;return i(t,n),null}})(0,0,xh);const tm=(e,t)=>{var n,o;const{loading:a=!1,prefixCls:s,type:l,danger:c,shape:u="default",size:p,styles:d,disabled:f,className:h,rootClassName:m,children:v,icon:y,ghost:b=!1,block:E=!1,htmlType:w="button",classNames:T,style:S={}}=e,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ifunction(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[F,$]=(0,r.useState)(j.loading),[V,B]=(0,r.useState)(!1),q=dr(t,(0,r.createRef)()),z=1===r.Children.count(v)&&!y&&!fh(O);(0,r.useEffect)((()=>{let e=null;return j.delay>0?e=setTimeout((()=>{e=null,$(!0)}),j.delay):$(j.loading),function(){e&&(clearTimeout(e),e=null)}}),[j]),(0,r.useEffect)((()=>{if(!q||!q.current||!1===C)return;const e=q.current.textContent;z&&ph(e)?V||B(!0):V&&B(!1)}),[q]);const G=t=>{const{onClick:n}=e;F||R?t.preventDefault():null==n||n(t)},Q=!1!==C,{compactSize:U,compactItemClassnames:H}=((e,t)=>{const n=r.useContext(pc),i=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:o}=n,a="vertical"===r?"-vertical-":"-";return g()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:i,[`${e}-compact${a}last-item`]:o,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:i}})(I,_),K=Wp((e=>{var t,n;return null!==(n=null!==(t=null!=p?p:U)&&void 0!==t?t:M)&&void 0!==n?n:e})),W=K&&{large:"lg",small:"sm",middle:void 0}[K]||"",Y=F?"loading":y,X=Ke(k,["navigate"]),J=g()(I,A,D,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${O}`]:O,[`${I}-${W}`]:W,[`${I}-icon-only`]:!v&&0!==v&&!!Y,[`${I}-background-ghost`]:b&&!fh(O),[`${I}-loading`]:F,[`${I}-two-chinese-chars`]:V&&Q&&!F,[`${I}-block`]:E,[`${I}-dangerous`]:!!c,[`${I}-rtl`]:"rtl"===_},H,h,m,null==N?void 0:N.className),Z=Object.assign(Object.assign({},null==N?void 0:N.style),S),ee=g()(null==T?void 0:T.icon,null===(n=null==N?void 0:N.classNames)||void 0===n?void 0:n.icon),te=Object.assign(Object.assign({},(null==d?void 0:d.icon)||{}),(null===(o=null==N?void 0:N.styles)||void 0===o?void 0:o.icon)||{}),ne=y&&!F?i().createElement(mh,{prefixCls:I,className:ee,style:te},y):i().createElement(Th,{existIcon:!!y,prefixCls:I,loading:!!F}),re=v||0===v?function(e,t){let n=!1;const r=[];return i().Children.forEach(e,(e=>{const t=typeof e,i="string"===t||"number"===t;if(n&&i){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i})),i().Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&dh(e.type)&&ph(e.props.children)?Vl(e,{children:e.props.children.split("").join(n)}):dh(e)?ph(e)?i().createElement("span",null,e.split("").join(n)):i().createElement("span",null,e):Fl(e)?i().createElement("span",null,e):e}(e,t)))}(v,z&&Q):null;if(void 0!==X.href)return L(i().createElement("a",Object.assign({},X,{className:g()(J,{[`${I}-disabled`]:R}),href:R?void 0:X.href,style:Z,onClick:G,ref:q,tabIndex:R?-1:0}),ne,re));let ie=i().createElement("button",Object.assign({},k,{type:w,className:J,style:Z,onClick:G,disabled:R,ref:q}),ne,re,!!H&&i().createElement(em,{key:"compact",prefixCls:I}));return fh(O)||(ie=i().createElement(sh,{component:"Button",disabled:!!F},ie)),L(ie)},nm=(0,r.forwardRef)(tm);nm.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(We),{prefixCls:i,size:o,className:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var e,t,n,r,i,o={166:(e,t,n)=>{"use strict";n.d(t,{A:()=>ys,B:()=>Ps,C:()=>Ta,D:()=>js,G:()=>Vi,I:()=>No,J:()=>zi,K:()=>nl,L:()=>Da,P:()=>La,R:()=>$a,a:()=>Kc,c:()=>b,e:()=>tc,f:()=>Wc,g:()=>sc,h:()=>nc,i:()=>Ia,j:()=>rc,k:()=>gc,l:()=>xa,m:()=>Zc,n:()=>Bc,o:()=>Oa,p:()=>Aa,r:()=>ws,s:()=>ks,t:()=>Na,u:()=>ic,w:()=>zs,x:()=>Bs,y:()=>ps,z:()=>fs});var r=n(5549),i=n(1609),o=n.n(i),a=n(5795),s=n.n(a),c=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&h(e,n,t[n]);if(d)for(var n of d(t))f.call(t,n)&&h(e,n,t[n]);return e},g=(e,t)=>l(e,u(t)),v=(e,t)=>c(e,"name",{value:t,configurable:!0}),y=(e,t)=>{var n={};for(var r in e)p.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&d)for(var r of d(e))t.indexOf(r)<0&&f.call(e,r)&&(n[r]=e[r]);return n},b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}v(E,"getDefaultExportFromCjs"),v(_,"getAugmentedNamespace");var w=/["'&<>]/,k=T;function T(e){var t,n=""+e,r=w.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},x=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,C={},N={};function A(e){var t,n,r=N[e];if(r)return r;for(r=N[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343){c+=encodeURIComponent(e[r]+e[r+1]),r++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[r]);return c}v(A,"getEncodeCache"),v(I,"encode$1"),I.defaultChars=";/?:@&=+$,-_.!~*'()#",I.componentChars="-_.!~*'()";var D=I,L={};function P(e){var t,n,r=L[e];if(r)return r;for(r=L[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+91114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}v(P,"getDecodeCache"),v(j,"decode$1"),j.defaultChars=";/?:@&=+$,#",j.componentChars="";var R=j,$=v((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}),"format");function F(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}v(F,"Url");var M=/^([a-z0-9.+-]+:)/i,q=/:[0-9]*$/,V=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,z=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),B=["'"].concat(z),G=["%","/","?",";","#"].concat(B),Q=["/","?","#"],U=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},W={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function X(e,t){if(e&&e instanceof F)return e;var n=new F;return n.parse(e,t),n}v(X,"urlParse"),F.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=V.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=M.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&K[l]||(s=s.substr(2),this.slashes=!0)),!K[l]&&(a||l&&!W[l])){var u,d,p=-1;for(n=0;n127?v+="x":v+=g[y];if(!v.match(U)){var E=m.slice(0,n),_=m.slice(n+1),w=g.match(H);w&&(E.push(w[1]),_.unshift(w[2])),_.length&&(s=_.join(".")+s),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=s.indexOf("#");-1!==k&&(this.hash=s.substr(k),s=s.slice(0,k));var T=s.indexOf("?");return-1!==T&&(this.search=s.substr(T),s=s.slice(0,T)),s&&(this.pathname=s),W[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},F.prototype.parseHost=function(e){var t=q.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Y=X;C.encode=D,C.decode=R,C.format=$,C.parse=Y;var J={},Z=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\0-\x1F\x7F-\x9F]/,te=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;J.Any=Z,J.Cc=ee,J.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,J.P=x,J.Z=te,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}v(t,"_class"),v(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function c(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}v(i,"has"),v(o,"assign"),v(a,"arrayReplaceAt"),v(s,"isValidEntityCode"),v(c,"fromCodePoint");var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(l.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=O;function f(e,t){var n=0;return i(p,t)?p[t]:35===t.charCodeAt(0)&&d.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?c(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(l,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||f(e,n)}))}v(f,"replaceEntityPattern"),v(h,"unescapeMd"),v(m,"unescapeAll");var g=/[&<>"]/,y=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function E(e){return b[e]}function _(e){return g.test(e)?e.replace(y,E):e}v(E,"replaceUnsafeChar"),v(_,"escapeHtml");var w=/[.?*+^$[\]\\(){}|-]/g;function k(e){return e.replace(w,"\\$&")}function T(e){switch(e){case 9:case 32:return!0}return!1}function S(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}v(k,"escapeRE"),v(T,"isSpace"),v(S,"isWhiteSpace");var N=x;function A(e){return N.test(e)}function I(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function D(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}v(A,"isPunctChar"),v(I,"isMdAsciiPunct"),v(D,"normalizeReference"),e.lib={},e.lib.mdurl=C,e.lib.ucmicro=J,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=c,e.escapeHtml=_,e.arrayReplaceAt=a,e.isSpace=T,e.isWhiteSpace=S,e.isMdAsciiPunct=I,e.isPunctChar=A,e.escapeRE=k,e.normalizeReference=D}(S);var ne={},re=v((function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=ie(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),ae=S.unescapeAll,se=v((function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t"+ue(e[t].content)+""},de.code_block=function(e,t,n,r,i){var o=e[t];return""+ue(e[t].content)+"\n"},de.fence=function(e,t,n,r,i){var o,a,s,c,l,u=e[t],d=u.info?le(u.info).trim():"",p="",f="";return d&&(p=(s=d.split(/(\s+)/g))[0],f=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,p,f)||ue(u.content)).indexOf(""+o+"\n"):"
"+o+"
\n"},de.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},de.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},de.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},de.text=function(e,t){return ue(e[t].content)},de.html_block=function(e,t){return e[t].content},de.html_inline=function(e,t){return e[t].content},v(pe,"Renderer$1"),pe.prototype.renderAttrs=v((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")}),"renderToken"),pe.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a\s]/i.test(e)}function ke(e){return/^<\/a\s*>/i.test(e)}v(we,"isLinkOpen"),v(ke,"isLinkClose");var Te=v((function(e){var t,n,r,i,o,a,s,c,l,u,d,p,f,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(we(a.content)&&f>0&&f--,ke(a.content)&&f++),!(f>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,v=e.md.linkify.match(l),s=[],p=a.level,d=0,c=0;cd&&((o=new e.Token("text","",0)).content=l.slice(d,u),o.level=p,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=p++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=p,s.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",s.push(o),d=v[c].lastIndex);d=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(xe,Ne)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Ie(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Se.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}v(Ne,"replaceFn"),v(Ae,"replace_scoped"),v(Ie,"replace_rare");var De=v((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Oe.test(e.tokens[t].content)&&Ae(e.tokens[t].children),Se.test(e.tokens[t].content)&&Ie(e.tokens[t].children))}),"replace"),Le=S.isWhiteSpace,Pe=S.isPunctChar,je=S.isMdAsciiPunct,Re=/['"]/,$e=/['"]/g;function Fe(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Me(e,t){var n,r,i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w;for(E=[],n=0;n=0&&!(E[y].level<=c);y--);if(E.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a=0)u=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(d=32,a=48&&u<=57&&(v=g=!1),g&&v&&(g=p,v=f),g||v){if(v)for(y=E.length-1;y>=0&&(l=E[y],!(E[y].level=0;t--)"inline"===e.tokens[t].type&&Re.test(e.tokens[t].content)&&Me(e.tokens[t].children,e)}),"smartquotes");function Ve(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}v(Ve,"Token$3"),Ve.prototype.attrIndex=v((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n}),"attrGet"),Ve.prototype.attrJoin=v((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var ze=Ve,Be=ze;function Ge(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}v(Ge,"StateCore"),Ge.prototype.Token=Be;var Qe=Ge,Ue=me,He=[["normalize",ye],["block",be],["inline",Ee],["linkify",Te],["replacements",De],["smartquotes",qe]];function Ke(){this.ruler=new Ue;for(var e=0;en)return!1;if(l=t+1,e.sCount[l]=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E)return!1;if(a>=e.eMarks[l])return!1;if(124!==(_=e.src.charCodeAt(a++))&&45!==_&&58!==_&&!Xe(_))return!1;if(45===E&&Xe(_))return!1;for(;a=4)return!1;if((u=Je(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(d=u.length)||d!==f.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=m=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s=4)break;for((u=Je(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((p=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[l,l+1],s=0;s=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),tt=v((function(e,t,n,r){var i,o,a,s,c,l,u,d=!1,p=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>f)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(c=p,(o=(p=e.skipChars(p,i))-c)<3)return!1;if(u=e.src.slice(c,p),a=e.src.slice(p,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(p=c=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]=4||(p=e.skipChars(p,i))-c=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(r)return!0;for(s=p=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,s++,p++,i=!1,b=!0):9===e.src.charCodeAt(S)?(b=!0,(e.bsCount[t]+p)%4==3?(S++,s++,p++,i=!1):i=!0):b=!1,f=[e.bMarks[t]],e.bMarks[t]=S;S=O,v=[e.sCount[t]],e.sCount[t]=p-s,y=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],_=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",d=t+1;d=(O=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(S++)||k){if(l)break;for(E=!1,a=0,c=_.length;a=O,h.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),v.push(e.sCount[d]),e.sCount[d]=p-s,y.push(e.tShift[d]),e.tShift[d]=S-e.bMarks[d]}for(m=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=u=[t,0],e.md.block.tokenize(e,t,d),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=T,e.parentType=g,u[1]=e.line,a=0;a=4)return!1;if(42!==(i=e.src.charCodeAt(c++))&&45!==i&&95!==i)return!1;for(o=1;c=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(D=!0),(O=ct(e,t))>=0){if(u=!0,C=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(C,O-1)),D&&1!==g)return!1}else{if(!((O=st(e,t))>=0))return!1;u=!1}if(D&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(O-1),r)return!0;for(h=e.tokens.length,u?(I=e.push("ordered_list_open","ol",1),1!==g&&(I.attrs=[["start",g]])):I=e.push("bullet_list_open","ul",1),I.map=f=[t,0],I.markup=String.fromCharCode(m),y=t,x=!1,A=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";y=v?1:b-l)>4&&(c=1),s=l+c,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),I.map=d=[t,0],u&&(I.info=e.src.slice(C,O-1)),T=e.tight,k=e.tShift[t],w=e.sCount[t],E=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!x||(L=!1),x=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[t]=k,e.sCount[t]=w,e.tight=T,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,d[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]=4)break;for(N=!1,a=0,p=A.length;a=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_3||e.sCount[k]<0)){for(v=!1,l=0,u=y.length;l`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",gt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vt=new RegExp("^(?:"+mt+"|"+gt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),yt=new RegExp("^(?:"+mt+"|"+gt+")");ht.HTML_TAG_RE=vt,ht.HTML_OPEN_CLOSE_TAG_RE=yt;var bt=ht.HTML_OPEN_CLOSE_TAG_RE,Et=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(bt.source+"\\s*$"),/^$/,!1]],_t=v((function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,l),i=0;i=4)return!1;if(35!==(i=e.src.charCodeAt(c))||c>=l)return!1;for(o=1,i=e.src.charCodeAt(++c);35===i&&c6||cc&&wt(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(c,l).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}),"heading"),Tt=v((function(e,t,n){var r,i,o,a,s,c,l,u,d,p,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),(c=e.skipSpaces(c))>=l)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i0&&this.level++,this.tokens.push(r),r},Ct.prototype.isEmpty=v((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Ct.prototype.skipEmptyLines=v((function(e){for(var t=this.lineMax;et;)if(!xt(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Ct.prototype.skipChars=v((function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Ct.prototype.getLines=v((function(e,t,n,r){var i,o,a,s,c,l,u,d=e;if(e>=t)return"";for(l=new Array(t-e),i=0;dn?new Array(o-n+1).join(" ")+this.src.slice(s,c):this.src.slice(s,c)}return l.join("")}),"getLines"),Ct.prototype.Token=Ot;var Nt=Ct,At=me,It=[["table",Ze,["paragraph","reference"]],["code",et],["fence",tt,["paragraph","reference","blockquote","list"]],["blockquote",rt,["paragraph","reference","blockquote","list"]],["hr",ot,["paragraph","reference","blockquote","list"]],["list",ut,["paragraph","reference","blockquote"]],["reference",ft],["html_block",_t,["paragraph","reference","blockquote"]],["heading",kt,["paragraph","reference","blockquote"]],["lheading",Tt],["paragraph",St]];function Dt(){this.ruler=new At;for(var e=0;e=n))&&!(e.sCount[a]=c){e.line=n;break}for(r=0;r=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i?@[]^_`{|}~-".split("").forEach((function(e){Mt[e.charCodeAt(0)]=1}));var Vt=v((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}Qt.tokenize=v((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n=f)return!1;if(h=s,(c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(u=e.md.normalizeLink(c.str),e.md.validateLink(u)?s=c.pos:u="",h=s;s=f||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s=0?i=e.src.slice(h,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[Ht(i)]))return e.pos=p,!1;u=l.href,d=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=f,!0}),"link"),Xt=S.normalizeReference,Yt=S.isSpace,Jt=v((function(e,t){var n,r,i,o,a,s,c,l,u,d,p,f,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=a+1)=v)return!1;for(h=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?c=u.pos:m=""),h=c;c=v||41!==e.src.charCodeAt(c))return e.pos=g,!1;c++}else{if(void 0===e.env.references)return!1;if(c=0?o=e.src.slice(h,c++):c=a+1):c=a+1,o||(o=e.src.slice(s,a)),!(l=e.env.references[Xt(o)]))return e.pos=g,!1;m=l.href,d=l.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,f=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=f,p.content=i,d&&n.push(["title",d])),e.pos=c,e.posMax=v,!0}),"image"),Zt=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,en=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,tn=v((function(e,t){var n,r,i,o,a,s,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(a=e.pos,s=e.posMax;;){if(++c>=s)return!1;if(60===(o=e.src.charCodeAt(c)))return!1;if(62===o)break}return n=e.src.slice(a+1,c),en.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!Zt.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),nn=ht.HTML_TAG_RE;function rn(e){var t=32|e;return t>=97&&t<=122}v(rn,"isLetter");var on=v((function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!rn(n)||!(r=e.src.slice(o).match(nn))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}),"html_inline"),an=O,sn=S.has,cn=S.isValidEntityCode,ln=S.fromCodePoint,un=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dn=/^&([a-z][a-z0-9]{1,31});/i,pn=v((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+l,i.open=!1,o.end=n,o.jump=l,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}v(fn,"processDelimiters");var hn=v((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(fn(0,e.delimiters),t=0;t0&&r++,"text"===i[t].type&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},En.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,c,l,u,d=e,p=!0,f=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;d=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},On.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function Nn(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function An(e){return Object.prototype.toString.call(e)}function In(e){return"[object String]"===An(e)}function Dn(e){return"[object Object]"===An(e)}function Ln(e){return"[object RegExp]"===An(e)}function Pn(e){return"[object Function]"===An(e)}function jn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}v(Nn,"assign"),v(An,"_class"),v(In,"isString"),v(Dn,"isObject$2"),v(Ln,"isRegExp"),v(Pn,"isFunction"),v(jn,"escapeRE");var Rn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $n(e){return Object.keys(e||{}).reduce((function(e,t){return e||Rn.hasOwnProperty(t)}),!1)}v($n,"isOptionsObj");var Fn={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Mn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function qn(e){e.__index__=-1,e.__text_cache__=""}function Vn(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function zn(e){var t=e.re=Cn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),v(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},v(o,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,Dn(n))return Ln(n.validate)?r.validate=Vn(n.validate):Pn(n.validate)?r.validate=n.validate:o(t,n),void(Pn(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});In(n)?i.push(t):o(t,n)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(jn).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),qn(e)}function Bn(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Gn(e,t){var n=new Bn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Qn(e,t){if(!(this instanceof Qn))return new Qn(e,t);t||$n(e)&&(t=e,e={}),this.__opts__=Nn({},Rn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Nn({},Fn,e),this.__compiled__={},this.__tlds__=Mn,this.__tlds_replaced__=!1,this.re={},zn(this)}v(qn,"resetScanCache"),v(Vn,"createValidator"),v((function(){return function(e,t){t.normalize(e)}}),"createNormalizer"),v(zn,"compile"),v(Bn,"Match"),v(Gn,"createMatch"),v(Qn,"LinkifyIt$1"),Qn.prototype.add=v((function(e,t){return this.__schemas__[e]=t,zn(this),this}),"add"),Qn.prototype.set=v((function(e){return this.__opts__=Nn(this.__opts__,e),this}),"set"),Qn.prototype.test=v((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),Qn.prototype.pretest=v((function(e){return this.re.pretest.test(e)}),"pretest"),Qn.prototype.testSchemaAt=v((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),Qn.prototype.match=v((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Gn(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Gn(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),Qn.prototype.tlds=v((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),zn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,zn(this),this)}),"tlds"),Qn.prototype.normalize=v((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),Qn.prototype.onCompile=v((function(){}),"onCompile");var Un=Qn;const Hn=2147483647,Kn=36,Wn=/^xn--/,Xn=/[^\0-\x7E]/,Yn=/[\x2E\u3002\uFF0E\uFF61]/g,Jn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Zn=Math.floor,er=String.fromCharCode;function tr(e){throw new RangeError(Jn[e])}function nr(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function rr(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+nr((e=e.replace(Yn,".")).split("."),t).join(".")}function ir(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e)),"ucs2encode"),ar=v((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Kn}),"basicToDigit"),sr=v((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),cr=v((function(e,t,n){let r=0;for(e=n?Zn(e/700):e>>1,e+=Zn(e/t);e>455;r+=Kn)e=Zn(e/35);return Zn(r+36*e/(e+38))}),"adapt"),lr=v((function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n=128&&tr("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s=n&&tr("invalid-input");const a=ar(e.charCodeAt(s++));(a>=Kn||a>Zn((Hn-r)/t))&&tr("overflow"),r+=a*t;const c=i<=o?1:i>=o+26?26:i-o;if(aZn(Hn/l)&&tr("overflow"),t*=l}const c=t.length+1;o=cr(r-a,c,0==a),Zn(r/c)>Hn-i&&tr("overflow"),i+=Zn(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)}),"decode"),ur=v((function(e){const t=[];let n=(e=ir(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(er(n));let a=t.length,s=a;for(a&&t.push("-");s=r&&tZn((Hn-i)/c)&&tr("overflow"),i+=(n-r)*c,r=n;for(const n of e)if(nHn&&tr("overflow"),n==r){let e=i;for(let n=Kn;;n+=Kn){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=kr.toASCII(t.hostname)}catch(e){}return wr.encode(wr.format(t))}function Ar(e){var t=wr.parse(e,!0);if(t.hostname&&(!t.protocol||Cr.indexOf(t.protocol)>=0))try{t.hostname=kr.toUnicode(t.hostname)}catch(e){}return wr.decode(wr.format(t),wr.decode.defaultChars+"%")}function Ir(e,t){if(!(this instanceof Ir))return new Ir(e,t);t||mr.isString(e)||(t=e||{},e="default"),this.inline=new Er,this.block=new br,this.core=new yr,this.renderer=new vr,this.linkify=new _r,this.validateLink=xr,this.normalizeLink=Nr,this.normalizeLinkText=Ar,this.utils=mr,this.helpers=mr.assign({},gr),this.options={},this.configure(e),t&&this.set(t)}v(Nr,"normalizeLink"),v(Ar,"normalizeLinkText"),v(Ir,"MarkdownIt"),Ir.prototype.set=function(e){return mr.assign(this.options,e),this},Ir.prototype.configure=function(e){var t,n=this;if(mr.isString(e)&&!(e=Tr[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Ir.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Ir.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Ir.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ir.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ir.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ir.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ir.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Dr=new Ir;var Lr=Object.defineProperty,Pr=v(((e,t)=>Lr(e,"name",{value:t,configurable:!0})),"__name$j");const jr="graphiql",Rr="sublime";let $r=!1;"object"==typeof window&&($r=0===window.navigator.platform.toLowerCase().indexOf("mac"));const Fr={[$r?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Mr(e,t){const r=await n.e(338).then(n.bind(n,3338)).then((function(e){return e.c})).then((e=>"function"==typeof e?e:e.default));return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.all([n.e(338),n.e(669)]).then(n.bind(n,9669)).then((function(e){return e.s})),Promise.all([n.e(338),n.e(382)]).then(n.bind(n,2382)).then((function(e){return e.m})),Promise.all([n.e(338),n.e(61)]).then(n.bind(n,5061)).then((function(e){return e.c})),Promise.all([n.e(338),n.e(983)]).then(n.bind(n,5983)).then((function(e){return e.b})),Promise.all([n.e(338),n.e(148)]).then(n.bind(n,3148)).then((function(e){return e.f})),Promise.all([n.e(338),n.e(482)]).then(n.bind(n,4482)).then((function(e){return e.l})),Promise.all([n.e(338),n.e(910)]).then(n.bind(n,5910)).then((function(e){return e.s})),Promise.all([n.e(338),n.e(113)]).then(n.bind(n,6113)).then((function(e){return e.j})),Promise.all([n.e(338),n.e(924)]).then(n.bind(n,924)).then((function(e){return e.d})),Promise.all([n.e(338),n.e(391)]).then(n.bind(n,7391)).then((function(e){return e.s})),...e]),r}v(Mr,"importCodeMirror"),Pr(Mr,"importCodeMirror");var qr=Object.defineProperty,Vr=v(((e,t)=>qr(e,"name",{value:t,configurable:!0})),"__name$i");function zr(e,t,n,r){function i(e){if(!(n&&r&&e.currentTarget instanceof HTMLElement&&"typeName"===e.currentTarget.className))return;const t=e.currentTarget.innerHTML,i=n.getType(t);i&&(r.show(),r.push({name:i.name,def:i}))}Mr([],{useCommonAddons:!1}).then((e=>{let n,r;e.on(t,"select",((e,t)=>{if(!n){const e=t.parentNode;let o;n=document.createElement("div"),n.className="CodeMirror-hint-information",n.addEventListener("click",i),e.appendChild(n),r=document.createElement("div"),r.className="CodeMirror-hint-deprecation",e.appendChild(r),e.addEventListener("DOMNodeRemoved",o=Vr((t=>{t.target===e&&(e.removeEventListener("DOMNodeRemoved",o),n&&n.removeEventListener("click",i),n=null,r=null,o=null)}),"onRemoveFn"))}const o=e.description?Dr.render(e.description):"Self descriptive.",a=e.type?''+Br(e.type)+"":"";if(n.innerHTML='
'+("

"===o.slice(0,3)?"

"+a+o.slice(3):a+o)+"

",e&&r&&e.deprecationReason){const t=e.deprecationReason?Dr.render(e.deprecationReason):"";r.innerHTML='Deprecated'+t,r.style.display="block"}else r&&(r.style.display="none")}))})),v(i,"onClickHintInformation"),Vr(i,"onClickHintInformation")}function Br(e){return(0,r.isNonNullType)(e)?`${Br(e.ofType)}!`:(0,r.isListType)(e)?`[${Br(e.ofType)}]`:`${k(e.name)}`}v(zr,"onHasCompletion"),Vr(zr,"onHasCompletion"),v(Br,"renderType"),Vr(Br,"renderType");var Gr={exports:{}},Qr={};function Ur(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,v((function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}),"toObject"),v(Ur,"shouldUseNative"),Ur()&&Object.assign;var Hr=o(),Kr=60103;if(Qr.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var Wr=Symbol.for;Kr=Wr("react.element"),Qr.Fragment=Wr("react.fragment")}var Xr=Hr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yr=Object.prototype.hasOwnProperty,Jr={key:!0,ref:!0,__self:!0,__source:!0};function Zr(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)Yr.call(t,r)&&!Jr.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:Kr,type:e,key:o,ref:a,props:i,_owner:Xr.current}}v(Zr,"q"),Qr.jsx=Zr,Qr.jsxs=Zr,Gr.exports=Qr;const ei=Gr.exports.jsx,ti=Gr.exports.jsxs;var ni=Object.defineProperty,ri=v(((e,t)=>ni(e,"name",{value:t,configurable:!0})),"__name$h");function ii(e){var t;const[n,r]=(0,i.useState)({width:null,height:null}),[o,a]=(0,i.useState)(null),s=(0,i.useRef)(null),c=null==(t=oi(e.token))?void 0:t.href;(0,i.useEffect)((()=>{if(s.current)return c?void fetch(c,{method:"HEAD"}).then((e=>{a(e.headers.get("Content-Type"))})).catch((()=>{a(null)})):(r({width:null,height:null}),void a(null))}),[c]);const l=null!==n.width&&null!==n.height?ti("div",{children:[n.width,"x",n.height,null!==o?" "+o:null]}):null;return ti("div",{children:[ei("img",{onLoad:()=>{var e,t,n,i;r({width:null!=(t=null==(e=s.current)?void 0:e.naturalWidth)?t:null,height:null!=(i=null==(n=s.current)?void 0:n.naturalHeight)?i:null})},ref:s,src:c}),l]})}function oi(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}function ai(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function si(e){return"object"==typeof e&&"function"==typeof e.then}function ci(e){return new Promise(((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})}))}function li(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function ui(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function di(e){return new Promise(((t,n)=>{var r;const i=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then((e=>{t(e.value),null==i||i()})).catch((e=>{n(e)}))}))}function pi(e){return Promise.resolve(e).then((e=>ui(e)?di(e):li(e)?ci(e):e))}v(ii,"ImagePreview"),ri(ii,"ImagePreview"),ii.shouldRender=ri(v((function(e){const t=oi(e);return!!t&&ai(t)}),"shouldRender"),"shouldRender"),v(oi,"tokenToURL"),ri(oi,"tokenToURL"),v(ai,"isImageURL"),ri(ai,"isImageURL"),v(si,"isPromise"),v(ci,"observableToPromise"),v(li,"isObservable"),v(ui,"isAsyncIterable"),v(di,"asyncIterableToPromise"),v(pi,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var fi=globalThis&&globalThis.__await||function(e){return this instanceof fi?(this.v=e,this):new fi(e)};function hi(e){return JSON.stringify(e,null,2)}function mi(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function gi(e){return e instanceof Error?mi(e):e}function vi(e){return Array.isArray(e)?hi({errors:e.map((e=>gi(e)))}):hi({errors:[gi(e)]})}function yi(e){return hi(e)}function bi(e,t,n){const i=[];if(!e||!t)return{insertions:i,result:t};let o;try{o=(0,r.parse)(t)}catch(e){return{insertions:i,result:t}}const a=n||Ei,s=new r.TypeInfo(e);return(0,r.visit)(o,{leave(e){s.leave(e)},enter(e){if(s.enter(e),"Field"===e.kind&&!e.selectionSet){const n=_i(Ti(s.getType()),a);if(n&&e.loc){const o=ki(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,r.print)(n).replace(/\n/g,"\n"+o)})}}}}),{insertions:i,result:wi(t,i)}}function Ei(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach((e=>{(0,r.isLeafType)(t[e].type)&&n.push(e)})),n}function _i(e,t){const n=(0,r.getNamedType)(e);if(!e||(0,r.isLeafType)(e))return;const i=t(n);return Array.isArray(i)&&0!==i.length&&"getFields"in n?{kind:r.Kind.SELECTION_SET,selections:i.map((e=>{const i=n.getFields()[e],o=i?i.type:null;return{kind:r.Kind.FIELD,name:{kind:r.Kind.NAME,value:e},selectionSet:_i(o,t)}}))}:void 0}function wi(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach((({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t})),n+=e.slice(r),n}function ki(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function Ti(e){if(e)return e}function Si(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function Oi(e,t,n){var i;const o=n?(0,r.getNamedType)(n).name:null,a=[],s=[];for(let c of t){if("FragmentSpread"===c.kind){const t=c.name.value;if(!c.directives||0===c.directives.length){if(s.indexOf(t)>=0)continue;s.push(t)}const n=e[c.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:i}=n;c={kind:r.Kind.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:i}}}if(c.kind===r.Kind.INLINE_FRAGMENT&&(!c.directives||0===(null===(i=c.directives)||void 0===i?void 0:i.length))){const t=c.typeCondition?c.typeCondition.name.value:null;if(!t||t===o){a.push(...Oi(e,c.selectionSet.selections,n));continue}}a.push(c)}return a}function xi(e,t){const n=t?new r.TypeInfo(t):null,i=Object.create(null);for(const t of e.definitions)t.kind===r.Kind.FRAGMENT_DEFINITION&&(i[t.name.value]=t);const o={SelectionSet(e){const t=n?n.getParentType():null;let{selections:r}=e;return r=Oi(i,r,t),r=Si(r,(e=>e.alias?e.alias.value:e.name.value)),Object.assign(Object.assign({},e),{selections:r})},FragmentDefinition:()=>null};return(0,r.visit)(e,n?(0,r.visitWithTypeInfo)(n,o):o)}function Ci(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==n&&nt.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName))}edit(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}v(Di,"QueryStore");class Li{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new Di("queries",this.storage,this.maxHistoryLength),this.favorite=new Di("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,i){if(!e)return!1;try{(0,r.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(t)===JSON.stringify(i.variables)){if(JSON.stringify(n)===JSON.stringify(i.headers))return!1;if(n&&!i.headers)return!1}if(t&&!i.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}v(Li,"HistoryStore");var Pi=Object.defineProperty,ji=v(((e,t)=>Pi(e,"name",{value:t,configurable:!0})),"__name$g");function Ri(e){const t=(0,i.createContext)(null);return t.displayName=e,t}function $i(e){function t(n){var r;const o=(0,i.useContext)(e);if(null===o&&(null==n?void 0:n.nonNull))throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return o}return v(t,"useGivenContext"),ji(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}v(Ri,"createNullableContext"),ji(Ri,"createNullableContext"),v($i,"createContextHook"),ji($i,"createContextHook");var Fi=Object.defineProperty,Mi=v(((e,t)=>Fi(e,"name",{value:t,configurable:!0})),"__name$f");const qi=Ri("StorageContext");function Vi(e){const t=(0,i.useRef)(!0),[n,r]=(0,i.useState)(new Ai(e.storage));return(0,i.useEffect)((()=>{t.current?t.current=!1:r(new Ai(e.storage))}),[e.storage]),ei(qi.Provider,{value:n,children:e.children})}v(Vi,"StorageContextProvider"),Mi(Vi,"StorageContextProvider");const zi=$i(qi);var Bi,Gi,Qi,Ui,Hi,Ki,Wi,Xi,Yi,Ji,Zi,eo,to,no,ro,io,oo,ao,so,co,lo,uo,po,fo,ho,mo,go,vo,yo,bo,Eo;!function(e){function t(e){return"string"==typeof e}v(t,"is"),e.is=t}(Bi||(Bi={})),function(e){function t(e){return"string"==typeof e}v(t,"is"),e.is=t}(Gi||(Gi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,v(t,"is"),e.is=t}(Qi||(Qi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,v(t,"is"),e.is=t}(Ui||(Ui={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Ui.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ui.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return ka.objectLiteral(t)&&ka.uinteger(t.line)&&ka.uinteger(t.character)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Hi||(Hi={})),function(e){function t(e,t,n,r){if(ka.uinteger(e)&&ka.uinteger(t)&&ka.uinteger(n)&&ka.uinteger(r))return{start:Hi.create(e,t),end:Hi.create(n,r)};if(Hi.is(e)&&Hi.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return ka.objectLiteral(t)&&Hi.is(t.start)&&Hi.is(t.end)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Ki||(Ki={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return ka.defined(t)&&Ki.is(t.range)&&(ka.string(t.uri)||ka.undefined(t.uri))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Wi||(Wi={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return ka.defined(t)&&Ki.is(t.targetRange)&&ka.string(t.targetUri)&&Ki.is(t.targetSelectionRange)&&(Ki.is(t.originSelectionRange)||ka.undefined(t.originSelectionRange))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Xi||(Xi={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return ka.objectLiteral(t)&&ka.numberRange(t.red,0,1)&&ka.numberRange(t.green,0,1)&&ka.numberRange(t.blue,0,1)&&ka.numberRange(t.alpha,0,1)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Yi||(Yi={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return ka.objectLiteral(t)&&Ki.is(t.range)&&Yi.is(t.color)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Ji||(Ji={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.label)&&(ka.undefined(t.textEdit)||po.is(t))&&(ka.undefined(t.additionalTextEdits)||ka.typedArray(t.additionalTextEdits,po.is))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Zi||(Zi={})),(to=eo||(eo={})).Comment="comment",to.Imports="imports",to.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return ka.defined(n)&&(a.startCharacter=n),ka.defined(r)&&(a.endCharacter=r),ka.defined(i)&&(a.kind=i),ka.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return ka.objectLiteral(t)&&ka.uinteger(t.startLine)&&ka.uinteger(t.startLine)&&(ka.undefined(t.startCharacter)||ka.uinteger(t.startCharacter))&&(ka.undefined(t.endCharacter)||ka.uinteger(t.endCharacter))&&(ka.undefined(t.kind)||ka.string(t.kind))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(no||(no={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return ka.defined(t)&&Wi.is(t.location)&&ka.string(t.message)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ro||(ro={})),(oo=io||(io={})).Error=1,oo.Warning=2,oo.Information=3,oo.Hint=4,(so=ao||(ao={})).Unnecessary=1,so.Deprecated=2,function(e){function t(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.href)}v(t,"is"),e.is=t}(co||(co={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return ka.defined(n)&&(a.severity=n),ka.defined(r)&&(a.code=r),ka.defined(i)&&(a.source=i),ka.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return ka.defined(n)&&Ki.is(n.range)&&ka.string(n.message)&&(ka.number(n.severity)||ka.undefined(n.severity))&&(ka.integer(n.code)||ka.string(n.code)||ka.undefined(n.code))&&(ka.undefined(n.codeDescription)||ka.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ka.string(n.source)||ka.undefined(n.source))&&(ka.undefined(n.relatedInformation)||ka.typedArray(n.relatedInformation,ro.is))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(lo||(lo={})),function(e){function t(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i}function n(e){var t=e;return ka.defined(t)&&ka.string(t.title)&&ka.string(t.command)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(uo||(uo={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.newText)&&Ki.is(t.range)}v(t,"replace"),e.replace=t,v(n,"insert"),e.insert=n,v(r,"del"),e.del=r,v(i,"is"),e.is=i}(po||(po={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.label)&&(ka.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ka.string(t.description)||void 0===t.description)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(fo||(fo={})),function(e){function t(e){var t=e;return ka.string(t)}v(t,"is"),e.is=t}(ho||(ho={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return po.is(t)&&(fo.is(t.annotationId)||ho.is(t.annotationId))}v(t,"replace"),e.replace=t,v(n,"insert"),e.insert=n,v(r,"del"),e.del=r,v(i,"is"),e.is=i}(mo||(mo={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return ka.defined(t)&&ko.is(t.textDocument)&&Array.isArray(t.edits)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(go||(go={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&ka.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ka.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ka.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ho.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(vo||(vo={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&ka.string(t.oldUri)&&ka.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ka.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ka.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ho.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(yo||(yo={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&ka.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ka.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ka.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||ho.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(bo||(bo={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ka.string(e.kind)?vo.is(e)||yo.is(e)||bo.is(e):go.is(e)})))}v(t,"is"),e.is=t}(Eo||(Eo={}));var _o,wo,ko,To,So,Oo,xo,Co,No,Ao,Io,Do,Lo,Po,jo,Ro,$o,Fo,Mo,qo,Vo,zo,Bo,Go,Qo,Uo,Ho,Ko,Wo,Xo,Yo,Jo,Zo,ea,ta,na,ra,ia,oa,aa,sa,ca,la,ua,da,pa,fa,ha,ma,ga,va,ya,ba,Ea,_a=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return v(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=po.insert(e,t):ho.is(n)?(i=n,r=mo.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=mo.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=po.replace(e,t):ho.is(n)?(i=n,r=mo.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=mo.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=po.del(e):ho.is(t)?(r=t,n=mo.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=mo.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),wa=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return v(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(ho.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new wa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(go.is(e)){var n=new _a(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new _a(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}v(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ko.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new _a(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new _a(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new wa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(fo.is(t)||ho.is(t)?r=t:n=t,void 0===r?i=vo.create(e,n):(o=ho.is(r)?r:this._changeAnnotations.manage(r),i=vo.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(fo.is(n)||ho.is(n)?i=n:r=n,void 0===i?o=yo.create(e,t,r):(a=ho.is(i)?i:this._changeAnnotations.manage(i),o=yo.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(fo.is(t)||ho.is(t)?r=t:n=t,void 0===r?i=bo.create(e,n):(o=ho.is(r)?r:this._changeAnnotations.manage(r),i=bo.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(_o||(_o={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)&&ka.integer(t.version)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(wo||(wo={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)&&(null===t.version||ka.integer(t.version))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ko||(ko={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)&&ka.string(t.languageId)&&ka.integer(t.version)&&ka.string(t.text)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(To||(To={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",v(t,"is"),e.is=t}(So||(So={})),function(e){function t(e){var t=e;return ka.objectLiteral(e)&&So.is(t.kind)&&ka.string(t.value)}v(t,"is"),e.is=t}(Oo||(Oo={})),(Co=xo||(xo={})).Text=1,Co.Method=2,Co.Function=3,Co.Constructor=4,Co.Field=5,Co.Variable=6,Co.Class=7,Co.Interface=8,Co.Module=9,Co.Property=10,Co.Unit=11,Co.Value=12,Co.Enum=13,Co.Keyword=14,Co.Snippet=15,Co.Color=16,Co.File=17,Co.Reference=18,Co.Folder=19,Co.EnumMember=20,Co.Constant=21,Co.Struct=22,Co.Event=23,Co.Operator=24,Co.TypeParameter=25,(Ao=No||(No={})).PlainText=1,Ao.Snippet=2,(Io||(Io={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&ka.string(t.newText)&&Ki.is(t.insert)&&Ki.is(t.replace)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Do||(Do={})),(Po=Lo||(Lo={})).asIs=1,Po.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(ka.string(t.detail)||void 0===t.detail)&&(ka.string(t.description)||void 0===t.description)}v(t,"is"),e.is=t}(jo||(jo={})),function(e){function t(e){return{label:e}}v(t,"create"),e.create=t}(Ro||(Ro={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}v(t,"create"),e.create=t}($o||($o={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return ka.string(t)||ka.objectLiteral(t)&&ka.string(t.language)&&ka.string(t.value)}v(t,"fromPlainText"),e.fromPlainText=t,v(n,"is"),e.is=n}(Fo||(Fo={})),function(e){function t(e){var t=e;return!!t&&ka.objectLiteral(t)&&(Oo.is(t.contents)||Fo.is(t.contents)||ka.typedArray(t.contents,Fo.is))&&(void 0===e.range||Ki.is(e.range))}v(t,"is"),e.is=t}(Mo||(Mo={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}v(t,"create"),e.create=t}(qo||(qo={})),function(e){function t(e,t){for(var n=[],r=2;r=0;a--){var s=r[a],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=o))throw new Error("Overlapping edit");n=n.substring(0,c)+s.newText+n.substring(l,n.length),o=c}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,c=0;a0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Hi.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return Hi.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function Na(e,t){return{style:t,match:t=>t.kind===e}}function Aa(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function c(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function l(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function u(e){return"[object Function]"===t.call(e)}function d(e){return null!==e&&"object"==typeof e}function p(e,t){return Array.isArray(e)&&e.every(t)}v(n,"defined"),e.defined=n,v(r,"undefined$1"),e.undefined=r,v(i,"boolean"),e.boolean=i,v(o,"string"),e.string=o,v(a,"number"),e.number=a,v(s,"numberRange"),e.numberRange=s,v(c,"integer"),e.integer=c,v(l,"uinteger"),e.uinteger=l,v(u,"func"),e.func=u,v(d,"objectLiteral"),e.objectLiteral=d,v(p,"typedArray"),e.typedArray=p}(ka||(ka={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Ta||(Ta={})),v(Oa,"opt"),v(xa,"list"),v(Ca,"butNot"),v(Na,"t"),v(Aa,"p");const Ia=v((e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e),"isIgnored"),Da={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},La={Document:[xa("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return r.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Pa("query"),Oa(ja("def")),Oa("VariableDefinitions"),xa("Directive"),"SelectionSet"],Mutation:[Pa("mutation"),Oa(ja("def")),Oa("VariableDefinitions"),xa("Directive"),"SelectionSet"],Subscription:[Pa("subscription"),Oa(ja("def")),Oa("VariableDefinitions"),xa("Directive"),"SelectionSet"],VariableDefinitions:[Aa("("),xa("VariableDefinition"),Aa(")")],VariableDefinition:["Variable",Aa(":"),"Type",Oa("DefaultValue")],Variable:[Aa("$","variable"),ja("variable")],DefaultValue:[Aa("="),"Value"],SelectionSet:[Aa("{"),xa("Selection"),Aa("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[ja("property"),Aa(":"),ja("qualifier"),Oa("Arguments"),xa("Directive"),Oa("SelectionSet")],Field:[ja("property"),Oa("Arguments"),xa("Directive"),Oa("SelectionSet")],Arguments:[Aa("("),xa("Argument"),Aa(")")],Argument:[ja("attribute"),Aa(":"),"Value"],FragmentSpread:[Aa("..."),ja("def"),xa("Directive")],InlineFragment:[Aa("..."),Oa("TypeCondition"),xa("Directive"),"SelectionSet"],FragmentDefinition:[Pa("fragment"),Oa(Ca(ja("def"),[Pa("on")])),"TypeCondition",xa("Directive"),"SelectionSet"],TypeCondition:[Pa("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Na("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Na("Name","builtin")],NullValue:[Na("Name","keyword")],EnumValue:[ja("string-2")],ListValue:[Aa("["),xa("Value"),Aa("]")],ObjectValue:[Aa("{"),xa("ObjectField"),Aa("}")],ObjectField:[ja("attribute"),Aa(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Aa("["),"Type",Aa("]"),Oa(Aa("!"))],NonNullType:["NamedType",Oa(Aa("!"))],NamedType:[Ra("atom")],Directive:[Aa("@","meta"),ja("meta"),Oa("Arguments")],DirectiveDef:[Pa("directive"),Aa("@","meta"),ja("meta"),Oa("ArgumentsDef"),Pa("on"),xa("DirectiveLocation",Aa("|"))],InterfaceDef:[Pa("interface"),ja("atom"),Oa("Implements"),xa("Directive"),Aa("{"),xa("FieldDef"),Aa("}")],Implements:[Pa("implements"),xa("NamedType",Aa("&"))],DirectiveLocation:[ja("string-2")],SchemaDef:[Pa("schema"),xa("Directive"),Aa("{"),xa("OperationTypeDef"),Aa("}")],OperationTypeDef:[ja("keyword"),Aa(":"),ja("atom")],ScalarDef:[Pa("scalar"),ja("atom"),xa("Directive")],ObjectTypeDef:[Pa("type"),ja("atom"),Oa("Implements"),xa("Directive"),Aa("{"),xa("FieldDef"),Aa("}")],FieldDef:[ja("property"),Oa("ArgumentsDef"),Aa(":"),"Type",xa("Directive")],ArgumentsDef:[Aa("("),xa("InputValueDef"),Aa(")")],InputValueDef:[ja("attribute"),Aa(":"),"Type",Oa("DefaultValue"),xa("Directive")],UnionDef:[Pa("union"),ja("atom"),xa("Directive"),Aa("="),xa("UnionMember",Aa("|"))],UnionMember:["NamedType"],EnumDef:[Pa("enum"),ja("atom"),xa("Directive"),Aa("{"),xa("EnumValueDef"),Aa("}")],EnumValueDef:[ja("string-2"),xa("Directive")],InputDef:[Pa("input"),ja("atom"),xa("Directive"),Aa("{"),xa("InputValueDef"),Aa("}")],ExtendDef:[Pa("extend"),"ObjectTypeDef"]};function Pa(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function ja(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ra(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}v(Pa,"word"),v(ja,"name"),v(Ra,"type");const $a=Object.assign(Object.assign({},r.Kind),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"});var Fa={exports:{}};function Ma(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}v(Ma,"nullthrows"),Fa.exports=Ma,Fa.exports.default=Ma,Object.defineProperty(Fa.exports,"__esModule",{value:!0});var qa=E(Fa.exports);const Va=v(((e,t)=>{if(!t)return[];const n=new Map,i=new Set;(0,r.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){i.has(e.name.value)||i.add(e.name.value)}});const o=new Set;i.forEach((e=>{!n.has(e)&&t.has(e)&&o.add(qa(t.get(e)))}));const a=[];return o.forEach((e=>{(0,r.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&t.get(e.name.value)&&(o.add(qa(t.get(e.name.value))),i.add(e.name.value))}}),n.has(e.name.value)||a.push(e)})),a}),"getFragmentDependenciesForAST");function za(e,t){const n=Object.create(null);return t.definitions.forEach((t=>{if("OperationDefinition"===t.kind){const i=t.variableDefinitions;i&&i.forEach((({variable:t,type:i})=>{const o=(0,r.typeFromAST)(e,i);o?n[t.name.value]=o:i.kind===r.Kind.NAMED_TYPE&&"Float"===i.name.value&&(n[t.name.value]=r.GraphQLFloat)}))}})),n}function Ba(e,t){const n=t?za(t,e):void 0,i=[];return(0,r.visit)(e,{OperationDefinition(e){i.push(e)}}),{variableToType:n,operations:i}}function Ga(e,t){if(t)try{const n=(0,r.parse)(t);return Object.assign(Object.assign({},Ba(n,e)),{documentAST:n})}catch(e){return}}v(za,"collectVariables"),v(Ba,"getOperationASTFacts"),v(Ga,"getOperationFacts"),globalThis&&globalThis.__awaiter;var Qa=v((function(e){return"object"==typeof e?null===e:"function"!=typeof e}),"isPrimitive"),Ua=v((function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}),"isObject");function Ha(e){return!0===Ua(e)&&"[object Object]"===Object.prototype.toString.call(e)}v(Ha,"isObjectObject");var Ka=v((function(e){var t,n;return!1!==Ha(e)&&"function"==typeof(t=e.constructor)&&!1!==Ha(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}),"isPlainObject");const{deleteProperty:Wa}=Reflect,Xa=Qa,Ya=Ka,Ja=v((e=>"object"==typeof e&&null!==e||"function"==typeof e),"isObject"),Za=v((e=>"__proto__"===e||"constructor"===e||"prototype"===e),"isUnsafeKey"),es=v((e=>{if(!Xa(e))throw new TypeError("Object keys must be strings or symbols");if(Za(e))throw new Error(`Cannot set unsafe key: "${e}"`)}),"validateKey"),ts=v((e=>Array.isArray(e)?e.flat().map(String).join(","):e),"toStringKey"),ns=v(((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n}),"createMemoKey"),rs=v(((e,t,n)=>{const r=ts(t?ns(e,t):e);es(r);const i=ss.cache.get(r)||n();return ss.cache.set(r,i),i}),"memoize"),is=v(((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=v((e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)}),"push");for(let t=0;tt&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:rs(e,t,(()=>is(e,t)))),"split"),as=v(((e,t,n,r)=>{if(es(t),void 0===n)Wa(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Ya(e[t])&&Ya(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e}),"assignProp"),ss=v(((e,t,n,r)=>{if(!t||!Ja(e))return e;const i=os(t,r);let o=e;for(let e=0;e{ss.cache=new Map};var cs=ss,ls=Object.defineProperty,us=v(((e,t)=>ls(e,"name",{value:t,configurable:!0})),"__name$e");const ds=Ri("HistoryContext");function ps(e){var t;const n=zi(),r=(0,i.useRef)(new Li(n||new Ai(null),e.maxHistoryLength||hs)),[o,a]=(0,i.useState)((null==(t=r.current)?void 0:t.queries)||[]),[s,c]=(0,i.useState)("true"===(null==n?void 0:n.get(ms))||!1),l=(0,i.useCallback)((({query:e,variables:t,headers:n,operationName:i})=>{var o;null==(o=r.current)||o.updateHistory(e,t,n,i),a(r.current.queries)}),[]),u=(0,i.useCallback)((({query:e,variables:t,headers:n,operationName:i,label:o,favorite:s})=>{r.current.editLabel(e,t,n,i,o,s),a(r.current.queries)}),[]),{onToggle:d}=e,p=(0,i.useCallback)((()=>{null==d||d(!1),null==n||n.set(ms,JSON.stringify(!1)),c(!1)}),[d,n]),f=(0,i.useCallback)((()=>{null==d||d(!0),null==n||n.set(ms,JSON.stringify(!0)),c(!0)}),[d,n]),h=(0,i.useCallback)((()=>{c((e=>{const t=!e;return null==d||d(t),null==n||n.set(ms,JSON.stringify(t)),t}))}),[d,n]),m=(0,i.useCallback)((({query:e,variables:t,headers:n,operationName:i,label:o,favorite:s})=>{r.current.toggleFavorite(e,t,n,i,o,s),a(r.current.queries)}),[]),g=(0,i.useMemo)((()=>({addToHistory:l,editLabel:u,hide:p,isVisible:s,items:o,show:f,toggle:h,toggleFavorite:m})),[l,u,p,s,o,f,h,m]);return ei(ds.Provider,{value:g,children:e.children})}v(ps,"HistoryContextProvider"),us(ps,"HistoryContextProvider");const fs=$i(ds),hs=20,ms="historyPaneOpen";var gs=Object.defineProperty,vs=v(((e,t)=>gs(e,"name",{value:t,configurable:!0})),"__name$d");function ys(){const{headerEditor:e,queryEditor:t,variableEditor:n}=Wc({nonNull:!0,caller:ys});return r=>{var i,o,a;null==t||t.setValue(null!=(i=r.query)?i:""),null==n||n.setValue(null!=(o=r.variables)?o:""),null==e||e.setValue(null!=(a=r.headers)?a:"")}}v(ys,"useSelectHistoryItem"),vs(ys,"useSelectHistoryItem");var bs=Object.defineProperty,Es=v(((e,t)=>bs(e,"name",{value:t,configurable:!0})),"__name$c");const _s=Ri("ExecutionContext");function ws(e){const{externalFragments:t,headerEditor:n,queryEditor:o,responseEditor:a,shouldPersistHeaders:s,variableEditor:c,updateActiveTabValues:l}=Wc({nonNull:!0,caller:ws}),u=fs(),d=ic({caller:ws}),[p,f]=(0,i.useState)(!1),[h,g]=(0,i.useState)(null),v=(0,i.useRef)(0),b=(0,i.useCallback)((()=>{null==h||h.unsubscribe(),f(!1),g(null)}),[h]),{fetcher:E}=e,_=(0,i.useCallback)((async()=>{var i,p,_;if(!o||!a)return;if(h)return void b();const w=Es((e=>{a.setValue(e),l({response:e})}),"setResponse");v.current+=1;const k=v.current;let T=d()||o.getValue();const S=null==c?void 0:c.getValue();let O;try{O=Ts({json:S,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void w(e instanceof Error?e.message:`${e}`)}const x=null==n?void 0:n.getValue();let C;try{C=Ts({json:x,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void w(e instanceof Error?e.message:`${e}`)}if(t){const e=o.documentAST?Va(o.documentAST,t):[];e.length>0&&(T+="\n"+e.map((e=>(0,r.print)(e))).join("\n"))}w(""),f(!0);const N=null!=(p=null!=(i=e.operationName)?i:o.operationName)?p:void 0;null==u||u.addToHistory({query:T,variables:S,headers:x,operationName:N});try{let e={data:{}};const t=Es((t=>{if(k!==v.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map((e=>e.errors)).flat().filter(Boolean)];r.length&&(t.errors=r);for(const r of n){const n=r,{path:i,data:o,errors:a}=n,s=y(n,["path","data","errors"]);if(i){if(!o)throw new Error(`Expected part to contain a data property, but got ${r}`);cs(t.data,i,o,{merge:!0})}else o&&(t.data=r.data);e=m(m({},t),s)}f(!1),w(yi(e))}else{const e=yi(t);f(!1),w(e)}}),"handleResponse"),n=E({query:T,variables:O,operationName:N},{headers:null!=C?C:void 0,shouldPersistHeaders:s,documentAST:null!=(_=o.documentAST)?_:void 0}),r=await Promise.resolve(n);if(li(r))g(r.subscribe({next(e){t(e)},error(e){f(!1),e&&w(vi(e)),g(null)},complete(){f(!1),g(null)}}));else if(ui(r)){g({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});try{for await(const e of r)t(e);f(!1),g(null)}catch(e){f(!1),w(vi(e)),g(null)}}else t(r)}catch(e){f(!1),w(vi(e)),g(null)}}),[d,t,E,n,u,e.operationName,o,a,s,b,h,l,c]),w=(0,i.useMemo)((()=>{var t;return{isFetching:p,operationName:null!=(t=e.operationName)?t:null,run:_,stop:b}}),[p,e.operationName,_,b]);return ei(_s.Provider,{value:w,children:e.children})}v(ws,"ExecutionContextProvider"),Es(ws,"ExecutionContextProvider");const ks=$i(_s);function Ts({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(e){throw new Error(`${t}: ${e instanceof Error?e.message:e}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}v(Ts,"tryParseJsonObject"),Es(Ts,"tryParseJsonObject");var Ss=v((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;rIs(e,"name",{value:t,configurable:!0})),"__name$b");const Ls=Ri("SchemaContext");function Ps(e){const{initialHeaders:t,headerEditor:n}=Wc({nonNull:!0,caller:Ps}),[o,a]=(0,i.useState)(),[s,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)(null),d=(0,i.useRef)(0);(0,i.useEffect)((()=>{a((0,r.isSchema)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),d.current++}),[e.schema]);const p=(0,i.useRef)(t);(0,i.useEffect)((()=>{n&&(p.current=n.getValue())}));const{introspectionQuery:f,introspectionQueryName:h,introspectionQuerySansSubscriptions:m}=Rs({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:g,onSchemaChange:y}=e,b=(0,i.useCallback)((()=>{if((0,r.isSchema)(e.schema)||null===e.schema)return;const t=++d.current;a(void 0);const n=e.schema;async function i(){if(n)return n;const e=$s(p.current);if(!e.isValidJSON)return void u("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=pi(g({query:f,operationName:h},t));if(!si(r))return void u("Fetcher did not return a Promise for introspection.");c(!0);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=pi(g({query:m,operationName:h},t));if(!si(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(c(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:yi(i);u(o)}v(i,"fetchIntrospectionData"),Ds(i,"fetchIntrospectionData"),i().then((e=>{if(t===d.current&&e)try{const t=(0,r.buildClientSchema)(e);a(t),null==y||y(t)}catch(e){u(vi(e))}})).catch((e=>{t===d.current&&(u(vi(e)),c(!1))}))}),[g,h,f,m,y,e.schema]);(0,i.useEffect)((()=>{b()}),[b]),(0,i.useEffect)((()=>{function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&b()}return v(e,"triggerIntrospection"),Ds(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}));const E=(0,i.useMemo)((()=>!o||e.dangerouslyAssumeSchemaIsValid?[]:(0,r.validateSchema)(o)),[o,e.dangerouslyAssumeSchemaIsValid]),_=(0,i.useMemo)((()=>({fetchError:l,introspect:b,isFetching:s,schema:o,validationErrors:E})),[l,b,s,o,E]);return ei(Ls.Provider,{value:_,children:e.children})}v(Ps,"SchemaContextProvider"),Ds(Ps,"SchemaContextProvider");const js=$i(Ls);function Rs({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return(0,i.useMemo)((()=>{const i=t||"IntrospectionQuery";let o=(0,r.getIntrospectionQuery)({inputValueDeprecation:e,schemaDescription:n});t&&(o=o.replace("query IntrospectionQuery",`query ${i}`));const a=o.replace("subscriptionType { name }","");return{introspectionQueryName:i,introspectionQuery:o,introspectionQuerySansSubscriptions:a}}),[e,t,n])}function $s(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(e){n=!1}return{headers:t,isValidJSON:n}}v(Rs,"useIntrospectionQuery"),Ds(Rs,"useIntrospectionQuery"),v($s,"parseHeaderString"),Ds($s,"parseHeaderString");var Fs=Object.defineProperty,Ms=v(((e,t)=>Fs(e,"name",{value:t,configurable:!0})),"__name$a");const qs={name:"Schema",title:"Documentation Explorer"},Vs=Ri("ExplorerContext");function zs(e){var t,n;const{isFetching:r}=js({nonNull:!0,caller:zs}),o=zi(),[a,s]=(0,i.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==o?void 0:o.get(Gs)))&&n),[c,l]=(0,i.useState)([qs]),{onToggleVisibility:u}=e,d=(0,i.useRef)(!0);(0,i.useEffect)((()=>{d.current?d.current=!1:void 0!==e.isVisible&&s(e.isVisible)}),[e.isVisible]);const p=(0,i.useCallback)((()=>{null==u||u(!1),null==o||o.set(Gs,"false"),s(!1)}),[u,o]),f=(0,i.useCallback)((e=>{l((t=>t[t.length-1].def===e.def?t:[...t,e]))}),[]),h=(0,i.useCallback)((()=>{l((e=>e.length>1?e.slice(0,-1):e))}),[]),v=(0,i.useCallback)((()=>{l((e=>1===e.length?e:[qs]))}),[]),y=(0,i.useCallback)((()=>{null==u||u(!0),null==o||o.set(Gs,"true"),s(!0)}),[u,o]),b=(0,i.useCallback)((e=>{l((t=>{const n=t[t.length-1];return[...t.slice(0,-1),g(m({},n),{search:e})]}))}),[]);(0,i.useEffect)((()=>{r&&v()}),[r,v]);const E=(0,i.useMemo)((()=>({explorerNavStack:c,hide:p,isVisible:a,push:f,pop:h,reset:v,show:y,showSearch:b})),[p,a,c,f,h,v,y,b]);return ei(Vs.Provider,{value:E,children:e.children})}v(zs,"ExplorerContextProvider"),Ms(zs,"ExplorerContextProvider");const Bs=$i(Vs),Gs="docExplorerOpen";var Qs=Object.defineProperty,Us=v(((e,t)=>Qs(e,"name",{value:t,configurable:!0})),"__name$9");function Hs(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=null,t(...r)}),e)}}v(Hs,"debounce"),Us(Hs,"debounce");var Ks=Object.defineProperty,Ws=v(((e,t)=>Ks(e,"name",{value:t,configurable:!0})),"__name$8");function Xs(e,t){(0,i.useEffect)((()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function Ys(e,t,n){(0,i.useEffect)((()=>{e&&e.setOption(t,n)}),[e,t,n])}function Js(e,t,n,r,o){const{updateActiveTabValues:a}=Wc({nonNull:!0,caller:o}),s=zi();(0,i.useEffect)((()=>{if(!e)return;const i=Hs(500,(e=>{s&&null!==n&&s.set(n,e)})),o=Hs(100,(e=>{a({[r]:e})})),c=Ws(((e,n)=>{if(!n)return;const r=e.getValue();i(r),o(r),null==t||t(r)}),"handleChange");return e.on("change",c),()=>e.off("change",c)}),[t,e,s,n,r,a])}function Zs(e,t){const{schema:n}=js({nonNull:!0,caller:t}),r=Bs();(0,i.useEffect)((()=>{if(!e)return;const t=Ws(((e,t)=>{zr(0,t,n,r)}),"handleCompletion");return e.on("hasCompletion",t),()=>e.off("hasCompletion",t)}),[e,r,n])}function ec(e,t,n){(0,i.useEffect)((()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}}),[e,t,n])}function tc({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Wc({nonNull:!0,caller:e||tc});return(0,i.useCallback)((()=>{if(!n)return;const e=n.getValue();As(e),null==t||t(e)}),[n,t])}function nc({caller:e}={}){const{queryEditor:t}=Wc({nonNull:!0,caller:e||nc}),{schema:n}=js({nonNull:!0,caller:nc});return(0,i.useCallback)((()=>{const e=null==t?void 0:t.documentAST,i=null==t?void 0:t.getValue();e&&i&&t.setValue((0,r.print)(xi(e,n)))}),[t,n])}function rc({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:o}=Wc({nonNull:!0,caller:e||rc});return(0,i.useCallback)((()=>{if(o){const e=o.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=(0,r.print)((0,r.parse)(e));n!==e&&t.setValue(n)}}),[t,o,n])}function ic({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=js({nonNull:!0,caller:t||ic}),{queryEditor:r}=Wc({nonNull:!0,caller:t||ic});return(0,i.useCallback)((()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=bi(n,t,e);return i&&i.length>0&&r.operation((()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const a=i.map((({index:e,string:t})=>r.markText(r.posFromIndex(e+n),r.posFromIndex(e+(n+=t.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})));setTimeout((()=>a.forEach((e=>e.clear()))),7e3);let s=t;i.forEach((({index:e,string:n})=>{eoc(e,"name",{value:t,configurable:!0})),"__name$7");function sc({editorTheme:e=jr,keyMap:t=Rr,onEdit:r,readOnly:o=!1}={}){const{initialHeaders:a,headerEditor:s,setHeaderEditor:c,shouldPersistHeaders:l}=Wc({nonNull:!0,caller:sc}),u=ks(),d=nc({caller:sc}),p=rc({caller:sc}),f=(0,i.useRef)(null);return(0,i.useEffect)((()=>{let t=!0;return Mr([Promise.all([n.e(338),n.e(277)]).then(n.bind(n,3277)).then((function(e){return e.j}))]).then((n=>{if(!t)return;const r=f.current;if(!r)return;const i=n(r,{value:a,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Fr});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),c(i)})),()=>{t=!1}}),[e,a,o,c]),Ys(s,"keyMap",t),Js(s,r,l?cc:null,"headers",sc),Zs(s,sc),ec(s,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),ec(s,["Shift-Ctrl-P"],p),ec(s,["Shift-Ctrl-M"],d),f}v(sc,"useHeaderEditor"),ac(sc,"useHeaderEditor");const cc="headers";var lc=Object.defineProperty,uc=v(((e,t)=>lc(e,"name",{value:t,configurable:!0})),"__name$6");const dc=Array.from({length:11},((e,t)=>String.fromCharCode(8192+t))).concat(["\u2028","\u2029"," "," "]),pc=new RegExp("["+dc.join("")+"]","g");function fc(e){return e.replace(pc," ")}v(fc,"normalizeWhitespace"),uc(fc,"normalizeWhitespace");var hc=Object.defineProperty,mc=v(((e,t)=>hc(e,"name",{value:t,configurable:!0})),"__name$5");function gc({editorTheme:e=jr,keyMap:t=Rr,onClickReference:r,onCopyQuery:o,onEdit:a,readOnly:s=!1}={}){const{schema:c}=js({nonNull:!0,caller:gc}),{externalFragments:l,initialQuery:u,queryEditor:d,setOperationName:p,setQueryEditor:f,validationRules:h,variableEditor:y,updateActiveTabValues:b}=Wc({nonNull:!0,caller:gc}),E=ks(),_=zi(),w=Bs(),k=tc({caller:gc,onCopyQuery:o}),T=nc({caller:gc}),S=rc({caller:gc}),O=(0,i.useRef)(null),x=(0,i.useRef)(),C=(0,i.useRef)((()=>{}));(0,i.useEffect)((()=>{C.current=e=>{w&&(w.show(),e&&"Type"===e.kind?w.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?w.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&w.push({name:e.type.name,def:e.type}),null==r||r(e))}}),[w,r]),(0,i.useEffect)((()=>{let t=!0;return Mr([Promise.all([n.e(338),n.e(77)]).then(n.bind(n,5077)).then((function(e){return e.c})),Promise.all([n.e(338),n.e(528)]).then(n.bind(n,1528)).then((function(e){return e.s})),Promise.all([n.e(338),n.e(331),n.e(669),n.e(627)]).then(n.bind(n,2627)),Promise.all([n.e(338),n.e(951)]).then(n.bind(n,6951)),Promise.all([n.e(338),n.e(331),n.e(420)]).then(n.bind(n,6420)),Promise.all([n.e(338),n.e(331),n.e(260)]).then(n.bind(n,1260)),Promise.all([n.e(338),n.e(93)]).then(n.bind(n,93))]).then((n=>{if(!t)return;x.current=n;const r=O.current;if(!r)return;const i=n(r,{value:u,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!s&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>Dr.render(e),onClick:e=>{C.current(e)}},jump:{schema:void 0,onClick:e=>{C.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:g(m({},Fr),{"Cmd-S"(){},"Ctrl-S"(){}})});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",((e,t)=>{Ec.test(t.key)&&e.execCommand("autocomplete")})),i.on("beforeChange",((e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(fc);null==(n=t.update)||n.call(t,t.from,t.to,e)}})),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,f(i)})),()=>{t=!1}}),[e,u,s,f]),Ys(d,"keyMap",t),(0,i.useEffect)((()=>{if(!d)return;function e(e){var t,n,r,i,o;const a=Ga(c,e.getValue()),s=Ci(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=s?s:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,y&&(y.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,y.options.lint.variableToType=null==a?void 0:a.variableToType,y.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=x.current)||o.signal(y,"change",y)),a?g(m({},a),{operationName:s}):null}v(e,"getAndUpdateOperationFacts"),mc(e,"getAndUpdateOperationFacts");const t=Hs(100,(t=>{var n;const r=t.getValue();null==_||_.set(_c,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==_||_.set(wc,o.operationName)),null==a||a(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&p(o.operationName),b({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})}));return e(d),d.on("change",t),()=>d.off("change",t)}),[a,d,c,p,_,y,b]),vc(d,null!=c?c:null,x),yc(d,null!=h?h:null,x),bc(d,l,x),Zs(d,gc);const N=null==E?void 0:E.run,A=(0,i.useCallback)((()=>{var e;if(!(N&&d&&d.operations&&d.hasFocus()))return void(null==N||N());const t=d.indexFromPos(d.getCursor());let n;for(const r of d.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==d.operationName&&p(n),N()}),[d,N,p]);return ec(d,["Cmd-Enter","Ctrl-Enter"],A),ec(d,["Shift-Ctrl-C"],k),ec(d,["Shift-Ctrl-P","Shift-Ctrl-F"],S),ec(d,["Shift-Ctrl-M"],T),O}function vc(e,t,n){(0,i.useEffect)((()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function yc(e,t,n){(0,i.useEffect)((()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function bc(e,t,n){const r=(0,i.useMemo)((()=>[...t.values()]),[t]);(0,i.useEffect)((()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)}),[e,r,n])}v(gc,"useQueryEditor"),mc(gc,"useQueryEditor"),v(vc,"useSynchronizeSchema"),mc(vc,"useSynchronizeSchema"),v(yc,"useSynchronizeValidationRules"),mc(yc,"useSynchronizeValidationRules"),v(bc,"useSynchronizeExternalFragments"),mc(bc,"useSynchronizeExternalFragments");const Ec=/^[a-zA-Z0-9_@(]$/,_c="query",wc="operationName";var kc=Object.defineProperty,Tc=v(((e,t)=>kc(e,"name",{value:t,configurable:!0})),"__name$4");function Sc({headers:e,query:t,variables:n,storage:r}){const i=null==r?void 0:r.get(qc);try{if(!i)throw new Error("Storage for tabs is empty");const r=JSON.parse(i);if(Oc(r)){const i=$c({query:t,variables:n,headers:e});let o=-1;for(let e=0;e=0)r.activeTabIndex=o;else{const o=t?Fc(t):null;r.tabs.push({id:Rc(),hash:i,title:o||Mc,query:t,variables:n,headers:e,operationName:o,response:null})}return r}throw new Error("Storage for tabs is invalid")}catch(e){return null==r||r.set(qc,""),{activeTabIndex:0,tabs:[Pc()]}}}function Oc(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Cc(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(xc)}function xc(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Nc(e,"id")&&Nc(e,"title")&&Ac(e,"query")&&Ac(e,"variables")&&Ac(e,"headers")&&Ac(e,"operationName")&&Ac(e,"response")}function Cc(e,t){return t in e&&"number"==typeof e[t]}function Nc(e,t){return t in e&&"string"==typeof e[t]}function Ac(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Ic({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,i.useCallback)((i=>{var o,a,s,c,l;const u=null!=(o=null==e?void 0:e.getValue())?o:null,d=null!=(a=null==t?void 0:t.getValue())?a:null,p=null!=(s=null==n?void 0:n.getValue())?s:null,f=null!=(c=null==e?void 0:e.operationName)?c:null;return jc(i,{query:u,variables:d,headers:p,response:null!=(l=null==r?void 0:r.getValue())?l:null,operationName:f})}),[e,t,n,r])}function Dc({storage:e,shouldPersistHeaders:t}){const n=(0,i.useMemo)((()=>Hs(500,(t=>{null==e||e.set(qc,t)}))),[e]);return(0,i.useCallback)((e=>{n(JSON.stringify(e,((e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)))}),[t,n])}function Lc({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,i.useCallback)((({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(null!=i?i:""),null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=s?s:"")}),[n,e,r,t])}function Pc(){return{id:Rc(),hash:$c({query:null,variables:null,headers:null}),title:Mc,query:null,variables:null,headers:null,operationName:null,response:null}}function jc(e,t){return g(m({},e),{tabs:e.tabs.map(((n,r)=>{if(r!==e.activeTabIndex)return n;const i=m(m({},n),t);return g(m({},i),{hash:$c(i),title:i.operationName||(i.query?Fc(i.query):void 0)||Mc})}))})}function Rc(){const e=Tc((()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1)),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function $c(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function Fc(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}v(Sc,"getDefaultTabState"),Tc(Sc,"getDefaultTabState"),v(Oc,"isTabsState"),Tc(Oc,"isTabsState"),v(xc,"isTabState"),Tc(xc,"isTabState"),v(Cc,"hasNumberKey"),Tc(Cc,"hasNumberKey"),v(Nc,"hasStringKey"),Tc(Nc,"hasStringKey"),v(Ac,"hasStringOrNullKey"),Tc(Ac,"hasStringOrNullKey"),v(Ic,"useSynchronizeActiveTabValues"),Tc(Ic,"useSynchronizeActiveTabValues"),v(Dc,"useStoreTabs"),Tc(Dc,"useStoreTabs"),v(Lc,"useSetEditorValues"),Tc(Lc,"useSetEditorValues"),v(Pc,"emptyTab"),Tc(Pc,"emptyTab"),v(jc,"setPropertiesInActiveTab"),Tc(jc,"setPropertiesInActiveTab"),v(Rc,"guid"),Tc(Rc,"guid"),v($c,"hashFromTabContents"),Tc($c,"hashFromTabContents"),v(Fc,"fuzzyExtractOperationName"),Tc(Fc,"fuzzyExtractOperationName");const Mc="",qc="tabState";var Vc=Object.defineProperty,zc=v(((e,t)=>Vc(e,"name",{value:t,configurable:!0})),"__name$3");function Bc({editorTheme:e=jr,keyMap:t=Rr,onEdit:r,readOnly:o=!1}={}){const{initialVariables:a,variableEditor:s,setVariableEditor:c}=Wc({nonNull:!0,caller:Bc}),l=ks(),u=nc({caller:Bc}),d=rc({caller:Bc}),p=(0,i.useRef)(null),f=(0,i.useRef)();return(0,i.useEffect)((()=>{let t=!0;return Mr([Promise.all([n.e(338),n.e(253)]).then(n.bind(n,9253)),Promise.all([n.e(338),n.e(385)]).then(n.bind(n,8385)),Promise.all([n.e(338),n.e(912)]).then(n.bind(n,7912))]).then((n=>{if(!t)return;f.current=n;const r=p.current;if(!r)return;const i=n(r,{value:a,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Fr});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),c(i)})),()=>{t=!1}}),[e,a,o,c]),Ys(s,"keyMap",t),Js(s,r,Gc,"variables",Bc),Zs(s,Bc),ec(s,["Cmd-Enter","Ctrl-Enter"],null==l?void 0:l.run),ec(s,["Shift-Ctrl-P"],d),ec(s,["Shift-Ctrl-M"],u),p}v(Bc,"useVariableEditor"),zc(Bc,"useVariableEditor");const Gc="variables";var Qc=Object.defineProperty,Uc=v(((e,t)=>Qc(e,"name",{value:t,configurable:!0})),"__name$2");const Hc=Ri("EditorContext");function Kc(e){var t,n,o,a,s;const c=zi(),[l,u]=(0,i.useState)(null),[d,p]=(0,i.useState)(null),[f,h]=(0,i.useState)(null),[v,y]=(0,i.useState)(null);Xs(l,e.headers),Xs(d,e.query),Xs(f,e.response),Xs(v,e.variables);const[b]=(0,i.useState)((()=>{var t,n,r,i,o,a;return{headers:null!=(n=null!=(t=e.headers)?t:null==c?void 0:c.get(cc))?n:null,query:null!=(i=null!=(r=e.query)?r:null==c?void 0:c.get(_c))?i:null,variables:null!=(a=null!=(o=e.variables)?o:null==c?void 0:c.get(Gc))?a:null}})),[E,_]=(0,i.useState)((()=>Sc(g(m({},b),{storage:c})))),w=Dc({storage:c,shouldPersistHeaders:e.shouldPersistHeaders}),k=Ic({queryEditor:d,variableEditor:v,headerEditor:l,responseEditor:f}),T=Lc({queryEditor:d,variableEditor:v,headerEditor:l,responseEditor:f}),{onTabChange:S}=e,O=(0,i.useCallback)((()=>{_((e=>{const t=k(e),n={tabs:[...t.tabs,Pc()],activeTabIndex:t.tabs.length};return w(n),T(n.tabs[n.activeTabIndex]),null==S||S(n),n}))}),[S,T,w,k]),x=(0,i.useCallback)((e=>{_((t=>{const n=g(m({},k(t)),{activeTabIndex:e});return w(n),T(n.tabs[n.activeTabIndex]),null==S||S(n),n}))}),[S,T,w,k]),C=(0,i.useCallback)((e=>{_((t=>{const n={tabs:t.tabs.filter(((t,n)=>e!==n)),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return w(n),T(n.tabs[n.activeTabIndex]),null==S||S(n),n}))}),[S,T,w]),N=(0,i.useCallback)((e=>{_((t=>{const n=jc(t,e);return w(n),null==S||S(n),n}))}),[S,w]),{onEditOperationName:A}=e,I=(0,i.useCallback)((e=>{d&&(d.operationName=e,N({operationName:e}),null==A||A(e))}),[A,d,N]),D=E.activeTabIndex>0?"":null!=(t=e.defaultQuery)?t:Xc,L=(0,i.useRef)({initialHeaders:null!=(n=b.headers)?n:"",initialQuery:null!=(o=b.query)?o:D,initialResponse:null!=(a=e.response)?a:"",initialVariables:null!=(s=b.variables)?s:""}),P=(0,i.useMemo)((()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)(0,r.visit)((0,r.parse)(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t}),[e.externalFragments]),j=(0,i.useMemo)((()=>e.validationRules||[]),[e.validationRules]),R=(0,i.useMemo)((()=>g(m(g(m({},E),{addTab:O,changeTab:x,closeTab:C,updateActiveTabValues:N,headerEditor:l,queryEditor:d,responseEditor:f,variableEditor:v,setHeaderEditor:u,setQueryEditor:p,setResponseEditor:h,setVariableEditor:y,setOperationName:I}),L.current),{externalFragments:P,validationRules:j,shouldPersistHeaders:e.shouldPersistHeaders||!1})),[E,O,x,C,N,l,d,f,v,I,P,j,e.shouldPersistHeaders]);return ei(Hc.Provider,{value:R,children:e.children})}v(Kc,"EditorContextProvider"),Uc(Kc,"EditorContextProvider");const Wc=$i(Hc),Xc='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var Yc=Object.defineProperty,Jc=v(((e,t)=>Yc(e,"name",{value:t,configurable:!0})),"__name$1");function Zc({ResponseTooltip:e,editorTheme:t=jr,keyMap:r=Rr}={}){const{fetchError:o,validationErrors:a}=js({nonNull:!0,caller:Zc}),{initialResponse:c,responseEditor:l,setResponseEditor:u}=Wc({nonNull:!0,caller:Zc}),d=(0,i.useRef)(null),p=(0,i.useRef)(e);return(0,i.useEffect)((()=>{p.current=e}),[e]),(0,i.useEffect)((()=>{let e=!0;return Mr([Promise.all([n.e(338),n.e(148)]).then(n.bind(n,3148)).then((function(e){return e.f})),Promise.all([n.e(338),n.e(983)]).then(n.bind(n,5983)).then((function(e){return e.b})),Promise.all([n.e(338),n.e(924)]).then(n.bind(n,924)).then((function(e){return e.d})),Promise.all([n.e(338),n.e(528)]).then(n.bind(n,1528)).then((function(e){return e.s})),Promise.all([n.e(338),n.e(910)]).then(n.bind(n,5910)).then((function(e){return e.s})),Promise.all([n.e(338),n.e(113)]).then(n.bind(n,6113)).then((function(e){return e.j})),Promise.all([n.e(338),n.e(391)]).then(n.bind(n,7391)).then((function(e){return e.s})),Promise.all([n.e(338),n.e(271)]).then(n.bind(n,2271)),Promise.all([n.e(338),n.e(681)]).then(n.bind(n,6681))],{useCommonAddons:!1}).then((n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",((e,t,n,i)=>{const o=[],a=p.current;return a&&o.push(ei(a,{pos:i})),ii.shouldRender(e)&&o.push(ei(ii,{token:e},"image-preview")),o.length?(s().render(o,r),r):(s().unmountComponentAtNode(r),null)}));const i=d.current;if(!i)return;const o=n(i,{value:c,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Fr});u(o)})),()=>{e=!1}}),[t,c,u]),Ys(l,"keyMap",r),(0,i.useEffect)((()=>{o&&(null==l||l.setValue(o)),a.length>0&&(null==l||l.setValue(vi(a)))}),[l,o,a]),d}v(Zc,"useResponseEditor"),Jc(Zc,"useResponseEditor");var el=Object.defineProperty,tl=v(((e,t)=>el(e,"name",{value:t,configurable:!0})),"__name");function nl({defaultSizeRelation:e=rl,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:o=100,sizeThresholdSecond:a=100,storageKey:s}){const c=zi(),l=(0,i.useCallback)(Hs(500,(e=>{c&&s&&c.set(s,e)})),[c,s]),[u,d]=(0,i.useState)((()=>{const e=c&&s?c.get(s):null;return e===il||"first"===n?"first":e===ol||"second"===n?"second":null})),p=(0,i.useCallback)((e=>{d(e),null==r||r(e)}),[r]),f=(0,i.useRef)(null),h=(0,i.useRef)(null),m=(0,i.useRef)(null),g=(0,i.useRef)(`${e}`);(0,i.useLayoutEffect)((()=>{const e=c&&s&&c.get(s)||g.current,n="horizontal"===t?"row":"column";f.current&&(f.current.style.display="flex",f.current.style.flexDirection=n,f.current.style.flex=e===il||e===ol?g.current:e),m.current&&(m.current.style.display="flex",m.current.style.flexDirection=n,m.current.style.flex="1"),h.current&&(h.current.style.display="flex",h.current.style.flexDirection=n)}),[t,c,s]);const y=(0,i.useCallback)((e=>{const t="first"===e?f.current:m.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",f.current)){const e=parseFloat(f.current.style.flex);(!Number.isFinite(e)||e<1)&&(f.current.style.flex="1"),f.current.style.flex}}),[]),b=(0,i.useCallback)((e=>{const t="first"===e?f.current:m.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",f.current&&c&&s)){const e=null==c?void 0:c.get(s);e&&e!==il&&e!==ol&&(f.current.style.flex=e)}}),[c,s]);return(0,i.useLayoutEffect)((()=>{"first"===u?y("first"):b("first"),"second"===u?y("second"):b("second")}),[u,y,b]),(0,i.useEffect)((()=>{if(!h.current||!f.current||!m.current)return;const e=h.current,n=f.current,r=n.parentElement,i="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",c="horizontal"===t?"right":"bottom",u="horizontal"===t?"clientWidth":"clientHeight";function d(t){t.preventDefault();const d=t[i]-e.getBoundingClientRect()[s];function f(t){if(0===t.buttons)return h();const f=t[i]-r.getBoundingClientRect()[s]-d,m=r.getBoundingClientRect()[c]-t[i]+d-e[u];if(f{e.removeEventListener("mousedown",d),e.removeEventListener("dblclick",y)}}),[t,p,o,a,l]),(0,i.useMemo)((()=>({dragBarRef:h,hiddenElement:u,firstRef:f,setHiddenElement:p,secondRef:m})),[u,p])}v(nl,"useDragResize"),tl(nl,"useDragResize");const rl=1,il="hide-first",ol="hide-second"},5017:(e,t,n)=>{"use strict";var r=n(1609),i=n.n(r),o=n(6087);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nparseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const _=(e,t,n)=>0===n?e:e/100;function w(e,t){const n=t||255;return e>n?n:e<0?0:e}class k{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(m(this,"isValid",!0),m(this,"r",0),m(this,"g",0),m(this,"b",0),m(this,"a",1),m(this,"_h",void 0),m(this,"_s",void 0),m(this,"_l",void 0),m(this,"_v",void 0),m(this,"_max",void 0),m(this,"_min",void 0),m(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof k)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=w(e.r),this.g=w(e.g),this.b=w(e.b),this.a="number"==typeof e.a?w(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:b(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],o={r:b(i("r")),g:b(i("g")),b:b(i("b")),a:b(100*i("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>b((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=b(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=b(100*this.getSaturation()),n=b(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=w(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=b(255*n);this.r=e,this.g=e,this.b=e}let i=0,o=0,a=0;const s=e/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,o=l):s>=1&&s<2?(i=l,o=c):s>=2&&s<3?(o=c,a=l):s>=3&&s<4?(o=l,a=c):s>=4&&s<5?(i=l,a=c):s>=5&&s<6&&(i=c,a=l);const u=n-c/2;this.r=b(255*(i+u)),this.g=b(255*(o+u)),this.b=b(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const i=b(255*n);if(this.r=i,this.g=i,this.b=i,t<=0)return;const o=e/60,a=Math.floor(o),s=o-a,c=b(n*(1-t)*255),l=b(n*(1-t*s)*255),u=b(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=l;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=l}}fromHsvString(e){const t=E(e,_);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=E(e,_);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=E(e,((e,t)=>t.includes("%")?b(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var T=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function S(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function O(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function x(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function C(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new k(e),i=r.toHsv(),o=5;o>0;o-=1){var a=new k({h:S(i,o,!0),s:O(i,o,!0),v:x(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var c=new k({h:S(i,s),s:O(i,s),v:x(i,s)});n.push(c)}return"dark"===t.theme?T.map((function(e){var r=e.index,i=e.amount;return new k(t.backgroundColor||"#141414").mix(n[r],i).toHexString()})):n.map((function(e){return e.toHexString()}))}var N={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];A.primary=A[5];var I=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];I.primary=I[5];var D=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];D.primary=D[5];var L=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];L.primary=L[5];var P=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];P.primary=P[5];var j=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];j.primary=j[5];var R=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];R.primary=R[5];var $=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];$.primary=$[5];var F=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];F.primary=F[5];var M=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];M.primary=M[5];var q=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];q.primary=q[5];var V=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];V.primary=V[5];var z=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];z.primary=z[5];var B={red:A,volcano:I,orange:D,gold:L,yellow:P,lime:j,green:R,cyan:$,blue:F,geekblue:M,purple:q,magenta:V,grey:z},G=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];G.primary=G[5];var Q=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Q.primary=Q[5];var U=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];U.primary=U[5];var H=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];H.primary=H[5];var K=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];K.primary=K[5];var W=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];W.primary=W[5];var X=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];X.primary=X[5];var Y=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Y.primary=Y[5];var J=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];J.primary=J[5];var Z=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Z.primary=Z[5];var ee=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];ee.primary=ee[5];var te=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];te.primary=te[5];var ne=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ne.primary=ne[5];const re=(0,r.createContext)({});function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function de(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function pe(e){return Array.from((le.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ae())return null;var n=t.csp,r=t.prepend,i=t.priority,o=void 0===i?0:i,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,c=document.createElement("style");c.setAttribute(se,a),s&&o&&c.setAttribute(ce,"".concat(o)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var l=de(t),u=l.firstChild;if(r){if(s){var d=(t.styles||pe(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(se)))return!1;var t=Number(e.getAttribute(ce)||0);return o>=t}));if(d.length)return l.insertBefore(c,d[d.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=de(t);return(t.styles||pe(n)).find((function(n){return n.getAttribute(ue(t))===e}))}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=he(e,t);n&&de(t).removeChild(n)}function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=de(n),i=pe(r),o=oe(oe({},n),{},{styles:i});!function(e,t){var n=le.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=fe("",t),i=r.parentNode;le.set(e,i),e.removeChild(r)}}(r,o);var a,s,c,l=he(t,o);if(l)return null!==(a=o.csp)&&void 0!==a&&a.nonce&&l.nonce!==(null===(s=o.csp)||void 0===s?void 0:s.nonce)&&(l.nonce=null===(c=o.csp)||void 0===c?void 0:c.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var u=fe(e,o);return u.setAttribute(ue(o),t),u}function ve(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ye(e){return function(e){return ve(e)instanceof ShadowRoot}(e)?ve(e):null}var be={},Ee=[];function _e(e,t){}function we(e,t){}function ke(e,t,n){t||be[n]||(e(!1,n),be[n]=!0)}function Te(e,t){ke(_e,e,t)}Te.preMessage=function(e){Ee.push(e)},Te.resetWarned=function(){be={}},Te.noteOnce=function(e,t){ke(we,e,t)};const Se=Te;function Oe(e){return"object"===f(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===f(e.icon)||"function"==typeof e.icon)}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,i=e[n];return"class"===n?(t.className=i,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i),t}),{})}function Ce(e,t,n){return n?i().createElement(e.tag,oe(oe({key:t},xe(e.attrs)),n),(e.children||[]).map((function(n,r){return Ce(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):i().createElement(e.tag,oe({key:t},xe(e.attrs)),(e.children||[]).map((function(n,r){return Ce(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Ne(e){return C(e)[0]}function Ae(e){return e?Array.isArray(e)?e:[e]:[]}var Ie=["icon","className","onClick","style","primaryColor","secondaryColor"],De={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Le=function(e){var t,n,i,o,a,s,c,l,u=e.icon,d=e.className,p=e.onClick,f=e.style,h=e.primaryColor,m=e.secondaryColor,v=g(e,Ie),y=r.useRef(),b=De;if(h&&(b={primaryColor:h,secondaryColor:m||Ne(h)}),t=y,n=(0,r.useContext)(re),i=n.csp,o=n.prefixCls,a=n.layer,s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),(0,r.useEffect)((function(){var e=ye(t.current);ge(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:e})}),[]),c=Oe(u),l="icon should be icon definiton, but got ".concat(u),Se(c,"[@ant-design/icons] ".concat(l)),!Oe(u))return null;var E=u;return E&&"function"==typeof E.icon&&(E=oe(oe({},E),{},{icon:E.icon(b.primaryColor,b.secondaryColor)})),Ce(E.icon,"svg-".concat(E.name),oe(oe({className:d,onClick:p,style:f,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:y}))};Le.displayName="IconReact",Le.getTwoToneColors=function(){return oe({},De)},Le.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;De.primaryColor=t,De.secondaryColor=n||Ne(t),De.calculated=!!n};const Pe=Le;function je(e){var t=p(Ae(e),2),n=t[0],r=t[1];return Pe.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Re=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];je(F.primary);var $e=r.forwardRef((function(e,t){var n=e.className,i=e.icon,o=e.spin,s=e.rotate,c=e.tabIndex,l=e.onClick,u=e.twoToneColor,d=g(e,Re),f=r.useContext(re),h=f.prefixCls,v=void 0===h?"anticon":h,b=f.rootClassName,E=y()(b,v,m(m({},"".concat(v,"-").concat(i.name),!!i.name),"".concat(v,"-spin"),!!o||"loading"===i.name),n),_=c;void 0===_&&l&&(_=-1);var w=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,k=p(Ae(u),2),T=k[0],S=k[1];return r.createElement("span",a({role:"img","aria-label":i.name},d,{ref:t,tabIndex:_,onClick:l,className:E}),r.createElement(Pe,{icon:i,primaryColor:T,secondaryColor:S,style:w}))}));$e.displayName="AntdIcon",$e.getTwoToneColor=function(){var e=Pe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},$e.setTwoToneColor=je;const Fe=$e;var Me=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:s}))};const qe=r.forwardRef(Me),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var ze=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:Ve}))};const Be=r.forwardRef(ze),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var Qe=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:Ge}))};const Ue=r.forwardRef(Qe),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var Ke=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:He}))};const We=r.forwardRef(Ke);function Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ye(e){return function(e){if(Array.isArray(e))return l(e)}(e)||Xe(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const Ze="ant",et="anticon",tt=r.createContext({getPrefixCls:(e,t)=>t||(e?`${Ze}-${e}`:Ze),iconPrefixCls:et}),{Consumer:nt}=tt,rt=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var it=Symbol.for("react.element"),ot=Symbol.for("react.transitional.element"),at=Symbol.for("react.fragment");function st(e){return e&&"object"===f(e)&&(e.$$typeof===it||e.$$typeof===ot)&&e.type===at}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ct(e)):st(e)&&e.props?n=n.concat(ct(e.props.children,t)):n.push(e))})),n}const lt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var ut=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:lt}))};const dt=r.forwardRef(ut),pt=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function ft(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}const ht=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(Se(!a,"Warning: There may be circular references"),a)return!1;if(t===i)return!0;if(n&&o>1)return!1;r.add(t);var s=o+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var c=0;c1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i=i?null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=p(e,2)[1];return r.internalGet(t)[1]4&&void 0!==arguments[4]&&arguments[4])return e;var i=oe(oe({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(m(r={},_t,t),m(r,wt,n),r)),o=Object.keys(i).map((function(e){var t=i[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var Ft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Mt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=p(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},qt=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,o,a=p(e,2),s=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(o=n.ignore)&&void 0!==o&&o[s])){var l,u=Ft(s,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[s]?String(c):"".concat(c,"px"),i[s]="var(".concat(u,")")}})),[i,Mt(r,t,{scope:null==n?void 0:n.scope})]},Vt=ae()?r.useLayoutEffect:r.useEffect,zt=function(e,t){var n=r.useRef(!0);Vt((function(){return e(n.current)}),t),Vt((function(){return n.current=!1,function(){n.current=!0}}),[])},Bt=function(e,t){zt((function(t){if(!t)return e()}),t)};const Gt=zt;var Qt=oe({},r).useInsertionEffect;const Ut=Qt?function(e,t,n){return Qt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Gt((function(){return t(!0)}),n)},Ht=void 0!==oe({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function Kt(e,t,n,i,o){var a=r.useContext(St).cache,s=yt([e].concat(Ye(t))),c=Ht([s]),l=function(e){a.opUpdate(s,(function(t){var r=p(t||[void 0,void 0],2),i=r[0],o=[void 0===i?0:i,r[1]||n()];return e?e(o):o}))};r.useMemo((function(){l()}),[s]);var u=a.opGet(s)[1];return Ut((function(){null==o||o(u)}),(function(e){return l((function(t){var n=p(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(u)),[r+1,i]})),function(){a.opUpdate(s,(function(t){var n=p(t||[],2),r=n[0],o=void 0===r?0:r,l=n[1];return 0==o-1?(c((function(){!e&&a.opGet(s)||null==i||i(l,!1)})),null):[o-1,l]}))}}),[s]),u}var Wt={},Xt=new Map;var Yt="token";function Jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,r.useContext)(St),o=i.cache.instanceId,a=i.container,s=n.salt,c=void 0===s?"":s,l=n.override,u=void 0===l?Wt:l,d=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=function(e,n){for(var r=At,i=0;i0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(_t,'="').concat(e,'"]')).forEach((function(e){var n;e[kt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Xt.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=p(e,4),n=t[0],r=t[3];if(h&&r){var i=ge(r,pt("css-variables-".concat(n._themeKey)),{mark:wt,prepend:"queue",attachTo:a,priority:-999});i[kt]=o,i.setAttribute(_t,n._themeKey)}}));return b}const Zt={animationIterationCount: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,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};var en="comm",tn="rule",nn="decl",rn=Math.abs,on=String.fromCharCode;function an(e){return e.trim()}function sn(e,t,n){return e.replace(t,n)}function cn(e,t,n){return e.indexOf(t,n)}function ln(e,t){return 0|e.charCodeAt(t)}function un(e,t,n){return e.slice(t,n)}function dn(e){return e.length}function pn(e,t){return t.push(e),e}function fn(e,t){for(var n="",r=0;r0?ln(En,--yn):0,gn--,10===bn&&(gn=1,mn--),bn}function Tn(){return bn=yn2||Cn(bn)>3?"":" "}function In(e,t){for(;--t&&Tn()&&!(bn<48||bn>102||bn>57&&bn<65||bn>70&&bn<97););return xn(e,On()+(t<6&&32==Sn()&&32==Tn()))}function Dn(e){for(;Tn();)switch(bn){case e:return yn;case 34:case 39:34!==e&&39!==e&&Dn(bn);break;case 40:41===e&&Dn(e);break;case 92:Tn()}return yn}function Ln(e,t){for(;Tn()&&e+bn!==57&&(e+bn!==84||47!==Sn()););return"/*"+xn(t,yn-1)+"*"+on(47===e?e:Tn())}function Pn(e){for(;!Cn(Sn());)Tn();return xn(e,yn)}function jn(e){return function(e){return En="",e}(Rn("",null,null,null,[""],e=function(e){return mn=gn=1,vn=dn(En=e),yn=0,[]}(e),0,[0],e))}function Rn(e,t,n,r,i,o,a,s,c){for(var l=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",E=i,_=o,w=r,k=b;g;)switch(h=y,y=Tn()){case 40:if(108!=h&&58==ln(k,d-1)){-1!=cn(k+=sn(Nn(y),"&","&\f"),"&\f",rn(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Nn(y);break;case 9:case 10:case 13:case 32:k+=An(h);break;case 92:k+=In(On()-1,7);continue;case 47:switch(Sn()){case 42:case 47:pn(Fn(Ln(Tn(),On()),t,n,c),c),5!=Cn(h||1)&&5!=Cn(Sn()||1)||!dn(k)||" "===un(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[l++]=dn(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=sn(k,/\f/g,"")),f>0&&(dn(k)-d||0===m&&47===h)&&pn(f>32?Mn(k+";",r,n,d-1,c):Mn(sn(k," ","")+";",r,n,d-2,c),c);break;case 59:k+=";";default:if(pn(w=$n(k,t,n,l,u,i,s,b,E=[],_=[],d,o),o),123===y)if(0===u)Rn(k,t,w,w,E,o,d,s,_);else{switch(p){case 99:if(110===ln(k,3))break;case 108:if(97===ln(k,2))break;default:u=0;case 100:case 109:case 115:}u?Rn(e,w,w,r&&pn($n(e,w,w,0,0,i,s,b,i,E=[],d,_),_),i,_,d,s,r?E:_):Rn(k,w,w,w,[""],_,0,s,_)}}l=u=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+dn(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==kn())continue;switch(k+=on(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(dn(k)-1)*v,v=1;break;case 64:45===Sn()&&(k+=Nn(Tn())),p=Sn(),u=d=dn(b=k+=Pn(On())),y++;break;case 45:45===h&&2==dn(k)&&(m=0)}}return o}function $n(e,t,n,r,i,o,a,s,c,l,u,d){for(var p=i-1,f=0===i?o:[""],h=function(e){return e.length}(f),m=0,g=0,v=0;m0?f[y]+" "+b:sn(b,/&\f/g,f[y])))&&(c[v++]=E);return wn(e,t,n,0===i?tn:s,c,l,u,d)}function Fn(e,t,n,r){return wn(e,t,n,en,on(bn),un(e,2,-2),0,r)}function Mn(e,t,n,r,i){return wn(e,t,n,nn,un(e,0,r),un(e,r+1,-1),r,i)}var qn,Vn="data-ant-cssinjs-cache-path",zn="_FILE_STYLE__",Bn=!0;var Gn="_multi_value_";function Qn(e){return fn(jn(e),hn).replace(/\{%%%\:[^;];}/g,";")}var Un=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer,l=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,h=(n.linters,""),m={};function g(t){var r=t.getName(s);if(!m[r]){var i=p(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];m[r]="@keyframes ".concat(t.getName(s)).concat(i)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var r="string"!=typeof t||i?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)g(r);else{var c=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==f(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===f(e)&&e&&("_skip_check_"in e||Gn in e)}(r)){var u;function k(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Zt[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(s)),h+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===f(r)&&null!=r&&r[Gn]&&Array.isArray(d)?d.forEach((function(e){k(t,e)})):k(t,d)}else{var v=!1,y=t.trim(),b=!1;(i||o)&&s?y.startsWith("@")?v=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r,o=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(o).concat(i).concat(r.slice(o.length))].concat(Ye(n.slice(1))).join(" ")}));return o.join(",")}("&"===y?"":t,s,l):!i||s||"&"!==y&&""!==y||(y="",b=!0);var E=p(e(r,n,{root:b,injectHash:v,parentSelectors:[].concat(Ye(a),[y])}),2),_=E[0],w=E[1];m=oe(oe({},m),w),h+="".concat(y).concat(_)}}))}})),i?c&&(h&&(h="@layer ".concat(c.name," {").concat(h,"}")),c.dependencies&&(m["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):h="{".concat(h,"}"),[h,m]};function Hn(e,t){return pt("".concat(e.join("%")).concat(t))}function Kn(){return null}var Wn="style";function Xn(e,t){var n=e.token,i=e.path,o=e.hashId,s=e.layer,c=e.nonce,l=e.clientOnly,u=e.order,d=void 0===u?0:u,f=r.useContext(St),h=f.autoClear,g=(f.mock,f.defaultCache),v=f.hashPriority,y=f.container,b=f.ssrInline,E=f.transformers,_=f.linters,w=f.cache,k=f.layer,T=n._tokenKey,S=[T];k&&S.push("layer"),S.push.apply(S,Ye(i));var O=jt,x=Kt(Wn,S,(function(){var e=S.join("|");if(function(e){return function(){if(!qn&&(qn={},ae())){var e=document.createElement("div");e.className=Vn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=p(e.split(":"),2),n=t[0],r=t[1];qn[n]=r}));var n,r=document.querySelector("style[".concat(Vn,"]"));r&&(Bn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!qn[e]}(e)){var n=function(e){var t=qn[e],n=null;if(t&&ae())if(Bn)n=zn;else{var r=document.querySelector("style[".concat(wt,'="').concat(qn[e],'"]'));r?n=r.innerHTML:delete qn[e]}return[n,t]}(e),r=p(n,2),a=r[0],c=r[1];if(a)return[a,T,c,{},l,d]}var u=t(),f=p(Un(u,{hashId:o,hashPriority:v,layer:k?s:void 0,path:i.join("-"),transformers:E,linters:_}),2),h=f[0],m=f[1],g=Qn(h),y=Hn(S,g);return[g,T,y,m,l,d]}),(function(e,t){var n=p(e,3)[2];(t||h)&&jt&&me(n,{mark:wt})}),(function(e){var t=p(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(O&&n!==zn){var o={mark:wt,prepend:!k&&"queue",attachTo:y,priority:d},a="function"==typeof c?c():c;a&&(o.csp={nonce:a});var s=[],l=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?s.push(e):l.push(e)})),s.forEach((function(e){ge(Qn(i[e]),"_layer-".concat(e),oe(oe({},o),{},{prepend:!0}))}));var u=ge(n,r,o);u[kt]=w.instanceId,u.setAttribute(_t,T),l.forEach((function(e){ge(Qn(i[e]),"_effect-".concat(e),o)}))}})),C=p(x,3),N=C[0],A=C[1],I=C[2];return function(e){var t,n;return t=b&&!O&&g?r.createElement("style",a({},(m(n={},_t,A),m(n,wt,I),n),{dangerouslySetInnerHTML:{__html:N}})):r.createElement(Kn,null),r.createElement(r.Fragment,null,t,e)}}var Yn="cssVar";var Jn;m(Jn={},Wn,(function(e,t,n){var r=p(e,6),i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=(n||{}).plain;if(c)return null;var d=i,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return d=$t(i,o,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=$t(Qn(s[e]),o,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[l,a,d]})),m(Jn,Yt,(function(e,t,n){var r=p(e,5),i=r[2],o=r[3],a=r[4],s=(n||{}).plain;if(!o)return null;var c=i._tokenKey;return[-999,c,$t(o,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),m(Jn,Yn,(function(e,t,n){var r=p(e,4),i=r[1],o=r[2],a=r[3],s=(n||{}).plain;return i?[-999,o,$t(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var Zn=function(){function e(t,n){mt(this,e),m(this,"name",void 0),m(this,"style",void 0),m(this,"_keyframe",!0),this.name=t,this.style=n}return vt(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const er=Zn;function tr(e){return e.notSplit=!0,e}function nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rr(e,t){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rr(e,t)}function ir(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}function or(e){return or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},or(e)}function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ar=function(){return!!e})()}function sr(e){var t=ar();return function(){var n,r=or(e);if(t){var i=or(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nr(e)}(this,n)}}tr(["borderTop","borderBottom"]),tr(["borderTop"]),tr(["borderBottom"]),tr(["borderLeft","borderRight"]),tr(["borderLeft"]),tr(["borderRight"]);const cr=vt((function e(){mt(this,e)}));var lr="CALC_UNIT",ur=new RegExp(lr,"g");function dr(e){return"number"==typeof e?"".concat(e).concat(lr):e}var pr=function(e){ir(n,e);var t=sr(n);function n(e,r){var i;mt(this,n),m(nr(i=t.call(this)),"result",""),m(nr(i),"unitlessCssVar",void 0),m(nr(i),"lowPriority",void 0);var o=f(e);return i.unitlessCssVar=r,e instanceof n?i.result="(".concat(e.result,")"):"number"===o?i.result=dr(e):"string"===o&&(i.result=e),i}return vt(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(dr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(dr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(ur,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(cr);const fr=function(e){ir(n,e);var t=sr(n);function n(e){var r;return mt(this,n),m(nr(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return vt(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(cr),hr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function mr(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i=19)return!0;var r=(0,br.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===br.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===br.ForwardRef)};function Sr(e){return(0,r.isValidElement)(e)&&!st(e)}var Or=function(e){if(e&&Sr(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function xr(e,t){for(var n=e,r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!xr(e,t.slice(0,-1))?e:Cr(e,t,n,r)}function Ar(e){return Array.isArray(e)?[]:{}}var Ir="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Dr(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Vr=new qr;const zr=function(){return{}},Br={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Gr=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Qr=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ur=(e,t)=>({outline:`${Rt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),Hr=(e,t)=>({"&:focus-visible":Object.assign({},Ur(e,t))}),Kr={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Wr=Object.assign(Object.assign({},Kr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Xr={token:Wr,override:{override:Wr},hashed:!0},Yr=i().createContext(Xr);function Jr(e){return(e+8)/e}const Zr=(e,t)=>new k(e).setA(t).toRgbString(),ei=(e,t)=>new k(e).darken(t).toHexString(),ti=e=>{const t=C(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ni=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zr(r,.88),colorTextSecondary:Zr(r,.65),colorTextTertiary:Zr(r,.45),colorTextQuaternary:Zr(r,.25),colorFill:Zr(r,.15),colorFillSecondary:Zr(r,.06),colorFillTertiary:Zr(r,.04),colorFillQuaternary:Zr(r,.02),colorBgSolid:Zr(r,1),colorBgSolidHover:Zr(r,.75),colorBgSolidActive:Zr(r,.95),colorBgLayout:ei(n,4),colorBgContainer:ei(n,0),colorBgElevated:ei(n,0),colorBgSpotlight:Zr(r,.85),colorBgBlur:"transparent",colorBorder:ei(n,15),colorBorderSecondary:ei(n,6)}},ri=(ii=function(e){N.pink=N.magenta,B.pink=B.magenta;const t=Object.keys(Kr).map((t=>{const n=e[t]===N[t]?B[t]:C(e[t]);return new Array(10).fill(1).reduce(((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,d=n(c),p=n(i),f=n(o),h=n(a),m=n(s),g=r(l,u),v=n(e.colorLink||e.colorInfo),y=new k(h[1]).mix(new k(h[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:y,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new k("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:ti,generateNeutralColorPalettes:ni})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,i=e*Math.pow(Math.E,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Jr(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),i=n[1],o=n[0],a=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},(e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}})(r))}(e))},oi=Array.isArray(ii)?ii:[ii],Nt.has(oi)||Nt.set(oi,new Ct(oi)),Nt.get(oi));var ii,oi;const ai=ri;function si(e){return e>=0&&e<=255}const ci=function(e,t){const{r:n,g:r,b:i,a:o}=new k(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new k(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),o=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(si(t)&&si(o)&&si(l))return new k({r:t,g:o,b:l,a:Math.round(100*e)/100}).toRgbString()}return new k({r:n,g:r,b:i,a:1}).toRgbString()};function li(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{delete r[e]}));const i=Object.assign(Object.assign({},n),r);if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:ci(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:ci(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:ci(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:3*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:ci(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new k("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new k("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new k("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ui=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=ui(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=li(a),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,i=ui(n,["theme"]);let o=i;r&&(o=hi(Object.assign(Object.assign({},a),i),{override:i},r)),a[t]=o})),a};function mi(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=i().useContext(Yr),a=`5.23.4-${t||""}`,s=n||ai,[c,l,u]=Jt(s,[Wr,e],{salt:a,override:r,getComputedToken:hi,formatToken:li,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:di,ignore:pi,preserve:fi}});return[s,u,t?l:"",c,o]}const{genStyleHooks:gi,genComponentStyleHook:vi,genSubStyleComponent:yi}=function(e){var t=e.useCSP,n=void 0===t?zr:t,o=e.useToken,a=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,l=e.getCompUnitless;function u(t,r,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],h=p(d,1)[0],m=d.join("-"),g=e.layer||{name:"antd"};return function(e){var t,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=o(),y=v.theme,b=v.realToken,E=v.hashId,_=v.token,w=v.cssVar,k=a(),T=k.rootPrefixCls,S=k.iconPrefixCls,O=n(),x=w?"css":"js",C=(t=function(){var e=new Set;return w&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Ft(t,w.prefix)),e.add(Ft(t,hr(h,w.prefix)))})),function(e,t){var n="css"===e?pr:fr;return function(e){return new n(e,t)}}(x,e)},d=[x,h,null==w?void 0:w.prefix],i().useMemo((function(){var e=Vr.get(d);if(e)return e;var n=t();return Vr.set(d,n),n}),d)),N=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:e,n=p(g(e,t),2)[1],r=p(v(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,oe({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(tt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=mi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,r.useContext)(tt);return null!=e?e:{}},getResetStyles:(e,t)=>{var n,r;return[{"&":Qr(e)},(r=null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:et,{[`.${r}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${r} .${r}-icon`]:{display:"block"}})})]},getCommonStyle:(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},getCompUnitless:()=>di}),bi=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:Rt(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Ei=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:c}=e,l=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${o}px ${l}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},_i=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],wi=gi("Layout",(e=>[bi(e)]),Ei,{deprecatedTokens:_i}),ki=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:p,lightSiderBg:f,lightTriggerColor:h,lightTriggerBg:m,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Rt(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Rt(p)} ${Rt(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Rt(p)} 0 0 ${Rt(p)}`}}},"&-light":{background:f,[`${t}-trigger`]:{color:h,background:m},[`${t}-zero-width-trigger`]:{color:h,background:m,border:`1px solid ${g}`,borderInlineStart:0}}}}},Ti=gi(["Layout","Sider"],(e=>[ki(e)]),Ei,{deprecatedTokens:_i});const Si={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Oi=r.createContext({}),xi=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Ci=r.forwardRef(((e,t)=>{const{prefixCls:n,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:c="dark",style:l={},collapsible:u=!1,reverseArrow:d=!1,width:p=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"collapsed"in e&&w(e.collapsed)}),[e.collapsed]);const S=(t,n)=>{"collapsed"in e||w(t),null==g||g(t,n)},{getPrefixCls:O,direction:x}=(0,r.useContext)(tt),C=O("layout-sider",n),[N,A,I]=Ti(C),D=(0,r.useRef)(null);D.current=e=>{T(e.matches),null==v||v(e.matches),_!==e.matches&&S(e.matches,"responsive")},(0,r.useEffect)((()=>{function e(e){return D.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&m&&m in Si){t=n(`screen and (max-width: ${Si[m]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[m]),(0,r.useEffect)((()=>{const e=xi("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const L=()=>{S(!_,"clickTrigger")},P=Je(b,["collapsed"]),j=_?f:p,R=($=j,!Number.isNaN(Number.parseFloat($))&&isFinite($)?`${j}px`:String(j));var $;const F=0===parseFloat(String(f||0))?r.createElement("span",{onClick:L,className:y()(`${C}-zero-width-trigger`,`${C}-zero-width-trigger-${d?"right":"left"}`),style:h},o||r.createElement(dt,null)):null,M="rtl"===x==!d,q={expanded:M?r.createElement(Ue,null):r.createElement(We,null),collapsed:M?r.createElement(We,null):r.createElement(Ue,null)}[_?"collapsed":"expanded"],V=null!==o?F||r.createElement("div",{className:`${C}-trigger`,onClick:L,style:{width:R}},o||q):null,z=Object.assign(Object.assign({},l),{flex:`0 0 ${R}`,maxWidth:R,minWidth:R,width:R}),B=y()(C,`${C}-${c}`,{[`${C}-collapsed`]:!!_,[`${C}-has-trigger`]:u&&null!==o&&!F,[`${C}-below`]:!!k,[`${C}-zero-width`]:0===parseFloat(R)},i,A,I),G=r.useMemo((()=>({siderCollapsed:_})),[_]);return N(r.createElement(Oi.Provider,{value:G},r.createElement("aside",Object.assign({className:B},P,{style:z,ref:t}),r.createElement("div",{className:`${C}-children`},a),u||k&&F?V:null)))})),Ni=Ci;var Ai=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ir.forwardRef(((i,o)=>r.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},i))))}const Di=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:i,className:o,tagName:a}=e,s=Ai(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=r.useContext(tt),l=c("layout",n),[u,d,p]=wi(l),f=i?`${l}-${i}`:l;return u(r.createElement(a,Object.assign({className:y()(n||f,o,d,p),ref:t},s)))})),Li=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(tt),[i,o]=r.useState([]),{prefixCls:a,className:s,rootClassName:c,children:l,hasSider:u,tagName:d,style:p}=e,f=Je(Ai(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:m}=r.useContext(tt),g=h("layout",a),v=function(e,t,n){return"boolean"==typeof n?n:!!e.length||ct(t).some((e=>e.type===Ni))}(i,l,u),[b,E,_]=wi(g),w=y()(g,{[`${g}-has-sider`]:v,[`${g}-rtl`]:"rtl"===n},null==m?void 0:m.className,s,c,E,_),k=r.useMemo((()=>({siderHook:{addSider:e=>{o((t=>[].concat(Ye(t),[e])))},removeSider:e=>{o((t=>t.filter((t=>t!==e))))}}})),[]);return b(r.createElement(rt.Provider,{value:k},r.createElement(d,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},null==m?void 0:m.style),p)},f),l)))})),Pi=Ii({tagName:"div",displayName:"Layout"})(Li),ji=Ii({suffixCls:"header",tagName:"header",displayName:"Header"})(Di),Ri=Ii({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Di),$i=Ii({suffixCls:"content",tagName:"main",displayName:"Content"})(Di),Fi=Pi;Fi.Header=ji,Fi.Footer=Ri,Fi.Content=$i,Fi.Sider=Ni,Fi._InternalSiderContext=Oi;const Mi=Fi;var qi=n(5795),Vi=n.n(qi);function zi(e){return e instanceof HTMLElement||e instanceof SVGElement}function Bi(e){var t,n=function(e){return e&&"object"===f(e)&&zi(e.nativeElement)?e.nativeElement:zi(e)?e:null}(e);return n||(e instanceof i().Component?null===(t=Vi().findDOMNode)||void 0===t?void 0:t.call(Vi(),e):null)}var Gi=r.createContext(null),Qi=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){Ui&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ui&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Wi.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ji=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),lo="undefined"!=typeof WeakMap?new WeakMap:new Qi,uo=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Yi.getInstance(),r=new co(t,n,this);lo.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){uo.prototype[e]=function(){var t;return(t=lo.get(this))[e].apply(t,arguments)}}));const po=void 0!==Hi.ResizeObserver?Hi.ResizeObserver:uo;var fo=new Map,ho=new po((function(e){e.forEach((function(e){var t,n=e.target;null===(t=fo.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),mo=function(e){ir(n,e);var t=sr(n);function n(){return mt(this,n),t.apply(this,arguments)}return vt(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function go(e,t){var n=e.children,i=e.disabled,o=r.useRef(null),a=r.useRef(null),s=r.useContext(Gi),c="function"==typeof n,l=c?n(o):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(l)&&Tr(l),p=d?Or(l):null,h=kr(p,o),m=function(){var e;return Bi(o.current)||(o.current&&"object"===f(o.current)?Bi(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Bi(a.current)};r.useImperativeHandle(t,(function(){return m()}));var g=r.useRef(e);g.current=e;var v=r.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,a=i.height,c=e.offsetWidth,l=e.offsetHeight,d=Math.floor(o),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==c||u.current.offsetHeight!==l){var f={width:d,height:p,offsetWidth:c,offsetHeight:l};u.current=f;var h=c===Math.round(o)?o:c,m=l===Math.round(a)?a:l,v=oe(oe({},f),{},{offsetWidth:h,offsetHeight:m});null==s||s(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return r.useEffect((function(){var e,t,n=m();return n&&!i&&(e=n,t=v,fo.has(e)||(fo.set(e,new Set),ho.observe(e)),fo.get(e).add(t)),function(){return function(e,t){fo.has(e)&&(fo.get(e).delete(t),fo.get(e).size||(ho.unobserve(e),fo.delete(e)))}(n,v)}}),[o.current,i]),r.createElement(mo,{ref:a},d?r.cloneElement(l,{ref:h}):l)}const vo=r.forwardRef(go);function yo(e,t){var n=e.children;return("function"==typeof n?[n]:ct(n)).map((function(n,i){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(vo,a({},e,{key:o,ref:0===i?t:void 0}),n)}))}var bo=r.forwardRef(yo);bo.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(Gi),s=r.useCallback((function(e,t,r){i.current+=1;var s=i.current;o.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){s===i.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(Gi.Provider,{value:s},t)};const Eo=bo;var _o=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wo=void 0;function ko(e,t){var n=e.prefixCls,i=e.invalidate,o=e.item,s=e.renderItem,c=e.responsive,l=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,p=e.className,f=e.style,h=e.children,m=e.display,v=e.order,b=e.component,E=void 0===b?"div":b,_=g(e,_o),w=c&&!m;function k(e){u(d,e)}r.useEffect((function(){return function(){k(null)}}),[]);var T,S=s&&o!==wo?s(o,{index:v}):h;i||(T={opacity:w?0:1,height:w?0:wo,overflowY:w?"hidden":wo,order:c?v:wo,pointerEvents:w?"none":wo,position:w?"absolute":wo});var O={};w&&(O["aria-hidden"]=!0);var x=r.createElement(E,a({className:y()(!i&&n,p),style:oe(oe({},T),f)},O,_,{ref:t}),S);return c&&(x=r.createElement(Eo,{onResize:function(e){k(e.offsetWidth)},disabled:l},x)),x}var To=r.forwardRef(ko);To.displayName="Item";const So=To;var Oo=function(e){return+setTimeout(e,16)},xo=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Oo=function(e){return window.requestAnimationFrame(e)},xo=function(e){return window.cancelAnimationFrame(e)});var Co=0,No=new Map;function Ao(e){No.delete(e)}var Io=function(e){var t=Co+=1;return function n(r){if(0===r)Ao(t),e();else{var i=Oo((function(){n(r-1)}));No.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Io.cancel=function(e){var t=No.get(e);return Ao(e),xo(t)};const Do=Io;function Lo(e,t){var n=p(r.useState(t),2),i=n[0],o=n[1];return[i,mr((function(t){e((function(){o(t)}))}))]}var Po=i().createContext(null),jo=["component"],Ro=["className"],$o=["className"],Fo=function(e,t){var n=r.useContext(Po);if(!n){var i=e.component,o=void 0===i?"div":i,s=g(e,jo);return r.createElement(o,a({},s,{ref:t}))}var c=n.className,l=g(n,Ro),u=e.className,d=g(e,$o);return r.createElement(Po.Provider,{value:null},r.createElement(So,a({ref:t,className:y()(c,u)},l,d)))},Mo=r.forwardRef(Fo);Mo.displayName="RawItem";const qo=Mo;var Vo=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],zo="responsive",Bo="invalidate";function Go(e){return"+ ".concat(e.length," ...")}function Qo(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-overflow":i,s=e.data,c=void 0===s?[]:s,l=e.renderItem,u=e.renderRawItem,d=e.itemKey,f=e.itemWidth,h=void 0===f?10:f,m=e.ssr,v=e.style,b=e.className,E=e.maxCount,_=e.renderRest,w=e.renderRawRest,k=e.suffix,T=e.component,S=void 0===T?"div":T,O=e.itemComponent,x=e.onVisibleChange,C=g(e,Vo),N="full"===m,A=(n=r.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Do(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,qi.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),I=p(Lo(A,null),2),D=I[0],L=I[1],P=D||0,j=p(Lo(A,new Map),2),R=j[0],$=j[1],F=p(Lo(A,0),2),M=F[0],q=F[1],V=p(Lo(A,0),2),z=V[0],B=V[1],G=p(Lo(A,0),2),Q=G[0],U=G[1],H=p((0,r.useState)(null),2),K=H[0],W=H[1],X=p((0,r.useState)(null),2),Y=X[0],J=X[1],Z=r.useMemo((function(){return null===Y&&N?Number.MAX_SAFE_INTEGER:Y||0}),[Y,D]),ee=p((0,r.useState)(!1),2),te=ee[0],ne=ee[1],re="".concat(o,"-item"),ie=Math.max(M,z),ae=E===zo,se=c.length&&ae,ce=E===Bo,le=se||"number"==typeof E&&c.length>E,ue=(0,r.useMemo)((function(){var e=c;return se?e=null===D&&N?c:c.slice(0,Math.min(c.length,P/h)):"number"==typeof E&&(e=c.slice(0,E)),e}),[c,h,D,E,se]),de=(0,r.useMemo)((function(){return se?c.slice(Z+1):c.slice(ue.length)}),[c,ue,se,Z]),pe=(0,r.useCallback)((function(e,t){var n;return"function"==typeof d?d(e):null!==(n=d&&(null==e?void 0:e[d]))&&void 0!==n?n:t}),[d]),fe=(0,r.useCallback)(l||function(e){return e},[l]);function he(e,t,n){(Y!==e||void 0!==t&&t!==K)&&(J(e),n||(ne(eP){he(r-1,e-i-Q+z);break}}k&&ge(0)+Q>P&&W(null)}}),[P,R,z,Q,pe,ue]);var ve=te&&!!de.length,ye={};null!==K&&se&&(ye={position:"absolute",left:K,top:0});var be={prefixCls:re,responsive:se,component:O,invalidate:ce},Ee=u?function(e,t){var n=pe(e,t);return r.createElement(Po.Provider,{key:n,value:oe(oe({},be),{},{order:t,item:e,itemKey:n,registerSize:me,display:t<=Z})},u(e,t))}:function(e,t){var n=pe(e,t);return r.createElement(So,a({},be,{order:t,key:n,item:e,renderItem:fe,itemKey:n,registerSize:me,display:t<=Z}))},_e={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){B(t),q(z)},display:ve},we=_||Go,ke=w?r.createElement(Po.Provider,{value:oe(oe({},be),_e)},w(de)):r.createElement(So,a({},be,_e),"function"==typeof we?we(de):we),Te=r.createElement(S,a({className:y()(!ce&&o,b),style:v,ref:t},C),ue.map(Ee),le?ke:null,k&&r.createElement(So,a({},be,{responsive:ae,responsiveDisabled:!se,order:Z,className:"".concat(re,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:ye}),k));return ae?r.createElement(Eo,{onResize:function(e,t){L(t.clientWidth)},disabled:!se},Te):Te}var Uo=r.forwardRef(Qo);Uo.displayName="Overflow",Uo.Item=qo,Uo.RESPONSIVE=zo,Uo.INVALIDATE=Bo;const Ho=Uo;var Ko=r.createContext(null);function Wo(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Xo(e){return Wo(r.useContext(Ko),e)}var Yo=["children","locked"],Jo=r.createContext(null);function Zo(e){var t=e.children,n=e.locked,i=g(e,Yo),o=r.useContext(Jo),a=ft((function(){return e=i,t=oe({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,i],(function(e,t){return!(n||e[0]===t[0]&&ht(e[1],t[1],!0))}));return r.createElement(Jo.Provider,{value:a},t)}var ea=[],ta=r.createContext(null);function na(){return r.useContext(ta)}var ra=r.createContext(ea);function ia(e){var t=r.useContext(ra);return r.useMemo((function(){return void 0!==e?[].concat(Ye(t),[e]):t}),[t,e])}var oa=r.createContext(null);const aa=r.createContext({}),sa=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1};function ca(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(sa(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var la={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=la.F1&&t<=la.F12)return!1;switch(t){case la.ALT:case la.CAPS_LOCK:case la.CONTEXT_MENU:case la.CTRL:case la.DOWN:case la.END:case la.ESC:case la.HOME:case la.INSERT:case la.LEFT:case la.MAC_FF_META:case la.META:case la.NUMLOCK:case la.NUM_CENTER:case la.PAGE_DOWN:case la.PAGE_UP:case la.PAUSE:case la.PRINT_SCREEN:case la.RIGHT:case la.SHIFT:case la.UP:case la.WIN_KEY:case la.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=la.ZERO&&e<=la.NINE)return!0;if(e>=la.NUM_ZERO&&e<=la.NUM_MULTIPLY)return!0;if(e>=la.A&&e<=la.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case la.SPACE:case la.QUESTION_MARK:case la.NUM_PLUS:case la.NUM_MINUS:case la.NUM_PERIOD:case la.NUM_DIVISION:case la.SEMICOLON:case la.DASH:case la.EQUALS:case la.COMMA:case la.PERIOD:case la.SLASH:case la.APOSTROPHE:case la.SINGLE_QUOTE:case la.OPEN_SQUARE_BRACKET:case la.BACKSLASH:case la.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const ua=la;var da=ua.LEFT,pa=ua.RIGHT,fa=ua.UP,ha=ua.DOWN,ma=ua.ENTER,ga=ua.ESC,va=ua.HOME,ya=ua.END,ba=[fa,ha,da,pa];function Ea(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ye(e.querySelectorAll("*")).filter((function(e){return ca(e,t)}));return ca(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function _a(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Ea(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}var wa=function(e,t){var n=new Set,r=new Map,i=new Map;return e.forEach((function(e){var o=document.querySelector("[data-menu-id='".concat(Wo(t,e),"']"));o&&(n.add(o),i.set(o,e),r.set(e,o))})),{elements:n,key2element:r,element2key:i}};var ka="__RC_UTIL_PATH_SPLIT__",Ta=function(e){return e.join(ka)},Sa="rc-menu-more";function Oa(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ge("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else me(n);var i;return function(){me(n)}}),[t,n])}var Ya=!1,Ja=function(e){return!1!==e&&(ae()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Za=r.forwardRef((function(e,t){var n=e.open,i=e.autoLock,o=e.getContainer,a=(e.debug,e.autoDestroy),s=void 0===a||a,c=e.children,l=p(r.useState(n),2),u=l[0],d=l[1],f=u||n;r.useEffect((function(){(s||n)&&d(n)}),[n,s]);var h=p(r.useState((function(){return Ja(o)})),2),m=h[0],g=h[1];r.useEffect((function(){var e=Ja(o);g(null!=e?e:null)}));var v=function(e){var t=p(r.useState((function(){return ae()?document.createElement("div"):null})),1)[0],n=r.useRef(!1),i=r.useContext(Ua),o=p(r.useState(Ha),2),a=o[0],s=o[1],c=i||(n.current?void 0:function(e){s((function(t){return[e].concat(Ye(t))}))});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Gt((function(){return e?i?i(l):l():u(),u}),[e]),Gt((function(){a.length&&(a.forEach((function(e){return e()})),s(Ha))}),[a]),[t,c]}(f&&!m),y=p(v,2),b=y[0],E=y[1],_=null!=m?m:b;Xa(i&&n&&ae()&&(_===b||_===document.body));var w=null;c&&Tr(c)&&t&&(w=c.ref);var k=kr(w,t);if(!f||!ae()||void 0===m)return null;var T=!1===_||Ya,S=c;return t&&(S=r.cloneElement(c,{ref:k})),r.createElement(Ua.Provider,{value:E},T?S:(0,qi.createPortal)(S,_))}));const es=Za;var ts=0,ns=oe({},r).useId;const rs=ns?function(e){var t=ns();return e||t}:function(e){var t=p(r.useState("ssr-id"),2),n=t[0],i=t[1];return r.useEffect((function(){var e=ts;ts+=1,i("rc_unique_".concat(e))}),[]),e||n},is=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var os=r.createContext({}),as=function(e){ir(n,e);var t=sr(n);function n(){return mt(this,n),t.apply(this,arguments)}return vt(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const ss=as;var cs="none",ls="appear",us="enter",ds="leave",ps="none",fs="prepare",hs="start",ms="active",gs="end",vs="prepared";function ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var bs,Es,_s,ws=(bs=ae(),Es="undefined"!=typeof window?window:{},_s={animationend:ys("Animation","AnimationEnd"),transitionend:ys("Transition","TransitionEnd")},bs&&("AnimationEvent"in Es||delete _s.animationend.animation,"TransitionEvent"in Es||delete _s.transitionend.transition),_s),ks={};if(ae()){var Ts=document.createElement("div");ks=Ts.style}var Ss={};function Os(e){if(Ss[e])return Ss[e];var t=ws[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Do((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),c=p(s,2),l=c[0],u=c[1],d=t?js:Ps;return Ls((function(){if(o!==ps&&o!==gs){var e=d.indexOf(o),t=d[e+1],r=n(o);r===Rs?a(t,!0):t&&l((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(fs,!0)},o]}(z,!e,(function(e){if(e===fs){var t=J[fs];return t?t(Q()):Rs}var n;return te in J&&V((null===(n=J[te])||void 0===n?void 0:n.call(J,Q(),null))||null),te===ms&&z!==cs&&(X(Q()),v>0&&(clearTimeout(G.current),G.current=setTimeout((function(){K({deadline:!0})}),v))),te===vs&&H(),!0})),2),ee=Z[0],te=Z[1],ne=$s(te);U.current=ne;var re=(0,r.useRef)(null);Ls((function(){if(!B.current||re.current!==t){P(t);var n,r=B.current;B.current=!0,!r&&t&&f&&(n=ls),r&&t&&u&&(n=us),(r&&!t&&g||!r&&y&&!t&&g)&&(n=ds);var i=Y(n);n&&(e||i[fs])?(F(n),ee()):F(cs),re.current=t}}),[t]),(0,r.useEffect)((function(){(z===ls&&!f||z===us&&!u||z===ds&&!g)&&F(cs)}),[f,u,g]),(0,r.useEffect)((function(){return function(){B.current=!1,clearTimeout(G.current)}}),[]);var ie=r.useRef(!1);(0,r.useEffect)((function(){L&&(ie.current=!0),void 0!==L&&z===cs&&((ie.current||L)&&(null==I||I(L)),ie.current=!0)}),[L,z]);var ae=q;return J[fs]&&te===hs&&(ae=oe({transition:"none"},ae)),[z,te,ae,null!=L?L:t]}const Ms=function(e){var t=e;"object"===f(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var i=e.visible,o=void 0===i||i,a=e.removeOnLeave,s=void 0===a||a,c=e.forceRender,l=e.children,u=e.motionName,d=e.leavedClassName,f=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(os).motion),g=(0,r.useRef)(),v=(0,r.useRef)(),b=p(Fs(h,o,(function(){try{return g.current instanceof HTMLElement?g.current:Bi(v.current)}catch(e){return null}}),e),4),E=b[0],_=b[1],w=b[2],k=b[3],T=r.useRef(k);k&&(T.current=!0);var S,O=r.useCallback((function(e){g.current=e,_r(n,e)}),[n]),x=oe(oe({},f),{},{visible:o});if(l)if(E===cs)S=k?l(oe({},x),O):!s&&T.current&&d?l(oe(oe({},x),{},{className:d}),O):c||!s&&!d?l(oe(oe({},x),{},{style:{display:"none"}}),O):null;else{var C;_===fs?C="prepare":$s(_)?C="active":_===hs&&(C="start");var N=Ds(u,"".concat(E,"-").concat(C));S=l(oe(oe({},x),{},{className:y()(Ds(u,E),m(m({},N,N&&C),u,"string"==typeof u)),style:w}),O)}else S=null;return r.isValidElement(S)&&Tr(S)&&(Or(S)||(S=r.cloneElement(S,{ref:O}))),r.createElement(ss,{ref:v},S)}));return n.displayName="CSSMotion",n}(Ns);var qs="add",Vs="keep",zs="remove",Bs="removed";function Gs(e){var t;return oe(oe({},t=e&&"object"===f(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Qs(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Gs)}var Us=["component","children","onVisibleChanged","onAllRemoved"],Hs=["status"],Ks=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms,t=function(t){ir(i,t);var n=sr(i);function i(){var e;mt(this,i);for(var t=arguments.length,r=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Qs(e),a=Qs(t);o.forEach((function(e){for(var t=!1,o=r;o1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==zs}))).forEach((function(t){t.key===e&&(t.status=Vs)}))})),n}(r,i);return{keyEntities:o.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Bs||e.status!==zs}))}}}]),i}(r.Component);m(t,"defaultProps",{component:"div"})}(Ns);const Ws=Ms;function Xs(e){var t=e.prefixCls,n=e.align,i=e.arrow,o=e.arrowPos,a=i||{},s=a.className,c=a.content,l=o.x,u=void 0===l?0:l,d=o.y,p=void 0===d?0:d,f=r.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],E=g[0],_=g[1];v!==E&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=p,b!==_&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return r.createElement("div",{ref:f,className:y()("".concat(t,"-arrow"),s),style:h},c)}function Ys(e){var t=e.prefixCls,n=e.open,i=e.zIndex,o=e.mask,s=e.motion;return o?r.createElement(Ws,a({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:i},className:y()("".concat(t,"-mask"),n)})})):null}var Js=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Zs=Js;var ec=r.forwardRef((function(e,t){var n=e.popup,i=e.className,o=e.prefixCls,s=e.style,c=e.target,l=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,h=e.onClick,m=e.mask,g=e.arrow,v=e.arrowPos,b=e.align,E=e.motion,_=e.maskMotion,w=e.forceRender,k=e.getPopupContainer,T=e.autoDestroy,S=e.portal,O=e.zIndex,x=e.onMouseEnter,C=e.onMouseLeave,N=e.onPointerEnter,A=e.onPointerDownCapture,I=e.ready,D=e.offsetX,L=e.offsetY,P=e.offsetR,j=e.offsetB,R=e.onAlign,$=e.onPrepare,F=e.stretch,M=e.targetWidth,q=e.targetHeight,V="function"==typeof n?n():n,z=u||d,B=(null==k?void 0:k.length)>0,G=p(r.useState(!k||!B),2),Q=G[0],U=G[1];if(Gt((function(){!Q&&B&&c&&U(!0)}),[Q,B,c]),!Q)return null;var H="auto",K={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(I||!u){var W,X=b.points,Y=b.dynamicInset||(null===(W=b._experimental)||void 0===W?void 0:W.dynamicInset),J=Y&&"r"===X[0][1],Z=Y&&"b"===X[0][0];J?(K.right=P,K.left=H):(K.left=D,K.right=H),Z?(K.bottom=j,K.top=H):(K.top=L,K.bottom=H)}var ee={};return F&&(F.includes("height")&&q?ee.height=q:F.includes("minHeight")&&q&&(ee.minHeight=q),F.includes("width")&&M?ee.width=M:F.includes("minWidth")&&M&&(ee.minWidth=M)),u||(ee.pointerEvents="none"),r.createElement(S,{open:w||z,getContainer:k&&function(){return k(c)},autoDestroy:T},r.createElement(Ys,{prefixCls:o,open:u,zIndex:O,mask:m,motion:_}),r.createElement(Eo,{onResize:R,disabled:!u},(function(e){return r.createElement(Ws,a({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(o,"-hidden")},E,{onAppearPrepare:$,onEnterPrepare:$,visible:u,onVisibleChanged:function(e){var t;null==E||null===(t=E.onVisibleChanged)||void 0===t||t.call(E,e),l(e)}}),(function(n,a){var c=n.className,l=n.style,d=y()(o,c,i);return r.createElement("div",{ref:wr(e,t,a),className:d,style:oe(oe(oe(oe({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},K),ee),l),{},{boxSizing:"border-box",zIndex:O},s),onMouseEnter:x,onMouseLeave:C,onPointerEnter:N,onClick:h,onPointerDownCapture:A},g&&r.createElement(Xs,{prefixCls:o,arrow:g,arrowPos:v,align:b}),r.createElement(Zs,{cache:!u&&!f},V))}))})))}));const tc=ec;var nc=r.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,o=Tr(n),a=r.useCallback((function(e){_r(t,i?i(e):e)}),[i]),s=kr(a,Or(n));return o?r.cloneElement(n,{ref:s}):n}));const rc=nc,ic=r.createContext(null);function oc(e){return e?Array.isArray(e)?e:[e]:[]}function ac(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function sc(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function cc(e){return e.ownerDocument.defaultView}function lc(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=cc(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function uc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function dc(e){return uc(parseFloat(e),0)}function pc(e,t){var n=oe({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=cc(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=dc(o),m=dc(a),g=dc(s),v=dc(c),y=uc(Math.round(l.width/p*1e3)/1e3),b=uc(Math.round(l.height/u*1e3)/1e3),E=(p-f-g-v)*y,_=(u-d-h-m)*b,w=h*b,k=m*b,T=g*y,S=v*y,O=0,x=0;if("clip"===r){var C=dc(i);O=C*y,x=C*b}var N=l.x+T-O,A=l.y+w-x,I=N+l.width+2*O-T-S-E,D=A+l.height+2*x-w-k-_;n.left=Math.max(n.left,N),n.top=Math.max(n.top,A),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,D)}})),n}function fc(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function hc(e,t){var n=p(t||[],2),r=n[0],i=n[1];return[fc(e.width,r),fc(e.height,i)]}function mc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function gc(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function vc(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var yc=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const bc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:es,t=r.forwardRef((function(t,n){var i=t.prefixCls,o=void 0===i?"rc-trigger-popup":i,a=t.children,s=t.action,c=void 0===s?"hover":s,l=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,h=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,v=t.mouseEnterDelay,b=t.mouseLeaveDelay,E=void 0===b?.1:b,_=t.focusDelay,w=t.blurDelay,k=t.mask,T=t.maskClosable,S=void 0===T||T,O=t.getPopupContainer,x=t.forceRender,C=t.autoDestroy,N=t.destroyPopupOnHide,A=t.popup,I=t.popupClassName,D=t.popupStyle,L=t.popupPlacement,P=t.builtinPlacements,j=void 0===P?{}:P,R=t.popupAlign,$=t.zIndex,F=t.stretch,M=t.getPopupClassNameFromAlign,q=t.fresh,V=t.alignPoint,z=t.onPopupClick,B=t.onPopupAlign,G=t.arrow,Q=t.popupMotion,U=t.maskMotion,H=t.popupTransitionName,K=t.popupAnimation,W=t.maskTransitionName,X=t.maskAnimation,Y=t.className,J=t.getTriggerDOMNode,Z=g(t,yc),ee=C||N||!1,te=p(r.useState(!1),2),ne=te[0],re=te[1];Gt((function(){re(is())}),[]);var ie=r.useRef({}),ae=r.useContext(ic),se=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=rs(),le=p(r.useState(null),2),ue=le[0],de=le[1],pe=r.useRef(null),fe=mr((function(e){pe.current=e,zi(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),he=p(r.useState(null),2),me=he[0],ge=he[1],ve=r.useRef(null),be=mr((function(e){zi(e)&&me!==e&&(ge(e),ve.current=e)})),Ee=r.Children.only(a),_e=(null==Ee?void 0:Ee.props)||{},we={},ke=mr((function(e){var t,n,r=me;return(null==r?void 0:r.contains(e))||(null===(t=ye(r))||void 0===t?void 0:t.host)===e||e===r||(null==ue?void 0:ue.contains(e))||(null===(n=ye(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Te=sc(o,Q,K,H),Se=sc(o,U,X,W),Oe=p(r.useState(f||!1),2),xe=Oe[0],Ce=Oe[1],Ne=null!=d?d:xe,Ae=mr((function(e){void 0===d&&Ce(e)}));Gt((function(){Ce(d||!1)}),[d]);var Ie=r.useRef(Ne);Ie.current=Ne;var De=r.useRef([]);De.current=[];var Le=mr((function(e){var t;Ae(e),(null!==(t=De.current[De.current.length-1])&&void 0!==t?t:Ne)!==e&&(De.current.push(e),null==h||h(e))})),Pe=r.useRef(),je=function(){clearTimeout(Pe.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?Le(e):Pe.current=setTimeout((function(){Le(e)}),1e3*t)};r.useEffect((function(){return je}),[]);var $e=p(r.useState(!1),2),Fe=$e[0],Me=$e[1];Gt((function(e){e&&!Ne||Me(!0)}),[Ne]);var qe=p(r.useState(null),2),Ve=qe[0],ze=qe[1],Be=p(r.useState(null),2),Ge=Be[0],Qe=Be[1],Ue=function(e){Qe([e.clientX,e.clientY])},He=function(e,t,n,i,o,a,s){var c=p(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[i]||{}}),2),l=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?lc(t):[]}),[t]),h=r.useRef({});e||(h.current={});var m=mr((function(){if(t&&n&&e){var r,c,l,d,m,g=t,v=g.ownerDocument,y=cc(g).getComputedStyle(g),b=y.width,E=y.height,_=y.position,w=g.style.left,k=g.style.top,T=g.style.right,S=g.style.bottom,O=g.style.overflow,x=oe(oe({},o[i]),a),C=v.createElement("div");if(null===(r=g.parentElement)||void 0===r||r.appendChild(C),C.style.left="".concat(g.offsetLeft,"px"),C.style.top="".concat(g.offsetTop,"px"),C.style.position=_,C.style.height="".concat(g.offsetHeight,"px"),C.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var N,A,I=n.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(A=I.y)&&void 0!==A?A:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var D=g.getBoundingClientRect();D.x=null!==(c=D.x)&&void 0!==c?c:D.left,D.y=null!==(l=D.y)&&void 0!==l?l:D.top;var L=v.documentElement,P=L.clientWidth,j=L.clientHeight,R=L.scrollWidth,$=L.scrollHeight,F=L.scrollTop,M=L.scrollLeft,q=D.height,V=D.width,z=m.height,B=m.width,G={left:0,top:0,right:P,bottom:j},Q={left:-M,top:-F,right:R-M,bottom:$-F},U=x.htmlRegion,H="visible",K="visibleFirst";"scroll"!==U&&U!==K&&(U=H);var W=U===K,X=pc(Q,f),Y=pc(G,f),J=U===H?Y:X,Z=W?Y:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ee=g.getBoundingClientRect();g.style.left=w,g.style.top=k,g.style.right=T,g.style.bottom=S,g.style.overflow=O,null===(d=g.parentElement)||void 0===d||d.removeChild(C);var te=uc(Math.round(V/parseFloat(b)*1e3)/1e3),ne=uc(Math.round(q/parseFloat(E)*1e3)/1e3);if(0===te||0===ne||zi(n)&&!sa(n))return;var re=x.offset,ie=x.targetOffset,ae=p(hc(D,re),2),se=ae[0],ce=ae[1],le=p(hc(m,ie),2),ue=le[0],de=le[1];m.x-=ue,m.y-=de;var pe=p(x.points||[],2),fe=pe[0],he=mc(pe[1]),me=mc(fe),ge=gc(m,he),ve=gc(D,me),ye=oe({},x),be=ge.x-ve.x+se,Ee=ge.y-ve.y+ce;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=D.x+e,i=D.y+t,o=r+V,a=i+q,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-s)*(u-c))}var _e,we,ke,Te,Se=ft(be,Ee),Oe=ft(be,Ee,Y),xe=gc(m,["t","l"]),Ce=gc(D,["t","l"]),Ne=gc(m,["b","r"]),Ae=gc(D,["b","r"]),Ie=x.overflow||{},De=Ie.adjustX,Le=Ie.adjustY,Pe=Ie.shiftX,je=Ie.shiftY,Re=function(e){return"boolean"==typeof e?e:e>=0};function ht(){_e=D.y+Ee,we=_e+q,ke=D.x+be,Te=ke+V}ht();var $e=Re(Le),Fe=me[0]===he[0];if($e&&"t"===me[0]&&(we>Z.bottom||h.current.bt)){var Me=Ee;Fe?Me-=q-z:Me=xe.y-Ae.y-ce;var qe=ft(be,Me),Ve=ft(be,Me,Y);qe>Se||qe===Se&&(!W||Ve>=Oe)?(h.current.bt=!0,Ee=Me,ce=-ce,ye.points=[vc(me,0),vc(he,0)]):h.current.bt=!1}if($e&&"b"===me[0]&&(_eSe||Be===Se&&(!W||Ge>=Oe)?(h.current.tb=!0,Ee=ze,ce=-ce,ye.points=[vc(me,0),vc(he,0)]):h.current.tb=!1}var Qe=Re(De),Ue=me[1]===he[1];if(Qe&&"l"===me[1]&&(Te>Z.right||h.current.rl)){var He=be;Ue?He-=V-B:He=xe.x-Ae.x-se;var Ke=ft(He,Ee),We=ft(He,Ee,Y);Ke>Se||Ke===Se&&(!W||We>=Oe)?(h.current.rl=!0,be=He,se=-se,ye.points=[vc(me,1),vc(he,1)]):h.current.rl=!1}if(Qe&&"r"===me[1]&&(keSe||Ye===Se&&(!W||Je>=Oe)?(h.current.lr=!0,be=Xe,se=-se,ye.points=[vc(me,1),vc(he,1)]):h.current.lr=!1}ht();var Ze=!0===Pe?0:Pe;"number"==typeof Ze&&(keY.right&&(be-=Te-Y.right-se,m.x>Y.right-Ze&&(be+=m.x-Y.right+Ze)));var et=!0===je?0:je;"number"==typeof et&&(_eY.bottom&&(Ee-=we-Y.bottom-ce,m.y>Y.bottom-et&&(Ee+=m.y-Y.bottom+et)));var tt=D.x+be,nt=tt+V,rt=D.y+Ee,it=rt+q,ot=m.x,at=ot+B,st=m.y,ct=st+z,lt=(Math.max(tt,ot)+Math.min(nt,at))/2-tt,ut=(Math.max(rt,st)+Math.min(it,ct))/2-rt;null==s||s(t,ye);var dt=ee.right-D.x-(be+D.width),pt=ee.bottom-D.y-(Ee+D.height);1===te&&(be=Math.round(be),dt=Math.round(dt)),1===ne&&(Ee=Math.round(Ee),pt=Math.round(pt)),u({ready:!0,offsetX:be/te,offsetY:Ee/ne,offsetR:dt/te,offsetB:pt/ne,arrowX:lt/te,arrowY:ut/ne,scaleX:te,scaleY:ne,align:ye})}})),g=function(){u((function(e){return oe(oe({},e),{},{ready:!1})}))};return Gt(g,[i]),Gt((function(){e||g()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Ne,ue,V&&null!==Ge?Ge:me,L,j,R,B),Ke=p(He,11),We=Ke[0],Xe=Ke[1],Je=Ke[2],Ze=Ke[3],et=Ke[4],tt=Ke[5],nt=Ke[6],rt=Ke[7],it=Ke[8],ot=Ke[9],at=Ke[10],st=function(e,t,n,i){return r.useMemo((function(){var r=oc(null!=n?n:t),o=oc(null!=i?i:t),a=new Set(r),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,i])}(ne,c,l,u),ct=p(st,2),lt=ct[0],ut=ct[1],dt=lt.has("click"),pt=ut.has("click")||ut.has("contextMenu"),ft=mr((function(){Fe||at()}));!function(e,t,n,r){Gt((function(){if(e&&t&&n){var i=n,o=lc(t),a=lc(i),s=cc(i),c=new Set([s].concat(Ye(o),Ye(a)));function l(){r(),Ie.current&&V&&pt&&Re(!1)}return c.forEach((function(e){e.addEventListener("scroll",l,{passive:!0})})),s.addEventListener("resize",l,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",l),s.removeEventListener("resize",l)}))}}}),[e,t,n])}(Ne,me,ue,ft),Gt((function(){ft()}),[Ge,L]),Gt((function(){!Ne||null!=j&&j[L]||ft()}),[JSON.stringify(R)]);var ht=r.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),i=1;i1?n-1:0),i=1;i1&&(E.motionAppear=!1);var _=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||y(!0),null==_?void 0:_(e)},v?null:r.createElement(Zo,{mode:s,locked:!m.current},r.createElement(Ws,a({visible:b},E,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,i=e.style;return r.createElement(Ga,{id:t,className:n,style:i},o)})))}var xc=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Cc=["active"],Nc=r.forwardRef((function(e,t){var n=e.style,i=e.className,o=e.title,s=e.eventKey,c=(e.warnKey,e.disabled),l=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,h=e.popupClassName,v=e.popupOffset,b=e.popupStyle,E=e.onClick,_=e.onMouseEnter,w=e.onMouseLeave,k=e.onTitleClick,T=e.onTitleMouseEnter,S=e.onTitleMouseLeave,O=g(e,xc),x=Xo(s),C=r.useContext(Jo),N=C.prefixCls,A=C.mode,I=C.openKeys,D=C.disabled,L=C.overflowDisabled,P=C.activeKey,j=C.selectedKeys,R=C.itemIcon,$=C.expandIcon,F=C.onItemClick,M=C.onOpenChange,q=C.onActive,V=r.useContext(aa)._internalRenderSubMenuItem,z=r.useContext(oa).isSubPathKey,B=ia(),G="".concat(N,"-submenu"),Q=D||c,U=r.useRef(),H=r.useRef(),K=null!=d?d:R,W=null!=f?f:$,X=I.includes(s),Y=!L&&X,J=z(j,s),Z=Na(s,Q,T,S),ee=Z.active,te=g(Z,Cc),ne=p(r.useState(!1),2),re=ne[0],ie=ne[1],ae=function(e){Q||ie(e)},se=r.useMemo((function(){return ee||"inline"!==A&&(re||z([P],s))}),[A,ee,P,re,s,z]),ce=Aa(B.length),le=Oa((function(e){null==E||E(La(e)),F(e)})),ue=x&&"".concat(x,"-popup"),de=r.createElement("div",a({role:"menuitem",style:ce,className:"".concat(G,"-title"),tabIndex:Q?null:-1,ref:U,title:"string"==typeof o?o:null,"data-menu-id":L&&x?null:x,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":Q,onClick:function(e){Q||(null==k||k({key:s,domEvent:e}),"inline"===A&&M(s,!X))},onFocus:function(){q(s)}},te),o,r.createElement(Ia,{icon:"horizontal"!==A?W:void 0,props:oe(oe({},e),{},{isOpen:Y,isSubMenu:!0})},r.createElement("i",{className:"".concat(G,"-arrow")}))),pe=r.useRef(A);if("inline"!==A&&B.length>1?pe.current="vertical":pe.current=A,!L){var fe=pe.current;de=r.createElement(Sc,{mode:fe,prefixCls:G,visible:!l&&Y&&"inline"!==A,popupClassName:h,popupOffset:v,popupStyle:b,popup:r.createElement(Zo,{mode:"horizontal"===fe?"vertical":fe},r.createElement(Ga,{id:ue,ref:H},u)),disabled:Q,onVisibleChange:function(e){"inline"!==A&&M(s,e)}},de)}var he=r.createElement(Ho.Item,a({ref:t,role:"none"},O,{component:"li",style:n,className:y()(G,"".concat(G,"-").concat(A),i,m(m(m(m({},"".concat(G,"-open"),Y),"".concat(G,"-active"),se),"".concat(G,"-selected"),J),"".concat(G,"-disabled"),Q)),onMouseEnter:function(e){ae(!0),null==_||_({key:s,domEvent:e})},onMouseLeave:function(e){ae(!1),null==w||w({key:s,domEvent:e})}}),de,!L&&r.createElement(Oc,{id:ue,open:Y,keyPath:B},u));return V&&(he=V(he,e,{selected:J,active:se,open:Y,disabled:Q})),r.createElement(Zo,{onItemClick:le,mode:"horizontal"===A?"vertical":A,itemIcon:K,expandIcon:W},he)}));const Ac=r.forwardRef((function(e,t){var n,i=e.eventKey,o=e.children,s=ia(i),c=Qa(o,s),l=na();return r.useEffect((function(){if(l)return l.registerPath(i,s),function(){l.unregisterPath(i,s)}}),[s]),n=l?c:r.createElement(Nc,a({ref:t},e),c),r.createElement(ra.Provider,{value:s},n)}));function Ic(e){var t=e.className,n=e.style,i=r.useContext(Jo).prefixCls;return na()?null:r.createElement("li",{role:"separator",className:y()("".concat(i,"-item-divider"),t),style:n})}var Dc=["className","title","eventKey","children"],Lc=r.forwardRef((function(e,t){var n=e.className,i=e.title,o=(e.eventKey,e.children),s=g(e,Dc),c=r.useContext(Jo).prefixCls,l="".concat(c,"-item-group");return r.createElement("li",a({ref:t,role:"presentation"},s,{onClick:function(e){return e.stopPropagation()},className:y()(l,n)}),r.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof i?i:void 0},i),r.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}));const Pc=r.forwardRef((function(e,t){var n=e.eventKey,i=Qa(e.children,ia(n));return na()?i:r.createElement(Lc,a({ref:t},Je(e,["warnKey"])),i)}));var jc=["label","children","key","type","extra"];function Rc(e,t,n){var i=t.item,o=t.group,s=t.submenu,c=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===f(e)){var u=e,d=u.label,p=u.children,h=u.key,m=u.type,v=u.extra,y=g(u,jc),b=null!=h?h:"tmp-".concat(l);return p||"group"===m?"group"===m?r.createElement(o,a({key:b},y,{title:d}),Rc(p,t,n)):r.createElement(s,a({key:b},y,{title:d}),Rc(p,t,n)):"divider"===m?r.createElement(c,a({key:b},y)):r.createElement(i,a({key:b},y,{extra:v}),d,(!!v||0===v)&&r.createElement("span",{className:"".concat(n,"-item-extra")},v))}return null})).filter((function(e){return e}))}function $c(e,t,n,r,i){var o=e,a=oe({divider:Ic,item:qa,group:Pc,submenu:Ac},r);return t&&(o=Rc(t,a,i)),Qa(o,n)}var Fc=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Mc=[],qc=r.forwardRef((function(e,t){var n,i=e,o=i.prefixCls,s=void 0===o?"rc-menu":o,c=i.rootClassName,l=i.style,u=i.className,d=i.tabIndex,f=void 0===d?0:d,h=i.items,v=i.children,b=i.direction,E=i.id,_=i.mode,w=void 0===_?"vertical":_,k=i.inlineCollapsed,T=i.disabled,S=i.disabledOverflow,O=i.subMenuOpenDelay,x=void 0===O?.1:O,C=i.subMenuCloseDelay,N=void 0===C?.1:C,A=i.forceSubMenuRender,I=i.defaultOpenKeys,D=i.openKeys,L=i.activeKey,P=i.defaultActiveFirst,j=i.selectable,R=void 0===j||j,$=i.multiple,F=void 0!==$&&$,M=i.defaultSelectedKeys,q=i.selectedKeys,V=i.onSelect,z=i.onDeselect,B=i.inlineIndent,G=void 0===B?24:B,Q=i.motion,U=i.defaultMotions,H=i.triggerSubMenuAction,K=void 0===H?"hover":H,W=i.builtinPlacements,X=i.itemIcon,Y=i.expandIcon,J=i.overflowedIndicator,Z=void 0===J?"...":J,ee=i.overflowedIndicatorPopupClassName,te=i.getPopupContainer,ne=i.onClick,re=i.onOpenChange,ie=i.onKeyDown,ae=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),se=i._internalRenderSubMenuItem,ce=i._internalComponents,le=g(i,Fc),ue=p(r.useMemo((function(){return[$c(v,h,Mc,ce,s),$c(v,h,Mc,{},s)]}),[v,h,ce]),2),de=ue[0],pe=ue[1],fe=p(r.useState(!1),2),he=fe[0],me=fe[1],ge=r.useRef(),ve=function(e){var t=p(yr(e,{value:e}),2),n=t[0],i=t[1];return r.useEffect((function(){Ca+=1;var e="".concat(xa,"-").concat(Ca);i("rc-menu-uuid-".concat(e))}),[]),n}(E),ye="rtl"===b,be=yr(I,{value:D,postState:function(e){return e||Mc}}),Ee=p(be,2),_e=Ee[0],we=Ee[1],ke=function(e){function t(){we(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,qi.flushSync)(t):t()},Te=p(r.useState(_e),2),Se=Te[0],Oe=Te[1],xe=r.useRef(!1),Ce=p(r.useMemo((function(){return"inline"!==w&&"vertical"!==w||!k?[w,!1]:["vertical",k]}),[w,k]),2),Ne=Ce[0],Ae=Ce[1],Ie="inline"===Ne,De=p(r.useState(Ne),2),Le=De[0],Pe=De[1],je=p(r.useState(Ae),2),Re=je[0],$e=je[1];r.useEffect((function(){Pe(Ne),$e(Ae),xe.current&&(Ie?we(Se):ke(Mc))}),[Ne,Ae]);var Fe=p(r.useState(0),2),Me=Fe[0],qe=Fe[1],Ve=Me>=de.length-1||"horizontal"!==Le||S;r.useEffect((function(){Ie&&Oe(_e)}),[_e]),r.useEffect((function(){return xe.current=!0,function(){xe.current=!1}}),[]);var ze=function(){var e=p(r.useState({}),2)[1],t=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),i=p(r.useState([]),2),o=i[0],a=i[1],s=(0,r.useRef)(0),c=(0,r.useRef)(!1),l=(0,r.useCallback)((function(r,i){var o=Ta(i);n.current.set(o,r),t.current.set(r,o),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,r.useCallback)((function(e,r){var i=Ta(r);n.current.delete(i),t.current.delete(e)}),[]),d=(0,r.useCallback)((function(e){a(e)}),[]),f=(0,r.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(ka);return n&&o.includes(r[0])&&r.unshift(Sa),r}),[o]),h=(0,r.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,r.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(ka),i=new Set;return Ye(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return r.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:l,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:h,getKeyPath:f,getKeys:function(){var e=Ye(t.current.keys());return o.length&&e.push(Sa),e},getSubPathKeys:m}}(),Be=ze.registerPath,Ge=ze.unregisterPath,Qe=ze.refreshOverflowKeys,Ue=ze.isSubPathKey,He=ze.getKeyPath,Ke=ze.getKeys,We=ze.getSubPathKeys,Xe=r.useMemo((function(){return{registerPath:Be,unregisterPath:Ge}}),[Be,Ge]),Je=r.useMemo((function(){return{isSubPathKey:Ue}}),[Ue]);r.useEffect((function(){Qe(Ve?Mc:de.slice(Me+1).map((function(e){return e.key})))}),[Me,Ve]);var Ze=p(yr(L||P&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:L}),2),et=Ze[0],tt=Ze[1],nt=Oa((function(e){tt(e)})),rt=Oa((function(){tt(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:ge.current,focus:function(e){var t,n,r=Ke(),i=wa(r,ve),o=i.elements,a=i.key2element,s=i.element2key,c=Ea(ge.current,o),l=null!=et?et:c[0]?s.get(c[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(l);l&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var it=yr(M||[],{value:q,postState:function(e){return Array.isArray(e)?e:null==e?Mc:[e]}}),ot=p(it,2),at=ot[0],st=ot[1],ct=Oa((function(e){null==ne||ne(La(e)),function(e){if(R){var t,n=e.key,r=at.includes(n);t=F?r?at.filter((function(e){return e!==n})):[].concat(Ye(at),[n]):[n],st(t);var i=oe(oe({},e),{},{selectedKeys:t});r?null==z||z(i):null==V||V(i)}!F&&_e.length&&"inline"!==Le&&ke(Mc)}(e)})),lt=Oa((function(e,t){var n=_e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=We(e);n=n.filter((function(e){return!r.has(e)}))}ht(_e,n,!0)||ke(n,!0)})),ut=function(e,t,n,i,o,a,s,c,l,u){var d=r.useRef(),p=r.useRef();p.current=t;var f=function(){Do.cancel(d.current)};return r.useEffect((function(){return function(){f()}}),[]),function(r){var h=r.which;if([].concat(ba,[ma,ga,va,ya]).includes(h)){var g=a(),v=wa(g,i),y=v,b=y.elements,E=y.key2element,_=y.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(E.get(t),b),k=_.get(w),T=function(e,t,n,r){var i,o="prev",a="next",s="children",c="parent";if("inline"===e&&r===ma)return{inlineTrigger:!0};var l=m(m({},fa,o),ha,a),u=m(m(m(m({},da,n?a:o),pa,n?o:a),ha,s),ma,s),d=m(m(m(m(m(m({},fa,o),ha,a),ma,s),ga,c),da,n?s:c),pa,n?c:s);switch(null===(i={inline:l,horizontal:u,vertical:d,inlineSub:l,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[r]){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===s(k,!0).length,n,h);if(!T&&h!==va&&h!==ya)return;(ba.includes(h)||[va,ya].includes(h))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=_.get(e);c(r),f(),d.current=Do((function(){p.current===r&&t.focus()}))}};if([va,ya].includes(h)||T.sibling||!w){var O,x,C=Ea(O=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):o.current,b);x=h===va?C[0]:h===ya?C[C.length-1]:_a(O,b,w,T.offset),S(x)}else if(T.inlineTrigger)l(k);else if(T.offset>0)l(k,!0),f(),d.current=Do((function(){v=wa(g,i);var e=w.getAttribute("aria-controls"),t=_a(document.getElementById(e),v.elements);S(t)}),5);else if(T.offset<0){var N=s(k,!0),A=N[N.length-2],I=E.get(A);l(A,!1),S(I)}}null==u||u(r)}}(Le,et,ye,ve,ge,Ke,He,tt,(function(e,t){var n=null!=t?t:!_e.includes(e);lt(e,n)}),ie);r.useEffect((function(){me(!0)}),[]);var dt=r.useMemo((function(){return{_internalRenderMenuItem:ae,_internalRenderSubMenuItem:se}}),[ae,se]),pt="horizontal"!==Le||S?de:de.map((function(e,t){return r.createElement(Zo,{key:e.key,overflowDisabled:t>Me},e)})),ft=r.createElement(Ho,a({id:E,ref:ge,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:qa,className:y()(s,"".concat(s,"-root"),"".concat(s,"-").concat(Le),u,m(m({},"".concat(s,"-inline-collapsed"),Re),"".concat(s,"-rtl"),ye),c),dir:b,style:l,role:"menu",tabIndex:f,data:pt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return r.createElement(Ac,{eventKey:Sa,title:Z,disabled:Ve,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Le||S?Ho.INVALIDATE:Ho.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:ut},le));return r.createElement(aa.Provider,{value:dt},r.createElement(Ko.Provider,{value:ve},r.createElement(Zo,{prefixCls:s,rootClassName:c,mode:Le,openKeys:_e,rtl:ye,disabled:T,motion:he?Q:null,defaultMotions:he?U:null,activeKey:et,onActive:nt,onInactive:rt,selectedKeys:at,inlineIndent:G,subMenuOpenDelay:x,subMenuCloseDelay:N,forceSubMenuRender:A,builtinPlacements:W,triggerSubMenuAction:K,getPopupContainer:te,itemIcon:X,expandIcon:Y,onItemClick:ct,onOpenChange:lt},r.createElement(oa.Provider,{value:Je},ft),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(ta.Provider,{value:Xe},pe)))))})),Vc=qc;Vc.Item=qa,Vc.SubMenu=Ac,Vc.ItemGroup=Pc,Vc.Divider=Ic;const zc=Vc,Bc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Gc=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:Bc}))};const Qc=r.forwardRef(Gc),Uc=()=>({height:0,opacity:0}),Hc=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Kc=e=>({height:e?e.offsetHeight:0}),Wc=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Xc=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Yc=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze}-motion-collapse`,onAppearStart:Uc,onEnterStart:Uc,onAppearActive:Hc,onEnterActive:Hc,onLeaveStart:Kc,onLeaveActive:Uc,onAppearEnd:Wc,onEnterEnd:Wc,onLeaveEnd:Wc,motionDeadline:500}};function Jc(e){return e&&i().isValidElement(e)&&e.type===i().Fragment}function Zc(e,t){return((e,t,n)=>i().isValidElement(e)?i().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}const el=e=>{const[,,,,t]=mi();return t?`${e}-css-var`:""},tl=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const nl=e=>{const{prefixCls:t,className:n,dashed:i}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function pl(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function fl(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){pl(o,r,i,a,s,"next",e)}function s(e){pl(o,r,i,a,s,"throw",e)}a(void 0)}))}}var hl="RC_FORM_INTERNAL_HOOKS",ml=function(){Se(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const gl=r.createContext({getFieldValue:ml,getFieldsValue:ml,getFieldError:ml,getFieldWarning:ml,getFieldsError:ml,isFieldsTouched:ml,isFieldTouched:ml,isFieldValidating:ml,isFieldsValidating:ml,resetFields:ml,setFields:ml,setFieldValue:ml,setFieldsValue:ml,validateFields:ml,submit:ml,getInternalHooks:function(){return ml(),{dispatch:ml,initEntityValue:ml,registerField:ml,useSubscribe:ml,setInitialValues:ml,destroyForm:ml,setCallbacks:ml,registerWatch:ml,getFields:ml,setValidateMessages:ml,setPreserve:ml,getInitialValue:ml}}}),vl=r.createContext(null);function yl(e){return null==e?[]:Array.isArray(e)?e:[e]}function bl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var El=bl();function _l(e){var t="function"==typeof Map?new Map:void 0;return _l=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ar())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&rr(i,n.prototype),i}(e,arguments,or(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rr(n,e)},_l(e)}var wl=/%[sdj%]/g;function kl(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Tl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return e}function Sl(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function Ol(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Pl=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jl={integer:function(e){return jl.number(e)&&parseInt(e,10)===e},float:function(e){return jl.number(e)&&!jl.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===f(e)&&!jl.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Ll)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Dl)return Dl;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),l=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};l.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},l.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var u=l.v4().source,d=l.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Dl=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Pl)}};const Rl=Il,$l=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(Tl(i.messages.whitespace,e.fullField))},Fl=function(e,t,n,r,i){if(e.required&&void 0===t)Il(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?jl[o](t)||r.push(Tl(i.messages.types[o],e.fullField,e.type)):o&&f(t)!==e.type&&r.push(Tl(i.messages.types[o],e.fullField,e.type))}},Ml=function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,c=t,l=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?l="number":d?l="string":p&&(l="array"),!l)return!1;p&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(Tl(i.messages[l].len,e.fullField,e.len)):a&&!s&&ce.max?r.push(Tl(i.messages[l].max,e.fullField,e.max)):a&&s&&(ce.max)&&r.push(Tl(i.messages[l].range,e.fullField,e.min,e.max))},ql=function(e,t,n,r,i){e[Al]=Array.isArray(e[Al])?e[Al]:[],-1===e[Al].indexOf(t)&&r.push(Tl(i.messages[Al],e.fullField,e[Al].join(", ")))},Vl=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Tl(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Tl(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},zl=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t,o)&&!e.required)return n();Rl(e,t,r,a,i,o),Sl(t,o)||Fl(e,t,r,a,i)}n(a)},Bl={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t,"string")&&!e.required)return n();Rl(e,t,r,o,i,"string"),Sl(t,"string")||(Fl(e,t,r,o,i),Ml(e,t,r,o,i),Vl(e,t,r,o,i),!0===e.whitespace&&$l(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&Fl(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&(Fl(e,t,r,o,i),Ml(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&Fl(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),Sl(t)||Fl(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&(Fl(e,t,r,o,i),Ml(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&(Fl(e,t,r,o,i),Ml(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Rl(e,t,r,o,i,"array"),null!=t&&(Fl(e,t,r,o,i),Ml(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&Fl(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i),void 0!==t&&ql(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t,"string")&&!e.required)return n();Rl(e,t,r,o,i),Sl(t,"string")||Vl(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t,"date")&&!e.required)return n();var a;Rl(e,t,r,o,i),Sl(t,"date")||(a=t instanceof Date?t:new Date(t),Fl(e,a,r,o,i),a&&Ml(e,a.getTime(),r,o,i))}n(o)},url:zl,hex:zl,email:zl,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":f(t);Rl(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sl(t)&&!e.required)return n();Rl(e,t,r,o,i)}n(o)}};var Gl=function(){function e(t){mt(this,e),m(this,"rules",null),m(this,"_messages",El),this.define(t)}return vt(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==f(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=Nl(bl(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof i&&(o=i,i={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,r),Promise.resolve(r);if(i.messages){var a=this.messages();a===El&&(a=bl()),Nl(a,i.messages),i.messages=a}else i.messages=this.messages();var s={};(i.keys||Object.keys(this.rules)).forEach((function(e){var i=n.rules[e],o=r[e];i.forEach((function(i){var a=i;"function"==typeof a.transform&&(r===t&&(r=oe({},r)),null!=(o=r[e]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":f(o)))),(a="function"==typeof a?{validator:a}:oe({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:o,source:r,field:e}))}))}));var c={};return function(e,t,n,r,i){if(t.first){var o=new Promise((function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Ye(e[n]||[]))})),t}(e);Ol(a,n,(function(e){return r(e),e.length?o(new xl(e,kl(e))):t(i)}))}));return o.catch((function(e){return e})),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise((function(t,o){var d=function(e){if(u.push.apply(u,e),++l===c)return r(u),u.length?o(new xl(u,kl(u))):t(i)};s.length||(r(u),t(i)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Ol(r,n,d):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,Ye(e||[])),++i===o&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(s,i,(function(t,n){var o,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==f(a.fields)&&"object"!==f(a.defaultField));function l(e,t){return oe(oe({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ye(a.fullFields),[e]):[e]})}function u(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(o)?o:[o];!i.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Cl(a,r));if(i.first&&d.length)return c[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Cl(a,r)):i.error&&(d=[i.error(a,Tl(i.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=oe(oe({},p),t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))}));var h=new e(f);h.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ye(d)),e&&e.length&&t.push.apply(t,Ye(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)o=a.asyncValidator(a,t.value,u,t.source,i);else if(a.validator){try{o=a.validator(a,t.value,u,t.source,i)}catch(e){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,e),i.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===o?u():!1===o?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,i=[],a={},s=0;s2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return iu(t,e,n)}))}function iu(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function ou(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===f(t.target)&&e in t.target?t.target[e]:t}function au(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(Ye(e.slice(0,n)),[i],Ye(e.slice(n,t)),Ye(e.slice(t+1,r))):o<0?[].concat(Ye(e.slice(0,t)),Ye(e.slice(t+1,n+1)),[i],Ye(e.slice(n+1,r))):e}var su=["name"],cu=[];function lu(e,t,n,r,i,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var uu=function(e){ir(n,e);var t=sr(n);function n(e){var i;return mt(this,n),m(nr(i=t.call(this,e)),"state",{resetCount:0}),m(nr(i),"cancelRegisterFunc",null),m(nr(i),"mounted",!1),m(nr(i),"touched",!1),m(nr(i),"dirty",!1),m(nr(i),"validatePromise",void 0),m(nr(i),"prevValidating",void 0),m(nr(i),"errors",cu),m(nr(i),"warnings",cu),m(nr(i),"cancelRegister",(function(){var e=i.props,t=e.preserve,n=e.isListField,r=e.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,t,tu(r)),i.cancelRegisterFunc=null})),m(nr(i),"getNamePath",(function(){var e=i.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ye(void 0===n?[]:n),Ye(t)):[]})),m(nr(i),"getRules",(function(){var e=i.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),m(nr(i),"refresh",(function(){i.mounted&&i.setState((function(e){return{resetCount:e.resetCount+1}}))})),m(nr(i),"metaCache",null),m(nr(i),"triggerMetaEvent",(function(e){var t=i.props.onMetaChange;if(t){var n=oe(oe({},i.getMeta()),{},{destroy:e});ht(i.metaCache,n)||t(n),i.metaCache=n}else i.metaCache=null})),m(nr(i),"onStoreChange",(function(e,t,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,c=r.onReset,l=n.store,u=i.getNamePath(),d=i.getValue(e),p=i.getValue(l),f=t&&ru(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||ht(d,p)||(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=cu,i.warnings=cu,i.triggerMetaEvent()),n.type){case"reset":if(!t||f)return i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=cu,i.warnings=cu,i.triggerMetaEvent(),null==c||c(),void i.refresh();break;case"remove":if(o&&lu(o,e,l,d,p,n))return void i.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(i.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(i.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(i.errors=h.errors||cu),"warnings"in h&&(i.warnings=h.warnings||cu),i.dirty=!0,i.triggerMetaEvent(),void i.reRender();if("value"in h&&ru(t,u,!0))return void i.reRender();if(o&&!u.length&&lu(o,e,l,d,p,n))return void i.reRender();break;case"dependenciesUpdate":if(s.map(tu).some((function(e){return ru(n.relatedFields,e)})))return void i.reRender();break;default:if(f||(!s.length||u.length||o)&&lu(o,e,l,d,p,n))return void i.reRender()}!0===o&&i.reRender()})),m(nr(i),"validateRules",(function(e){var t=i.getNamePath(),n=i.getValue(),r=e||{},o=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,c=Promise.resolve().then(fl(dl().mark((function r(){var a,s,l,u,d,p,f;return dl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=i.props,s=a.validateFirst,l=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,p=i.getRules(),o&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||yl(t).includes(o)}))),!d||!o){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(i.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(f=Jl(t,n,p,e,l,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cu;if(i.validatePromise===c){var t;i.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,i=e.errors,o=void 0===i?cu:i;t?r.push.apply(r,Ye(o)):n.push.apply(n,Ye(o))})),i.errors=n,i.warnings=r,i.triggerMetaEvent(),i.reRender()}})),r.abrupt("return",f);case 13:case"end":return r.stop()}}),r)}))));return s||(i.validatePromise=c,i.dirty=!0,i.errors=cu,i.warnings=cu,i.triggerMetaEvent(),i.reRender()),c})),m(nr(i),"isFieldValidating",(function(){return!!i.validatePromise})),m(nr(i),"isFieldTouched",(function(){return i.touched})),m(nr(i),"isFieldDirty",(function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(hl).getInitialValue)(i.getNamePath())})),m(nr(i),"getErrors",(function(){return i.errors})),m(nr(i),"getWarnings",(function(){return i.warnings})),m(nr(i),"isListField",(function(){return i.props.isListField})),m(nr(i),"isList",(function(){return i.props.isList})),m(nr(i),"isPreserve",(function(){return i.props.preserve})),m(nr(i),"getMeta",(function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}})),m(nr(i),"getOnlyChild",(function(e){if("function"==typeof e){var t=i.getMeta();return oe(oe({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=ct(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),m(nr(i),"getValue",(function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return xr(e||t(!0),n)})),m(nr(i),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.name,r=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,c=t.valuePropName,l=t.getValueProps,u=t.fieldContext,d=void 0!==o?o:u.validateTrigger,p=i.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,g=f(hl).dispatch,v=i.getValue(),y=l||function(e){return m({},c,e)},b=e[r],E=void 0!==n?y(v):{},_=oe(oe({},e),E);return _[r]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),m(this,"timeoutId",null),m(this,"warningUnhooked",(function(){})),m(this,"updateStore",(function(e){n.store=e})),m(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),m(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new mu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),m(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=tu(e);return t.get(n)||{INVALIDATE_NAME_PATH:tu(e)}}))})),m(this,"getFieldsValue",(function(e,t){var r,i,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,i=t):e&&"object"===f(e)&&(o=e.strict,i=e.filter),!0===r&&!i)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,c,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(i){var u="getMeta"in e?e.getMeta():null;i(u)&&s.push(l)}else s.push(l)})),nu(n.store,s.map(tu))})),m(this,"getFieldValue",(function(e){n.warningUnhooked();var t=tu(e);return xr(n.store,t)})),m(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:tu(e[n]),errors:[],warnings:[]}}))})),m(this,"getFieldError",(function(e){n.warningUnhooked();var t=tu(e);return n.getFieldsError([t])[0].errors})),m(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=tu(e);return n.getFieldsError([t])[0].warnings})),m(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new mu,i=n.getFieldEntities(!0);i.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var i=r.get(n)||new Set;i.add({entity:e,value:t}),r.set(n,i)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,i=r.get(t);i&&(n=e).push.apply(n,Ye(Ye(i).map((function(e){return e.entity}))))}))):e=i,e.forEach((function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==n.getInitialValue(i))Se(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=r.get(i);if(o&&o.size>1)Se(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Nr(n.store,i,Ye(o)[0].value))}}}}))})),m(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Dr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(tu);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Nr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),m(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var i=e.name,o=g(e,gu),a=tu(i);r.push(a),"value"in o&&n.updateStore(Nr(n.store,a,o.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),m(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=oe(oe({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),m(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===xr(n.store,r)&&n.updateStore(Nr(n.store,r,t))}})),m(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),m(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!iu(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Nr(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),m(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}})),m(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var i=oe(oe({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()})),m(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Ye(r))}),r})),m(this,"updateValue",(function(e,t){var r=tu(e),i=n.store;n.updateStore(Nr(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(nu(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(Ye(o)))})),m(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Dr(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),m(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),m(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],i=new mu;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=tu(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r})),m(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new mu;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var a=i.filter((function(t){var n=t.name;return ru(e,n)}));a.length&&r(a,i)}})),m(this,"validateFields",(function(e,t){var r,i;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,i=t):i=e;var o=!!r,a=o?r.map(tu):[],s=[],c=String(Date.now()),l=new Set,u=i||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(l.add(t.join(c)),!o||ru(a,t,d)){var r=e.validateRules(oe({validateMessages:oe(oe({},Ul),n.validateMessages)},i));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],i=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,Ye(n)):r.push.apply(r,Ye(n))})),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}})))}}}));var f=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=f,f.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=f.then((function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==f})}));h.catch((function(e){return e}));var m=a.filter((function(e){return l.has(e.join(c))}));return n.triggerOnFieldsChange(m),h})),m(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const yu=function(e){var t=r.useRef(),n=p(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var i=new vu((function(){n({})}));t.current=i.getForm()}return[t.current]};var bu=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const Eu=bu;var _u=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const wu=function(e,t){var n=e.name,i=e.initialValues,o=e.fields,s=e.form,c=e.preserve,l=e.children,u=e.component,d=void 0===u?"form":u,h=e.validateMessages,m=e.validateTrigger,v=void 0===m?"onChange":m,y=e.onValuesChange,b=e.onFieldsChange,E=e.onFinish,_=e.onFinishFailed,w=e.clearOnDestroy,k=g(e,_u),T=r.useRef(null),S=r.useContext(Eu),O=p(yu(s),1)[0],x=O.getInternalHooks(hl),C=x.useSubscribe,N=x.setInitialValues,A=x.setCallbacks,I=x.setValidateMessages,D=x.setPreserve,L=x.destroyForm;r.useImperativeHandle(t,(function(){return oe(oe({},O),{},{nativeElement:T.current})})),r.useEffect((function(){return S.registerForm(n,O),function(){S.unregisterForm(n)}}),[S,O,n]),I(oe(oe({},S.validateMessages),h)),A({onValuesChange:y,onFieldsChange:function(e){if(S.triggerFormChange(n,e),b){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i=0&&t<=n.length?(u.keys=[].concat(Ye(u.keys.slice(0,t)),[u.id],Ye(u.keys.slice(t))),o([].concat(Ye(n.slice(0,t)),[e],Ye(n.slice(t))))):(u.keys=[].concat(Ye(u.keys),[u.id]),o([].concat(Ye(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=au(u.keys,e,t),o(au(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),i(p.map((function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}})),l,t)}))))},Tu.useForm=yu,Tu.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{children:t,status:n,override:i}=e;const o=r.useContext(Su),a=r.useMemo((()=>{const e=Object.assign({},o);return i&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,i,o]);return r.createElement(Su.Provider,{value:a},t)},xu=r.createContext(null),Cu=e=>{const{children:t}=e;return r.createElement(xu.Provider,{value:null},t)},Nu=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=i().createElement(Ou,{override:!0,status:!0},o)),t&&(o=i().createElement(Cu,null,o)),o},Au=i().createContext(void 0),Iu=100,Du={Modal:Iu,Drawer:Iu,Popover:Iu,Popconfirm:Iu,Tooltip:Iu,Tour:Iu,FloatButton:Iu},Lu={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Pu=(e,t)=>{const[,n]=mi(),r=i().useContext(Au),o=e in Du;let a;if(void 0!==t)a=[t,t];else{let i=null!=r?r:0;i+=o?(r?0:n.zIndexPopupBase)+Du[e]:Lu[e],a=[void 0===r?t:i,i]}return a},ju=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Rt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Ru(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function $u(e,t){return e?t:{}}function Fu(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},ju(e,t,i)),{"&:before":{background:t}})]},$u(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Rt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),$u(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Rt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),$u(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),$u(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}const Mu={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},qu={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Vu=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function zu(){}const Bu=e=>({animationDuration:e,animationFillMode:"both"}),Gu=e=>({animationDuration:e,animationFillMode:"both"}),Qu=function(e,t,n,r){const i=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},Bu(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Gu(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Uu=new er("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hu=new er("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ku=new er("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wu=new er("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Xu=new er("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Yu=new er("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ju={zoom:{inKeyframes:Uu,outKeyframes:Hu},"zoom-big":{inKeyframes:Ku,outKeyframes:Wu},"zoom-big-fast":{inKeyframes:Ku,outKeyframes:Wu},"zoom-left":{inKeyframes:new er("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new er("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new er("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new er("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Xu,outKeyframes:Yu},"zoom-down":{inKeyframes:new er("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new er("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Zu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Ju[t];return[Qu(r,i,o,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ed=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function td(e,t){return ed.reduce(((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))}),{})}const nd=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:f}=e,h=t(a).add(f).add(p).equal(),m=t(a).mul(2).add(f).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Gr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:m,minHeight:c,padding:`${Rt(e.calc(u).div(2).equal())} ${Rt(d)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),td(e,((e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Fu(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ru({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=i,a=1*r/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),l=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*i-c,d=l,p=2*i-a,f=s,h=2*i-0,m=o,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${f} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`}}(Rr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),id=function(e){const t=gi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,i=Rr(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[nd(i),Zu(e,"zoom-big-fast")]}),rd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},od=ed.map((e=>`${e}-inverse`));function ad(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ed.includes(e):[].concat(Ye(od),Ye(ed)).includes(e)}(t),r=y()({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const sd=r.forwardRef(((e,t)=>{var n,i,o,a,s,c;const{prefixCls:l,openClassName:u,getTooltipContainer:d,color:p,overlayInnerStyle:f,children:h,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:b=!0,title:E,overlay:_,builtinPlacements:w,arrowPointAtCenter:k=!1,autoAdjustOverflow:T=!0,motion:S,getPopupContainer:O,placement:x="top",mouseEnterDelay:C=.1,mouseLeaveDelay:N=.1,overlayStyle:A,rootClassName:I,overlayClassName:D,styles:L,classNames:P}=e,j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const e=()=>{};return e.deprecated=zu,e})(),B=r.useRef(null),G=()=>{var e;null===(e=B.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:G,forcePopupAlign:()=>{z.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:null===(e=B.current)||void 0===e?void 0:e.nativeElement}}));const[Q,U]=yr(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(i=e.defaultOpen)&&void 0!==i?i:e.defaultVisible}),H=!E&&!_&&0!==E,K=r.useMemo((()=>{var e,t;let n=k;return"object"==typeof b&&(n=null!==(t=null!==(e=b.pointAtCenter)&&void 0!==e?e:b.arrowPointAtCenter)&&void 0!==t?t:k),w||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,c={};return Object.keys(Mu).forEach((e=>{const l=r&&qu[e]||Mu[e],u=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Vu.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+i}const d=Ru({contentRadius:o,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const i=r&&"object"==typeof r?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}({arrowPointAtCenter:n,autoAdjustOverflow:T,arrowWidth:R?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})}),[k,b,w,$]),W=r.useMemo((()=>0===E?E:_||E||""),[_,E]),X=r.createElement(Nu,{space:!0},"function"==typeof W?W():W),Y=M("tooltip",l),J=M(),Z=e["data-popover-inject"];let ee=Q;"open"in e||"visible"in e||!H||(ee=!1);const te=r.isValidElement(h)&&!Jc(h)?h:r.createElement("span",null,h),ne=te.props,re=ne.className&&"string"!=typeof ne.className?ne.className:y()(ne.className,u||`${Y}-open`),[ie,oe,ae]=id(Y,!Z),se=ad(Y,p),ce=se.arrowStyle,le=y()(D,{[`${Y}-rtl`]:"rtl"===q},se.className,I,oe,ae,null==V?void 0:V.className,null===(o=null==V?void 0:V.classNames)||void 0===o?void 0:o.root,null==P?void 0:P.root),ue=y()(null===(a=null==V?void 0:V.classNames)||void 0===a?void 0:a.body,null==P?void 0:P.body),[de,pe]=Pu("Tooltip",j.zIndex),fe=r.createElement(ul,Object.assign({},j,{zIndex:de,showArrow:R,placement:x,mouseEnterDelay:C,mouseLeaveDelay:N,prefixCls:Y,classNames:{root:le,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),null===(s=null==V?void 0:V.styles)||void 0===s?void 0:s.root),null==V?void 0:V.style),A),null==L?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},null===(c=null==V?void 0:V.styles)||void 0===c?void 0:c.body),f),null==L?void 0:L.body),se.overlayStyle)},getTooltipContainer:O||d||F,ref:B,builtinPlacements:K,overlay:X,visible:ee,onVisibleChange:t=>{var n,r;U(!H&&t),H||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=m?m:g,arrowContent:r.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Xc(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),ee?Zc(te,{className:re}):te);return ie(r.createElement(Au.Provider,{value:pe},fe))})),cd=sd;cd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:i="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:c}=r.useContext(tt),l=c("tooltip",t),[u,d,p]=id(l),f=ad(l,a),h=f.arrowStyle,m=Object.assign(Object.assign({},s),f.overlayStyle),g=y()(d,p,l,`${l}-pure`,`${l}-placement-${i}`,n,f.className);return u(r.createElement("div",{className:g,style:h},r.createElement("div",{className:`${l}-arrow`}),r.createElement(rl,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:m}),o)))};const ld=cd,ud=e=>{var t;const{className:n,children:i,icon:o,title:a,danger:s,extra:c}=e,{prefixCls:l,firstLevel:u,direction:d,disableMenuItemTitleTooltip:p,inlineCollapsed:f}=r.useContext(tl),{siderCollapsed:h}=r.useContext(Oi);let m=a;void 0===a?m=u?i:"":!1===a&&(m="");const g={title:m};h||f||(g.title=null,g.open=!1);const v=ct(i).length;let b=r.createElement(qa,Object.assign({},Je(e,["title","icon","danger"]),{className:y()({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(o?v+1:v)},n),title:"string"==typeof a?a:void 0}),Zc(o,{className:y()(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=null==i?void 0:i[0],n=r.createElement("span",{className:y()(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!c||0===c})},i);return(!o||r.isValidElement(i)&&"span"===i.type)&&i&&e&&u&&"string"==typeof t?r.createElement("div",{className:`${l}-inline-collapsed-noicon`},t.charAt(0)):n})(f));return p||(b=r.createElement(ld,Object.assign({},g,{placement:"rtl"===d?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b},dd=r.createContext(null),pd=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),fd={"slide-up":{inKeyframes:new er("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new er("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new er("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new er("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new er("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new er("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new er("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new er("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},hd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=fd[t];return[Qu(r,i,o,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},md=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Rt(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},gd=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Rt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Rt(n)})`}}}}},vd=e=>Object.assign({},Ur(e)),yd=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:E,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:k,dangerItemSelectedColor:T,dangerItemActiveBg:S,dangerItemSelectedBg:O,popupBg:x,itemHoverBg:C,itemActiveBg:N,menuSubMenuBg:A,horizontalItemSelectedColor:I,horizontalItemSelectedBg:D,horizontalItemBorderRadius:L,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},vd(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},vd(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:x},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:x},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Rt(u)} solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Rt(p)} ${b} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Rt(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(",")}}}}}},bd=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Rt(n),paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Rt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Ed=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:Rt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},bd(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},bd(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Rt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Rt(e.calc(g).div(2).equal())} - ${Rt(l)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Rt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Br),{paddingInline:f})}}]},_d=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},wd=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Rt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Rt(a)})`}}}}},kd=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gr(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Rt(s)} ${Rt(c)}`,fontSize:y,lineHeight:v,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_d(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Rt(e.calc(r).mul(2).equal())} ${Rt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},_d(e)),wd(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),wd(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Rt(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Rt(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Rt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Rt(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Rt(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Td=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:l,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:E,padding:_,fontSize:w,controlHeightSM:T,fontSizeLG:S,colorTextLightSolid:O,colorErrorHover:x}=e,C=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,A=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new k(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:p,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:C,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:E,itemPaddingInline:_,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:T-w,collapsedIconSize:S,groupTitleFontSize:w,darkItemDisabledColor:new k(O).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:O,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:C?`calc(100% + ${N}px)`:`calc(100% - ${2*A}px)`}},Sd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=gi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,E=e.calc(r).div(7).mul(5).equal(),_=Rr(e,{menuArrowSize:E,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(E).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),w=Rr(_,{itemColor:i,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:o,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[kd(_),md(_),Ed(_),yd(_,"light"),yd(w,"dark"),gd(_),pd(_),hd(_,"slide-up"),hd(_,"slide-down"),Zu(_,"zoom-big")]}),Td,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},Od=e=>{var t;const{popupClassName:n,icon:i,title:o,theme:a}=e,s=r.useContext(tl),{prefixCls:c,inlineCollapsed:l,theme:u}=s,d=ia();let p;if(i){const e=r.isValidElement(o)&&"span"===o.type;p=r.createElement(r.Fragment,null,Zc(i,{className:y()(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?o:r.createElement("span",{className:`${c}-title-content`},o))}else p=l&&!d.length&&o&&"string"==typeof o?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):r.createElement("span",{className:`${c}-title-content`},o);const f=r.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[h]=Pu("Menu");return r.createElement(tl.Provider,{value:f},r.createElement(Ac,Object.assign({},Je(e,["icon"]),{title:p,popupClassName:y()(c,n,`${c}-${a||u}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};function xd(e){return null===e||!1===e}const Cd={item:ud,submenu:Od,divider:nl},Nd=(0,r.forwardRef)(((e,t)=>{var n;const i=r.useContext(dd),o=i||{},{getPrefixCls:a,getPopupContainer:s,direction:c,menu:l}=r.useContext(tt),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:E,mode:_,selectable:w,onClick:k,overflowedIndicatorPopupClassName:T}=e,S=Je(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var e,t;if("function"==typeof m||xd(m))return m||null;if("function"==typeof o.expandIcon||xd(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==l?void 0:l.expandIcon)||xd(null==l?void 0:l.expandIcon))return(null==l?void 0:l.expandIcon)||null;const n=null!==(e=null!=m?m:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==l?void 0:l.expandIcon;return Zc(n,{className:y()(`${I}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null==o?void 0:o.expandIcon,null==l?void 0:l.expandIcon,I]),F=r.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:h,mode:x,disableMenuItemTitleTooltip:g})),[I,N,c,g,h]);return L(r.createElement(dd.Provider,{value:null},r.createElement(tl.Provider,{value:F},r.createElement(zc,Object.assign({getPopupContainer:s,overflowedIndicator:r.createElement(Qc,null),overflowedIndicatorPopupClassName:y()(I,`${I}-${h}`,T),mode:x,selectable:C,onClick:O},S,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==l?void 0:l.style),f),className:R,prefixCls:I,direction:c,defaultMotions:A,expandIcon:$,ref:t,rootClassName:y()(E,P,o.rootClassName,j,D),_internalComponents:Cd})))))})),Ad=Nd,Id=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),i=r.useContext(Oi);return(0,r.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),r.createElement(Ad,Object.assign({ref:n},e,i))}));Id.Item=ud,Id.SubMenu=Od,Id.Divider=nl,Id.ItemGroup=Pc;const Dd=Id;var Ld=n(2833),Pd=n.n(Ld);const jd=function(e){function t(e,r,c,l,p){for(var f,h,m,g,E,w=0,k=0,T=0,S=0,O=0,D=0,P=m=f=0,R=0,$=0,F=0,M=0,q=c.length,V=q-1,z="",B="",G="",Q="";Rf)&&(M=(z=z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var ep=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&Zd(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=rp&&(rp=t+1),tp.set(e,t),np.set(t,e)},sp="style["+Xd+'][data-styled-version="5.3.11"]',cp=new RegExp("^"+Xd+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),lp=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Xd))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Xd,"active"),r.setAttribute("data-styled-version","5.3.11");var a=dp();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},fp=function(){function e(e){var t=this.element=pp(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),bp=/(a)(d)/gi,Ep=function(e){return String.fromCharCode(e+(e>25?39:97))};function _p(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ep(t%52)+n;return(Ep(t%52)+n).replace(bp,"$1-$2")}var wp=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},kp=function(e){return wp(5381,e)};function Tp(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=wp(this.baseHash,n.hash),u="",d=0;d>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),xp=/^\s*\/\/.*$/gm,Cp=[":","[",".","#"];function Np(e){var t,n,r,i,o=void 0===e?Ud:e,a=o.options,s=void 0===a?Ud:a,c=o.plugins,l=void 0===c?Qd:c,u=new jd(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,o){return 0===r&&-1!==Cp.indexOf(o[n.length])||o.match(i)?e:"."+t};function h(e,o,a,s){void 0===s&&(s="&");var c=e.replace(xp,""),l=o&&a?a+" "+o+" { "+c+" }":c;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,l)}return u.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||Zd(15),wp(e,t.name)}),5381).toString():"",h}var Ap=i().createContext(),Ip=(Ap.Consumer,i().createContext()),Dp=(Ip.Consumer,new yp),Lp=Np();function Pp(){return(0,r.useContext)(Ap)||Dp}function jp(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],o=t[1],a=Pp(),s=(0,r.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,r.useMemo)((function(){return Np({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,r.useEffect)((function(){Pd()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(Ap.Provider,{value:s},i().createElement(Ip.Provider,{value:c},e.children))}var Rp=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Lp);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Zd(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Lp),this.name+e.hash},e}(),$p=/([A-Z])/,Fp=/([A-Z])/g,Mp=/^ms-/,qp=function(e){return"-"+e.toLowerCase()};function Vp(e){return $p.test(e)?e.replace(Fp,qp).replace(Mp,"-ms-"):e}var zp=function(e){return null==e||!1===e||""===e};function Bp(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Hp=/(^-|-$)/g;function Kp(e){return e.replace(Up,"-").replace(Hp,"")}function Wp(e){return"string"==typeof e&&!0}var Xp=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Yp=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Jp(e,t,n){var r=e[n];Xp(t)&&Xp(r)?Zp(r,t):e[n]=t}function Zp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.11"+n+tf[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,d=t.displayName,p=void 0===d?function(e){return Wp(e)?"styled."+e:"Styled("+Kd(e)+")"}(e):d,f=t.displayName&&t.componentId?Kp(t.displayName)+"-"+t.componentId:t.componentId||u,h=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=t.shouldForwardProp;o&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var g,v=new Op(n,f,o?e.componentStyle:void 0),y=v.isStatic&&0===c.length,b=function(e,t){return function(e,t,n,i){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=Ud);var r=zd({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in Hd(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(function(e,t,n){return void 0===n&&(n=Ud),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,r.useContext)(ef),s)||Ud,t,o),f=p[0],h=p[1],m=function(e,t,n){var i=Pp(),o=(0,r.useContext)(Ip)||Lp;return t?e.generateAndInjectStyles(Ud,i,o):e.generateAndInjectStyles(n,i,o)}(a,i,f),g=n,v=h.$as||t.$as||h.as||t.as||d,y=Wp(v),b=h!==t?zd({},t,{},h):t,E={};for(var _ in b)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?E.as=b[_]:(l?l(_,Md,v):!y||Md(_))&&(E[_]=b[_]));return t.style&&h.style!==t.style&&(E.style=zd({},t.style,{},h.style)),E.className=Array.prototype.concat(c,u,m!==u?m:null,t.className,h.className).filter(Boolean).join(" "),E.ref=g,(0,r.createElement)(v,E)}(g,e,t,y)};return b.displayName=p,(g=i().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=p,g.shouldForwardProp=m,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Qd,g.styledComponentId=f,g.target=o?e.target:e,g.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Wp(e)?e:Kp(Kd(e)));return nf(e,zd({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Zp({},e.defaultProps,t):t}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&Vd()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var rf,of=function(e){return function e(t,n,r){if(void 0===r&&(r=Ud),!(0,br.isValidElementType)(n))return Zd(1,String(n));var i=function(){return t(n,r,Qp.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,zd({},r,{},i))},i.attrs=function(i){return e(t,n,zd({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(nf,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){of[e]=of(e)})),(rf=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Tp(e),yp.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var i=r(Bp(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},rf.removeStyles=function(e,t){t.clearRules(this.componentId+e)},rf.renderStyles=function(e,t,n,r){e>2&&yp.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=dp();return""},this.getStyleTags=function(){return e.sealed?Zd(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Zd(2);var n=((t={})[Xd]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=dp();return r&&(n.nonce=r),[i().createElement("style",zd({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new yp({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Zd(2):i().createElement(jp,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Zd(3)}}();const af=of;var sf=n(3408);const cf=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Gr(e)),{borderBlockStart:`${Rt(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Rt(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Rt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Rt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Rt(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Rt(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Rt(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},lf=gi("Divider",(e=>{const t=Rr(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[cf(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const uf=e=>{const{getPrefixCls:t,direction:n,divider:i}=r.useContext(tt),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:c,className:l,rootClassName:u,children:d,dashed:p,variant:f="solid",plain:h,style:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),x=Object.assign(Object.assign({},k&&{marginLeft:O}),T&&{marginRight:O});return b(r.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==i?void 0:i.style),m)},g,{role:"separator"}),d&&"vertical"!==a&&r.createElement("span",{className:`${v}-inner-text`,style:x},d)))},df=["xxl","xl","lg","md","sm","xs"];const pf=(0,r.createContext)({}),ff=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},hf=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let e=i;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/i*100}%`,maxWidth:e/i*100+"%"}],o[`${r}${t}-push-${e}`]={insetInlineStart:e/i*100+"%"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:e/i*100+"%"},o[`${r}${t}-offset-${e}`]={marginInlineStart:e/i*100+"%"},o[`${r}${t}-order-${e}`]={order:e});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),mf=gi("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),gf=gi("Grid",(e=>{const t=Rr(e,{gridColumns:24}),n=(e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}))(t);return delete n.xs,[ff(t),hf(t,""),hf(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Rt(t)})`]:Object.assign({},hf(e,n))}))(t,n[e],`-${e}`))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function vf(e,t){const[n,i]=r.useState("string"==typeof e?e:"");return r.useEffect((()=>{(()=>{if("string"==typeof e&&i(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:a,className:s,style:c,children:l,gutter:u=0,wrap:d}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(df).reverse();return n.forEach(((e,r)=>{const i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],i=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},o=window.matchMedia(n);o.addListener(i),this.matchHandlers[n]={mql:o,listener:i},i(o)}))},responsiveMap:t}}),[e])}();r.useEffect((()=>{const e=k.subscribe((e=>{b(e);const t=w.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&g(e)}));return()=>k.unsubscribe(e)}),[]);const T=f("row",n),[S,O,x]=mf(T),C=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?C[0]/-2:void 0;I&&(A.marginLeft=I,A.marginRight=I);const[D,L]=C;A.rowGap=L;const P=r.useMemo((()=>({gutter:[D,L],wrap:d})),[D,L,d]);return S(r.createElement(pf.Provider,{value:P},r.createElement("div",Object.assign({},p,{className:N,style:Object.assign(Object.assign({},A),c),ref:t}),l)))})),bf=yf;function Ef(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const _f=["xs","sm","md","lg","xl","xxl"],wf=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i}=r.useContext(tt),{gutter:o,wrap:a}=r.useContext(pf),{prefixCls:s,span:c,order:l,offset:u,push:d,pull:p,className:f,children:h,flex:m,style:g}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete v[t],T=Object.assign(Object.assign({},T),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===i}),n.flex&&(T[`${b}-${t}-flex`]=!0,k[`--${b}-${t}-flex`]=Ef(n.flex))}));const S=y()(b,{[`${b}-${c}`]:void 0!==c,[`${b}-order-${l}`]:l,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${p}`]:p},f,T,_,w),O={};if(o&&o[0]>0){const e=o[0]/2;O.paddingLeft=e,O.paddingRight=e}return m&&(O.flex=Ef(m),!1!==a||O.minWidth||(O.minWidth=0)),E(r.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},O),g),k),className:S,ref:t}),h))})),kf=wf,Tf=r.createContext(void 0),Sf=e=>{const t=i().useContext(Tf);return i().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Of=e=>{const{prefixCls:t,className:n,style:i,size:o,shape:a}=e,s=y()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=y()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=r.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return r.createElement("span",{className:y()(t,s,c,n),style:Object.assign(Object.assign({},l),i)})},xf=new er("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Cf=e=>({height:e,lineHeight:Rt(e)}),Nf=e=>Object.assign({width:e},Cf(e)),Af=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:xf,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),If=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Cf(e)),Df=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Nf(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Nf(i)),[`${t}${t}-sm`]:Object.assign({},Nf(o))}},Lf=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},If(t,s)),[`${r}-lg`]:Object.assign({},If(i,s)),[`${r}-sm`]:Object.assign({},If(o,s))}},Pf=e=>Object.assign({width:e},Cf(e)),jf=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},Pf(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Pf(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Rf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},$f=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Cf(e)),Ff=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},$f(r,s))},Rf(e,r,n)),{[`${n}-lg`]:Object.assign({},$f(i,s))}),Rf(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},$f(o,s))}),Rf(e,o,`${n}-sm`))},Mf=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:c,controlHeightLG:l,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Nf(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Nf(l)),[`${n}-sm`]:Object.assign({},Nf(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ff(e)),Df(e)),Lf(e)),jf(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${i} > li,\n ${n},\n ${o},\n ${a},\n ${s}\n `]:Object.assign({},Af(e))}}},qf=gi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=Rr(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Mf(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Vf=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},zf=e=>{const{prefixCls:t,className:n,style:i,rows:o}=e,a=Ye(new Array(o)).map(((t,n)=>r.createElement("li",{key:n,style:{width:Vf(n,e)}})));return r.createElement("ul",{className:y()(t,n),style:i},a)},Bf=e=>{let{prefixCls:t,className:n,width:i,style:o}=e;return r.createElement("h3",{className:y()(t,n),style:Object.assign({width:i},o)})};function Gf(e){return e&&"object"==typeof e?e:{}}const Qf=e=>{const{prefixCls:t,loading:n,className:i,rootClassName:o,style:a,children:s,avatar:c=!1,title:l=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:f,direction:h,skeleton:m}=r.useContext(tt),g=f("skeleton",t),[v,b,E]=qf(g);if(n||!("loading"in e)){const e=!!c,t=!!l,n=!!u;let s,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Gf(c));s=r.createElement("div",{className:`${g}-header`},r.createElement(Of,Object.assign({},e)))}if(t||n){let i,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Gf(l));i=r.createElement(Bf,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Gf(u));o=r.createElement(zf,Object.assign({},n))}f=r.createElement("div",{className:`${g}-content`},i,o)}const _=y()(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:d,[`${g}-rtl`]:"rtl"===h,[`${g}-round`]:p},null==m?void 0:m.className,i,o,b,E);return v(r.createElement("div",{className:_,style:Object.assign(Object.assign({},null==m?void 0:m.style),a)},s,f))}return null!=s?s:null};Qf.Button=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a=!1,size:s="default"}=e,{getPrefixCls:c}=r.useContext(tt),l=c("skeleton",t),[u,d,p]=qf(l),f=Je(e,["prefixCls"]),h=y()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Of,Object.assign({prefixCls:`${l}-button`,size:s},f))))},Qf.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,shape:a="circle",size:s="default"}=e,{getPrefixCls:c}=r.useContext(tt),l=c("skeleton",t),[u,d,p]=qf(l),f=Je(e,["prefixCls","className"]),h=y()(l,`${l}-element`,{[`${l}-active`]:o},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Of,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:s},f))))},Qf.Input=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a,size:s="default"}=e,{getPrefixCls:c}=r.useContext(tt),l=c("skeleton",t),[u,d,p]=qf(l),f=Je(e,["prefixCls"]),h=y()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Of,Object.assign({prefixCls:`${l}-input`,size:s},f))))},Qf.Image=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a}=e,{getPrefixCls:s}=r.useContext(tt),c=s("skeleton",t),[l,u,d]=qf(c),p=y()(c,`${c}-element`,{[`${c}-active`]:a},n,i,u,d);return l(r.createElement("div",{className:p},r.createElement("div",{className:y()(`${c}-image`,n),style:o},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},Qf.Node=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a,children:s}=e,{getPrefixCls:c}=r.useContext(tt),l=c("skeleton",t),[u,d,p]=qf(l),f=y()(l,`${l}-element`,{[`${l}-active`]:a},d,n,i,p);return u(r.createElement("div",{className:f},r.createElement("div",{className:y()(`${l}-image`,n),style:o},s)))};const Uf=Qf,Hf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Kf=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:Hf}))};const Wf=r.forwardRef(Kf),Xf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Yf=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:Xf}))};const Jf=r.forwardRef(Yf),Zf=(0,r.createContext)(null);var eh={width:0,height:0,left:0,top:0};function th(e,t){var n=r.useRef(e),i=p(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var nh=Math.pow(.995,20);function rh(e){var t=p((0,r.useState)(0),2),n=t[0],i=t[1],o=(0,r.useRef)(0),a=(0,r.useRef)();return a.current=e,Bt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}var ih={width:0,height:0,left:0,top:0,right:0};function oh(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function ah(e){return String(e).replace(/"/g,"TABS_DQ")}function sh(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var ch=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.editable,o=e.locale,a=e.style;return i&&!1!==i.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}));const lh=ch;var uh=r.forwardRef((function(e,t){var n,i=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==f(a)||r.isValidElement(a)?s.right=a:s=a,"right"===i&&(n=s.right),"left"===i&&(n=s.left),n?r.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));const dh=uh;var ph=ua.ESC,fh=ua.TAB;const hh=(0,r.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,s=(0,r.useMemo)((function(){return"function"==typeof n?n():n}),[n]),c=wr(t,Or(s));return i().createElement(i().Fragment,null,o&&i().createElement("div",{className:"".concat(a,"-arrow")}),i().cloneElement(s,{ref:Tr(s)?c:void 0}))}));var mh={adjustX:1,adjustY:1},gh=[0,0];const vh={topLeft:{points:["bl","tl"],overflow:mh,offset:[0,-4],targetOffset:gh},top:{points:["bc","tc"],overflow:mh,offset:[0,-4],targetOffset:gh},topRight:{points:["br","tr"],overflow:mh,offset:[0,-4],targetOffset:gh},bottomLeft:{points:["tl","bl"],overflow:mh,offset:[0,4],targetOffset:gh},bottom:{points:["tc","bc"],overflow:mh,offset:[0,4],targetOffset:gh},bottomRight:{points:["tr","br"],overflow:mh,offset:[0,4],targetOffset:gh}};var yh=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function bh(e,t){var n,o=e.arrow,s=void 0!==o&&o,c=e.prefixCls,l=void 0===c?"rc-dropdown":c,u=e.transitionName,d=e.animation,f=e.align,h=e.placement,v=void 0===h?"bottomLeft":h,b=e.placements,E=void 0===b?vh:b,_=e.getPopupContainer,w=e.showAction,k=e.hideAction,T=e.overlayClassName,S=e.overlayStyle,O=e.visible,x=e.trigger,C=void 0===x?["hover"]:x,N=e.autoFocus,A=e.overlay,I=e.children,D=e.onVisibleChange,L=g(e,yh),P=p(i().useState(),2),j=P[0],R=P[1],$="visible"in e?O:j,F=i().useRef(null),M=i().useRef(null),q=i().useRef(null);i().useImperativeHandle(t,(function(){return F.current}));var V=function(e){R(e),null==D||D(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},l=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case ph:c();break;case fh:var t=!1;s.current||(t=l()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),o&&Do(l,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:$,triggerRef:q,onVisibleChange:V,autoFocus:N,overlayRef:M});var z,B,G,Q=function(){return i().createElement(hh,{ref:M,overlay:A,prefixCls:l,arrow:s})},U=i().cloneElement(I,{className:y()(null===(n=I.props)||void 0===n?void 0:n.className,$&&(z=e.openClassName,void 0!==z?z:"".concat(l,"-open"))),ref:Tr(I)?wr(q,Or(I)):void 0}),H=k;return H||-1===C.indexOf("contextMenu")||(H=["click"]),i().createElement(bc,a({builtinPlacements:E},L,{prefixCls:l,ref:F,popupClassName:y()(T,m({},"".concat(l,"-show-arrow"),s)),popupStyle:S,action:C,showAction:w,hideAction:H,popupPlacement:v,popupAlign:f,popupTransitionName:u,popupAnimation:d,popupVisible:$,stretch:(B=e.minOverlayWidthMatchTrigger,G=e.alignPoint,("minOverlayWidthMatchTrigger"in e?B:!G)?"minWidth":""),popup:"function"==typeof A?Q:Q(),onPopupVisibleChange:V,onPopupClick:function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},getPopupContainer:_}),U)}const Eh=i().forwardRef(bh);var _h=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.id,o=e.tabs,s=e.locale,c=e.mobile,l=e.more,u=void 0===l?{}:l,d=e.style,f=e.className,h=e.editable,g=e.tabBarGutter,v=e.rtl,b=e.removeAriaLabel,E=e.onTabClick,_=e.getPopupContainer,w=e.popupClassName,k=p((0,r.useState)(!1),2),T=k[0],S=k[1],O=p((0,r.useState)(null),2),x=O[0],C=O[1],N=u.icon,A=void 0===N?"More":N,I="".concat(i,"-more-popup"),D="".concat(n,"-dropdown"),L=null!==x?"".concat(I,"-").concat(x):null,P=null==s?void 0:s.dropdownAriaLabel,j=r.createElement(zc,{onClick:function(e){var t=e.key,n=e.domEvent;E(t,n),S(!1)},prefixCls:"".concat(D,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[x],"aria-label":void 0!==P?P:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,s=e.label,c=sh(t,o,h,n);return r.createElement(qa,{key:a,id:"".concat(I,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,s),c&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,a)}},o||h.removeIcon||"×"))})));function R(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===x}))||0,r=t.length,i=0;it?"left":"right"})})),q=p(M,2),V=q[0],z=q[1],B=th(0,(function(e,t){!F&&O&&O({direction:e>t?"top":"bottom"})})),G=p(B,2),Q=G[0],U=G[1],H=p((0,r.useState)([0,0]),2),K=H[0],W=H[1],X=p((0,r.useState)([0,0]),2),Y=X[0],J=X[1],Z=p((0,r.useState)([0,0]),2),ee=Z[0],te=Z[1],ne=p((0,r.useState)([0,0]),2),re=ne[0],ie=ne[1],ae=(n=new Map,o=(0,r.useRef)([]),s=p((0,r.useState)({}),2)[1],c=(0,r.useRef)("function"==typeof n?n():n),l=rh((function(){var e=c.current;o.current.forEach((function(t){e=t(e)})),o.current=[],c.current=e,s({})})),[c.current,function(e){o.current.push(e),l()}]),se=p(ae,2),ce=se[0],le=se[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||eh,o=i.left+i.width,a=0;abe?be:e}F&&v?(ye=0,be=Math.max(0,pe-ge)):(ye=Math.min(0,ge-pe),be=0);var _e=(0,r.useRef)(null),we=p((0,r.useState)(),2),ke=we[0],Te=we[1];function Se(){Te(Date.now())}function Oe(){_e.current&&clearTimeout(_e.current)}!function(e,t){var n=p((0,r.useState)(),2),i=n[0],o=n[1],a=p((0,r.useState)(0),2),s=a[0],c=a[1],l=p((0,r.useState)(0),2),u=l[0],d=l[1],f=p((0,r.useState)(),2),h=f[0],m=f[1],g=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(i){var n=e.touches[0],r=n.screenX,a=n.screenY;o({x:r,y:a});var l=r-i.x,u=a-i.y;t(l,u);var p=Date.now();c(p),d(p-s),m({x:l,y:u})}},onTouchEnd:function(){if(i&&(o(null),m(null),h)){var e=h.x/u,n=h.y/u,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var s=e,c=n;g.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):t(20*(s*=nh),20*(c*=nh))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,o=Math.abs(n),a=Math.abs(r);o===a?i="x"===v.current?n:r:o>a?(i=n,v.current="x"):(i=r,v.current="y"),t(-i,-i)&&e.preventDefault()}},r.useEffect((function(){function t(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(P,(function(e,t){function n(e,t){e((function(e){return Ee(e+t)}))}return!!me&&(F?n(z,e):n(U,t),Oe(),Se(),!0)})),(0,r.useEffect)((function(){return Oe(),ke&&(_e.current=setTimeout((function(){Te(0)}),100)),Oe}),[ke]);var xe=function(e,t,n,i,o,a,s){var c,l,u,d=s.tabs,p=s.tabPosition,f=s.rtl;return["top","bottom"].includes(p)?(c="width",l=f?"right":"left",u=Math.abs(n)):(c="height",l="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,i=0;iMath.floor(u+t)){r=i-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(d[s].key)||ih)[l]=r?[0,0]:[a,r]}),[e,t,i,o,a,u,p,d.map((function(e){return e.key})).join("_"),f])}(ue,ge,F?V:Q,pe,fe,he,oe(oe({},e),{},{tabs:A})),Ce=p(xe,2),Ne=Ce[0],Ae=Ce[1],Ie=mr((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(F){var n=V;v?t.rightV+ge&&(n=t.right+t.width-ge):t.left<-V?n=-t.left:t.left+t.width>-V+ge&&(n=-(t.left+t.width-ge)),U(0),z(Ee(n))}else{var r=Q;t.top<-Q?r=-t.top:t.top+t.height>-Q+ge&&(r=-(t.top+t.height-ge)),z(0),U(Ee(r))}})),De=p((0,r.useState)(),2),Le=De[0],Pe=De[1],je=p((0,r.useState)(!1),2),Re=je[0],$e=je[1],Fe=A.filter((function(e){return!e.disabled})).map((function(e){return e.key})),Me=function(e){var t=Fe.indexOf(Le||g),n=Fe.length,r=Fe[(t+e+n)%n];Pe(r)},qe=function(e){var t=e.code,n=v&&F,r=Fe[0],i=Fe[Fe.length-1];switch(t){case"ArrowLeft":F&&Me(n?1:-1);break;case"ArrowRight":F&&Me(n?-1:1);break;case"ArrowUp":e.preventDefault(),F||Me(-1);break;case"ArrowDown":e.preventDefault(),F||Me(1);break;case"Home":e.preventDefault(),Pe(r);break;case"End":e.preventDefault(),Pe(i);break;case"Enter":case"Space":e.preventDefault(),S(Le,e);break;case"Backspace":case"Delete":var o=Fe.indexOf(Le),a=A.find((function(e){return e.key===Le}));sh(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,E,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),E.onEdit("remove",{key:Le,event:e}),o===Fe.length-1?Me(-1):Me(1))}},Ve={};F?Ve[v?"marginRight":"marginLeft"]=k:Ve.marginTop=k;var ze=A.map((function(e,t){var n=e.key;return r.createElement(kh,{id:f,prefixCls:N,key:n,tab:e,style:0===t?void 0:Ve,closable:e.closable,editable:E,active:n===g,focus:n===Le,renderWrapper:T,removeAriaLabel:null==_?void 0:_.removeAriaLabel,tabCount:Fe.length,currentPosition:t+1,onClick:function(e){S(n,e)},onKeyDown:qe,onFocus:function(){Re||Pe(n),Ie(n),Se(),P.current&&(v||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:function(){Pe(void 0)},onMouseDown:function(){$e(!0)},onMouseUp:function(){$e(!1)}})})),Be=function(){return le((function(){var e,t=new Map,n=null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect();return A.forEach((function(e){var r,i=e.key,o=null===(r=j.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(ah(i),'"]'));if(o){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,i=e.offsetTop,o=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,c=a.height,l=a.left,u=a.top;return Math.abs(s-n)<1?[s,c,l-t.left,u-t.top]:[n,r,o,i]}(o,n),s=p(a,4),c=s[0],l=s[1],u=s[2],d=s[3];t.set(i,{width:c,height:l,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Be()}),[A.map((function(e){return e.key})).join("_")]);var Ge=rh((function(){var e=Th(I),t=Th(D),n=Th(L);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Th($);te(r);var i=Th(R);ie(i);var o=Th(j);J([o[0]-r[0],o[1]-r[1]]),Be()})),Qe=A.slice(0,Ne),Ue=A.slice(Ae+1),He=[].concat(Ye(Qe),Ye(Ue)),Ke=ue.get(g),We=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,a=e.indicator,s=void 0===a?{}:a,c=s.size,l=s.align,u=void 0===l?"center":l,d=p((0,r.useState)(),2),f=d[0],h=d[1],m=(0,r.useRef)(),g=i().useCallback((function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e}),[c]);function v(){Do.cancel(m.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var r=o?"right":"left";"start"===u&&(e[r]=t[r]),"center"===u&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=Do((function(){h(e)})),v}),[t,n,o,u,g]),{style:f}}({activeTabOffset:Ke,horizontal:F,indicator:x,rtl:v}).style;(0,r.useEffect)((function(){Ie()}),[g,ye,be,oh(Ke),oh(ue),F]),(0,r.useEffect)((function(){Ge()}),[v]);var Xe,Je,Ze,et,tt=!!He.length,nt="".concat(N,"-nav-wrap");return F?v?(Je=V>0,Xe=V!==be):(Xe=V<0,Je=V!==ye):(Ze=Q<0,et=Q!==ye),r.createElement(Eo,{onResize:Ge},r.createElement("div",{ref:kr(t,I),role:"tablist","aria-orientation":F?"horizontal":"vertical",className:y()("".concat(N,"-nav"),u),style:d,onKeyDown:function(){Se()}},r.createElement(dh,{ref:D,position:"left",extra:b,prefixCls:N}),r.createElement(Eo,{onResize:Ge},r.createElement("div",{className:y()(nt,m(m(m(m({},"".concat(nt,"-ping-left"),Xe),"".concat(nt,"-ping-right"),Je),"".concat(nt,"-ping-top"),Ze),"".concat(nt,"-ping-bottom"),et)),ref:P},r.createElement(Eo,{onResize:Ge},r.createElement("div",{ref:j,className:"".concat(N,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(Q,"px)"),transition:ke?"none":void 0}},ze,r.createElement(lh,{ref:$,prefixCls:N,locale:_,editable:E,style:oe(oe({},0===ze.length?void 0:Ve),{},{visibility:tt?"hidden":null})}),r.createElement("div",{className:y()("".concat(N,"-ink-bar"),m({},"".concat(N,"-ink-bar-animated"),h.inkBar)),style:We}))))),r.createElement(wh,a({},e,{removeAriaLabel:null==_?void 0:_.removeAriaLabel,ref:R,prefixCls:N,tabs:He,className:!tt&&ve,tabMoving:!!ke})),r.createElement(dh,{ref:L,position:"right",extra:b,prefixCls:N})))}));const xh=Oh;var Ch=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,o=e.style,a=e.id,s=e.active,c=e.tabKey,l=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!s,style:o,className:y()(n,s&&"".concat(n,"-active"),i),ref:t},l)}));const Nh=Ch;var Ah=["renderTabBar"],Ih=["label","key"];const Dh=function(e){var t=e.renderTabBar,n=g(e,Ah),i=r.useContext(Zf).tabs;return t?t(oe(oe({},n),{},{panes:i.map((function(e){var t=e.label,n=e.key,i=g(e,Ih);return r.createElement(Nh,a({tab:t,key:n,tabKey:n},i))}))}),xh):r.createElement(xh,n)};var Lh=["key","forceRender","style","className","destroyInactiveTabPane"];const Ph=function(e){var t=e.id,n=e.activeKey,i=e.animated,o=e.tabPosition,s=e.destroyInactiveTabPane,c=r.useContext(Zf),l=c.prefixCls,u=c.tabs,d=i.tabPane,p="".concat(l,"-tabpane");return r.createElement("div",{className:y()("".concat(l,"-content-holder"))},r.createElement("div",{className:y()("".concat(l,"-content"),"".concat(l,"-content-").concat(o),m({},"".concat(l,"-content-animated"),d))},u.map((function(e){var o=e.key,c=e.forceRender,l=e.style,u=e.className,f=e.destroyInactiveTabPane,h=g(e,Lh),m=o===n;return r.createElement(Ws,a({key:o,visible:m,forceRender:c,removeOnLeave:!(!s&&!f),leavedClassName:"".concat(p,"-hidden")},i.tabPaneMotion),(function(e,n){var i=e.style,s=e.className;return r.createElement(Nh,a({},h,{prefixCls:p,id:t,tabKey:o,animated:d,active:m,style:oe(oe({},l),i),className:y()(u,s),ref:n}))}))}))))};var jh=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Rh=0,$h=r.forwardRef((function(e,t){var n=e.id,i=e.prefixCls,o=void 0===i?"rc-tabs":i,s=e.className,c=e.items,l=e.direction,u=e.activeKey,d=e.defaultActiveKey,h=e.editable,v=e.animated,b=e.tabPosition,E=void 0===b?"top":b,_=e.tabBarGutter,w=e.tabBarStyle,k=e.tabBarExtraContent,T=e.locale,S=e.more,O=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,N=e.onTabClick,A=e.onTabScroll,I=e.getPopupContainer,D=e.popupClassName,L=e.indicator,P=g(e,jh),j=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===f(e)&&"key"in e}))}),[c]),R="rtl"===l,$=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:oe({inkBar:!0},"object"===f(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(v),F=p((0,r.useState)(!1),2),M=F[0],q=F[1];(0,r.useEffect)((function(){q(is())}),[]);var V=p(yr((function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),z=V[0],B=V[1],G=p((0,r.useState)((function(){return j.findIndex((function(e){return e.key===z}))})),2),Q=G[0],U=G[1];(0,r.useEffect)((function(){var e,t=j.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(Q,j.length-1)),B(null===(e=j[t])||void 0===e?void 0:e.key)),U(t)}),[j.map((function(e){return e.key})).join("_"),z,Q]);var H=p(yr(null,{value:n}),2),K=H[0],W=H[1];(0,r.useEffect)((function(){n||(W("rc-tabs-".concat(Rh)),Rh+=1)}),[]);var X={id:K,activeKey:z,animated:$,tabPosition:E,rtl:R,mobile:M},Y=oe(oe({},X),{},{editable:h,locale:T,more:S,tabBarGutter:_,onTabClick:function(e,t){null==N||N(e,t);var n=e!==z;B(e),n&&(null==C||C(e))},onTabScroll:A,extra:k,style:w,panes:null,getPopupContainer:I,popupClassName:D,indicator:L});return r.createElement(Zf.Provider,{value:{tabs:j,prefixCls:o}},r.createElement("div",a({ref:t,id:n,className:y()(o,"".concat(o,"-").concat(E),m(m(m({},"".concat(o,"-mobile"),M),"".concat(o,"-editable"),h),"".concat(o,"-rtl"),R),s)},P),r.createElement(Dh,a({},Y,{renderTabBar:x})),r.createElement(Ph,a({destroyInactiveTabPane:O},X,{animated:$}))))}));const Fh=$h,Mh={motionAppear:!1,motionEnter:!0,motionLeave:!0};const qh=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[hd(e,"slide-up"),hd(e,"slide-down")]]},Vh=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Rt(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Ur(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Rt(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Rt(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Rt(e.borderRadiusLG)} 0 0 ${Rt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},zh=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Gr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Rt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Br),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Rt(e.paddingXXS)} ${Rt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bh=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Rt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Rt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gh=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Rt(e.borderRadius)} ${Rt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Rt(e.borderRadius)} ${Rt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Rt(e.borderRadius)} ${Rt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Rt(e.borderRadius)} 0 0 ${Rt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Qh=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Hr(e)),"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-focus ${l}-btn`]:Object.assign({},Ur(e)),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:o}}}},Uh=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Rt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Rt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Rt(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Hh=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Gr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:Rt(e.paddingXS),background:"transparent",border:`${Rt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Hr(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Qh(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Hr(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Kh=gi("Tabs",(e=>{const t=Rr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Rt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Rt(e.horizontalItemGutter)}`});return[Gh(t),Uh(t),Bh(t),zh(t),Vh(t),Hh(t),qh(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const Wh=e=>{var t,n,i,o,a,s,c,l,u,d,p;const{type:f,className:h,rootClassName:m,size:g,onEdit:v,hideAdd:b,centered:E,addIcon:_,removeIcon:w,moreIcon:k,more:T,popupClassName:S,children:O,items:x,animated:C,style:N,indicatorSize:A,indicator:I}=e,D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let{key:n,event:r}=t;null==v||v("add"===e?r:n,e)},removeIcon:null!==(t=null!=w?w:null==j?void 0:j.removeIcon)&&void 0!==t?t:r.createElement(Wf,null),addIcon:(null!=_?_:null==j?void 0:j.addIcon)||r.createElement(Jf,null),showAdd:!0!==b});const G=R(),Q=Sf(g),U=function(e,t){if(e)return e;const n=ct(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:i}=r,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie))}(n)}(x,O),H=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Mh),{motionName:Xc(e,"switch")})),t}(F,C),K=Object.assign(Object.assign({},null==j?void 0:j.style),N),W={align:null!==(n=null==I?void 0:I.align)&&void 0!==n?n:null===(i=null==j?void 0:j.indicator)||void 0===i?void 0:i.align,size:null!==(c=null!==(a=null!==(o=null==I?void 0:I.size)&&void 0!==o?o:A)&&void 0!==a?a:null===(s=null==j?void 0:j.indicator)||void 0===s?void 0:s.size)&&void 0!==c?c:null==j?void 0:j.indicatorSize};return q(r.createElement(Fh,Object.assign({direction:P,getPopupContainer:$},D,{items:U,className:y()({[`${F}-${Q}`]:Q,[`${F}-card`]:["card","editable-card"].includes(f),[`${F}-editable-card`]:"editable-card"===f,[`${F}-centered`]:E},null==j?void 0:j.className,h,m,V,z,M),popupClassName:y()(S,V,z,M),style:K,editable:B,more:Object.assign({icon:null!==(p=null!==(d=null!==(u=null===(l=null==j?void 0:j.more)||void 0===l?void 0:l.icon)&&void 0!==u?u:null==j?void 0:j.moreIcon)&&void 0!==d?d:k)&&void 0!==p?p:r.createElement(Qc,null),transitionName:`${G}-slide-up`},T),prefixCls:F,animated:H,indicator:W})))};Wh.TabPane=()=>null;const Xh=Wh;const Yh=e=>{var{prefixCls:t,className:n,hoverable:i=!0}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Rt(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Br),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Rt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Zh=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Rt(i)} 0 0 0 ${n},\n 0 ${Rt(i)} 0 0 ${n},\n ${Rt(i)} ${Rt(i)} 0 0 ${n},\n ${Rt(i)} 0 0 0 ${n} inset,\n 0 ${Rt(i)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},em=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Rt(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Rt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Rt(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Rt(e.lineWidth)} ${e.lineType} ${o}`}}})},tm=e=>Object.assign(Object.assign({margin:`${Rt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Br),"&-description":{color:e.colorTextDescription}}),nm=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Rt(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Rt(e.padding)} ${Rt(i)}`}}},rm=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},im=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Gr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:Jh(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:Zh(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:em(e),[`${t}-meta`]:tm(e)}),[`${t}-bordered`]:{border:`${Rt(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Rt(e.borderRadiusLG)} ${Rt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:nm(e),[`${t}-loading`]:rm(e),[`${t}-rtl`]:{direction:"rtl"}}},om=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Rt(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},am=gi("Card",(e=>{const t=Rr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[im(t),om(t)]}),(e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}}));var sm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:i}=e;return r.createElement("ul",{className:t,style:i},n.map(((e,t)=>{const i=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:i},r.createElement("span",null,e))})))},lm=r.forwardRef(((e,t)=>{const{prefixCls:n,className:i,rootClassName:o,style:a,extra:s,headStyle:c={},bodyStyle:l={},title:u,loading:d,bordered:p=!0,size:f,type:h,cover:m,actions:g,tabList:v,children:b,activeTabKey:E,defaultActiveTabKey:_,tabBarExtraContent:w,hoverable:k,tabProps:T={},classNames:S,styles:O}=e,x=sm(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:C,direction:N,card:A}=r.useContext(tt),I=e=>{var t;return y()(null===(t=null==A?void 0:A.classNames)||void 0===t?void 0:t[e],null==S?void 0:S[e])},D=e=>{var t;return Object.assign(Object.assign({},null===(t=null==A?void 0:A.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},L=r.useMemo((()=>{let e=!1;return r.Children.forEach(b,(t=>{(null==t?void 0:t.type)===Yh&&(e=!0)})),e}),[b]),P=C("card",n),[j,R,$]=am(P),F=r.createElement(Uf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),M=void 0!==E,q=Object.assign(Object.assign({},T),{[M?"activeKey":"defaultActiveKey"]:M?E:_,tabBarExtraContent:w});let V;const z=Sf(f),B=z&&"default"!==z?z:"large",G=v?r.createElement(Xh,Object.assign({size:B},q,{className:`${P}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:v.map((e=>{var{tab:t}=e,n=sm(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||s||G){const e=y()(`${P}-head`,I("header")),t=y()(`${P}-head-title`,I("title")),n=y()(`${P}-extra`,I("extra")),i=Object.assign(Object.assign({},c),D("header"));V=r.createElement("div",{className:e,style:i},r.createElement("div",{className:`${P}-head-wrapper`},u&&r.createElement("div",{className:t,style:D("title")},u),s&&r.createElement("div",{className:n,style:D("extra")},s)),G)}const Q=y()(`${P}-cover`,I("cover")),U=m?r.createElement("div",{className:Q,style:D("cover")},m):null,H=y()(`${P}-body`,I("body")),K=Object.assign(Object.assign({},l),D("body")),W=r.createElement("div",{className:H,style:K},d?F:b),X=y()(`${P}-actions`,I("actions")),Y=(null==g?void 0:g.length)?r.createElement(cm,{actionClasses:X,actionStyle:D("actions"),actions:g}):null,J=Je(x,["onTabChange"]),Z=y()(P,null==A?void 0:A.className,{[`${P}-loading`]:d,[`${P}-bordered`]:p,[`${P}-hoverable`]:k,[`${P}-contain-grid`]:L,[`${P}-contain-tabs`]:null==v?void 0:v.length,[`${P}-${z}`]:z,[`${P}-type-${h}`]:!!h,[`${P}-rtl`]:"rtl"===N},i,o,R,$),ee=Object.assign(Object.assign({},null==A?void 0:A.style),a);return j(r.createElement("div",Object.assign({ref:t},J,{className:Z,style:ee}),V,U,W,Y))}));const um=lm;um.Grid=Yh,um.Meta=e=>{const{prefixCls:t,className:n,avatar:i,title:o,description:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},fm=vi("Wave",(e=>[pm(e)])),hm=`${Ze}-wave-target`;var mm,gm=oe({},qi),vm=gm.version,ym=gm.render,bm=gm.unmountComponentAtNode;try{Number((vm||"").split(".")[0])>=18&&(mm=gm.createRoot)}catch(e){}function Em(e){var t=gm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===f(t)&&(t.usingClientEntryPoint=e)}var _m="__rc_react_root__";function wm(_x){return km.apply(this,arguments)}function km(){return(km=fl(dl().mark((function e(t){return dl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[_m])||void 0===e||e.unmount(),delete t[_m]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tm(e){bm(e)}function Sm(){return(Sm=fl(dl().mark((function e(t){return dl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===mm){e.next=2;break}return e.abrupt("return",wm(t));case 2:Tm(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let Om=(e,t)=>(function(e,t){mm?function(e,t){Em(!0);var n=t[_m]||mm(t);Em(!1),n.render(e),t[_m]=n}(e,t):function(e,t){null==ym||ym(e,t)}(e,t)}(e,t),()=>function(e){return Sm.apply(this,arguments)}(t));function xm(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Cm(e){return Number.isNaN(e)?0:e}const Nm=e=>{const{className:t,target:n,component:i,registerUnmount:o}=e,a=r.useRef(null),s=r.useRef(null);r.useEffect((()=>{s.current=o()}),[]);const[c,l]=r.useState(null),[u,d]=r.useState([]),[p,f]=r.useState(0),[h,m]=r.useState(0),[g,v]=r.useState(0),[b,E]=r.useState(0),[_,w]=r.useState(!1),k={left:p,top:h,width:g,height:b,borderRadius:u.map((e=>`${e}px`)).join(" ")};function T(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return xm(t)?t:xm(n)?n:xm(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;f(t?n.offsetLeft:Cm(-parseFloat(r))),m(t?n.offsetTop:Cm(-parseFloat(i))),v(n.offsetWidth),E(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;d([o,a,c,s].map((e=>Cm(parseFloat(e)))))}if(c&&(k["--wave-color"]=c),r.useEffect((()=>{if(n){const e=Do((()=>{T(),w(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(T),t.observe(n)),()=>{Do.cancel(e),null==t||t.disconnect()}}}),[]),!_)return null;const S=("Checkbox"===i||"Radio"===i)&&(null==n?void 0:n.classList.contains(hm));return r.createElement(Ws,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:i}=e;return r.createElement("div",{ref:wr(a,n),className:y()(t,i,{"wave-quick":S}),style:k})}))},Am=(e,t)=>{var n;const{component:i}=t;if("Checkbox"===i&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let a=null;a=Om(r.createElement(Nm,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),o)},Im=(e,t,n)=>{const{wave:i}=r.useContext(tt),[,o,a]=mi(),s=mr((r=>{const s=e.current;if((null==i?void 0:i.disabled)||!s)return;const c=s.querySelector(`.${hm}`)||s,{showEffect:l}=i||{};(l||Am)(c,{className:t,token:o,component:n,event:r,hashId:a})})),c=r.useRef(null);return e=>{Do.cancel(c.current),c.current=Do((()=>{s(e)}))}},Dm=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:a}=(0,r.useContext)(tt),s=(0,r.useRef)(null),c=a("wave"),[,l]=fm(c),u=Im(s,y()(c,l),o);return i().useEffect((()=>{const e=s.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!sa(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),i().isValidElement(t)?Zc(t,{ref:Tr(t)?wr(Or(t),s):s}):null!=t?t:null},Lm=r.createContext(!1);const Pm=r.createContext(void 0),jm=/^[\u4E00-\u9FA5]{2}$/,Rm=jm.test.bind(jm);function $m(e){return"string"==typeof e}function Fm(e){return"text"===e||"link"===e}["default","primary","danger"].concat(Ye(ed));const Mm=(0,r.forwardRef)(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,s=y()(`${a}-icon`,n);return i().createElement("span",{ref:t,className:s,style:r},o)})),qm=Mm,Vm={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var zm=function(e,t){return r.createElement(Fe,a({},e,{ref:t,icon:Vm}))};const Bm=r.forwardRef(zm),Gm=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,s=y()(`${n}-loading-icon`,r);return i().createElement(qm,{prefixCls:n,className:s,style:o,ref:t},i().createElement(Bm,{className:a}))})),Qm=()=>({width:0,opacity:0,transform:"scale(0)"}),Um=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hm=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:s}=e,c=!!n;return r?i().createElement(Gm,{prefixCls:t,className:o,style:a}):i().createElement(Ws,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Qm,onAppearActive:Um,onEnterStart:Qm,onEnterActive:Um,onLeaveStart:Um,onLeaveActive:Qm},((e,n)=>{let{className:r,style:s}=e;const c=Object.assign(Object.assign({},a),s);return i().createElement(Gm,{prefixCls:t,className:y()(o,r),style:c,ref:n})}))},Km=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Wm=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Km(`${t}-primary`,i),Km(`${t}-danger`,o)]}};var Xm,Ym=["b"],Jm=["v"],Zm=function(e){return Math.round(Number(e||0))},eg=function(e){ir(n,e);var t=sr(n);function n(e){return mt(this,n),t.call(this,function(e){if(e instanceof k)return e;if(e&&"object"===f(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return oe(oe({},g(t,Ym)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return vt(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Zm(100*e.s),n=Zm(100*e.b),r=Zm(e.h),i=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return oe(oe({},g(e,Jm)),{},{b:t,a:this.a})}}]),n}(k);(Xm="#1677ff")instanceof eg||new eg(Xm);let tg=function(){return vt((function e(t){var n;if(mt(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new eg(this.colors[0].color.metaColor)):this.metaColor=new eg(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const ng=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Rr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},rg=e=>{var t,n,r,i,o,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(i=e.contentLineHeight)&&void 0!==i?i:Jr(s),d=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:Jr(c),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Jr(l),f=((e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new eg(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:.299*n+.587*r+.114*i>192})(new tg(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*p)/2-e.lineWidth,0)}},ig=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:s,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Rt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":Hr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${o} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},og=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ag=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),sg=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),cg=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),lg=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},og(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),ug=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},cg(e))}),dg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),pg=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?dg:ug;return Object.assign(Object.assign({},i(e)),og(e.componentCls,t,n))},fg=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},pg(e,r,i))}),hg=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},pg(e,r,i))}),mg=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),gg=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},pg(e,n,r))}),vg=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},pg(e,r,i,n))}),yg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},fg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),mg(e)),gg(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),vg(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),lg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),bg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},hg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),mg(e)),gg(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),vg(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),lg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Eg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},fg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),hg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mg(e)),gg(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),vg(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),vg(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),lg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_g=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:yg(e),[`${t}-color-primary`]:bg(e),[`${t}-color-dangerous`]:Eg(e)},(e=>{const{componentCls:t}=e;return ed.reduce(((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],l=e[`${r}7`],u=`0 ${Rt(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},fg(e,e.colorTextLightSolid,i,{background:a},{background:l})),hg(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),mg(e)),gg(e,o,{background:s},{background:c})),vg(e,i,"link",{color:a},{color:l})),vg(e,i,"text",{color:a,background:o},{color:l,background:c}))})}),{})})(e))},wg=e=>Object.assign(Object.assign(Object.assign(Object.assign({},hg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vg(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),fg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),vg(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),kg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${Rt(c)} ${Rt(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:ag(e)},{[`${n}${n}-round${t}`]:sg(e)}]},Tg=e=>{const t=Rr(e,{fontSize:e.contentFontSize});return kg(t,e.componentCls)},Sg=e=>{const t=Rr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return kg(t,`${e.componentCls}-sm`)},Og=e=>{const t=Rr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return kg(t,`${e.componentCls}-lg`)},xg=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Cg=gi("Button",(e=>{const t=ng(e);return[ig(t),Tg(t),Sg(t),Og(t),xg(t),_g(t),wg(t),Wm(t)]}),rg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Ng(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Ag(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Ng(e,r,t)),Ag(n,r,t))}}function Dg(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Lg(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Dg(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Pg=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=e=>{const i=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${i} + ${i}::before`]:{position:"absolute",top:e?o:0,insetInlineStart:e?0:o,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},jg=yi(["Button","compact"],(e=>{const t=ng(e);return[Ig(t),Lg(t),Pg(t)]}),rg);const Rg={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},$g=i().forwardRef(((e,t)=>{var n,o,a,s;const{loading:c=!1,prefixCls:l,color:u,variant:d,type:p,danger:f=!1,shape:h="default",size:m,styles:g,disabled:v,className:b,rootClassName:E,children:_,icon:w,iconPosition:k="start",ghost:T=!1,block:S=!1,htmlType:O="button",classNames:x,style:C={},autoInsertSpace:N,autoFocus:A}=e,I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{if(u&&d)return[u,d];const e=Rg[D]||[];return f?["danger",e[1]]:e}),[p,u,d,f]),j="danger"===L?"dangerous":L,{getPrefixCls:R,direction:$,button:F}=(0,r.useContext)(tt),M=null===(n=null!=N?N:null==F?void 0:F.autoInsertSpace)||void 0===n||n,q=R("btn",l),[V,z,B]=Cg(q),G=(0,r.useContext)(Lm),Q=null!=v?v:G,U=(0,r.useContext)(Pm),H=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(c)),[c]),[K,W]=(0,r.useState)(H.loading),[X,Y]=(0,r.useState)(!1),J=(0,r.useRef)(null),Z=kr(t,J),ee=1===r.Children.count(_)&&!w&&!Fm(P),te=(0,r.useRef)(!0);i().useEffect((()=>(te.current=!1,()=>{te.current=!0})),[]),(0,r.useEffect)((()=>{let e=null;return H.delay>0?e=setTimeout((()=>{e=null,W(!0)}),H.delay):W(H.loading),function(){e&&(clearTimeout(e),e=null)}}),[H]),(0,r.useEffect)((()=>{if(!J.current||!M)return;const e=J.current.textContent||"";ee&&Rm(e)?X||Y(!0):X&&Y(!1)})),(0,r.useEffect)((()=>{A&&J.current&&J.current.focus()}),[]);const ne=i().useCallback((t=>{var n;K||Q?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,K,Q]),{compactSize:re,compactItemClassnames:ie}=((e,t)=>{const n=r.useContext(xu),i=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:o}=n,a="vertical"===r?"-vertical-":"-";return y()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:i,[`${e}-compact${a}last-item`]:o,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:i}})(q,$),oe=Sf((e=>{var t,n;return null!==(n=null!==(t=null!=m?m:re)&&void 0!==t?t:U)&&void 0!==n?n:e})),ae=oe&&null!==(o={large:"lg",small:"sm",middle:void 0}[oe])&&void 0!==o?o:"",se=K?"loading":w,ce=Je(I,["navigate"]),le=y()(q,z,B,{[`${q}-${h}`]:"default"!==h&&h,[`${q}-${D}`]:D,[`${q}-dangerous`]:f,[`${q}-color-${j}`]:j,[`${q}-variant-${P}`]:P,[`${q}-${ae}`]:ae,[`${q}-icon-only`]:!_&&0!==_&&!!se,[`${q}-background-ghost`]:T&&!Fm(P),[`${q}-loading`]:K,[`${q}-two-chinese-chars`]:X&&M&&!K,[`${q}-block`]:S,[`${q}-rtl`]:"rtl"===$,[`${q}-icon-end`]:"end"===k},ie,b,E,null==F?void 0:F.className),ue=Object.assign(Object.assign({},null==F?void 0:F.style),C),de=y()(null==x?void 0:x.icon,null===(a=null==F?void 0:F.classNames)||void 0===a?void 0:a.icon),pe=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(s=null==F?void 0:F.styles)||void 0===s?void 0:s.icon)||{}),fe=w&&!K?i().createElement(qm,{prefixCls:q,className:de,style:pe},w):c&&"object"==typeof c&&c.icon?i().createElement(qm,{prefixCls:q,className:de,style:pe},c.icon):i().createElement(Hm,{existIcon:!!w,prefixCls:q,loading:K,mount:te.current}),he=_||0===_?function(e,t){let n=!1;const r=[];return i().Children.forEach(e,(e=>{const t=typeof e,i="string"===t||"number"===t;if(n&&i){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i})),i().Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&$m(e.type)&&Rm(e.props.children)?Zc(e,{children:e.props.children.split("").join(n)}):$m(e)?Rm(e)?i().createElement("span",null,e.split("").join(n)):i().createElement("span",null,e):Jc(e)?i().createElement("span",null,e):e}(e,t)))}(_,ee&&M):null;if(void 0!==ce.href)return V(i().createElement("a",Object.assign({},ce,{className:y()(le,{[`${q}-disabled`]:Q}),href:Q?void 0:ce.href,style:ue,onClick:ne,ref:Z,tabIndex:Q?-1:0}),fe,he));let me=i().createElement("button",Object.assign({},I,{type:O,className:le,style:ue,onClick:ne,disabled:Q,ref:Z}),fe,he,ie&&i().createElement(jg,{prefixCls:q}));return Fm(P)||(me=i().createElement(Dm,{component:"Button",disabled:K},me)),V(me)})),Fg=$g;Fg.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(tt),{prefixCls:i,size:o,className:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{switch(o){case"large":return"lg";case"small":return"sm";default:return""}}),[o]),d=y()(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,l);return r.createElement(Pm.Provider,{value:o},r.createElement("div",Object.assign({},s,{className:d})))},Fg.__ANT_BUTTON=!0;const Mg=Fg,qg=af.div` padding: 24px; overflow-y: scroll; -`,om=()=>(0,r.createElement)(im,null,(0,r.createElement)("h2",null,"Help"),(0,r.createElement)("p",null,"On this page you will find resources to help you understand WPGraphQL, how to use GraphQL with WordPress, how to customize it and make it work for you, and how to get plugged into the community."),(0,r.createElement)(Pp,null),(0,r.createElement)("h3",null,"Documentation"),(0,r.createElement)("p",null,"Below are helpful links to the official WPGraphQL documentation."),(0,r.createElement)(zp,{gutter:[16,16]},(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Getting Started",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/introduction/",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Get Started with WPGraphQL"))]},(0,r.createElement)("p",null,"In the Getting Started are resources to learn about GraphQL, WordPress, how they work together, and more."))),(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Beginner Guides",actions:[(0,r.createElement)("a",{target:"_blank",href:"https://www.wpgraphql.com/docs/intro-to-graphql/"},(0,r.createElement)(rm,{type:"primary"},"Beginner Guides"))]},(0,r.createElement)("p",null,"The Beginner guides go over specific topics such as GraphQL, WordPress, tools and techniques to interact with GraphQL APIs and more."))),(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Using WPGraphQL",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/posts-and-pages/",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Using WPGraphQL"))]},(0,r.createElement)("p",null,"This section covers how WPGraphQL exposes WordPress data to the Graph, and shows how you can interact with this data using GraphQL."))),(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Advanced Concepts",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/wpgraphql-concepts/",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Advanced Concepts"))]},(0,r.createElement)("p",null,'Learn about concepts such as "connections", "edges", "nodes", "what is an application data graph?" and more'," ")))),(0,r.createElement)(Pp,null),(0,r.createElement)("h3",null,"Developer Reference"),(0,r.createElement)("p",null,"Below are helpful links to the WPGraphQL developer reference. These links will be most helpful to developers looking to customize WPGraphQL"," "),(0,r.createElement)(zp,{gutter:[16,16]},(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Recipes",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/recipes",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Recipes"))]},(0,r.createElement)("p",null,"Here you will find snippets of code you can use to customize WPGraphQL. Most snippets are PHP and intended to be included in your theme or plugin."))),(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Actions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/actions",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Actions"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "actions" that are used in the WPGraphQL codebase. Actions can be used to customize behaviors.'))),(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Filters",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/filters",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Filters"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "filters" that are used in the WPGraphQL codebase. Filters are used to customize the Schema and more.'))),(0,r.createElement)(Hp,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)($f,{style:{height:"100%"},title:"Functions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/functions",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Functions"))]},(0,r.createElement)("p",null,'Here you will find functions that can be used to customize the WPGraphQL Schema. Learn how to register GraphQL "fields", "types", and more.')))),(0,r.createElement)(Pp,null),(0,r.createElement)("h3",null,"Community"),(0,r.createElement)(zp,{gutter:[16,16]},(0,r.createElement)(Hp,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)($f,{style:{height:"100%"},title:"Blog",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Blog",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Read the Blog"))]},(0,r.createElement)("p",null,"Keep up to date with the latest news and updates from the WPGraphQL team."))),(0,r.createElement)(Hp,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)($f,{style:{height:"100%"},title:"Extensions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Extensions",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"View Extensions"))]},(0,r.createElement)("p",null,"Browse the list of extensions that are available to extend WPGraphQL to work with other popular WordPress plugins."))),(0,r.createElement)(Hp,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)($f,{style:{height:"100%"},title:"Join us in Discord",actions:[(0,r.createElement)("a",{href:"https://discord.gg/AGVBqqyaUY",target:"_blank"},(0,r.createElement)(rm,{type:"primary"},"Join us in Discord"))]},(0,r.createElement)("p",null,"Join the WPGraphQL Community in Discord where you can ask questions, show off projects and help other WPGraphQL users. Join us today!")))));var am=function(){return am=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1,a=null;if(o&&r){var s=this.state.highlight;a=i().createElement("ul",{className:"execute-options"},n.map((function(e,n){var r=e.name?e.name.value:"";return i().createElement("li",{key:r+"-"+n,className:e===s?"selected":void 0,onMouseOver:function(){return t.setState({highlight:e})},onMouseOut:function(){return t.setState({highlight:null})},onMouseUp:function(){return t._onOptionSelected(e)}},r)})))}!this.props.isRunning&&o||(e=this._onClick);var l=function(){};this.props.isRunning||!o||r||(l=this._onOptionsOpen);var c=this.props.isRunning?i().createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):i().createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return i().createElement("div",{className:"execute-button-wrap"},i().createElement("button",{type:"button",className:"execute-button",onMouseDown:l,onClick:e,title:"Execute Query (Ctrl-Enter)"},i().createElement("svg",{width:"34",height:"34"},c)),a)},t}(i().Component),Bm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}();function qm(e){if("string"===e.type){var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(e){return}}}var zm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._node=null,t.state={width:null,height:null,src:null,mime:null},t}return Bm(t,e),t.shouldRender=function(e){var t=qm(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var e,t=this,n=null;if(null!==this.state.width&&null!==this.state.height){var r=this.state.width+"x"+this.state.height;null!==this.state.mime&&(r+=" "+this.state.mime),n=i().createElement("div",null,r)}return i().createElement("div",null,i().createElement("img",{onLoad:function(){return t._updateMetadata()},ref:function(e){t._node=e},src:null===(e=qm(this.props.token))||void 0===e?void 0:e.href}),n)},t.prototype._updateMetadata=function(){var e=this;if(this._node){var t=this._node.naturalWidth,n=this._node.naturalHeight,r=this._node.src;r!==this.state.src&&(this.setState({src:r}),fetch(r,{method:"HEAD"}).then((function(t){e.setState({mime:t.headers.get("Content-Type")})}))),t===this.state.width&&n===this.state.height||this.setState({height:n,width:t})}},t}(i().Component),Gm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Qm=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){n.setState({error:e})}},n.state={error:null},n}return Gm(t,e),t.prototype.render=function(){var e=this.state.error;return i().createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(i().Component);function Um(e){var t=e.children;return i().createElement("div",{className:"toolbar-button-group"},t)}var Hm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Km=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Ym(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return Hm(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return i().createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Ym,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,i().createElement("svg",{width:"14",height:"8"},i().createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i().createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(i().Component),Wm=function(e){var t=e.onSelect,n=e.title,r=e.label;return i().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Ym,onMouseUp:t,title:n},r)};function Ym(e){e.preventDefault()}var Xm=n(2922),Jm=n.n(Xm),Zm=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029"," "," "]),eg=new RegExp("["+Zm.join("")+"]","g");function tg(e){return e.replace(eg," ")}var ng,rg=n(580),ig=n.n(rg),og=new(Jm());function ag(e,t,r){var i,o;n(5237).on(t,"select",(function(e,t){if(!i){var n,a=t.parentNode;(i=document.createElement("div")).className="CodeMirror-hint-information",a.appendChild(i),(o=document.createElement("div")).className="CodeMirror-hint-deprecation",a.appendChild(o),a.addEventListener("DOMNodeRemoved",n=function(e){e.target===a&&(a.removeEventListener("DOMNodeRemoved",n),i=null,o=null,n=null)})}var s=e.description?og.render(e.description):"Self descriptive.",l=e.type?''+sg(e.type)+"":"";if(i.innerHTML='
'+("

"===s.slice(0,3)?"

"+l+s.slice(3):l+s)+"

",e&&o&&e.deprecationReason){var c=e.deprecationReason?og.render(e.deprecationReason):"";o.innerHTML='Deprecated'+c,o.style.display="block"}else o&&(o.style.display="none");r&&r(i)}))}function sg(e){return e instanceof Rm.GraphQLNonNull?sg(e.ofType)+"!":e instanceof Rm.GraphQLList?"["+sg(e.ofType)+"]":''+ig()(e.name)+""}var lg=!1;"object"==typeof window&&(lg="MacIntel"===window.navigator.platform);const cg=((ng={})[lg?"Cmd-F":"Ctrl-F"]="findPersistent",ng["Cmd-G"]="findPersistent",ng["Ctrl-G"]="findPersistent",ng["Ctrl-Left"]="goSubwordLeft",ng["Ctrl-Right"]="goSubwordRight",ng["Alt-Left"]="goGroupLeft",ng["Alt-Right"]="goGroupRight",ng);var ug=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),pg=function(){return pg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){ag(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return mg(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(5237),n(9751),n(7923),n(5218),n(795),n(1274),n(1561),n(3653),n(8820),n(8527),n(8208),n(1256),n(8116),n(9886);var t=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:gg({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},cg)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(5237),this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var e=this;return i().createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(i().Component),yg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),bg=function(){return bg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){ag(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return yg(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(5237),n(9751),n(7923),n(5218),n(795),n(1274),n(1561),n(3653),n(8820),n(8527),n(6792),n(8208);var t=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:bg({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},cg)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(5237),this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var e=this;return i().createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(i().Component),wg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Tg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewer=null,t._node=null,t}return wg(t,e),t.prototype.componentDidMount=function(){var e=n(5237);n(1274),n(795),n(8527),n(6895),n(3653),n(8820),n(8208),n(9263);var t=this.props.ResultsTooltip,r=this.props.ImagePreview;if(t||r){n(9654);var o=document.createElement("div");e.registerHelper("info","graphql-results",(function(e,n,a,s){var l=[];return t&&l.push(i().createElement(t,{pos:s})),r&&"function"==typeof r.shouldRender&&r.shouldRender(e)&&l.push(i().createElement(r,{token:e})),l.length?(xi().render(i().createElement("div",null,l),o),o):(xi().unmountComponentAtNode(o),null)}))}this.viewer=e(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:cg})},t.prototype.shouldComponentUpdate=function(e){return this.props.value!==e.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var e=this;return i().createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(t){t&&(e.props.registerRef(t),e._node=t)}})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(i().Component);function Sg(e){var t=e.onClick?e.onClick:function(){return null};return kg(e.type,t)}function kg(e,t){return e instanceof Rm.GraphQLNonNull?i().createElement("span",null,kg(e.ofType,t),"!"):e instanceof Rm.GraphQLList?i().createElement("span",null,"[",kg(e.ofType,t),"]"):i().createElement("a",{className:"type-name",onClick:function(n){n.preventDefault(),t(e,n)},href:"#"},null==e?void 0:e.name)}var Og=function(e){return e?(0,Rm.print)(e):""};function xg(e){var t=e.field;return"defaultValue"in t&&void 0!==t.defaultValue?i().createElement("span",null," = ",i().createElement("span",{className:"arg-default-value"},Og((0,Rm.astFromValue)(t.defaultValue,t.type)))):null}function Cg(e){var t=e.arg,n=e.onClickType,r=e.showDefaultValue;return i().createElement("span",{className:"arg"},i().createElement("span",{className:"arg-name"},t.name),": ",i().createElement(Sg,{type:t.type,onClick:n}),!1!==r&&i().createElement(xg,{field:t}))}function _g(e){var t=e.directive;return i().createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Ng=new(Jm())({breaks:!0,linkify:!0});function Ig(e){var t=e.markdown,n=e.className;return t?i().createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Ng.render(t)}}):i().createElement("div",null)}function Lg(e){var t,n,r,o=e.field,a=e.onClickType,s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(i().useState(!1),2),l=s[0],c=s[1];if(o&&"args"in o&&o.args.length>0){t=i().createElement("div",{id:"doc-args",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"arguments"),o.args.filter((function(e){return!e.deprecationReason})).map((function(e){return i().createElement("div",{key:e.name,className:"doc-category-item"},i().createElement("div",null,i().createElement(Cg,{arg:e,onClickType:a})),i().createElement(Ig,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(Ig,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})));var u=o.args.filter((function(e){return Boolean(e.deprecationReason)}));u.length>0&&(n=i().createElement("div",{id:"doc-deprecated-args",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated arguments"),l?u.map((function(e,t){return i().createElement("div",{key:t},i().createElement("div",null,i().createElement(Cg,{arg:e,onClickType:a})),i().createElement(Ig,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(Ig,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})):i().createElement("button",{className:"show-btn",onClick:function(){return c(!l)}},"Show deprecated arguments...")))}return o&&o.astNode&&o.astNode.directives&&o.astNode.directives.length>0&&(r=i().createElement("div",{id:"doc-directives",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"directives"),o.astNode.directives.map((function(e){return i().createElement("div",{key:e.name.value,className:"doc-category-item"},i().createElement("div",null,i().createElement(_g,{directive:e})))})))),i().createElement("div",null,i().createElement(Ig,{className:"doc-type-description",markdown:(null==o?void 0:o.description)||"No Description"}),o&&"deprecationReason"in o&&i().createElement(Ig,{className:"doc-deprecation",markdown:null==o?void 0:o.deprecationReason}),i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"type"),i().createElement(Sg,{type:null==o?void 0:o.type,onClick:a})),t,r,n)}function Ag(e){var t=e.schema,n=e.onClickType,r=t.getQueryType(),o=t.getMutationType&&t.getMutationType(),a=t.getSubscriptionType&&t.getSubscriptionType();return i().createElement("div",null,i().createElement(Ig,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"root types"),i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"query"),": ",i().createElement(Sg,{type:r,onClick:n})),o&&i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"mutation"),": ",i().createElement(Sg,{type:o,onClick:n})),a&&i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"subscription"),": ",i().createElement(Sg,{type:a,onClick:n}))))}function Dg(e,t){var n;return function(){for(var r=this,i=[],o=0;o=100)return"break";var t=p[e];if(r!==t&&$g(e,n)&&c.push(i().createElement("div",{className:"doc-category-item",key:e},i().createElement(Sg,{type:t,onClick:a}))),t&&"getFields"in t){var o=t.getFields();Object.keys(o).forEach((function(c){var p,d=o[c];if(!$g(c,n)){if(!("args"in d)||!d.args.length)return;if(0===(p=d.args.filter((function(e){return $g(e.name,n)}))).length)return}var f=i().createElement("div",{className:"doc-category-item",key:e+"."+c},r!==t&&[i().createElement(Sg,{key:"type",type:t,onClick:a}),"."],i().createElement("a",{className:"field-name",onClick:function(e){return s(d,t,e)}},d.name),p&&["(",i().createElement("span",{key:"args"},p.map((function(e){return i().createElement(Cg,{key:e.name,arg:e,onClickType:a,showDefaultValue:!1})}))),")"]);r===t?l.push(f):u.push(f)}))}};try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),m=h.next();!m.done&&"break"!==f(m.value);m=h.next());}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return l.length+c.length+u.length===0?i().createElement("span",{className:"doc-alert-text"},"No results found."):r&&c.length+u.length>0?i().createElement("div",null,l,i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"other results"),c,u)):i().createElement("div",{className:"doc-search-items"},l,c,u)},t}(i().Component);const Fg=jg;function $g(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}var Vg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}();const Bg=function(e){function t(t){var n=e.call(this,t)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return Vg(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated},t.prototype.render=function(){var e,t,n,r,o,a=this.props.schema,s=this.props.type,l=this.props.onClickType,c=this.props.onClickField,u=null,p=[];if(s instanceof Rm.GraphQLUnionType?(u="possible types",p=a.getPossibleTypes(s)):s instanceof Rm.GraphQLInterfaceType?(u="implementations",p=a.getPossibleTypes(s)):s instanceof Rm.GraphQLObjectType&&(u="implements",p=s.getInterfaces()),p&&p.length>0&&(e=i().createElement("div",{id:"doc-types",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},u),p.map((function(e){return i().createElement("div",{key:e.name,className:"doc-category-item"},i().createElement(Sg,{type:e,onClick:l}))})))),s&&"getFields"in s){var d=s.getFields(),f=Object.keys(d).map((function(e){return d[e]}));t=i().createElement("div",{id:"doc-fields",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"fields"),f.filter((function(e){return!e.deprecationReason})).map((function(e){return i().createElement(qg,{key:e.name,type:s,field:e,onClickType:l,onClickField:c})})));var h=f.filter((function(e){return Boolean(e.deprecationReason)}));h.length>0&&(n=i().createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?h.map((function(e){return i().createElement(qg,{key:e.name,type:s,field:e,onClickType:l,onClickField:c})})):i().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(s instanceof Rm.GraphQLEnumType){var m=s.getValues();r=i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"values"),m.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return i().createElement(zg,{key:e.name,value:e})})));var g=m.filter((function(e){return Boolean(e.deprecationReason)}));g.length>0&&(o=i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?g.map((function(e){return i().createElement(zg,{key:e.name,value:e})})):i().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return i().createElement("div",null,i().createElement(Ig,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),s instanceof Rm.GraphQLObjectType&&e,t,n,r,o,!(s instanceof Rm.GraphQLObjectType)&&e)},t}(i().Component);function qg(e){var t=e.type,n=e.field,r=e.onClickType,o=e.onClickField;return i().createElement("div",{className:"doc-category-item"},i().createElement("a",{className:"field-name",onClick:function(e){return o(n,t,e)}},n.name),"args"in n&&n.args&&n.args.length>0&&["(",i().createElement("span",{key:"args"},n.args.filter((function(e){return!e.deprecationReason})).map((function(e){return i().createElement(Cg,{key:e.name,arg:e,onClickType:r})}))),")"],": ",i().createElement(Sg,{type:n.type,onClick:r}),i().createElement(xg,{field:n}),n.description&&i().createElement(Ig,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&i().createElement(Ig,{className:"doc-deprecation",markdown:n.deprecationReason}))}function zg(e){var t=e.value;return i().createElement("div",{className:"doc-category-item"},i().createElement("div",{className:"enum-value"},t.name),i().createElement(Ig,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i().createElement(Ig,{className:"doc-deprecation",markdown:t.deprecationReason}))}var Gg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Qg=function(){return Qg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(e){n.showDoc(e)},n.handleClickField=function(e){n.showDoc(e)},n.handleSearch=function(e){n.showSearch(e)},n.state={navStack:[Ug]},n}return Gg(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack||this.props.schemaErrors!==e.schemaErrors},t.prototype.render=function(){var e,t=this.props,n=t.schema,r=t.schemaErrors,o=this.state.navStack,a=o[o.length-1];e=r?i().createElement("div",{className:"error-container"},"Error fetching schema"):void 0===n?i().createElement("div",{className:"spinner-container"},i().createElement("div",{className:"spinner"})):n?a.search?i().createElement(Fg,{searchValue:a.search,withinType:a.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===o.length?i().createElement(Ag,{schema:n,onClickType:this.handleClickType}):(0,Rm.isType)(a.def)?i().createElement(Bg,{schema:n,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):i().createElement(Lg,{field:a.def,onClickType:this.handleClickType}):i().createElement("div",{className:"error-container"},"No Schema Available");var s,l=1===o.length||(0,Rm.isType)(a.def)&&"getFields"in a.def;return o.length>1&&(s=o[o.length-2].name),i().createElement("section",{className:"doc-explorer",key:a.name,"aria-label":"Documentation Explorer"},i().createElement("div",{className:"doc-explorer-title-bar"},s&&i().createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+s},s),i().createElement("div",{className:"doc-explorer-title"},a.title||a.name),i().createElement("div",{className:"doc-explorer-rhs"},this.props.children)),i().createElement("div",{className:"doc-explorer-contents"},l&&i().createElement(Rg,{value:a.search,placeholder:"Search "+a.name+"...",onSearch:this.handleSearch}),e))},t.prototype.showDoc=function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})},t.prototype.showDocForReference=function(e){e&&"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind||"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)},t.prototype.showSearch=function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=Qg(Qg({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[Ug]})},t}(i().Component),Kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Wg=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return Kg(t,e),t.prototype.render=function(){var e,t=this,n=this.props.label||this.props.operationName||(null===(e=this.props.query)||void 0===e?void 0:e.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),r=this.props.favorite?"★":"☆";return i().createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?i().createElement("input",{type:"text",defaultValue:this.props.label,ref:function(e){t.editField=e},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):i().createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),i().createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),i().createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(e){var t=this;e.stopPropagation(),this.setState({editable:!0},(function(){t.editField&&t.editField.focus()}))},t}(i().Component);const Yg=Wg;var Xg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Jg=function(){function e(e,t,n){void 0===n&&(n=null),this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}))},e.prototype.edit=function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1,e),this.save())},e.prototype.delete=function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1),this.save())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]},e.prototype.push=function(e){var t,n=function(){for(var e=[],t=0;tthis.maxSize&&n.shift();for(var r=0;r<5;r++){var i=this.storage.set(this.key,JSON.stringify(((t={})[this.key]=n,t)));if(i&&i.error){if(!i.isQuotaError||!this.maxSize)return;n.shift()}else this.items=n}},e.prototype.save=function(){var e;this.storage.set(this.key,JSON.stringify(((e={})[this.key]=this.items,e)))},e}();const Zg=Jg;var ev=function(){return ev=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},nv=function(){for(var e=[],t=0;t1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0},this.fetchAllQueries=function(){var e=n.history.fetchAll(),t=n.favorite.fetchAll();return e.concat(t)},this.updateHistory=function(e,t,r,i){if(n.shouldSaveQuery(e,t,r,n.history.fetchRecent())){n.history.push({query:e,variables:t,headers:r,operationName:i});var o=n.history.items,a=n.favorite.items;n.queries=o.concat(a)}},this.toggleFavorite=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};n.favorite.contains(s)?a&&(s.favorite=!1,n.favorite.delete(s)):(s.favorite=!0,n.favorite.push(s)),n.queries=nv(n.history.items,n.favorite.items)},this.editLabel=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};a?n.favorite.edit(ev(ev({},s),{favorite:a})):n.history.edit(s),n.queries=nv(n.history.items,n.favorite.items)},this.history=new Zg("queries",this.storage,this.maxHistoryLength),this.favorite=new Zg("favorites",this.storage,null),this.queries=this.fetchAllQueries()};var iv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),ov=function(){return ov=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bv=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ev=function(){for(var e=[],t=0;t=0)continue;l.push(d)}var f=e[p.name.value];if(f){var h=f.typeCondition,m=f.directives,g=f.selectionSet;p={kind:Rm.Kind.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:g}}}if(p.kind===Rm.Kind.INLINE_FRAGMENT&&(!p.directives||0===(null===(o=p.directives)||void 0===o?void 0:o.length))){var v=p.typeCondition?p.typeCondition.name.value:null;if(!v||v===a){s.push.apply(s,Ev(wv(e,p.selectionSet.selections,n)));continue}}s.push(p)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return s}function Tv(e,t){var n,r,i=t?new Rm.TypeInfo(t):null,o=Object.create(null);try{for(var a=yv(e.definitions),s=a.next();!s.done;s=a.next()){var l=s.value;l.kind===Rm.Kind.FRAGMENT_DEFINITION&&(o[l.name.value]=l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var c={SelectionSet:function(e){var t=i?i.getParentType():null,n=e.selections;return n=function(e,t){var n,r,i,o=new Map,a=[];try{for(var s=yv(e),l=s.next();!l.done;l=s.next()){var c=l.value;if("Field"===c.kind){var u=(i=c).alias?i.alias.value:i.name.value,p=o.get(u);if(c.directives&&c.directives.length){var d=vv({},c);a.push(d)}else p&&p.selectionSet&&c.selectionSet?p.selectionSet.selections=Ev(p.selectionSet.selections,c.selectionSet.selections):p||(d=vv({},c),o.set(u,d),a.push(d))}else a.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}(n=wv(o,n,t)),vv(vv({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,Rm.visit)(e,i?(0,Rm.visitWithTypeInfo)(i,c):c)}function Sv(e,t,n){if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Lv=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};if(parseInt(i().version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));var Av=function(e){return JSON.stringify(e,null,2)},Dv=function(e){return e instanceof Rm.GraphQLError?e.toString():e instanceof Error?function(e){return xv(xv({},e),{message:e.message,stack:e.stack})}(e):e},Pv=function(e){function t(n){var r,i,o,a,s,l,c=e.call(this,n)||this;if(c._editorQueryID=0,c.safeSetState=function(e,t){c.componentIsMounted&&c.setState(e,t)},c.handleClickReference=function(e){c.setState({docExplorerOpen:!0},(function(){c.docExplorerComponent&&c.docExplorerComponent.showDocForReference(e)})),c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen))},c.handleRunQuery=function(e){return Cv(c,void 0,void 0,(function(){var n,r,i,o,a,s,l,c,u,p=this;return _v(this,(function(d){switch(d.label){case 0:this._editorQueryID++,n=this._editorQueryID,r=this.autoCompleteLeafs()||this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.shouldPersistHeaders,s=this.state.operationName,e&&e!==s&&(s=e,this.handleEditOperationName(s)),d.label=1;case 1:return d.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:s}),this._storage.set("operationName",s),this._queryHistory?this._queryHistory.onUpdateHistory(r,i,o,s):this._historyStore&&this._historyStore.updateHistory(r,i,o,s),l={data:{}},[4,this._fetchQuery(r,i,o,s,a,(function(e){var r,i;if(n===p._editorQueryID){var o=!!Array.isArray(e)&&e;if(!o&&"string"!=typeof e&&null!==e&&"hasNext"in e&&(o=[e]),o){var a={data:l.data},s=function(){for(var e=[],t=0;t0&&(w=t.formatError(S),E=void 0,T=S)}return c._introspectionQuery=(0,Rm.getIntrospectionQuery)({schemaDescription:null!==(a=n.schemaDescription)&&void 0!==a?a:void 0,inputValueDeprecation:null!==(s=n.inputValueDeprecation)&&void 0!==s?s:void 0}),c._introspectionQueryName=null!==(l=n.introspectionQueryName)&&void 0!==l?l:"IntrospectionQuery",c._introspectionQuerySansSubscriptions=c._introspectionQuery.replace("subscriptionType { name }",""),c.state=xv({schema:E,query:d,variables:h,headers:m,operationName:g,docExplorerOpen:v,schemaErrors:T,response:w,editorFlex:Number(c._storage.get("editorFlex"))||1,secondaryEditorOpen:p,secondaryEditorHeight:Number(c._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==c._storage.get("variableEditorActive")&&!n.headerEditorEnabled||"true"!==c._storage.get("headerEditorActive"),headerEditorActive:"true"===c._storage.get("headerEditorActive"),headerEditorEnabled:y,shouldPersistHeaders:b,historyPaneOpen:"true"===c._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(c._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:u},f),c}return Ov(t,e),t.formatResult=function(e){return JSON.stringify(e,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new sv,void 0!==n.g&&(n.g.g=this)},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.operationName,s=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&this.props.query!==e.query&&(r=e.query),void 0!==e.variables&&this.props.variables!==e.variables&&(i=e.variables),void 0!==e.headers&&this.props.headers!==e.headers&&(o=e.headers),void 0!==e.operationName&&(a=e.operationName),void 0!==e.response&&(s=e.response),r&&n&&(n!==this.state.schema||r!==this.state.query||a!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var l=(0,Rm.validateSchema)(n);l&&l.length>0&&(this.handleSchemaErrors(l),n=void 0)}var c=this._updateQueryFacts(r,a,this.state.operations,n);void 0!==c&&(a=c.operationName,this.setState(c))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this._storage.set("operationName",a),this.setState({schema:n,query:r,variables:i,headers:o,operationName:a,response:s},(function(){void 0===t.state.schema&&(t.docExplorerComponent&&t.docExplorerComponent.reset(),t.fetchSchema())}))},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var e,n=this,r=i().Children.toArray(this.props.children),o=uv(r,(function(e){return zv(e,t.Logo)}))||i().createElement(t.Logo,null),a=uv(r,(function(e){return zv(e,t.Toolbar)}))||i().createElement(t.Toolbar,null,i().createElement(Qm,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),i().createElement(Qm,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),i().createElement(Qm,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),i().createElement(Qm,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),(null===(e=this.props.toolbar)||void 0===e?void 0:e.additionalContent)?this.props.toolbar.additionalContent:null),s=uv(r,(function(e){return zv(e,t.Footer)})),l={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},c={display:"block",width:this.state.docExplorerWidth},u="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},d=this.state.secondaryEditorOpen,f={height:d?this.state.secondaryEditorHeight:void 0};return i().createElement("div",{ref:function(e){n.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&i().createElement("div",{className:"historyPaneWrap",style:p},i().createElement(av,{ref:function(e){n._queryHistory=e},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID},i().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),i().createElement("div",{className:"editorWrap"},i().createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,i().createElement("div",{className:"topBar"},o,i().createElement(Vm,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),a),!this.state.docExplorerOpen&&i().createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),i().createElement("div",{ref:function(e){n.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},i().createElement("div",{className:"queryWrap",style:l},i().createElement(hg,{ref:function(e){n.queryEditorComponent=e},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),i().createElement("section",{className:"variable-editor secondary-editor",style:f,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},i().createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:d?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},i().createElement("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&i().createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),i().createElement(vg,{ref:function(e){n.variableEditorComponent=e},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&i().createElement(Eg,{ref:function(e){n.headerEditorComponent=e},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),i().createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&i().createElement("div",{className:"spinner-container"},i().createElement("div",{className:"spinner"})),i().createElement(Tg,{registerRef:function(e){n.resultViewerElement=e},ref:function(e){n.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:zm}),s))),this.state.docExplorerOpen&&i().createElement("div",{className:u,style:c},i().createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),i().createElement(Hg,{ref:function(e){n.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},i().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"✕"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},t.prototype.autoCompleteLeafs=function(){var e=pv(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r&&r.operation((function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n||"");var o=0,a=t.map((function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return a.forEach((function(e){return e.clear()}))}),7e3);var s=i;t.forEach((function(e){var t=e.index,n=e.string;t2?r.headers=JSON.parse(this.state.headers):this.props.headers&&(r.headers=JSON.parse(this.props.headers));var i=qv(n({query:this._introspectionQuery,operationName:this._introspectionQueryName},r));$v(i)?i.then((function(t){if("string"!=typeof t&&"data"in t)return t;var o=qv(n({query:e._introspectionQuerySansSubscriptions,operationName:e._introspectionQueryName},r));if(!$v(i))throw new Error("Fetcher did not return a Promise for introspection.");return o})).then((function(n){var r,i;if(void 0===e.state.schema)if(n&&n.data&&"__schema"in(null==n?void 0:n.data)){var o=(0,Rm.buildClientSchema)(n.data);if(!e.props.dangerouslyAssumeSchemaIsValid){var a=(0,Rm.validateSchema)(o);a&&a.length>0&&(o=void 0,e.handleSchemaErrors(a))}if(o){var s=(0,Fm.getOperationFacts)(o,e.state.query);e.safeSetState(xv(xv({schema:o},s),{schemaErrors:void 0})),null===(i=(r=e.props).onSchemaChange)||void 0===i||i.call(r,o)}}else{var l="string"==typeof n?n:t.formatResult(n);e.handleSchemaErrors([l])}})).catch((function(t){e.handleSchemaErrors([t])})):this.setState({response:"Fetcher did not return a Promise for introspection."})},t.prototype.handleSchemaErrors=function(e){this.safeSetState({response:e?t.formatError(e):void 0,schema:void 0,schemaErrors:e})},t.prototype._fetchQuery=function(e,n,r,i,o,a){return Cv(this,void 0,void 0,(function(){var s,l,c,u,p,d,f=this;return _v(this,(function(h){s=this.props.fetcher,l=null,c=null;try{l=n&&""!==n.trim()?JSON.parse(n):null}catch(e){throw new Error("Variables are invalid JSON: "+e.message+".")}if("object"!=typeof l)throw new Error("Variables are not a JSON object.");try{c=r&&""!==r.trim()?JSON.parse(r):null}catch(e){throw new Error("Headers are invalid JSON: "+e.message+".")}if("object"!=typeof c)throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(u=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach((function(e){u.set(e.name.value,e)})):(0,Rm.visit)((0,Rm.parse)(this.props.externalFragments,{}),{FragmentDefinition:function(e){u.set(e.name.value,e)}}),(p=(0,Fm.getFragmentDependenciesForAST)(this.state.documentAST,u)).length>0&&(e+="\n"+p.map((function(e){return(0,Rm.print)(e)})).join("\n"))),d=s({query:e,variables:l,operationName:i},{headers:c,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(d).then((function(e){return Vv(e)?e.subscribe({next:a,error:function(e){f.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0,subscription:null})},complete:function(){f.safeSetState({isWaitingForResponse:!1,subscription:null})}}):Bv(e)?(Cv(f,void 0,void 0,(function(){var n,r,i,o,s,l,c;return _v(this,(function(u){switch(u.label){case 0:u.trys.push([0,13,,14]),u.label=1;case 1:u.trys.push([1,6,7,12]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof Lv?Lv(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}(e),u.label=2;case 2:return[4,n.next()];case 3:if((r=u.sent()).done)return[3,5];i=r.value,a(i),u.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o=u.sent(),l={error:o},[3,12];case 7:return u.trys.push([7,,10,11]),r&&!r.done&&(c=n.return)?[4,c.call(n)]:[3,9];case 8:u.sent(),u.label=9;case 9:return[3,11];case 10:if(l)throw l.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return s=u.sent(),this.safeSetState({isWaitingForResponse:!1,response:s?t.formatError(s):void 0,subscription:null}),[3,14];case 14:return[2]}}))})),{unsubscribe:function(){var t,n;return null===(n=(t=e[Symbol.asyncIterator]()).return)||void 0===n?void 0:n.call(t)}}):(a(e),null)})).catch((function(e){return f.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0}),null}))]}))}))},t.prototype._runQueryAtCursor=function(){if(this.state.subscription)this.handleStopQuery();else{var e,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n&&n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}},t.prototype._didClickDragBar=function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=this.resultViewerElement;t;){if(t===n)return!0;t=t.parentNode}return!1},t.formatError=function(e){return Array.isArray(e)?Av({errors:e.map((function(e){return Dv(e)}))}):Av({errors:Dv(e)})},t.Logo=Rv,t.Toolbar=Mv,t.Footer=jv,t.QueryEditor=hg,t.VariableEditor=vg,t.HeaderEditor=Eg,t.ResultViewer=Tg,t.Button=Qm,t.ToolbarButton=Qm,t.Group=Um,t.Menu=Km,t.MenuItem=Wm,t}(i().Component);function Rv(e){return i().createElement("div",{className:"title"},e.children||i().createElement("span",null,"Graph",i().createElement("em",null,"i"),"QL"))}function Mv(e){return i().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function jv(e){return i().createElement("div",{className:"footer"},e.children)}Rv.displayName="GraphiQLLogo",Mv.displayName="GraphiQLToolbar",jv.displayName="GraphiQLFooter";var Fv='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function $v(e){return"object"==typeof e&&"function"==typeof e.then}function Vv(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function Bv(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function qv(e){return Promise.resolve(e).then((function(e){return Bv(e)?(n=e,new Promise((function(e,t){var r,i=null===(r=("return"in n?n:n[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(n);("next"in n?n:n[Symbol.asyncIterator]()).next.bind(n)().then((function(t){e(t.value),null==i||i()})).catch((function(e){t(e)}))}))):Vv(e)?(t=e,new Promise((function(e,n){var r=t.subscribe({next:function(t){e(t),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})}))):e;var t,n}))}function zv(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}var Gv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Qv=function(){return Qv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},gr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Wv,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Yv,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Jv=pi("Spin",(e=>{const t=oi(e,{spinDotDefault:e.colorTextDescription});return[Xv(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));let Zv=null;const ey=e=>{const{prefixCls:t,spinning:n=!0,delay:i=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:p,fullscreen:d=!1}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);in&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,i)));r.useEffect((()=>{if(n){const e=function(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,l=void 0!==s&&s,c=i.debounceMode,u=void 0===c?void 0:c,p=!1,d=0;function f(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;oe?l?(d=Date.now(),a||(r=setTimeout(u?m:h,e))):h():!0!==a&&(r=setTimeout(u?m:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),p=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}(i,(()=>{w(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}w(!1)}),[i,n]);const T=r.useMemo((()=>void 0!==p&&!d),[p,d]),{direction:S,spin:k}=r.useContext(We),O=g()(m,null==k?void 0:k.className,{[`${m}-sm`]:"small"===s,[`${m}-lg`]:"large"===s,[`${m}-spinning`]:E,[`${m}-show-text`]:!!l,[`${m}-fullscreen`]:d,[`${m}-fullscreen-show`]:d&&E,[`${m}-rtl`]:"rtl"===S},o,a,y,b),x=g()(`${m}-container`,{[`${m}-blur`]:E}),C=Ke(f,["indicator"]),_=Object.assign(Object.assign({},null==k?void 0:k.style),u),N=r.createElement("div",Object.assign({},C,{style:_,className:O,"aria-live":"polite","aria-busy":E}),function(e,t){const{indicator:n}=t,i=`${e}-dot`;return null===n?null:r.isValidElement(n)?Vl(n,{className:g()(n.props.className,i)}):r.isValidElement(Zv)?Vl(Zv,{className:g()(Zv.props.className,i)}):r.createElement("span",{className:g()(i,`${e}-dot-spin`)},r.createElement("i",{className:`${e}-dot-item`,key:1}),r.createElement("i",{className:`${e}-dot-item`,key:2}),r.createElement("i",{className:`${e}-dot-item`,key:3}),r.createElement("i",{className:`${e}-dot-item`,key:4}))}(m,e),l&&(T||d)?r.createElement("div",{className:`${m}-text`},l):null);return v(T?r.createElement("div",Object.assign({},C,{className:g()(`${m}-nested-loading`,c,y,b)}),E&&r.createElement("div",{key:"loading"},N),r.createElement("div",{className:x,key:"container"},p)):N)};ey.setDefaultIndicator=e=>{Zv=e};const ty=ey;var ny=n(2992),ry=n.n(ny);const{parse:iy}=window.wpGraphiQL.GraphQL;var oy=n(3574);const{hooks:ay,useAppContext:sy}=window.wpGraphiQL,ly=(0,o.createContext)(),cy=()=>(0,o.useContext)(ly),uy=({children:e})=>{var t;const{queryParams:n,setQueryParams:i}=sy(),a=null!==(t=window&&window?.localStorage?.getItem("graphiql:variables"))&&void 0!==t?t:null,[s,l]=(0,o.useState)((()=>{var e;let t="",r=null!==(e=n.query)&&void 0!==e?e:null;r&&(t=ry().decompressFromEncodedURIComponent(r),null===t&&(t=r));try{t=(0,oy.print)((0,oy.parse)(t))}catch(e){var i;t=null!==(i=window?.localStorage?.getItem("graphiql:query"))&&void 0!==i?i:null}return t})()),[c,u]=(0,o.useState)(a),[p,d]=(0,o.useState)((()=>{var e;const t=null!==(e=wpGraphiQLSettings?.externalFragments)&&void 0!==e?e:null;if(!t)return[];const n=[];return t.map((e=>{let t,r;try{var i;t=iy(e),r=null!==(i=t?.definitions[0])&&void 0!==i?i:null}catch(e){}r&&n.push(r)})),n})()),f=ay.applyFilters("graphiql_context_default_value",{query:s,setQuery:async e=>{const t=s;ay.doAction("graphiql_update_query",{currentQuery:t,newQuery:e});let r,o,a=!1;if(null!==e&&e===s)return;if(null===e||""===e)a=!0;else{o=ry().decompressFromEncodedURIComponent(e),r=null===o?ry().compressToEncodedURIComponent(e):e;try{(0,oy.parse)(e),a=!0}catch(t){return void console.warn({error:{e:t,newQuery:e}})}}if(!a)return;window&&window.localStorage&&""!==e&&null!==e&&window?.localStorage.setItem("graphiql:query",e);const c={...n,query:r};JSON.stringify(c!==JSON.stringify(n))&&i(c),t!==e&&await l(e)},variables:c,setVariables:e=>{window&&window.localStorage&&window.localStorage.setItem("graphiql:variables",e),u(e)},externalFragments:p,setExternalFragments:d});return(0,r.createElement)(ly.Provider,{value:f},e)},{hooks:py}=wpGraphiQL,dy=e=>{const{graphiql:t}=e;const n=cy(),i={...e,GraphiQL:Pv,graphiqlContext:n},o=py.applyFilters("graphiql_toolbar_buttons",[{label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)",onClick:e=>{e().handlePrettifyQuery()}},{label:"History",title:"Show History",onClick:e=>{e().handleToggleHistory()}}],i),a=py.applyFilters("graphiql_toolbar_before_buttons",[],i),s=py.applyFilters("graphiql_toolbar_after_buttons",[],i);return(0,r.createElement)("div",{"data-testid":"graphiql-toolbar",style:{display:"flex"}},a.length>0?a:null,o&&o.length&&o.map(((e,n)=>{const{label:i,title:o,onClick:a}=e;return(0,r.createElement)(Pv.Button,{"data-testid":i,key:n,onClick:()=>{a(t)},label:i,title:o})})),s.length>0?s:null)},{hooks:fy,useAppContext:hy,GraphQL:my}=wpGraphiQL,{parse:gy,specifiedRules:vy}=my,yy=Ip.div` +`,Vg=()=>(0,r.createElement)(qg,null,(0,r.createElement)("h2",null,"Help"),(0,r.createElement)("p",null,"On this page you will find resources to help you understand WPGraphQL, how to use GraphQL with WordPress, how to customize it and make it work for you, and how to get plugged into the community."),(0,r.createElement)(uf,null),(0,r.createElement)("h3",null,"Documentation"),(0,r.createElement)("p",null,"Below are helpful links to the official WPGraphQL documentation."),(0,r.createElement)(bf,{gutter:[16,16]},(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Getting Started",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/introduction/",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Get Started with WPGraphQL"))]},(0,r.createElement)("p",null,"In the Getting Started are resources to learn about GraphQL, WordPress, how they work together, and more."))),(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Beginner Guides",actions:[(0,r.createElement)("a",{target:"_blank",href:"https://www.wpgraphql.com/docs/intro-to-graphql/"},(0,r.createElement)(Mg,{type:"primary"},"Beginner Guides"))]},(0,r.createElement)("p",null,"The Beginner guides go over specific topics such as GraphQL, WordPress, tools and techniques to interact with GraphQL APIs and more."))),(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Using WPGraphQL",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/posts-and-pages/",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Using WPGraphQL"))]},(0,r.createElement)("p",null,"This section covers how WPGraphQL exposes WordPress data to the Graph, and shows how you can interact with this data using GraphQL."))),(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Advanced Concepts",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/wpgraphql-concepts/",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Advanced Concepts"))]},(0,r.createElement)("p",null,'Learn about concepts such as "connections", "edges", "nodes", "what is an application data graph?" and more'," ")))),(0,r.createElement)(uf,null),(0,r.createElement)("h3",null,"Developer Reference"),(0,r.createElement)("p",null,"Below are helpful links to the WPGraphQL developer reference. These links will be most helpful to developers looking to customize WPGraphQL"," "),(0,r.createElement)(bf,{gutter:[16,16]},(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Recipes",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/recipes",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Recipes"))]},(0,r.createElement)("p",null,"Here you will find snippets of code you can use to customize WPGraphQL. Most snippets are PHP and intended to be included in your theme or plugin."))),(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Actions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/actions",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Actions"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "actions" that are used in the WPGraphQL codebase. Actions can be used to customize behaviors.'))),(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Filters",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/filters",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Filters"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "filters" that are used in the WPGraphQL codebase. Filters are used to customize the Schema and more.'))),(0,r.createElement)(kf,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(dm,{style:{height:"100%"},title:"Functions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/functions",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Functions"))]},(0,r.createElement)("p",null,'Here you will find functions that can be used to customize the WPGraphQL Schema. Learn how to register GraphQL "fields", "types", and more.')))),(0,r.createElement)(uf,null),(0,r.createElement)("h3",null,"Community"),(0,r.createElement)(bf,{gutter:[16,16]},(0,r.createElement)(kf,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(dm,{style:{height:"100%"},title:"Blog",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Blog",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Read the Blog"))]},(0,r.createElement)("p",null,"Keep up to date with the latest news and updates from the WPGraphQL team."))),(0,r.createElement)(kf,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(dm,{style:{height:"100%"},title:"Extensions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Extensions",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"View Extensions"))]},(0,r.createElement)("p",null,"Browse the list of extensions that are available to extend WPGraphQL to work with other popular WordPress plugins."))),(0,r.createElement)(kf,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(dm,{style:{height:"100%"},title:"Join us in Discord",actions:[(0,r.createElement)("a",{href:"https://discord.gg/AGVBqqyaUY",target:"_blank"},(0,r.createElement)(Mg,{type:"primary"},"Join us in Discord"))]},(0,r.createElement)("p",null,"Join the WPGraphQL Community in Discord where you can ask questions, show off projects and help other WPGraphQL users. Join us today!")))));var zg=function(){return zg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Ev(){var e=(0,vv.f)({nonNull:!0}),t=e.queryEditor,n=e.setOperationName,o=(0,vv.s)({nonNull:!0}),a=o.isFetching,s=o.operationName,c=o.run,l=o.stop,u=bv((0,r.useState)(!1),2),d=u[0],p=u[1],f=bv((0,r.useState)(null),2),h=f[0],m=f[1],g=(null==t?void 0:t.operations)||[],v=g.length>1&&"string"!=typeof s;return i().createElement("div",{className:"execute-button-wrap"},i().createElement("button",{type:"button",className:"execute-button",onMouseDown:a||!v||d?void 0:function(e){var t=!0,n=e.currentTarget;m(null),p(!0);var r=function(e){var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||p(!1))};document.addEventListener("mouseup",r)},onClick:a||!v?function(){a?l():c()}:void 0,title:"Execute Query (Ctrl-Enter)"},i().createElement("svg",{width:"34",height:"34"},a?i().createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):i().createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),v&&d?i().createElement("ul",{className:"execute-options"},g.map((function(e,r){var o=e.name?e.name.value:"");return i().createElement("li",{key:"".concat(o,"-").concat(r),className:e===h?"selected":void 0,onMouseOver:function(){return m(e)},onMouseOut:function(){return m(null)},onMouseUp:function(){var r;p(!1);var i=null===(r=e.name)||void 0===r?void 0:r.value;t&&i&&i!==t.operationName&&n(i),c()}},o)}))):null)}var _v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),wv=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){if(e instanceof Error)return void n.setState({error:e});throw e}},n.state={error:null},n}return _v(t,e),t.prototype.render=function(){var e=this.state.error;return i().createElement("button",{type:"button",className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(i().Component);function kv(e){var t=e.children;return i().createElement("div",{className:"toolbar-button-group"},t)}var Tv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),Sv=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){xv(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return Tv(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return i().createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:xv,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,i().createElement("svg",{width:"14",height:"8"},i().createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i().createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(i().Component),Ov=function(e){var t=e.onSelect,n=e.title,r=e.label;return i().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:xv,onMouseUp:t,title:n},r)};function xv(e){e.preventDefault()}function Cv(e){var t=(0,vv.k)(e);return i().createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:t})}function Nv(e){var t=e.active,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(i().useState(!1),2),s=a[0],c=a[1],l=o[o.length-1].def;if(!l||(0,yv.isType)(l))return null;if(l&&"args"in l&&l.args.length>0){t=i().createElement("div",{id:"doc-args",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"arguments"),l.args.filter((function(e){return!e.deprecationReason})).map((function(e){return i().createElement("div",{key:e.name,className:"doc-category-item"},i().createElement("div",null,i().createElement(Pv,{arg:e})),i().createElement(Fv,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(Fv,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})));var u=l.args.filter((function(e){return Boolean(e.deprecationReason)}));u.length>0&&(n=i().createElement("div",{id:"doc-deprecated-args",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated arguments"),s?u.map((function(e,t){return i().createElement("div",{key:t},i().createElement("div",null,i().createElement(Pv,{arg:e})),i().createElement(Fv,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(Fv,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})):i().createElement("button",{type:"button",className:"show-btn",onClick:function(){return c(!s)}},"Show deprecated arguments...")))}return(null===(e=null==l?void 0:l.astNode)||void 0===e?void 0:e.directives)&&l.astNode.directives.length>0&&(r=i().createElement("div",{id:"doc-directives",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"directives"),l.astNode.directives.map((function(e){return i().createElement("div",{key:e.name.value,className:"doc-category-item"},i().createElement("div",null,i().createElement(jv,{directive:e})))})))),i().createElement("div",null,i().createElement(Fv,{className:"doc-type-description",markdown:l.description||"No Description"}),l&&"deprecationReason"in l&&i().createElement(Fv,{className:"doc-deprecation",markdown:l.deprecationReason}),i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"type"),i().createElement(Dv,{type:l.type})),t,r,n)}function qv(){var e,t,n=(0,vv.D)({nonNull:!0}).schema;if(!n)return null;var r=n.getQueryType(),o=null===(e=n.getMutationType)||void 0===e?void 0:e.call(n),a=null===(t=n.getSubscriptionType)||void 0===t?void 0:t.call(n);return i().createElement("div",null,i().createElement(Fv,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"root types"),r?i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"query"),": ",i().createElement(Dv,{type:r})):null,o&&i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"mutation"),": ",i().createElement(Dv,{type:o})),a&&i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"subscription"),": ",i().createElement(Dv,{type:a}))))}var Vv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}();const zv=function(e){function t(t){var n,r,i=e.call(this,t)||this;return i.handleChange=function(e){var t=e.currentTarget.value;i.setState({value:t}),i.debouncedOnSearch(t)},i.handleClear=function(){i.setState({value:""}),i.props.onSearch("")},i.state={value:t.value||""},i.debouncedOnSearch=(n=i.props.onSearch,function(){for(var e=this,t=[],i=0;i=100)return"break";var t=d[e];if(s!==t&&Qv(e,a)&&l.push(i().createElement("div",{className:"doc-category-item",key:e},i().createElement(Dv,{type:t}))),t&&"getFields"in t){var n=t.getFields();Object.keys(n).forEach((function(r){var o,l=n[r];if(!Qv(r,a)){if(!("args"in l)||!l.args.length)return;if(0===(o=l.args.filter((function(e){return Qv(e.name,a)}))).length)return}var d=i().createElement("div",{className:"doc-category-item",key:e+"."+r},s!==t&&[i().createElement(Dv,{key:"type",type:t}),"."],i().createElement(Bv,{field:l}),o&&["(",i().createElement("span",{key:"args"},o.map((function(e){return i().createElement(Pv,{key:e.name,arg:e,showDefaultValue:!1})}))),")"]);s===t?c.push(d):u.push(d)}))}};try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(p),m=h.next();!m.done&&"break"!==f(m.value);m=h.next());}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return c.length+l.length+u.length===0?i().createElement("span",{className:"doc-alert-text"},"No results found."):s&&l.length+u.length>0?i().createElement("div",null,c,i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"other results"),l,u)):i().createElement("div",{className:"doc-search-items"},c,l,u)}function Qv(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}function Uv(){var e=(0,vv.D)({nonNull:!0}).schema,t=(0,vv.x)({nonNull:!0}).explorerNavStack,n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(!1),2),o=n[0],a=n[1],s=t[t.length-1].def;if(!e||!(0,yv.isNamedType)(s))return null;var c,l,u,d,p,f=null,h=[];if((0,yv.isUnionType)(s)?(f="possible types",h=e.getPossibleTypes(s)):(0,yv.isInterfaceType)(s)?(f="implementations",h=e.getPossibleTypes(s)):(0,yv.isObjectType)(s)&&(f="implements",h=s.getInterfaces()),h&&h.length>0&&(c=i().createElement("div",{id:"doc-types",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},f),h.map((function(e){return i().createElement("div",{key:e.name,className:"doc-category-item"},i().createElement(Dv,{type:e}))})))),s&&"getFields"in s){var m=s.getFields(),g=Object.keys(m).map((function(e){return m[e]}));l=i().createElement("div",{id:"doc-fields",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"fields"),g.filter((function(e){return!e.deprecationReason})).map((function(e){return i().createElement(Hv,{key:e.name,type:s,field:e})})));var v=g.filter((function(e){return Boolean(e.deprecationReason)}));v.length>0&&(u=i().createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated fields"),o?v.map((function(e){return i().createElement(Hv,{key:e.name,type:s,field:e})})):i().createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated fields...")))}if((0,yv.isEnumType)(s)){var y=s.getValues();d=i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"values"),y.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return i().createElement(Kv,{key:e.name,value:e})})));var b=y.filter((function(e){return Boolean(e.deprecationReason)}));b.length>0&&(p=i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated values"),o?b.map((function(e){return i().createElement(Kv,{key:e.name,value:e})})):i().createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated values...")))}return i().createElement("div",null,i().createElement(Fv,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),(0,yv.isObjectType)(s)&&c,l,u,d,p,!(0,yv.isObjectType)(s)&&c)}function Hv(e){var t=e.field;return i().createElement("div",{className:"doc-category-item"},i().createElement(Bv,{field:t}),"args"in t&&t.args&&t.args.length>0&&["(",i().createElement("span",{key:"args"},t.args.filter((function(e){return!e.deprecationReason})).map((function(e){return i().createElement(Pv,{key:e.name,arg:e})}))),")"],": ",i().createElement(Dv,{type:t.type}),i().createElement(Lv,{field:t}),t.description&&i().createElement(Fv,{className:"field-short-description",markdown:t.description}),"deprecationReason"in t&&t.deprecationReason&&i().createElement(Fv,{className:"doc-deprecation",markdown:t.deprecationReason}))}function Kv(e){var t=e.value;return i().createElement("div",{className:"doc-category-item"},i().createElement("div",{className:"enum-value"},t.name),i().createElement(Fv,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i().createElement(Fv,{className:"doc-deprecation",markdown:t.deprecationReason}))}function Wv(e){var t=(0,vv.D)({nonNull:!0}),n=t.fetchError,r=t.isFetching,o=t.schema,a=t.validationErrors,s=(0,vv.x)({nonNull:!0}),c=s.explorerNavStack,l=s.hide,u=s.pop,d=s.showSearch,p=c[c.length-1],f=void 0===e.schema?o:e.schema,h=null;n?h=i().createElement("div",{className:"error-container"},"Error fetching schema"):a.length>0?h=i().createElement("div",{className:"error-container"},"Schema is invalid: ",a[0].message):r?h=i().createElement("div",{className:"spinner-container"},i().createElement("div",{className:"spinner"})):f?p.search?h=i().createElement(Gv,null):1===c.length?h=i().createElement(qv,null):(0,yv.isType)(p.def)?h=i().createElement(Uv,null):p.def&&(h=i().createElement(Mv,null)):h=i().createElement("div",{className:"error-container"},"No Schema Available");var m,g=1===c.length||(0,yv.isType)(p.def)&&"getFields"in p.def;return c.length>1&&(m=c[c.length-2].name),i().createElement("section",{className:"doc-explorer",key:p.name,"aria-label":"Documentation Explorer"},i().createElement("div",{className:"doc-explorer-title-bar"},m&&i().createElement("button",{type:"button",className:"doc-explorer-back",onClick:u,"aria-label":"Go back to ".concat(m)},m),i().createElement("div",{className:"doc-explorer-title"},p.title||p.name),i().createElement("div",{className:"doc-explorer-rhs"},i().createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var t;l(),null===(t=e.onClose)||void 0===t||t.call(e)},"aria-label":"Close Documentation Explorer"},"✕"))),i().createElement("div",{className:"doc-explorer-contents"},g&&i().createElement(zv,{value:p.search,placeholder:"Search ".concat(p.name,"..."),onSearch:d}),h))}var Xv=function(){return Xv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(!1),2),u=l[0],d=l[1];(0,r.useEffect)((function(){u&&c.current&&c.current.focus()}),[u]);var p=e.item.label||e.item.operationName||(null===(t=e.item.query)||void 0===t?void 0:t.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),f=e.item.favorite?"★":"☆";return i().createElement("li",{className:u?"editable":void 0},u?i().createElement("input",{type:"text",defaultValue:e.item.label,ref:c,onBlur:function(t){t.stopPropagation(),d(!1),o(Xv(Xv({},e.item),{label:t.target.value}))},onKeyDown:function(t){13===t.keyCode&&(t.stopPropagation(),d(!1),o(Xv(Xv({},e.item),{label:t.currentTarget.value})))},placeholder:"Type a label"}):i().createElement("button",{type:"button",className:"history-label",onClick:function(){s(e.item)}},p),i().createElement("button",{type:"button",onClick:function(e){e.stopPropagation(),d(!0)},"aria-label":"Edit label"},"✎"),i().createElement("button",{type:"button",onClick:function(t){t.stopPropagation(),a(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite"},f))}function Zv(e,t){for(var n=0;nty(e)))}):ey({errors:[ty(e)]})}(e)},t.Logo=hy,t.Toolbar=my,t.Footer=gy,t.QueryEditor=Cv,t.VariableEditor=Nv,t.HeaderEditor=Av,t.ResultViewer=Iv,t.Button=wv,t.ToolbarButton=wv,t.Group=kv,t.Menu=Sv,t.MenuItem=Ov,t}(i().Component),dy=(0,r.forwardRef)((function(e,t){var n=e.dangerouslyAssumeSchemaIsValid,r=e.docExplorerOpen,o=e.externalFragments,a=e.fetcher,s=e.headers,c=e.inputValueDeprecation,l=e.introspectionQueryName,u=e.maxHistoryLength,d=e.onEditOperationName,p=e.onSchemaChange,f=e.onToggleHistory,h=e.onToggleDocs,m=e.operationName,g=e.query,v=e.response,y=e.storage,b=e.schema,E=e.schemaDescription,_=e.shouldPersistHeaders,w=e.validationRules,k=e.variables,T=ly(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if("function"!=typeof a)throw new TypeError("GraphiQL requires a fetcher function.");return i().createElement(vv.G,{storage:y},i().createElement(vv.y,{maxHistoryLength:u,onToggle:f},i().createElement(vv.a,{defaultQuery:T.defaultQuery,externalFragments:o,headers:s,onEditOperationName:d,onTabChange:"object"==typeof T.tabs?T.tabs.onTabChange:void 0,query:g,response:v,shouldPersistHeaders:_,validationRules:w,variables:k},i().createElement(vv.B,{dangerouslyAssumeSchemaIsValid:n,fetcher:a,inputValueDeprecation:c,introspectionQueryName:l,onSchemaChange:p,schema:b,schemaDescription:E},i().createElement(vv.r,{fetcher:a,operationName:m},i().createElement(vv.w,{isVisible:r,onToggleVisibility:h},i().createElement(py,cy({},T,{ref:t}))))))))})),py=(0,r.forwardRef)((function(e,t){var n=e.getDefaultFieldNames,r=ly(e,["getDefaultFieldNames"]),o=(0,vv.f)({nonNull:!0}),a=(0,vv.s)({nonNull:!0}),s=(0,vv.x)(),c=(0,vv.z)(),l=(0,vv.D)({nonNull:!0}),u=(0,vv.J)(),d=(0,vv.u)({getDefaultFieldNames:n}),p=(0,vv.e)({onCopyQuery:r.onCopyQuery}),f=(0,vv.h)(),h=(0,vv.j)(),m=(0,vv.K)({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:(null==s?void 0:s.isVisible)?void 0:"second",onHiddenElementChange:function(e){"second"===e?null==s||s.hide():null==s||s.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),g=(0,vv.K)({direction:"horizontal",storageKey:"editorFlex"}),v=(0,vv.K)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:void 0!==r.defaultVariableEditorOpen?r.defaultVariableEditorOpen?void 0:"second":void 0!==r.defaultSecondaryEditorOpen?r.defaultSecondaryEditorOpen?void 0:"second":o.initialVariables||o.initialHeaders?void 0:"second",sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return i().createElement(fy,cy({},r,{editorContext:o,executionContext:a,explorerContext:s,historyContext:c,schemaContext:l,storageContext:u,autoCompleteLeafs:d,copy:p,merge:f,prettify:h,docResize:m,editorResize:g,secondaryEditorResize:v,ref:t}))})),fy=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeSecondaryEditor:"variable"},n}return sy(t,e),t.prototype.render=function(){var e,t,n,r,o=this,a=i().Children.toArray(this.props.children),s=Zv(a,(function(e){return vy(e,uy.Logo)}))||i().createElement(uy.Logo,null),c=Zv(a,(function(e){return vy(e,uy.Toolbar)}))||i().createElement(uy.Toolbar,null,i().createElement(wv,{onClick:function(){o.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),i().createElement(wv,{onClick:function(){o.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),i().createElement(wv,{onClick:function(){o.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),i().createElement(wv,{onClick:function(){var e;return null===(e=o.props.historyContext)||void 0===e?void 0:e.toggle()},title:(null===(e=this.props.historyContext)||void 0===e?void 0:e.isVisible)?"Hide History":"Show History",label:"History"}),i().createElement(wv,{onClick:function(){return o.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),(null===(t=this.props.toolbar)||void 0===t?void 0:t.additionalContent)?this.props.toolbar.additionalContent:null),l=Zv(a,(function(e){return vy(e,uy.Footer)})),u=null===(n=this.props.headerEditorEnabled)||void 0===n||n;return i().createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},i().createElement("div",{ref:this.props.docResize.firstRef},(null===(r=this.props.historyContext)||void 0===r?void 0:r.isVisible)&&i().createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},i().createElement(Yv,null)),i().createElement("div",{className:"editorWrap"},i().createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,i().createElement("div",{className:"topBar"},s,i().createElement(Ev,null),c),this.props.explorerContext&&!this.props.explorerContext.isVisible&&i().createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var e;null===(e=o.props.explorerContext)||void 0===e||e.show(),o.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?i().createElement(ay,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map((function(e,t){return i().createElement(iy,{key:e.id,isActive:t===o.props.editorContext.activeTabIndex,title:e.title,isCloseable:o.props.editorContext.tabs.length>1,onSelect:function(){o.props.executionContext.stop(),o.props.editorContext.changeTab(t)},onClose:function(){o.props.editorContext.activeTabIndex===t&&o.props.executionContext.stop(),o.props.editorContext.closeTab(t)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(t)}})})),i().createElement(oy,{onClick:function(){o.props.editorContext.addTab()}})):null,i().createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},i().createElement("div",{ref:this.props.editorResize.firstRef},i().createElement("div",{className:"queryWrap"},i().createElement("div",{ref:this.props.secondaryEditorResize.firstRef},i().createElement(Cv,{editorTheme:this.props.editorTheme,onClickReference:function(){"second"===o.props.docResize.hiddenElement&&o.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),i().createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},i().createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},i().createElement("div",{className:"variable-editor-title-text".concat("variable"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"variable"},(function(){var e;null===(e=o.props.editorContext.variableEditor)||void 0===e||e.refresh()}))}},"Query Variables"),u&&i().createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat("header"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"header"},(function(){var e;null===(e=o.props.editorContext.headerEditor)||void 0===e||e.refresh()}))}},"Request Headers"))),i().createElement("div",{ref:this.props.secondaryEditorResize.secondRef},i().createElement("section",{className:"variable-editor secondary-editor","aria-label":"variable"===this.state.activeSecondaryEditor?"Query Variables":"Request Headers"},i().createElement(Nv,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:"variable"===this.state.activeSecondaryEditor,keyMap:this.props.keyMap}),u&&i().createElement(Av,{active:"header"===this.state.activeSecondaryEditor,editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),i().createElement("div",{ref:this.props.editorResize.dragBarRef},i().createElement("div",{className:"editor-drag-bar"})),i().createElement("div",{ref:this.props.editorResize.secondRef},i().createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&i().createElement("div",{className:"spinner-container"},i().createElement("div",{className:"spinner"})),i().createElement(Iv,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),l))))),i().createElement("div",{ref:this.props.docResize.dragBarRef},i().createElement("div",{className:"docExplorerResizer"})),i().createElement("div",{ref:this.props.docResize.secondRef},i().createElement("div",{className:"docExplorerWrap"},i().createElement(Wv,{onClose:function(){return o.props.docResize.setHiddenElement("second")}}))))},t.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},t.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},t.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},t.prototype.refresh=function(){var e,t,n,r;null===(e=this.props.editorContext.queryEditor)||void 0===e||e.refresh(),null===(t=this.props.editorContext.variableEditor)||void 0===t||t.refresh(),null===(n=this.props.editorContext.headerEditor)||void 0===n||n.refresh(),null===(r=this.props.editorContext.responseEditor)||void 0===r||r.refresh()},t.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},t}(i().Component);function hy(e){return i().createElement("div",{className:"title"},e.children||i().createElement("span",null,"Graph",i().createElement("em",null,"i"),"QL"))}function my(e){return i().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function gy(e){return i().createElement("div",{className:"footer"},e.children)}function vy(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}hy.displayName="GraphiQLLogo",my.displayName="GraphiQLToolbar",gy.displayName="GraphiQLFooter";var yy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),by=function(){return by=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{dotClassName:t,style:n,hasCircleCls:i}=e;return r.createElement("circle",{className:y()(`${t}-circle`,{[`${t}-circle-bg`]:i}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},Sy=e=>{let{percent:t,prefixCls:n}=e;const i=`${n}-dot`,o=`${i}-holder`,a=`${o}-hidden`,[s,c]=r.useState(!1);Gt((()=>{0!==t&&c(!0)}),[0!==t]);const l=Math.max(Math.min(t,100),0);if(!s)return null;const u={strokeDashoffset:""+ky/4,strokeDasharray:`${ky*l/100} ${ky*(100-l)/100}`};return r.createElement("span",{className:y()(o,`${i}-progress`,l<=0&&a)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},r.createElement(Ty,{dotClassName:i,hasCircleCls:!0}),r.createElement(Ty,{dotClassName:i,style:u})))};function Oy(e){const{prefixCls:t,percent:n=0}=e,i=`${t}-dot`,o=`${i}-holder`,a=`${o}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:y()(o,n>0&&a)},r.createElement("span",{className:y()(i,`${t}-dot-spin`)},[1,2,3,4].map((e=>r.createElement("i",{className:`${t}-dot-item`,key:e}))))),r.createElement(Sy,{prefixCls:t,percent:n}))}function xy(e){const{prefixCls:t,indicator:n,percent:i}=e,o=`${t}-dot`;return n&&r.isValidElement(n)?Zc(n,{className:y()(n.props.className,o),percent:i}):r.createElement(Oy,{prefixCls:t,percent:i})}const Cy=new er("antSpinMove",{to:{opacity:1}}),Ny=new er("antRotate",{to:{transform:"rotate(405deg)"}}),Ay=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Gr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Cy,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Ny,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Iy=gi("Spin",(e=>{const t=Rr(e,{spinDotDefault:e.colorTextDescription});return[Ay(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),Dy=[[30,.05],[70,.03],[96,.01]];let Ly;const Py=e=>{var t;const{prefixCls:n,spinning:i=!0,delay:o=0,className:a,rootClassName:s,size:c="default",tip:l,wrapperClassName:u,style:d,children:p,fullscreen:f=!1,indicator:h,percent:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ii&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(i,o))),x=function(e,t){const[n,i]=r.useState(0),o=r.useRef(null),a="auto"===t;return r.useEffect((()=>(a&&e&&(i(0),o.current=setInterval((()=>{i((e=>{const t=100-e;for(let n=0;n{clearInterval(o.current)})),[a,e]),a?n:t}(S,m);r.useEffect((()=>{if(i){const e=function(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,c=void 0!==s&&s,l=i.debounceMode,u=void 0===l?void 0:l,d=!1,p=0;function f(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;oe?c?(p=Date.now(),a||(r=setTimeout(u?m:h,e))):h():!0!==a&&(r=setTimeout(u?m:h,void 0===u?e-l:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}(o,(()=>{O(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}O(!1)}),[o,i]);const C=r.useMemo((()=>void 0!==p&&!f),[p,f]),N=y()(_,null==E?void 0:E.className,{[`${_}-sm`]:"small"===c,[`${_}-lg`]:"large"===c,[`${_}-spinning`]:S,[`${_}-show-text`]:!!l,[`${_}-rtl`]:"rtl"===b},a,!f&&s,k,T),A=y()(`${_}-container`,{[`${_}-blur`]:S}),I=null!==(t=null!=h?h:null==E?void 0:E.indicator)&&void 0!==t?t:Ly,D=Object.assign(Object.assign({},null==E?void 0:E.style),d),L=r.createElement("div",Object.assign({},g,{style:D,className:N,"aria-live":"polite","aria-busy":S}),r.createElement(xy,{prefixCls:_,indicator:I,percent:x}),l&&(C||f)?r.createElement("div",{className:`${_}-text`},l):null);return w(C?r.createElement("div",Object.assign({},g,{className:y()(`${_}-nested-loading`,u,k,T)}),S&&r.createElement("div",{key:"loading"},L),r.createElement("div",{className:A,key:"container"},p)):f?r.createElement("div",{className:y()(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:S},s,k,T)},L):L)};Py.setDefaultIndicator=e=>{Ly=e};const jy=Py;var Ry=n(2992),$y=n.n(Ry);const{parse:Fy}=window.wpGraphiQL.GraphQL;var My=n(3574);const{hooks:qy,useAppContext:Vy}=window.wpGraphiQL,zy=(0,o.createContext)(),By=()=>(0,o.useContext)(zy),Gy=({children:e})=>{var t;const{queryParams:n,setQueryParams:i}=Vy(),a=null!==(t=window&&window?.localStorage?.getItem("graphiql:variables"))&&void 0!==t?t:null,[s,c]=(0,o.useState)((()=>{var e;let t="",r=null!==(e=n.query)&&void 0!==e?e:null;r&&(t=$y().decompressFromEncodedURIComponent(r),null===t&&(t=r));try{t=(0,My.print)((0,My.parse)(t))}catch(e){var i;t=null!==(i=window?.localStorage?.getItem("graphiql:query"))&&void 0!==i?i:null}return t})()),[l,u]=(0,o.useState)(a),[d,p]=(0,o.useState)((()=>{var e;const t=null!==(e=wpGraphiQLSettings?.externalFragments)&&void 0!==e?e:null;if(!t)return[];const n=[];return t.map((e=>{let t,r;try{var i;t=Fy(e),r=null!==(i=t?.definitions[0])&&void 0!==i?i:null}catch(e){}r&&n.push(r)})),n})()),f=qy.applyFilters("graphiql_context_default_value",{query:s,setQuery:async e=>{const t=s;qy.doAction("graphiql_update_query",{currentQuery:t,newQuery:e});let r,o,a=!1;if(null!==e&&e===s)return;if(null===e||""===e)a=!0;else{o=$y().decompressFromEncodedURIComponent(e),r=null===o?$y().compressToEncodedURIComponent(e):e;try{(0,My.parse)(e),a=!0}catch(t){return void console.warn({error:{e:t,newQuery:e}})}}if(!a)return;window&&window.localStorage&&""!==e&&null!==e&&window?.localStorage.setItem("graphiql:query",e);const l={...n,query:r};JSON.stringify(l!==JSON.stringify(n))&&i(l),t!==e&&await c(e)},variables:l,setVariables:e=>{window&&window.localStorage&&window.localStorage.setItem("graphiql:variables",e),u(e)},externalFragments:d,setExternalFragments:p});return(0,r.createElement)(zy.Provider,{value:f},e)},{hooks:Qy}=wpGraphiQL,Uy=e=>{const{graphiql:t}=e;const n=By(),i={...e,GraphiQL:uy,graphiqlContext:n},o=Qy.applyFilters("graphiql_toolbar_buttons",[{label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)",onClick:e=>{e().handlePrettifyQuery()}},{label:"History",title:"Show History",onClick:e=>{e().handleToggleHistory()}}],i),a=Qy.applyFilters("graphiql_toolbar_before_buttons",[],i),s=Qy.applyFilters("graphiql_toolbar_after_buttons",[],i);return(0,r.createElement)("div",{"data-testid":"graphiql-toolbar",style:{display:"flex"}},a.length>0?a:null,o&&o.length&&o.map(((e,n)=>{const{label:i,title:o,onClick:a}=e;return(0,r.createElement)(uy.Button,{"data-testid":i,key:n,onClick:()=>{a(t)},label:i,title:o})})),s.length>0?s:null)},{hooks:Hy,useAppContext:Ky,GraphQL:Wy}=wpGraphiQL,{parse:Xy,specifiedRules:Yy}=Wy,Jy=af.div` display: flex; .topBar { height: 50px; @@ -27,12 +27,12 @@ margin: 0 14px; } padding: 20px; -`,by=e=>{try{return JSON.parse(e)&&!!e}catch(e){return!1}},Ey=()=>{let e=(0,o.useRef)(null);const t=hy(),n=cy(),{query:i,setQuery:a,externalFragments:s,variables:l,setVariables:c}=n,{endpoint:u,nonce:p,schema:d,setSchema:f}=t;let h=((e,t)=>{const{nonce:n}=t;return t=>{const r={method:"POST",headers:{Accept:"application/json","content-type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t),credentials:"include"};return fetch(e,r).then((e=>e.json()))}})(u,{nonce:p});h=fy.applyFilters("graphiql_fetcher",h,t);const m=fy.applyFilters("graphiql_before_graphiql",[],{...t,...n}),g=fy.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,r.createElement)(yy,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper"},m.length>0?m:null,(0,r.createElement)(Kv,{ref:t=>{e=t},fetcher:e=>h(e),schema:d,query:i,onEditQuery:e=>{let t=!1;if(e!==i){if(null===e||""===e)t=!0;else try{gy(e),t=!0}catch(e){return}t&&a(e)}},onEditVariables:e=>{by(e)&&c(e)},variables:by(l)?l:null,validationRules:vy,readOnly:!1,externalFragments:s,headerEditorEnabled:!1,onSchemaChange:e=>{d!==e&&f(e)}},(0,r.createElement)(Kv.Toolbar,null,(0,r.createElement)(dy,{graphiql:()=>e})),(0,r.createElement)(Kv.Logo,null,(0,r.createElement)(r.Fragment,null))),g.length>0?g:null)},wy=()=>{const e=hy(),{schemaLoading:t}=e;return t?(0,r.createElement)(ty,{style:{margin:"50px"}}):(0,r.createElement)(uy,{appContext:e},(0,r.createElement)(Ey,null))};var Ty=function(e,t){return Ty=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ty(e,t)};function Sy(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}Ty(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var ky=function(){return ky=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=Ry)return(console[e]||console.log).apply(console,arguments)}}function jy(e){try{return e()}catch(e){}}!function(e){e.debug=My("debug"),e.log=My("log"),e.warn=My("warn"),e.error=My("error")}(Dy||(Dy={}));const Fy=jy((function(){return globalThis}))||jy((function(){return window}))||jy((function(){return self}))||jy((function(){return global}))||jy((function(){return jy.constructor("return this")()}));var __="__",$y=[__,__].join("DEV");const Vy=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Fy,$y,{value:"production"!==jy((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Fy[$y]}}();function By(e){try{return e()}catch(e){}}var qy=By((function(){return globalThis}))||By((function(){return window}))||By((function(){return self}))||By((function(){return global}))||By((function(){return By.constructor("return this")()})),zy=!1;function Gy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Xy]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Zy(t,Xy);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return tb(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Ky("iterator")&&(r=Zy(t,Yy)))return new n((function(e){rb((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gy(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){rb((function(){if(!e.closed){for(var n=0;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(Eb(i),")")}return n.connection.key}var o=e;if(t){var a=Eb(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===yb.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(Eb(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=Eb;return Eb=e,t}}),Eb=function(e){return JSON.stringify(e,wb)};function wb(e,t){return pb(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function Tb(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return vb(n,r,i,t)})),n}return null}function Sb(e){return e.alias?e.alias.value:e.name.value}function kb(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r=300&&Bb(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||qb.call(t,"data")||qb.call(t,"errors")||Bb(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){f&&f.abort()}}))}))},Wb=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Kb(t).request)||this;return n.options=t,n}return Sy(t,e),t}(Fb);const{toString:Yb,hasOwnProperty:Xb}=Object.prototype,Jb=Function.prototype.toString,Zb=new Map;function eE(e,t){try{return tE(e,t)}finally{Zb.clear()}}function tE(e,t){if(e===t)return!0;const n=Yb.call(e);if(n!==Yb.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(oE(e,t))return!0;const n=nE(e),r=nE(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e=0&&e.indexOf(t,n)===n}(n,iE)}}return!1}function nE(e){return Object.keys(e).filter(rE,e)}function rE(e){return void 0!==this[e]}const iE="{ [native code] }";function oE(e,t){let n=Zb.get(e);if(n){if(n.has(t))return!0}else Zb.set(e,n=new Set);return n.add(t),!1}var aE=function(){return Object.create(null)},sE=Array.prototype,lE=sE.forEach,cE=sE.slice,uE=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=aE),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t-1}))}function vE(e){return e&&gE(["client"],e)&&gE(["export"],e)}jy((function(){return window.document.createElement})),jy((function(){return navigator.userAgent.indexOf("jsdom")>=0}));var yE=Object.prototype.hasOwnProperty;function bE(){for(var e=[],t=0;t1)for(var r=new TE,i=1;i0||!1}function $E(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var VE={kind:"Field",name:{kind:"Name",value:"__typename"}};function BE(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&BE(t[e.name.value],t)}))}function qE(e){return BE(_b(e)||function(e){__DEV__?Dy("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Dy("Document"===e.kind,48),__DEV__?Dy(e.definitions.length<=1,"Fragment must have exactly one definition."):Dy(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?Dy("FragmentDefinition"===t.kind,"Must be a fragment definition."):Dy("FragmentDefinition"===t.kind,50),t}(e),fb(Ib(e)))?null:e}function zE(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function GE(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=qE((0,Rm.visit)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(zE(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&HE(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(zE(e)(t))return null}}}));return a&&$E(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return qE((0,Rm.visit)(t,{OperationDefinition:{enter:function(t){return ky(ky({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&$E(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return qE((0,Rm.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var QE=Object.assign((function(e){return(0,Rm.visit)(e,{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return Ob(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(Ob(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return ky(ky({},e),{selections:_y(_y([],r,!0),[VE],!1)})}}}}})}),{added:function(e){return e===VE}}),UE={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&Dy.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function HE(e){var t=[];return e.selections.forEach((function(e){(Ob(e)||xb(e))&&e.selectionSet?HE(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function KE(e){if("query"===Ab(e).operation)return e;var t=(0,Rm.visit)(e,{OperationDefinition:{enter:function(e){return ky(ky({},e),{operation:"query"})}}});return t}var WE=new Map;function YE(e){var t=WE.get(e)||1;return WE.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function XE(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function JE(e){function t(t){Object.defineProperty(e,t,{value:ub})}return fE&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ZE(e){return e&&"function"==typeof e.then}var ew=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],XE(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),XE(n.observers,"error",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?ZE(t)?t.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=t.subscribe(n.handlers):(e&&setTimeout((function(){return e.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),XE(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new ub(t)]),ZE(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Sy(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.complete()},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(ub);function tw(e){return Array.isArray(e)&&e.length>0}JE(ew);var nw,rw=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,l=n.errorMessage,c=n.extraInfo,u=e.call(this,l)||this;return u.graphQLErrors=o||[],u.clientErrors=a||[],u.networkError=s||null,u.message=l||(i="",(tw((r=u).graphQLErrors)||tw(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+="".concat(t,"\n")})),r.networkError&&(i+="".concat(r.networkError.message,"\n")),i=i.replace(/\n$/,"")),u.extraInfo=c,u.__proto__=t.prototype,u}return Sy(t,e),t}(Error);function iw(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(nw||(nw={}));var ow=Object.prototype.toString;function aw(e){return sw(e)}function sw(e,t){switch(ow.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=sw(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=sw(e[n],t)})),r;default:return e}}var lw=Object.assign,cw=Object.hasOwnProperty,uw=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=dw)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.isTornDown=!1;var a=n.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,l=void 0===s?"cache-first":s,c=i.fetchPolicy,u=void 0===c?l:c,p=i.initialFetchPolicy,d=void 0===p?"standby"===u?l:u:p;o.options=ky(ky({},i),{initialFetchPolicy:d,fetchPolicy:u}),o.queryId=r.queryId||n.generateQueryId();var f=_b(o.query);return o.queryName=f&&f.name&&f.name.value,o}return Sy(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||nw.ready,r=ky(ky({},t),{loading:iw(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),eE(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==nw.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=nw.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||fw(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!eE(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||eE(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&cw.call(e,"variables")){var i=Lb(this.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&Dy.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!eE(this.options.variables,e)&&(n.variables=this.options.variables=ky(ky({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,nw.refetch)},t.prototype.fetchMore=function(e){var t=this,n=ky(ky({},e.query?e:ky(ky(ky(ky({},this.options),{query:this.query}),e),{variables:ky(ky({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),i=this.queryInfo,o=i.networkStatus;i.networkStatus=nw.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,nw.fetchMore).then((function(s){return t.queryManager.removeQuery(r),i.networkStatus===nw.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:s.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s})).finally((function(){a.has(t.query)||pw(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&Dy.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return eE(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},nw.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?Dy(n,"Attempted to start a polling query without a polling interval."):Dy(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(iw(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},nw.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=ky(ky({},this.last),{result:this.queryManager.assumeImmutableResults?e:aw(e),variables:t}),tw(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===nw.refetch||t===nw.fetchMore||t===nw.poll,i=this.options.variables,o=this.options.fetchPolicy,a=hE(this.options,e||{}),s=r?a:lw(this.options,a);r||(this.updatePolling(),e&&e.variables&&!eE(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=nw.setVariables)));var l=s.variables&&ky({},s.variables),c=this.fetch(s,t),u={next:function(e){n.reportResult(e,l)},error:function(e){n.reportError(e,l)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=c,this.observer=u),c.addObserver(u),c.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),XE(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=ky(ky({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:nw.error,loading:!1});this.updateLastResult(n,t),XE(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(ub);function pw(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function dw(e){__DEV__&&Dy.error("Unhandled error",e.message,e.stack)}function fw(e){__DEV__&&e&&__DEV__&&Dy.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}JE(uw);let hw=null;const mw={};let gw=1;function vw(e){try{return e()}catch(e){}}const yw="@wry/context:Slot",bw=vw((()=>globalThis))||vw((()=>global))||Object.create(null),Ew=bw[yw]||Array[yw]||function(e){try{Object.defineProperty(bw,yw,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",gw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=hw;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===mw)break;return e!==hw&&(hw.slots[this.id]=t),!0}return hw&&(hw.slots[this.id]=mw),!1}getValue(){if(this.hasValue())return hw.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=hw;hw={parent:o,slots:i};try{return t.apply(r,n)}finally{hw=o}}static bind(e){const t=hw;return function(){const n=hw;try{return hw=t,e.apply(this,arguments)}finally{hw=n}}}static noContext(e,t,n){if(!hw)return e.apply(n,t);{const r=hw;try{return hw=null,e.apply(n,t)}finally{hw=r}}}}),{bind:ww,noContext:Tw}=Ew;function Sw(){}var kw,Ow=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Sw),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),xw=new Ew,Cw=Object.prototype.hasOwnProperty,_w=void 0===(kw=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:kw;function Nw(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Iw=[],Lw=100;function Aw(e,t){if(!e)throw new Error(t||"assertion failure")}function Dw(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Pw=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!jw(this))return Rw(this),this.value[0]},e.prototype.recompute=function(e){return Aw(!this.recomputing,"already recomputing"),Rw(this),jw(this)?function(e,t){return Gw(e),xw.withValue(e,Mw,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Nw(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,jw(e)||$w(e)}(e),Dw(e.value)}(this,e):Dw(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Fw(this),Nw(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Gw(this),Vw(this,(function(t,n){t.setDirty(),Qw(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Iw.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(_w(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Iw.push(this.deps),this.deps=null)},e.count=0,e}();function Rw(e){var t=xw.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),jw(e)?Bw(t,e):qw(t,e),t}function Mw(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function jw(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Fw(e){Vw(e,Bw)}function $w(e){Vw(e,qw)}function Vw(e,t){var n=e.parents.size;if(n)for(var r=_w(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),zw(e,t),jw(e)||$w(e)}function zw(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Iw.length0&&e.childValues.forEach((function(t,n){Qw(e,n)})),e.forgetDeps(),Aw(null===e.dirtyChildren)}function Qw(e,t){t.parents.delete(e),e.childValues.delete(t),zw(e,t)}var Uw={setDirty:!0,dispose:!0,forget:!0};function Hw(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=xw.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(Nw(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Cw.call(Uw,n)?n:"setDirty";_w(r).forEach((function(e){return e[i]()})),t.delete(e),Nw(r)}},r}function Kw(){var e=new uE("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Kw();var Ww=new Set;function Yw(e,t){void 0===t&&(t=Object.create(null));var n=new Ow(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Kw(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new Pw(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),Ww.add(n),xw.hasValue()||(Ww.forEach((function(e){return e.clean()})),Ww.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var Xw=null,Jw={},Zw=1,eT="@wry/context:Slot",tT=Array,nT=tT[eT]||function(){var e=function(){function e(){this.id=["slot",Zw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Xw;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Jw)break;return e!==Xw&&(Xw.slots[this.id]=t),!0}return Xw&&(Xw.slots[this.id]=Jw),!1},e.prototype.getValue=function(){if(this.hasValue())return Xw.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Xw;Xw={parent:a,slots:o};try{return t.apply(r,n)}finally{Xw=a}},e.bind=function(e){var t=Xw;return function(){var n=Xw;try{return Xw=t,e.apply(this,arguments)}finally{Xw=n}}},e.noContext=function(e,t,n){if(!Xw)return e.apply(n,t);var r=Xw;try{return Xw=null,e.apply(n,t)}finally{Xw=r}},e}();try{Object.defineProperty(tT,eT,{value:tT[eT]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();nT.bind,nT.noContext;var rT=new nT,iT=new WeakMap;function oT(e){var t=iT.get(e);return t||iT.set(e,t={vars:new Set,dep:Hw()}),t}function aT(e){oT(e).vars.forEach((function(t){return t.forgetCache(e)}))}function sT(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){oT(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=rT.getValue();s&&(i(s),oT(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),oT(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var lT=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=bE(t.resolvers,e)})):this.resolvers=bE(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return xy(this,void 0,void 0,(function(){return Cy(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return ky(ky({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return gE(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Cb(e);var t=GE([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,Rm.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return Ob(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return ky(ky({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),xy(this,void 0,void 0,(function(){return Cy(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return ky(ky({},t),e.exportedVariables)}))]:[2,ky({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,Rm.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Rm.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:KE(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),xy(this,void 0,void 0,(function(){var a,s,l,c,u,p,d,f,h;return Cy(this,(function(m){return a=Ab(e),s=Ib(e),l=fb(s),c=a.operation,u=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:l,context:ky(ky({},n),{cache:d,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return xy(this,void 0,void 0,(function(){var r,i,o,a,s,l=this;return Cy(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return xy(l,void 0,void 0,(function(){var s,l;return Cy(this,(function(c){return mE(e,o)?Ob(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Sb(e)]=t,n))}))]:(xb(e)?s=e:(s=r[e.name.value],__DEV__?Dy(s,"No fragment named ".concat(e.name.value)):Dy(s,9)),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return EE(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return xy(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,p,d=this;return Cy(this,(function(f){return r=n.variables,i=e.name.value,o=Sb(e),a=i!==o,s=t[o]||t[i],l=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(u=this.resolvers&&this.resolvers[c])&&(p=u[a?i:o])&&(l=Promise.resolve(rT.withValue(this.cache,p,[t,Tb(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),cT=new(pE?WeakMap:Map);function uT(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return cT.set(e,(cT.get(e)+1)%1e15),n.apply(this,arguments)})}function pT(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var dT=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;cT.has(n)||(cT.set(n,0),uT(n,"evict"),uT(n,"modify"),uT(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||nw.loading;return this.variables&&this.networkStatus!==nw.loading&&!eE(this.variables,e.variables)&&(t=nw.setVariables),eE(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){pT(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&eE(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||eE(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():pw(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;pT(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(iw(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=ky(ky({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&eE(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===cT.get(this.cache)&&eE(t,n.variables)&&eE(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=tw(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(fT(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:cT.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=nw.ready},e.prototype.markError=function(e){return this.networkStatus=nw.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function fT(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!FE(e);return!r&&n&&e.data&&(r=!0),r}var hT=Object.prototype.hasOwnProperty,mT=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=void 0!==i&&i,a=e.onBroadcast,s=e.ssrMode,l=void 0!==s&&s,c=e.clientAwareness,u=void 0===c?{}:c,p=e.localState,d=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(pE?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=o,this.clientAwareness=u,this.localState=p||new lT({cache:t}),this.ssrMode=l,this.assumeImmutableResults=!!d,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new Ay("QueryManager stopped while query was in flight"):new Ay(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,l=void 0===s?[]:s,c=e.awaitRefetchQueries,u=void 0!==c&&c,p=e.update,d=e.onQueryUpdated,f=e.fetchPolicy,h=void 0===f?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":f,m=e.errorPolicy,g=void 0===m?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":m,v=e.keepRootFields,y=e.context;return xy(this,void 0,void 0,(function(){var e,t,n;return Cy(this,(function(s){switch(s.label){case 0:return __DEV__?Dy(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):Dy(r,12),__DEV__?Dy("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Dy("network-only"===h||"no-cache"===h,13),e=this.generateMutationId(),r=this.transform(r).document,i=this.getVariables(r,i),this.transform(r).hasClientExports?[4,this.localState.addExportedVariables(r,i,y)]:[3,2];case 1:i=s.sent(),s.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:h,errorPolicy:g,context:y,updateQueries:a,update:p,keepRootFields:v}),this.broadcastQueries(),n=this,[2,new Promise((function(s,c){return jE(n.getObservableFromLink(r,ky(ky({},y),{optimisticResponse:o}),i,!1),(function(s){if(FE(s)&&"none"===g)throw new rw({graphQLErrors:s.errors});t&&(t.loading=!1,t.error=null);var c=ky({},s);return"function"==typeof l&&(l=l(c)),"ignore"===g&&FE(c)&&delete c.errors,n.markMutationResult({mutationId:e,result:c,document:r,variables:i,fetchPolicy:h,errorPolicy:g,context:y,update:p,updateQueries:a,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:o?e:void 0,onQueryUpdated:d,keepRootFields:v})})).subscribe({next:function(e){n.broadcastQueries(),s(e)},error:function(r){t&&(t.loading=!1,t.error=r),o&&n.cache.removeOptimistic(e),n.broadcastQueries(),c(r instanceof rw?r:new rw({networkError:r}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&fT(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,l=s&&s.queryName;if(l&&hT.call(a,l)){var c=a[l],u=n.queries.get(o),p=u.document,d=u.variables,f=t.diff({query:p,variables:d,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=c(h,{mutationResult:r,queryName:p&&Nb(p)||void 0,queryVariables:d});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:d})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=ky(ky({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(ky(ky({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Dy.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),GE([UE],Cb(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:vE(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Db(_b(r)),asQuery:ky(ky({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?ky(ky({},e),{operation:"query"}):e}))})},l=function(e){e&&!n.has(e)&&n.set(e,s)};l(e),l(r),l(o),l(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return ky(ky({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=ky(ky({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new dT(this),n=new uw({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Dy(e.query,"query option is required. You must specify your GraphQL document in the query option."):Dy(e.query,14),__DEV__?Dy("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Dy("Document"===e.query.kind,15),__DEV__?Dy(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Dy(!e.returnPartialData,16),__DEV__?Dy(!e.pollInterval,"pollInterval option only supported on watchQuery."):Dy(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Ay("Store reset while query was in flight (not completed in link chain)"):new Ay(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=nw.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):pb(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):pb(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=YE("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new uw({queryManager:t,queryInfo:i,options:ky(ky({},e),{fetchPolicy:"network-only"})});Dy(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&Dy.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var l=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(fT(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),FE(o))throw new rw({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(l);return new ub((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,c=this.link,u={query:s,variables:n,operationName:Nb(s)||void 0,context:this.prepareContext(ky(ky({},t),{forceFetch:!r}))};if(t=u.context,r){var p=l.get(s)||new Map;l.set(s,p);var d=RE(n);if(!(o=p.get(d))){var f=new ew([$b(c,u)]);p.set(d,o=f),f.cleanup((function(){p.delete(d)&&p.size<1&&l.delete(s)}))}}else o=new ew([$b(c,u)])}else o=new ew([ub.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=jE(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return jE(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=tw(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new rw({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:nw.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors,a.networkStatus=nw.error),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new rw({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=nw.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=this.defaultOptions.watchQuery,l=t.fetchPolicy,c=void 0===l?s&&s.fetchPolicy||"cache-first":l,u=t.errorPolicy,p=void 0===u?s&&s.errorPolicy||"none":u,d=t.returnPartialData,f=void 0!==d&&d,h=t.notifyOnNetworkStatusChange,m=void 0!==h&&h,g=t.context,v=void 0===g?{}:g,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:p,returnPartialData:f,notifyOnNetworkStatusChange:m,context:v}),b=function(e){y.variables=e;var i=r.fetchQueryByPolicy(a,y,n);return"standby"!==y.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),i},E=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,(function(e){E(),setTimeout((function(){return w.cancel(e)}))}));var w=new ew(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(b):b(y.variables));return w.promise.then(E,E),w},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?YE("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof dT&&e.watcher.observableQuery;if(r){if(l){c.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==l&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=l(i,a,o)}l&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,c=t.returnPartialData,u=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:this.transform(i).document,variables:o,networkStatus:n});var f=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||nw.loading);var a=t.result;!__DEV__||c||eE(a,{})||fw(t.missing);var s=function(e){return ub.of(ky({data:e,loading:iw(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},m="no-cache"===a?0:n===nw.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{variables:o,context:u,fetchPolicy:a,errorPolicy:l})},v=p&&"number"==typeof d&&d!==n&&iw(n);switch(a){default:case"cache-first":return(y=f()).complete?[h(y,e.markReady())]:c||v?[h(y),g()]:[g()];case"cache-and-network":var y;return(y=f()).complete||c||v?[h(y),g()]:[g()];case"cache-only":return[h(f(),e.markReady())];case"network-only":return v?[h(f()),g()]:[g()];case"no-cache":return v?[h(e.getDiff()),g()]:[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new dT(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return ky(ky({},t),{clientAwareness:this.clientAwareness})},e}();function gT(e,t){return hE(e,t,t.variables&&{variables:ky(ky({},e&&e.variables),t.variables)})}var vT=!1,yT=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,l=e.ssrForceFetchDelay,c=void 0===l?0:l,u=e.connectToDevTools,p=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,d=e.queryDeduplication,f=void 0===d||d,h=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,v=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,E=e.name,w=e.version,T=e.link;if(T||(T=n?new Wb({uri:n,credentials:r,headers:i}):Fb.empty()),!o)throw __DEV__?new Ay("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Ay(7);if(this.link=T,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=f,this.defaultOptions=h||Object.create(null),this.typeDefs=y,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!vT&&__DEV__&&(vT=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,k=S&&S.userAgent,O=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?O="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(O="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),O&&__DEV__&&Dy.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.6.9",this.localState=new lT({cache:o,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new mT({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:f,ssrMode:s,clientAwareness:{name:E,version:w},localState:this.localState,assumeImmutableResults:g,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=gT(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=ky(ky({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=gT(this.defaultOptions.query,e)),__DEV__?Dy("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Dy("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=ky(ky({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=gT(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return $b(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&Dy.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),bT=function(){function e(){this.getFragmentDoc=Yw(db)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ky(ky({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ky(ky({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Oy(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=Oy(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(ky(ky({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(ky(ky({},e),{data:i})),i)}})},e}(),ET=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r};function wT(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){pb(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){pb(e[t])&&n.add(e[t])}))}))),e;var t,n}var TT=Object.create(null),ST=function(){return TT},kT=Object.create(null),OT=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return wT(gb(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return gb(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return mb(e);if(gb(e))return e;var r=n.policies.identify(e)[0];if(r){var i=mb(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return ky({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),SE.call(this.data,e)){var n=this.data[e];if(n&&SE.call(n,t))return n[t]}return"__typename"===t&&SE.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof NT?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),SE.call(this.data,e)?this.data[e]:this instanceof NT?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;gb(e)&&(e=e.__ref),gb(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?Dy("string"==typeof n,"store.merge expects a string ID"):Dy("string"==typeof n,1);var a=new TE(LT).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=_E(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof NT||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:TT,INVALIDATE:kT,isReference:gb,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||mb(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(l){var c=_E(l),u=r[l];if(void 0!==u){var p="function"==typeof t?t:t[l]||t[c];if(p){var d=p===ST?TT:p(wT(u),ky(ky({},s),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));d===kT?n.group.dirty(e,l):(d===TT&&(d=void 0),d!==u&&(i[l]=d,o=!0,u=d))}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof NT?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=ST,r):ST)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(SE.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof NT&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){SE.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&SE.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Oy(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof NT?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){SE.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof NT;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!SE.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){gb(e)&&(t[e.__ref]=!0),pb(e)&&Object.keys(e).forEach((function(t){var n=e[t];pb(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),xT=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Hw():null,this.keyMaker=new uE(pE)},e.prototype.depend=function(e,t){if(this.d){this.d(CT(e,t));var n=_E(t);n!==t&&this.d(CT(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(CT(e,t),"__exists"===t?"forget":"setDirty")},e}();function CT(e,t){return t+"#"+e}function _T(e,t){AT(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new xT(i))||this;return a.stump=new IT(a),a.storageTrie=new uE(pE),o&&a.replace(o),a}return Sy(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(OT||(OT={}));var NT=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return Sy(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){eE(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ky(ky({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return SE.call(this.data,t)?ky(ky({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(OT),IT=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new xT(t.group.caching,t.group))||this}return Sy(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(NT);function LT(e,t,n){var r=e[n],i=t[n];return eE(r,i)?r:i}function AT(e){return!!(e instanceof OT&&e.group.caching)}function DT(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var PT=function(){function e(e){var t=this;this.knownResults=new(pE?WeakMap:Map),this.config=hE(e,{addTypename:!1!==e.addTypename,canonizeResults:xE(e)}),this.canon=e.canon||new PE,this.executeSelectionSet=Yw((function(e){var n,r=e.context.canonizeResults,i=DT(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?ky(ky({},o),{result:t.canon.admit(o.result)}):o:(_T(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:DT,makeCacheKey:function(e,t,n,r){if(AT(n.store))return n.store.makeCacheKey(e,gb(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Yw((function(e){return _T(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(AT(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new PE},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,l=e.canonizeResults,c=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;o=ky(ky({},Db(Lb(n))),o);var p,d=mb(i),f=this.executeSelectionSet({selectionSet:Ab(n).selectionSet,objectOrReference:d,enclosingRef:d,context:{store:t,query:n,policies:u,variables:o,varString:RE(o),canonizeResults:c,fragmentMap:fb(Ib(n))}});if(f.missing&&(p=[new ET(RT(f.missing),f.missing,n,o)],!s))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if(AT(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(gb(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,l=o.policies,c=o.store.getFieldValue(r,"__typename"),u=[],p=new TE;function d(e,t){var n;return e.missing&&(a=p.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof c&&!l.rootIdsByTypename[c]&&u.push({__typename:c});var f=new Set(n.selections);f.forEach((function(e){var n,h;if(mE(e,s))if(Ob(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),g=Sb(e);void 0===m?QE.added(e)||(a=p.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(gb(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):DE(m)?m=d(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g):e.selectionSet?null!=m&&(m=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:gb(m)?m:i,context:o}),g)):o.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((h={})[g]=m,h))}else{var v=hb(e,o.fragmentMap);v&&l.fragmentMatches(v,c)&&v.selectionSet.selections.forEach(f.add,f)}}));var h={result:EE(u),missing:a},m=o.canonizeResults?this.canon.admit(h):wT(h);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new TE;function l(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:DE(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:gb(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){pb(n)&&(__DEV__?Dy(!gb(n),"Missing selection set for object of type ".concat(function(e,t){return gb(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):Dy(!gb(n),5),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function RT(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var MT=Object.create(null);function jT(e){var t=JSON.stringify(e);return MT[t]||(MT[t]=Object.create(null))}function FT(e){var t=jT(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=VT(e,(function(e){var i=zT(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&SE.call(t,e[0])&&(i=zT(t,e,qT)),__DEV__?Dy(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):Dy(void 0!==i,2),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function $T(e){var t=jT(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=VT(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return zT(t,e)}else{var a=n.slice(1);if(i&&SE.call(i,a)){var s=e.slice(0);return s[0]=a,zT(i,s)}}else if(r&&tw(r.directives)){var l=n.slice(1),c=r.directives.find((function(e){return e.name.value===l})),u=c&&Tb(c,i);return u&&zT(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function VT(e,t){var n=new TE;return BT(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function BT(e){var t=jT(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){DE(t)?(BT(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),DE(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function qT(e,t){return e[t]}function zT(e,t,n){return n=n||qT,GT(t.reduce((function e(t,r){return DE(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function GT(e){return pb(e)?DE(e)?e.map(GT):VT(Object.keys(e).sort(),(function(t){return zT(e,t)})):e}function QT(e){return void 0!==e.args?e.args:e.field?Tb(e.field,e.variables):null}bb.setStringify(RE);var UT=function(){},HT=function(e,t){return t.fieldName},KT=function(e,t,n){return(0,n.mergeObjects)(e,t)},WT=function(e,t){return t},YT=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ky({dataIdFromObject:kE},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a=t&&t.storeObject||e,s=ky(ky({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=JT(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),l=i&&this.getTypePolicy(i),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var u=c(e,s);if(!DE(u)){o=u;break}c=FT(u)}return o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=Oy(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),SE.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?KT:!1===t?WT:e.merge}a(r,t.merge),r.keyFn=!1===i?UT:DE(i)?FT(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,l=i.read,c=i.merge;r.keyFn=!1===s?HT:DE(s)?$T(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||HT)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Dy(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):Dy(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(CE);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!SE.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=Oy(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),u=!1,p=0;p1?s:t}:(r=ky({},a),SE.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&Dy.warn("Undefined 'from' passed to readField with arguments ".concat((i=Array.from(e),o=YE("stringifyForDisplay"),JSON.stringify(i,(function(e,t){return void 0===t?o:t})).split(JSON.stringify(o)).join("")))),void 0===r.variables&&(r.variables=n),r}function ZT(e){return function(t,n){if(DE(t)||DE(n))throw __DEV__?new Ay("Cannot automatically merge arrays"):new Ay(4);if(pb(t)&&pb(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(gb(t)&&IE(n))return e.merge(t.__ref,n),t;if(IE(t)&&gb(n))return e.merge(t,n.__ref),n;if(IE(t)&&IE(n))return ky(ky({},t),n)}return n}}function eS(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:ky(ky({},e),{clientOnly:t,deferred:n})),i}var tS=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,l=_b(r),c=new TE;a=ky(ky({},Db(l)),a);var u={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:RE(a),fragmentMap:fb(Ib(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!gb(p))throw __DEV__?new Ay("Could not identify object ".concat(JSON.stringify(i))):new Ay(6);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=mb(r);if(o&&o.map.size){var l=n.applyMerges(o,s,i,u);if(gb(l))return;i=l}if(__DEV__&&!u.overwrite){var c=Object.create(null);a.forEach((function(e){e.selectionSet&&(c[e.name.value]=!0)})),Object.keys(i).forEach((function(e){(function(e){return!0===c[_E(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!gb(o)&&!eE(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=_E(n),c="".concat(s,".").concat(l);if(!sS.has(c)){sS.add(c);var u=[];DE(o)||DE(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)})),__DEV__&&Dy.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(s,i,e,u.store)}))}e.merge(r,i)})),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,l=Object.create(null),c=n&&s.rootTypenamesById[n]||kb(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof c&&(l.__typename=c);var u=function(){var e=JT(arguments,l,o.variables);if(gb(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(ky(ky({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},p=new Set;this.flattenFields(i,r,o,c).forEach((function(e,n){var i,o=Sb(n),d=r[o];if(p.add(n),void 0!==d){var f=s.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),h=rS(a,f),m=t.processFieldValue(d,n,n.selectionSet?eS(e,!1,!1):e,h),g=void 0;n.selectionSet&&(gb(m)||IE(m))&&(g=u("__typename",m));var v=s.getMergeFunction(c,n.name.value,g);v?h.info={field:n,typename:c,merge:v}:aS(a,f),l=e.merge(l,((i={})[f]=m,i))}else!__DEV__||e.clientOnly||e.deferred||QE.added(n)||s.getReadFunction(c,n.name.value)||__DEV__&&Dy.error("Missing field '".concat(Sb(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var d=s.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:l,readField:u}),f=d[0],h=d[1];n=n||f,h&&(l=o.merge(l,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=mb(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0)return m;if(g.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var v=o.incomingById.get(n);return v?(v.storeObject=o.merge(v.storeObject,l),v.mergeTree=iS(v.mergeTree,a),p.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:l,mergeTree:oS(a)?void 0:a,fieldNodeSet:p}),m}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?DE(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,rS(r,o));return aS(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?aw(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=kb(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new uE(!1);return function e(s,l){var c=a.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach((function(a){if(mE(a,n.variables)){var s=l.clientOnly,c=l.deferred;if(s&&c||!tw(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=Tb(e,n.variables);r&&!1===r.if||(c=!0)}})),Ob(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,c=c&&u.deferred),i.set(a,eS(n,s,c))}else{var p=hb(a,n.fragmentMap);p&&o.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,eS(n,s,c))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!gb(n)){var s,l=DE(n)||!gb(t)&&!IE(t)?void 0:t,c=n;l&&!i&&(i=[gb(l)?l.__ref:l]);var u=function(e,t){return DE(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(l,t),o=u(c,t);if(void 0!==o){i&&i.push(t);var p=a.applyMerges(e,n,o,r,i);p!==o&&(s=s||new Map).set(t,p),i&&Dy(i.pop()===t)}})),s&&(n=DE(c)?c.slice(0):ky({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),nS=[];function rS(e,t){var n=e.map;return n.has(t)||n.set(t,nS.pop()||{map:new Map}),n.get(t)}function iS(e,t){if(e===t||!t||oS(t))return e;if(!e||oS(e))return t;var n=e.info&&t.info?ky(ky({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,iS(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,iS(t.map.get(n),e.map.get(n)))}))}return i}function oS(e){return!e||!(e.info||e.map.size)}function aS(e,t){var n=e.map,r=n.get(t);r&&oS(r)&&(nS.push(r),n.delete(t))}var sS=new Set,lS=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=sT,n.txCount=0,n.config=function(e){return hE(OE,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new YT({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Sy(t,e),t.prototype.init=function(){var e=this.data=new OT.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new tS(this,this.storeReader=new PT({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:xE(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Yw((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(AT(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,RE({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(ky(ky({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof ET)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(SE.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(ky(ky({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||oT(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&aT(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){RE.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(gb(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&Dy.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(SE.call(e,"id"))return!1;e=ky(ky({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),RE.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),aT(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,l=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},c=new Set;return s&&!this.txCount&&this.broadcastWatches(ky(ky({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,l):!1===o?l(this.data):l(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches(ky(ky({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=QE(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&eE(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(bT);const cS=e=>new yT({uri:e,connectToDevTools:!0,cache:new lS({})});var uS=new Map,pS=new Map,dS=!0,fS=!1;function hS(e){return e.replace(/[\s,]+/g," ").trim()}function mS(e){var t,n,r,i=hS(e);if(!uS.has(i)){var o=(0,Rm.parse)(e,{experimentalFragmentVariables:fS,allowLegacyFragmentVariables:fS});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");uS.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=o,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=hS((a=e.loc).source.body.substring(a.start,a.end)),o=pS.get(t);o&&!o.has(i)?dS&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||pS.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a})),ky(ky({},t),{definitions:r}))))}return uS.get(i)}function gS(e){for(var t=[],n=1;n{try{return JSON.parse(e)&&!!e}catch(e){return!1}},eb=()=>{let e=(0,o.useRef)(null);const t=Ky(),n=By(),{query:i,setQuery:a,externalFragments:s,variables:c,setVariables:l}=n,{endpoint:u,nonce:d,schema:p,setSchema:f}=t;let h=((e,t)=>{const{nonce:n}=t;return t=>{const r={method:"POST",headers:{Accept:"application/json","content-type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t),credentials:"include"};return fetch(e,r).then((e=>e.json()))}})(u,{nonce:d});h=Hy.applyFilters("graphiql_fetcher",h,t);const m=Hy.applyFilters("graphiql_before_graphiql",[],{...t,...n}),g=Hy.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,r.createElement)(Jy,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper"},m.length>0?m:null,(0,r.createElement)(wy,{ref:t=>{e=t},fetcher:e=>h(e),schema:p,query:i,onEditQuery:e=>{let t=!1;if(e!==i){if(null===e||""===e)t=!0;else try{Xy(e),t=!0}catch(e){return}t&&a(e)}},onEditVariables:e=>{Zy(e)&&l(e)},variables:Zy(c)?c:null,validationRules:Yy,readOnly:!1,externalFragments:s,headerEditorEnabled:!1,onSchemaChange:e=>{p!==e&&f(e)}},(0,r.createElement)(wy.Toolbar,null,(0,r.createElement)(Uy,{graphiql:()=>e})),(0,r.createElement)(wy.Logo,null,(0,r.createElement)(r.Fragment,null))),g.length>0?g:null)},tb=()=>{const e=Ky(),{schemaLoading:t}=e;return t?(0,r.createElement)(jy,{style:{margin:"50px"}}):(0,r.createElement)(Gy,{appContext:e},(0,r.createElement)(eb,null))};var nb=function(e,t){return nb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nb(e,t)};function rb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}nb(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var ib=function(){return ib=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=gb)return(console[e]||console.log).apply(console,arguments)}}(hb=fb||(fb={})).debug=vb("debug"),hb.log=vb("log"),hb.warn=vb("warn"),hb.error=vb("error");var yb="3.12.11";function bb(e){try{return e()}catch(e){}}const Eb=bb((function(){return globalThis}))||bb((function(){return window}))||bb((function(){return self}))||bb((function(){return global}))||bb((function(){return bb.constructor("return this")()}));var _b=new Map;function wb(e){var t=_b.get(e)||1;return _b.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function kb(e,t){void 0===t&&(t=0);var n=wb("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?n:t}),t).split(JSON.stringify(n)).join("")}function Tb(e){return function(t){for(var n=[],r=1;r"}}function Nb(e,t){if(void 0===t&&(t=[]),e)return Eb[xb]&&Eb[xb](e,t.map(Cb))}function Ab(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:yb,message:e,args:t.map(Cb)})))}function Ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Fb]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=qb(t,Fb);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return zb(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(jb("iterator")&&(r=qb(t,$b)))return new n((function(e){Gb((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ib(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ib(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){Gb((function(){if(!e.closed){for(var n=0;ne}},oE="undefined"!=typeof WeakMap?WeakMap:Map,aE="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:nE,unregister:nE}};class sE{constructor(e=1/0,t=rE){this.max=e,this.dispose=t,this.map=new oE,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new iE(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new aE(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function cE(){}class lE{constructor(e=1/0,t=cE){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var uE=new WeakSet;function dE(e){e.size<=(e.max||-1)||uE.has(e)||(uE.add(e),setTimeout((function(){e.clean(),uE.delete(e)}),100))}var pE=function(e,t){var n=new sE(e,t);return n.set=function(e,t){var n=sE.prototype.set.call(this,e,t);return dE(this),n},n},fE=function(e,t){var n=new lE(e,t);return n.set=function(e,t){var n=lE.prototype.set.call(this,e,t);return dE(this),n},n},hE=Symbol.for("apollo.cacheSize"),mE=ib({},Eb[hE]),gE={};function vE(e,t){gE[e]=t}var yE=!1!==globalThis.__DEV__?function(){var e,t,n,r,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],n=e[1];return[t,mE[t]||n]}))),sizes:ib({print:null===(e=gE.print)||void 0===e?void 0:e.call(gE),parser:null===(t=gE.parser)||void 0===t?void 0:t.call(gE),canonicalStringify:null===(n=gE.canonicalStringify)||void 0===n?void 0:n.call(gE),links:OE(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:TE(this.queryManager.documentTransform)}},null===(i=(r=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(r))}}:void 0,bE=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return ib(ib({},_E.apply(this)),{addTypenameDocumentTransform:TE(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:wE(this.storeReader.executeSelectionSet),executeSubSelectedArray:wE(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:wE(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:wE(null==e?void 0:e.findFragmentSpreads),lookup:wE(null==e?void 0:e.lookup),transform:wE(null==e?void 0:e.transform)}})}:void 0,EE=!1!==globalThis.__DEV__?_E:void 0;function _E(){return{cache:{fragmentQueryDocuments:wE(this.getFragmentDoc)}}}function wE(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function kE(e){return null!=e}function TE(e){return SE(e).map((function(e){return{cache:e}}))}function SE(e){return e?cb(cb([wE(null==e?void 0:e.performWork)],SE(null==e?void 0:e.left),!0),SE(null==e?void 0:e.right),!0).filter(kE):[]}function OE(e){var t;return e?cb(cb([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],OE(null==e?void 0:e.left),!0),OE(null==e?void 0:e.right),!0).filter(kE):[]}var xE,CE=Object.assign((function(e){return JSON.stringify(e,NE)}),{reset:function(){xE=new fE(mE.canonicalStringify||1e3)}});function NE(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(AE))return t;var i=JSON.stringify(r),o=xE.get(i);if(!o){r.sort();var a=JSON.stringify(r);o=xE.get(a)||r,xE.set(i,o),xE.set(a,o)}var s=Object.create(n);return o.forEach((function(e){s[e]=t[e]})),s}}return t}function AE(e,t,n){return 0===t||n[t-1]<=e}function IE(e){return{__ref:String(e)}}function DE(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function LE(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return LE(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return LE(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw Ob(96,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&vE("canonicalStringify",(function(){return xE.size})),CE.reset();var PE=["connection","include","skip","client","rest","export","nonreactive"],jE=CE,RE=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(jE(i),")")}return n.connection.key}var o=e;if(t){var a=jE(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===PE.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(jE(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=jE;return jE=e,t}});function $E(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return LE(n,r,i,t)})),n}return null}function FE(e){return e.alias?e.alias.value:e.name.value}function ME(e,t,n){for(var r,i=0,o=t.selections;i=0}));var p_=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},f_=Symbol();function h_(e){return e.hasOwnProperty("graphQLErrors")}var m_=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.protocolErrors,s=n.clientErrors,c=n.networkError,l=n.errorMessage,u=n.extraInfo,d=e.call(this,l)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=c||null,d.message=l||(i=cb(cb(cb([],(r=d).graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0),r.networkError&&i.push(r.networkError),i.map((function(e){return Jb(e)&&e.message||"Error message not found."})).join("\n")),d.extraInfo=u,d.cause=cb(cb(cb([c],o||[],!0),a||[],!0),s||[],!0).find((function(e){return!!e}))||null,d.__proto__=t.prototype,d}return rb(t,e),t}(Error),g_=Array.isArray;function v_(e){return Array.isArray(e)&&e.length>0}var y_=Object.prototype.hasOwnProperty;function b_(){for(var e=[],t=0;t1)for(var r=new k_,i=1;i=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)})),n}var x_=Object.prototype.hasOwnProperty;function C_(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function N_(e,t){e.status>=300&&p_(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var A_,I_=Object.assign((function(e){var t=A_.get(e);return t||(t=(0,yv.print)(e),A_.set(e,t)),t}),{reset:function(){A_=new pE(mE.print||2e3)}});I_.reset(),!1!==globalThis.__DEV__&&vE("print",(function(){return A_?A_.size:0}));var D_={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},L_=function(e,t){return t(e)};function P_(e){return new Yb((function(t){t.error(e)}))}var j_={kind:yv.Kind.FIELD,name:{kind:yv.Kind.NAME,value:"__typename"}};function R_(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===yv.Kind.FRAGMENT_SPREAD&&R_(t[e.name.value],t)}))}function $_(e){return R_(zE(e)||UE(e),eE(GE(e)))?null:e}function F_(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function M_(e,t){VE(t);for(var n=F_(""),r=F_(""),i=function(e){for(var t=0,i=void 0;t=0;--a)t.definitions[a].kind===yv.Kind.OPERATION_DEFINITION&&++o;var s,c,l,u=(s=e,c=new Map,l=new Map,s.forEach((function(e){e&&(e.name?c.set(e.name,e):e.test&&l.set(e.test,e))})),function(e){var t=c.get(e.name.value);return!t&&l.size&&l.forEach((function(n,r){r(e)&&(t=n)})),t}),d=function(e){return v_(e)&&e.map(u).some((function(e){return e&&e.remove}))},p=new Map,f=!1,h={enter:function(e){if(d(e.directives))return f=!0,null}},m=(0,yv.visit)(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(d(e.directives))return f=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){p.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===p.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===yv.Kind.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,f=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return f=!0,null}}});if(!f)return t;var g=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){g(r(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},v=new Set;m.definitions.forEach((function(e){e.kind===yv.Kind.OPERATION_DEFINITION?g(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){v.add(e)})):e.kind!==yv.Kind.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||v.add(e.name.value)})),v.forEach((function(e){g(r(e)).fragmentSpreads.forEach((function(e){v.add(e)}))}));var y={enter:function(e){if(t=e.name.value,!v.has(t)||r(t).removed)return null;var t}};return $_((0,yv.visit)(m,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=g(n(e.name&&e.name.value)).transitiveVars;if(t.size-1;){if(g=void 0,k=[s.slice(0,m),s.slice(m+a.length)],s=k[1],v=(g=k[0]).indexOf("\r\n\r\n"),y=C_(g.slice(0,v)),(b=y["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(E=g.slice(v))if(_=N_(e,E),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if(S_(_)){if(w={},"payload"in _){if(1===Object.keys(_).length&&null===_.payload)return[2];w=ib({},_.payload)}"errors"in _&&(w=ib(ib({},w),{extensions:ib(ib({},"extensions"in w?w.extensions:null),(T={},T[f_]=_.errors,T))})),t(w)}else t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):(r=e,function(e){return e.text().then((function(t){return N_(e,t)})).then((function(t){return Array.isArray(t)||x_.call(t,"data")||x_.call(t,"errors")||p_(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})(t).then(o)})).then((function(){E=void 0,n.complete()})).catch((function(e){E=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){E&&E.abort()}}))}))},U_=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Q_(t).request)||this;return n.options=t,n}return rb(t,e),t}(JE);const{toString:H_,hasOwnProperty:K_}=Object.prototype,W_=Function.prototype.toString,X_=new Map;function Y_(e,t){try{return Z_(e,t)}finally{X_.clear()}}const J_=Y_;function Z_(e,t){if(e===t)return!0;const n=H_.call(e);if(n!==H_.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(rw(e,t))return!0;const n=ew(e),r=ew(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e=0&&e.indexOf(t,n)===n}(n,nw)}}return!1}function ew(e){return Object.keys(e).filter(tw,e)}function tw(e){return void 0!==this[e]}const nw="{ [native code] }";function rw(e,t){let n=X_.get(e);if(n){if(n.has(t))return!0}else X_.set(e,n=new Set);return n.add(t),!1}const iw=()=>Object.create(null),{forEach:ow,slice:aw}=Array.prototype,{hasOwnProperty:sw}=Object.prototype;class cw{constructor(e=!0,t=iw){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return ow.call(e,(e=>t=t.getChildTrie(e))),sw.call(t,"data")?t.data:t.data=this.makeData(aw.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&nglobalThis))||pw((()=>global))||Object.create(null),mw=hw[fw]||Array[fw]||function(e){try{Object.defineProperty(hw,fw,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",dw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=lw;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===uw)break;return e!==lw&&(lw.slots[this.id]=t),!0}return lw&&(lw.slots[this.id]=uw),!1}getValue(){if(this.hasValue())return lw.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=lw;lw={parent:o,slots:i};try{return t.apply(r,n)}finally{lw=o}}static bind(e){const t=lw;return function(){const n=lw;try{return lw=t,e.apply(this,arguments)}finally{lw=n}}}static noContext(e,t,n){if(!lw)return e.apply(n,t);{const r=lw;try{return lw=null,e.apply(n,t)}finally{lw=r}}}}),{bind:gw,noContext:vw}=mw,yw=new mw,{hasOwnProperty:bw}=Object.prototype,Ew=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function _w(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const ww=[];function kw(e,t){if(!e)throw new Error(t||"assertion failure")}function Tw(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Sw(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Ow(e){return e.slice(0)}class xw{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++xw.count}peek(){if(1===this.value.length&&!Aw(this))return Cw(this),this.value[0]}recompute(e){return kw(!this.recomputing,"already recomputing"),Cw(this),Aw(this)?function(e,t){return $w(e),yw.withValue(e,Nw,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{_w(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Aw(e)||Dw(e)}(e),Sw(e.value)}(this,e):Sw(this.value)}setDirty(){this.dirty||(this.dirty=!0,Iw(this),_w(this))}dispose(){this.setDirty(),$w(this),Lw(this,((e,t)=>{e.setDirty(),Fw(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ww.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Ew(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),ww.push(this.deps),this.deps=null)}}function Cw(e){const t=yw.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Aw(e)?Pw(t,e):jw(t,e),t}function Nw(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Ow(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Tw(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function Aw(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Iw(e){Lw(e,Pw)}function Dw(e){Lw(e,jw)}function Lw(e,t){const n=e.parents.size;if(n){const r=Ew(e.parents);for(let i=0;i0&&e.childValues.forEach(((t,n)=>{Fw(e,n)})),e.forgetDeps(),kw(null===e.dirtyChildren)}function Fw(e,t){t.parents.delete(e),e.childValues.delete(t),Rw(e,t)}xw.count=0;const Mw={setDirty:!0,dispose:!0,forget:!0};function qw(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=yw.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(_w(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&bw.call(Mw,n)?n:"setDirty";Ew(r).forEach((e=>e[i]())),t.delete(e),_w(r)}},r}let Vw;function zw(...e){return(Vw||(Vw=new cw("function"==typeof WeakMap))).lookupArray(e)}const Bw=new Set;function Gw(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=zw,normalizeResult:i,subscribe:o,cache:a=lE}=Object.create(null)){const s="function"==typeof a?new a(t,(e=>e.dispose())):a,c=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new xw(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const c=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),Bw.add(s),yw.hasValue()||(Bw.forEach((e=>e.clean())),Bw.clear()),c};function l(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))},c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function Qw(e){return e}var Uw=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=s_?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(Qw,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new cw(a_);this.performWork=Gw(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return Sb(Array.isArray(r),77),n.lookupArray(r)},max:mE["documentTransform.cache"],cache:sE})}},e.prototype.performWork=function(e){return VE(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}();function Hw(e,t,n){return new Yb((function(r){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then((function(e){return r.next(e)}),(function(e){return r.error(e)}))}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then((function(){return r.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}function Kw(e){return v_(Ww(e))}function Ww(e){var t=v_(e.errors)?e.errors.slice(0):[];return T_(e)&&v_(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function Xw(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Yw(e){function t(t){Object.defineProperty(e,t,{value:Yb})}return c_&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Jw(e){return e&&"function"==typeof e.then}var Zw,ek=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),Xw(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),Xw(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?Jw(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)}),n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Xw(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new Yb(t)]),Jw(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return rb(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(Yb);function tk(e){return!!e&&e<7}function nk(){for(var e=[],t=0;t0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?ib(ib({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(Yb);function fk(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function hk(e){!1!==globalThis.__DEV__&&Sb.error(25,e.message,e.stack)}function mk(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&Sb.debug(26,e)}function gk(e){return"network-only"===e||"no-cache"===e||"standby"===e}Yw(pk);var vk=new(a_?WeakMap:Map);function yk(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return vk.set(e,(vk.get(e)+1)%1e15),n.apply(this,arguments)})}function bk(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Ek=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;vk.has(n)||(vk.set(n,0),yk(n,"evict"),yk(n,"modify"),yk(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Zw.loading;return this.variables&&this.networkStatus!==Zw.loading&&!Y_(this.variables,e.variables)&&(t=Zw.setVariables),Y_(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){bk(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Y_(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||Y_(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return n.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():fk(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;bk(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(tk(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=ib(ib({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Y_(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===vk.get(this.cache)&&Y_(t,n.variables)&&Y_(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new k_,a=v_(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&v_(e.incremental)){var s=O_(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(_k(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:vk.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&Y_(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Zw.ready},e.prototype.markError=function(e){return this.networkStatus=Zw.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function _k(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Kw(e);return!r&&n&&e.data&&(r=!0),r}function wk(e){return!1!==globalThis.__DEV__&&(t=e,(n=new Set([t])).forEach((function(e){Jb(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){Jb(e[t])&&n.add(e[t])}))}))),e;var t,n}var kk=a_?WeakMap:Map,Tk=s_?WeakSet:Set,Sk=new mw,Ok=!1;function xk(){Ok||(Ok=!0,!1!==globalThis.__DEV__&&Sb.warn(52))}function Ck(e,t,n){return Sk.withValue(!0,(function(){var r=Nk(e,t,n,!1);return Object.isFrozen(e)&&wk(r),r}))}function Nk(e,t,n,r,i){var o,a=n.knownChanged,s=function(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(var c=0,l=Array.from(e.entries());c0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a,s=e.update,c=!(T_(a=r)||function(e){return"hasNext"in e&&"data"in e}(a))||T_(r)&&!r.hasNext;if(s){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(r=ib(ib({},r),{data:l.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}c&&s(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables,{IGNORE:Lk}):e;return r!==Lk&&(this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(ib(ib({},t),{result:{data:r}}),e)}catch(e){!1!==globalThis.__DEV__&&Sb.error(e)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:n_(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:t_(["nonreactive"],e),nonReactiveQuery:B_(e),clientQuery:this.localState.clientQuery(e),serverQuery:M_([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:KE(zE(e)),asQuery:ib(ib({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?ib(ib({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return ib(ib({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=ib(ib({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new Ek(this),r=new pk({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),Sb(e.query,30),Sb("Document"===e.query.kind,31),Sb(!e.returnPartialData,32),Sb(!e.pollInterval,33);var r=this.transform(e.query);return this.fetchQuery(t,ib(ib({},e),{query:r})).then((function(i){return i&&ib(ib({},i),{data:n.maskOperation({document:r,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(Ob(34)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Zw.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach((function(e){if("string"==typeof e)r.set(e,e),i.set(e,!1);else if(Jb(a=e)&&"Document"===a.kind&&Array.isArray(a.definitions)){var n=I_(t.transform(e));r.set(n,BE(e)),i.set(n,!1)}else Jb(e)&&e.query&&o.add(e);var a})),this.queries.forEach((function(t,r){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(r,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&i.has(s)||a&&i.has(I_(a)))&&(n.set(r,o),s&&i.set(s,!0),a&&i.set(I_(a),!0))}})),o.size&&o.forEach((function(e){var r=wb("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new pk({queryManager:t,queryInfo:i,options:ib(ib({},e),{fetchPolicy:"network-only"})});Sb(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),!1!==globalThis.__DEV__&&i.size&&i.forEach((function(e,t){if(!e){var n=r.get(t);n?!1!==globalThis.__DEV__&&Sb.warn(35,n):!1!==globalThis.__DEV__&&Sb.warn(36)}})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,c=void 0===s?{}:s,l=e.extensions,u=void 0===l?{}:l;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,u).map((function(r){"no-cache"!==i&&(_k(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=Kw(r),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[f_])}(r);if(o||s){var c={};if(o&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[f_]),"none"===a||s)throw new m_(c)}return"ignore"===a&&delete r.errors,r}))};if(this.getDocumentInfo(n).hasClientExports){var p=this.localState.addExportedVariables(n,r,c).then(d);return new Yb((function(e){var t=null;return p.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r,i){var o,a,s=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,u=c.clientQuery;if(l){var d=this.inFlightLinkObservables,p=this.link,f={query:l,variables:n,operationName:BE(l)||void 0,context:this.prepareContext(ib(ib({},t),{forceFetch:!i})),extensions:r};if(t=f.context,i){var h=I_(l),m=CE(n),g=d.lookup(h,m);if(!(a=g.observable)){var v=new ek([ZE(p,f)]);a=g.observable=v,v.beforeNext((function(){d.remove(h,m)}))}}else a=new ek([ZE(p,f)])}else a=new ek([Yb.of({data:{}})]),t=this.prepareContext(t);return u&&(a=Hw(a,(function(e){return s.localState.runResolvers({document:u,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return Hw(this.getObservableFromLink(i,n.context,n.variables),(function(o){var a=Ww(o),s=a.length>0,c=n.errorPolicy;if(r>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new m_({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:Zw.ready};return s&&"none"===c&&(l.data=void 0),s&&"ignore"!==c&&(l.errors=a,l.networkStatus=Zw.error),l}),(function(t){var n=h_(t)?t:new m_({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;void 0===n&&(n=Zw.loading),void 0===r&&(r=t.query);var o,a,s=this.getVariables(r,t.variables),c=this.getQuery(e),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?l&&l.fetchPolicy||"cache-first":u,p=t.errorPolicy,f=void 0===p?l&&l.errorPolicy||"none":p,h=t.returnPartialData,m=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,v=void 0!==g&&g,y=t.context,b=void 0===y?{}:y,E=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:v,context:b}),_=function(e){E.variables=e;var r=i.fetchQueryByPolicy(c,E,n);return"standby"!==E.fetchPolicy&&r.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),r},w=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){w(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(E.query).hasClientExports)o=new ek(this.localState.addExportedVariables(E.query,E.variables,E.context).then(_).then((function(e){return e.sources}))),a=!0;else{var k=_(E.variables);a=k.fromLink,o=new ek(k.sources)}return o.promise.then(w,w),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?wb("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Ek&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t,n,r,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,s=e.id,c=null===(t=zE(i))||void 0===t?void 0:t.operation,l=(null!==(n=null==c?void 0:c[0])&&void 0!==n?n:"o")+s;!this.dataMasking||"no-cache"!==a||function(e){var t=!0;return(0,yv.visit)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some((function(e){return"unmask"===e.name.value}))))return yv.BREAK}}),t}(i)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&Sb.warn(37,null!==(r=BE(i))&&void 0!==r?r:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,n){var r;if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&xk(),e;var i=zE(t);return Sb(i,51),null==e?e:Ck(e,i.selectionSet,{operationType:i.operation,operationName:null===(r=i.name)||void 0===r?void 0:r.value,fragmentMap:eE(GE(t)),cache:n,mutableTargets:new kk,knownChanged:new Tk})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?Ik(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var f=function(){return e.getDiff()},h=function(t,n){void 0===n&&(n=e.networkStatus||Zw.loading);var a=t.result;!1===globalThis.__DEV__||l||Y_(a,{})||mk(t.missing);var s=function(e){return Yb.of(ib({data:e,loading:tk(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===c&&n===Zw.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:n===Zw.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{query:i,variables:o,context:u,fetchPolicy:a,errorPolicy:c})},v=d&&"number"==typeof p&&p!==n&&tk(n);switch(a){default:case"cache-first":return(y=f()).complete?{fromLink:!1,sources:[h(y,e.markReady())]}:l||v?{fromLink:!0,sources:[h(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var y;return(y=f()).complete||l||v?{fromLink:!0,sources:[h(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[h(f(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[h(f()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return v?{fromLink:!0,sources:[h(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ek(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return ib(ib(ib({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),jk=new mw,Rk=new WeakMap;function $k(e){var t=Rk.get(e);return t||Rk.set(e,t={vars:new Set,dep:qw()}),t}function Fk(e){$k(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Mk(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){$k(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=jk.getValue();s&&(i(s),$k(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),$k(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var qk=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=b_(t.resolvers,e)})):this.resolvers=b_(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return ab(this,arguments,void 0,(function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return sb(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return ib(ib({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return t_(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return z_(e)},e.prototype.prepareContext=function(e){var t=this.cache;return ib(ib({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return ab(this,arguments,void 0,(function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),sb(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return ib(ib({},t),e.exportedVariables)}))]:[2,ib({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,yv.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return yv.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:V_(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return ab(this,arguments,void 0,(function(e,t,n,r,i,o){var a,s,c,l,u,d,p,f,h,m;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),sb(this,(function(g){return a=HE(e),s=GE(e),c=eE(s),l=this.collectSelectionsToResolve(a,c),u=a.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",f=(p=this).cache,h=p.client,m={fragmentMap:c,context:ib(ib({},n),{cache:f,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return ab(this,void 0,void 0,(function(){var i,o,a,s,c,l=this;return sb(this,(function(u){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],c=function(e){return ab(l,void 0,void 0,(function(){var c,l;return sb(this,(function(u){return(t||r.selectionsToResolve.has(e))&&e_(e,a)?qE(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;void 0!==t&&s.push(((n={})[FE(e)]=t,n))}))]:(function(e){return"InlineFragment"===e.kind}(e)?c=e:(c=i[e.name.value],Sb(c,19,e.name.value)),c&&c.typeCondition&&(l=c.typeCondition.name.value,r.fragmentMatcher(n,l,o))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return E_(s)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return ab(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,d,p,f=this;return sb(this,(function(h){return n?(i=r.variables,o=e.name.value,a=FE(e),s=o!==a,c=n[a]||n[o],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(p=d[s?o:a])&&(l=Promise.resolve(jk.withValue(this.cache,p,[n,$E(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then((function(n){var i,o;if(void 0===n&&(n=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?f.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),(0,yv.visit)(i,{Directive:function(e,t,__,r,i){"client"===e.name.value&&i.forEach((function(e){n(e)&&(0,yv.isSelectionNode)(e)&&o.add(e)}))},FragmentSpread:function(r,i,__,a,s){var c=t[r.name.value];Sb(c,20,r.name.value);var l=e(c);l.size>0&&(s.forEach((function(e){n(e)&&(0,yv.isSelectionNode)(e)&&o.add(e)})),o.add(r),l.forEach((function(e){o.add(e)})))}})}return r.get(i)}(e)},e}();function Vk(e,t){return nk(e,t,t.variables&&{variables:nk(ib(ib({},e&&e.variables),t.variables))})}var zk=!1,Bk=function(){function e(e){var t,n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw Ob(16);var r=e.uri,i=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,c=e.ssrMode,l=void 0!==c&&c,u=e.ssrForceFetchDelay,d=void 0===u?0:u,p=e.connectToDevTools,f=e.queryDeduplication,h=void 0===f||f,m=e.defaultOptions,g=e.defaultContext,v=e.assumeImmutableResults,y=void 0===v?a.assumeImmutableResults:v,b=e.resolvers,E=e.typeDefs,_=e.fragmentMatcher,w=e.name,k=e.version,T=e.devtools,S=e.dataMasking,O=e.link;O||(O=r?new U_({uri:r,credentials:i,headers:o}):JE.empty()),this.link=O,this.cache=a,this.disableNetworkFetches=l||d>0,this.queryDeduplication=h,this.defaultOptions=m||Object.create(null),this.typeDefs=E,this.devtoolsConfig=ib(ib({},T),{enabled:null!==(t=null==T?void 0:T.enabled)&&void 0!==t?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),d&&setTimeout((function(){return n.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=yb,this.localState=new qk({cache:a,client:this,resolvers:b,fragmentMatcher:_}),this.queryManager=new Pk({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:s,queryDeduplication:h,ssrMode:l,dataMasking:!!S,clientAwareness:{name:w,version:k},localState:this.localState,assumeImmutableResults:y,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,zk||!1===globalThis.__DEV__||(zk=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout((function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&Sb.log("Download the Apollo DevTools for a better development experience: %s",n)}}),1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Vk(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=ib(ib({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Vk(this.defaultOptions.query,e)),Sb("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=ib(ib({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Vk(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map((function(r){return ib(ib({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})}))},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(ib(ib({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ZE(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){!1!==globalThis.__DEV__&&Sb.debug(18,e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(Bk.prototype.getMemoryInternals=yE);var Gk=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Gw(Zb,{max:mE["cache.fragmentQueryDocuments"]||1e3,cache:sE})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ib(ib({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t=this,n=e.fragment,r=e.fragmentName,i=e.from,o=e.optimistic,a=void 0===o||o,s=ob(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,r),l=void 0===i||"string"==typeof i?i:this.identify(i),u=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var d=r||UE(n).name.value;l||!1!==globalThis.__DEV__&&Sb.warn(1,d)}var p,f=ib(ib({},s),{returnPartialData:!0,id:l,query:c,optimistic:a});return new Yb((function(i){return t.watch(ib(ib({},f),{immediate:!0,callback:function(o){var a=u?Ik(o.result,n,t,r):o.result;if(!p||!ak(c,{data:p.result},{data:a},e.variables)){var s={data:a,complete:!!o.complete};o.missing&&(s.missing=E_(o.missing.map((function(e){return e.missing})))),p=ib(ib({},o),{result:a}),i.next(s)}}}))}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ib(ib({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=ob(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=ob(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(ib(ib({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(ib(ib({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(Gk.prototype.getMemoryInternals=EE);var Qk=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return rb(t,e),t}(Error),Uk=Object.prototype.hasOwnProperty;function Hk(e){return null==e}function Kk(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=Hk(r)?Hk(i)?void 0:{_id:i}:{id:r}),Hk(r)&&!Hk(i)&&(r=i),!Hk(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Wk={dataIdFromObject:Kk,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Xk(e){var t=e.canonizeResults;return void 0===t?Wk.canonizeResults:t}var Yk=/^[_a-z][_0-9a-z]*/i;function Jk(e){var t=e.match(Yk);return t?t[0]:e}function Zk(e,t,n){return!!Jb(t)&&(g_(t)?t.every((function(t){return Zk(e,t,n)})):e.selections.every((function(e){if(qE(e)&&e_(e,n)){var r=FE(e);return Uk.call(t,r)&&(!e.selectionSet||Zk(e.selectionSet,t[r],n))}return!0})))}function eT(e){return Jb(e)&&!DE(e)&&!g_(e)}function tT(e,t){var n=eE(GE(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var nT=Object.create(null),rT=function(){return nT},iT=Object.create(null),oT=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return wk(DE(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return DE(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return IE(e);if(DE(e))return e;var r=n.policies.identify(e)[0];if(r){var i=IE(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return ib({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Uk.call(this.data,e)){var n=this.data[e];if(n&&Uk.call(n,t))return n[t]}return"__typename"===t&&Uk.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof lT?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Uk.call(this.data,e)?this.data[e]:this instanceof lT?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;DE(e)&&(e=e.__ref),DE(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){Sb("string"==typeof n,2);var a=new k_(dT).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Jk(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof lT||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:nT,INVALIDATE:iT,isReference:DE,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||IE(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var l=Jk(c),u=r[c];if(void 0!==u){var d="function"==typeof t?t:t[c]||t[l];if(d){var p=d===rT?nT:d(wk(u),ib(ib({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(p===iT)n.group.dirty(e,c);else if(p===nT&&(p=void 0),p!==u&&(i[c]=p,o=!0,u=p,!1!==globalThis.__DEV__)){var f=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&Sb.warn(3,e),!0};if(DE(p))f(p);else if(Array.isArray(p))for(var h=!1,m=void 0,g=0,v=p;g0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof lT?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Uk.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof lT;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Uk.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){DE(e)&&(t[e.__ref]=!0),Jb(e)&&Object.keys(e).forEach((function(t){var n=e[t];Jb(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),aT=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?qw():null,this.keyMaker=new cw(a_)},e.prototype.depend=function(e,t){if(this.d){this.d(sT(e,t));var n=Jk(t);n!==t&&this.d(sT(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(sT(e,t),"__exists"===t?"forget":"setDirty")},e}();function sT(e,t){return t+"#"+e}function cT(e,t){pT(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new aT(i))||this;return a.stump=new uT(a),a.storageTrie=new cw(a_),o&&a.replace(o),a}return rb(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(oT||(oT={}));var lT=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return rb(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Y_(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ib(ib({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Uk.call(this.data,t)?ib(ib({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(oT),uT=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new aT(t.group.caching,t.group))||this}return rb(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(lT);function dT(e,t,n){var r=e[n],i=t[n];return Y_(r,i)?r:i}function pT(e){return!!(e instanceof oT&&e.group.caching)}var fT=function(){function e(){this.known=new(s_?WeakSet:Set),this.pool=new cw(a_),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Jb(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Jb(e)){var t=function(e){return Jb(e)?g_(e)?e.slice(0):ib({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Jb(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var l=s.object=Object.create(i);this.known.add(l),a.sorted.forEach((function(e,t){l[e]=o[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function hT(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var mT=function(){function e(e){var t=this;this.knownResults=new(a_?WeakMap:Map),this.config=nk(e,{addTypename:!1!==e.addTypename,canonizeResults:Xk(e)}),this.canon=e.canon||new fT,this.executeSelectionSet=Gw((function(e){var n,r=e.context.canonizeResults,i=hT(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?ib(ib({},o),{result:t.canon.admit(o.result)}):o:(cT(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||mE["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:hT,makeCacheKey:function(e,t,n,r){if(pT(n.store))return n.store.makeCacheKey(e,DE(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Gw((function(e){return cT(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||mE["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(pT(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new fT},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=ib(ib({},KE(QE(n))),o);var d,p=IE(i),f=this.executeSelectionSet({selectionSet:HE(n).selectionSet,objectOrReference:p,enclosingRef:p,context:ib({store:t,query:n,policies:u,variables:o,varString:CE(o),canonizeResults:l},tT(n,this.config.fragments))});if(f.missing&&(d=[new Qk(gT(f.missing),f.missing,n,o)],!s))throw d[0];return{result:f.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(pT(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(DE(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(r,"__typename"),u=[],d=new k_;function p(e,t){var n;return e.missing&&(a=d.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var f=new Set(n.selections);f.forEach((function(e){var n,h;if(e_(e,s))if(qE(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),g=FE(e);void 0===m?q_.added(e)||(a=d.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(DE(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):g_(m)?m.length>0&&(m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g)):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:DE(m)?m:i,context:o}),g)):o.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((h={})[g]=m,h))}else{var v=tE(e,o.lookupFragment);if(!v&&e.kind===yv.Kind.FRAGMENT_SPREAD)throw Ob(10,e.name.value);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(f.add,f)}}));var h={result:E_(u),missing:a},m=o.canonizeResults?this.canon.admit(h):wk(h);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new k_;function c(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:g_(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:DE(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Jb(n)&&(Sb(!DE(n),11,function(e,t){return DE(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function gT(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var vT=Object.create(null);function yT(e){var t=JSON.stringify(e);return vT[t]||(vT[t]=Object.create(null))}function bT(e){var t=yT(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=_T(e,(function(e){var i=TT(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Uk.call(t,e[0])&&(i=TT(t,e,kT)),Sb(void 0!==i,5,e.join("."),t),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function ET(e){var t=yT(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=_T(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return TT(t,e)}else{var a=n.slice(1);if(i&&Uk.call(i,a)){var s=e.slice(0);return s[0]=a,TT(i,s)}}else if(r&&v_(r.directives)){var c=n.slice(1),l=r.directives.find((function(e){return e.name.value===c})),u=l&&$E(l,i);return u&&TT(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function _T(e,t){var n=new k_;return wT(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function wT(e){var t=yT(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){g_(t)?(wT(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),g_(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function kT(e,t){return e[t]}function TT(e,t,n){return n=n||kT,ST(t.reduce((function e(t,r){return g_(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function ST(e){return Jb(e)?g_(e)?e.map(ST):_T(Object.keys(e).sort(),(function(t){return TT(e,t)})):e}function OT(e){return void 0!==e.args?e.args:e.field?$E(e.field,e.variables):null}var xT=function(){},CT=function(e,t){return t.fieldName},NT=function(e,t,n){return(0,n.mergeObjects)(e,t)},AT=function(e,t){return t},IT=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ib({dataIdFromObject:Kk},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o,a=t&&t.storeObject||e,s=ib(ib({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=LT(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;return Sk.withValue(!0,(function(){for(;l;){var t=l(ib(ib({},e),a),s);if(!g_(t)){o=t;break}l=bT(t)}})),o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=ob(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Uk.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?NT:!1===t?AT:e.merge}a(r,t.merge),r.keyFn=!1===i?xT:g_(i)?bT(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=!1===s?CT:g_(s)?ET(s):"function"==typeof s?s:r.keyFn,"function"==typeof c&&(r.read=c),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||CT)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(Sb(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Yk);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Uk.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=ob(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),u=!1,d=0;d1?o:t}:(r=ib({},i),Uk.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&Sb.warn(8,kb(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function PT(e){return function(t,n){if(g_(t)||g_(n))throw Ob(9);if(Jb(t)&&Jb(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(DE(t)&&eT(n))return e.merge(t.__ref,n),t;if(eT(t)&&DE(n))return e.merge(t,n.__ref),n;if(eT(t)&&eT(n))return ib(ib({},t),n)}return n}}function jT(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:ib(ib({},e),{clientOnly:t,deferred:n})),i}var RT=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=zE(r),l=new k_;a=ib(ib({},KE(c)),a);var u=ib(ib({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:CE(a)},tT(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!DE(d))throw Ob(12,i);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=IE(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,u);if(DE(c))return;i=c}if(!1!==globalThis.__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)})),Object.keys(i).forEach((function(e){(function(e){return!0===l[Jk(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!DE(o)&&!Y_(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Jk(n),l="".concat(s,".").concat(c);if(!zT.has(l)){zT.add(l);var u=[];g_(o)||g_(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)})),!1!==globalThis.__DEV__&&Sb.warn(15,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,ib({},o),ib({},a))}}}}(s,i,e,u.store)}))}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||ME(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof l&&(c.__typename=l);var u=function(){var e=LT(arguments,c,o.variables);if(DE(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(ib(ib({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},d=new Set;this.flattenFields(i,r,o,l).forEach((function(e,n){var i,o=FE(n),p=r[o];if(d.add(n),void 0!==p){var f=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),h=FT(a,f),m=t.processFieldValue(p,n,n.selectionSet?jT(e,!1,!1):e,h),g=void 0;n.selectionSet&&(DE(m)||eT(m))&&(g=u("__typename",m));var v=s.getMergeFunction(l,n.name.value,g);v?h.info={field:n,typename:l,merge:v}:VT(a,f),c=e.merge(c,((i={})[f]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||q_.added(n)||s.getReadFunction(l,n.name.value)||!1!==globalThis.__DEV__&&Sb.error(13,FE(n),r)}));try{var p=s.identify(r,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),f=p[0],h=p[1];n=n||f,h&&(c=o.merge(c,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=IE(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0)return m;if(g.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var v=o.incomingById.get(n);return v?(v.storeObject=o.merge(v.storeObject,c),v.mergeTree=MT(v.mergeTree,a),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:c,mergeTree:qT(a)?void 0:a,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?g_(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,FT(r,o));return VT(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?ik(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=ME(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new cw(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(a){if(e_(a,n.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!v_(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=$E(e,n.variables);r&&!1===r.if||(l=!0)}})),qE(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,jT(n,s,l))}else{var d=tE(a,n.lookupFragment);if(!d&&a.kind===yv.Kind.FRAGMENT_SPREAD)throw Ob(14,a.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,jT(n,s,l))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!DE(n)){var s,c=g_(n)||!DE(t)&&!eT(t)?void 0:t,l=n;c&&!i&&(i=[DE(c)?c.__ref:c]);var u=function(e,t){return g_(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(c,t),o=u(l,t);if(void 0!==o){i&&i.push(t);var d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),i&&Sb(i.pop()===t)}})),s&&(n=g_(l)?l.slice(0):ib({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),$T=[];function FT(e,t){var n=e.map;return n.has(t)||n.set(t,$T.pop()||{map:new Map}),n.get(t)}function MT(e,t){if(e===t||!t||qT(t))return e;if(!e||qT(e))return t;var n=e.info&&t.info?ib(ib({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,MT(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,MT(t.map.get(n),e.map.get(n)))}))}return i}function qT(e){return!e||!(e.info||e.map.size)}function VT(e,t){var n=e.map,r=n.get(t);r&&qT(r)&&($T.push(r),n.delete(t))}var zT=new Set,BT=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new Uw(q_),n.assumeImmutableResults=!0,n.makeVar=Mk,n.txCount=0,n.config=function(e){return nk(Wk,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new IT({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return rb(t,e),t.prototype.init=function(){var e=this.data=new oT.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new RT(this,this.storeReader=new mT({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Xk(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=Gw((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize||mE["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(pT(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,CE({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(ib(ib({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Qk)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Uk.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(ib(ib({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||$k(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Fk(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;CE.reset(),I_.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(DE(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&Sb.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Uk.call(e,"id"))return!1;e=ib(ib({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),CE.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Fk(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return s&&!this.txCount&&this.broadcastWatches(ib(ib({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(ib(ib({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Y_(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Gk);!1!==globalThis.__DEV__&&(BT.prototype.getMemoryInternals=bE);const GT=e=>new Bk({uri:e,connectToDevTools:!0,cache:new BT({})});var QT=new Map,UT=new Map,HT=!0,KT=!1;function WT(e){return e.replace(/[\s,]+/g," ").trim()}function XT(e){var t,n,r,i=WT(e);if(!QT.has(i)){var o=(0,yv.parse)(e,{experimentalFragmentVariables:KT,allowLegacyFragmentVariables:KT});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");QT.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=o,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=WT((a=e.loc).source.body.substring(a.start,a.end)),o=UT.get(t);o&&!o.has(i)?HT&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||UT.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a})),ib(ib({},t),{definitions:r}))))}return QT.get(i)}function YT(e){for(var t=[],n=1;n{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:a}=e,[s,l]=(0,o.useState)(!0);return(0,r.createElement)(kS,{id:"graphiql-router-sider","data-testid":"graphiql-router-sider",className:"graphiql-app-screen-sider",collapsible:!0,defaultCollapsed:s,collapsed:s,trigger:(0,r.createElement)("span",{"data-testid":"router-menu-collapse-trigger"},s?(0,r.createElement)(ze,null):(0,r.createElement)(Ue,null)),onCollapse:()=>{l(!s)}},(0,r.createElement)(iu,{theme:"dark",mode:"inline",selectedKeys:i,activeKey:i,items:(()=>{let e=[];return a&&a.map((r=>{e.push({"data-testid":`router-menu-item-${r.id}`,id:`router-menu-item-${r.id}`,key:r.id,icon:r.icon,onClick:()=>{(e=>{n(e),t({screen:e})})(r.id)},label:r.title})})),e})()}))},CS=(_S={screen:(LS=sm,AS="graphiql",void 0===DS&&(DS=!0),am(am({},LS),{decode:function(){for(var e=[],t=0;t{const[t,n]=Sm({screen:sm}),{endpoint:i,schema:a,setSchema:s,setSchemaLoading:l}=ES(),{screen:c}=t,[u,p]=(0,o.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,r.createElement)(je,null),render:()=>(0,r.createElement)(wy,null)},{id:"help",title:"Help",icon:(0,r.createElement)(Ve,null),render:()=>(0,r.createElement)(om,null)}],t=Lp.J.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,o.useEffect)((()=>{if(null!==a)return;const e=TS();l(!0),cS(i).query({query:bS` +`,sS=e=>{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:a}=e,[s,c]=(0,o.useState)(!0);return(0,r.createElement)(oS,{id:"graphiql-router-sider","data-testid":"graphiql-router-sider",className:"graphiql-app-screen-sider",collapsible:!0,defaultCollapsed:s,collapsed:s,trigger:(0,r.createElement)("span",{"data-testid":"router-menu-collapse-trigger"},s?(0,r.createElement)(Ue,null):(0,r.createElement)(We,null)),onCollapse:()=>{c(!s)}},(0,r.createElement)(Dd,{theme:"dark",mode:"inline",selectedKeys:i,activeKey:i,items:(()=>{let e=[];return a&&a.map((r=>{e.push({"data-testid":`router-menu-item-${r.id}`,id:`router-menu-item-${r.id}`,key:r.id,icon:r.icon,onClick:()=>{(e=>{n(e),t({screen:e})})(r.id)},label:r.title})})),e})()}))},cS=(lS={screen:(pS=Bg,fS="graphiql",void 0===hS&&(hS=!0),zg(zg({},pS),{decode:function(){for(var e=[],t=0;t{const[t,n]=ov({screen:Bg}),{endpoint:i,schema:a,setSchema:s,setSchemaLoading:c}=tS(),{screen:l}=t,[u,d]=(0,o.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,r.createElement)(qe,null),render:()=>(0,r.createElement)(tb,null)},{id:"help",title:"Help",icon:(0,r.createElement)(Be,null),render:()=>(0,r.createElement)(Vg,null)}],t=sf.J.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,o.useEffect)((()=>{if(null!==a)return;const e=rS();c(!0),GT(i).query({query:eS` ${e} - `}).then((e=>{const t=e?.data?SS(e.data):null;t!==a&&s(t),l(!1)}),(e=>{console.error(`Failure running getIntrospectionQuery: ${JSON.stringify(e,null,2)}`),l(!1)}))}),[i]);const[d,f]=(0,o.useState)((()=>{const e=u&&u.find((e=>e.id===c));return e?e.id:"graphiql"})());return d?(0,r.createElement)(OS,{"data-testid":"graphiql-router"},(0,r.createElement)(ki,{style:{height:"calc(100vh - 32px)",width:"100%"}},(0,r.createElement)(xS,{setQueryParams:n,setCurrentScreen:f,currentScreen:d,screens:u}),(0,r.createElement)(ki,{className:"screen-layout",style:{background:"#fff"}},(e=>{const t=null!==(n=u.find((e=>e.id===d)))&&void 0!==n?n:u[0];var n;return t?(0,r.createElement)(ki,{className:"router-screen","data-testid":`router-screen-${t.id}`},t?.render(e)):null})(e)))):null}).displayName||NS.name||"Component")+")",IS);var _S,NS,IS,LS,AS,DS,PS=n(4291),RS=fE?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",MS=function(e){var t,n=e.client,i=e.children,o=((t=r.createContext[RS])||(Object.defineProperty(r.createContext,RS,{value:t=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t);return r.createElement(o.Consumer,null,(function(e){return void 0===e&&(e={}),n&&e.client!==n&&(e=Object.assign({},e,{client:n})),__DEV__?Dy(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):Dy(e.client,26),r.createElement(o.Provider,{value:e},i)}))};const{hooks:jS,AppContextProvider:FS,useAppContext:$S}=window.wpGraphiQL,VS=()=>{const e=$S();return jS.applyFilters("graphiql_app",(0,r.createElement)(CS,null),{appContext:e})},BS={push:e=>{history.replaceState(null,null,e.href)},replace:e=>{history.replaceState(null,null,e.href)}};(0,o.render)((0,r.createElement)((()=>{const e=jS.applyFilters("graphiql_query_params_provider_config",{query:sm,variables:sm}),[t,n]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(!t){const e=document.getElementById("graphiql");e&&e.classList.remove("graphiql-container"),jS.doAction("graphiql_rendered"),n(!0)}}),[]),t?(0,r.createElement)(Pm,{history:BS},(0,r.createElement)(Im,{config:e},(e=>{const{query:t,setQuery:n}=e;return(0,r.createElement)(FS,{queryParams:t,setQueryParams:n},(0,r.createElement)(MS,{client:cS((0,PS.yP)())},(0,r.createElement)(VS,null)))}))):null}),null),document.getElementById("graphiql"))},4291:(e,t,n)=>{"use strict";n.d(t,{QG:()=>c,Us:()=>s,yP:()=>l});var r=n(1609),i=n(6087),o=n(3408);const a=(0,i.createContext)(),s=()=>(0,i.useContext)(a),l=()=>{var e;return null!==(e=window?.wpGraphiQLSettings?.graphqlEndpoint)&&void 0!==e?e:null},c=({children:e,setQueryParams:t,queryParams:n})=>{const[s,c]=(0,i.useState)(null),[u,p]=(0,i.useState)(!0),[d,f]=(0,i.useState)(null!==(h=window?.wpGraphiQLSettings?.nonce)&&void 0!==h?h:null);var h;const[m,g]=(0,i.useState)(l()),[v,y]=(0,i.useState)(n);let b={endpoint:m,setEndpoint:g,nonce:d,setNonce:f,schema:s,setSchema:c,schemaLoading:u,setSchemaLoading:p,queryParams:v,setQueryParams:e=>{y(e),t(e)}},E=o.J.applyFilters("graphiql_app_context",b);return(0,r.createElement)(a.Provider,{value:E},e)}},3408:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(3574);const i=window.wp.hooks;var o=n(4291);const a=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:a,useAppContext:o.Us,AppContextProvider:o.QG}},4238:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237));n(9751);var o=n(4919);i.default.registerHelper("hint","graphql",(function(e,t){var n=t.schema;if(n){var r=e.getCursor(),a=e.getTokenAt(r),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new o.Position(r.line,s),c={list:(0,o.getAutocompleteSuggestions)(n,e.getValue(),l,a,t.externalFragments).map((function(e){return{text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})),from:{line:r.line,ch:s},to:{line:r.line,ch:a.end}};return(null==c?void 0:c.list)&&c.list.length>0&&(c.from=i.default.Pos(c.from.line,c.from.ch),c.to=i.default.Pos(c.to.line,c.to.ch),i.default.signal(e,"hasCompletion",e,c,a)),c}}))},8911:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(5549),o=r(n(5237)),a=r(n(5385)),s=n(7957);function l(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"";"__"!==i.slice(0,2)&&(p(e,t,n,t.parentType),f(e,".")),f(e,i,"field-name",n,(0,s.getFieldReference)(t))}function c(e,t,n){var r;f(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,(0,s.getDirectiveReference)(t))}function u(e,t,n,r){f(e,": "),p(e,t,n,r)}function p(e,t,n,r){r instanceof i.GraphQLNonNull?(p(e,t,n,r.ofType),f(e,"!")):r instanceof i.GraphQLList?(f(e,"["),p(e,t,n,r.ofType),f(e,"]")):f(e,(null==r?void 0:r.name)||"","type-name",n,(0,s.getTypeReference)(t,r))}function d(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function f(e,t,n,r,i){if(void 0===n&&(n=""),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement("a")).href="javascript:void 0",a.addEventListener("click",(function(e){o(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(9654),o.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,o=r.step,h=(0,a.default)(t.schema,e.state);return"Field"===i&&0===o&&h.fieldDef||"AliasedField"===i&&2===o&&h.fieldDef?(function(e,t,n){l(e,t,n),u(e,t,n,t.type)}(n=document.createElement("div"),h,t),d(n,t,h.fieldDef),n):"Directive"===i&&1===o&&h.directiveDef?(c(n=document.createElement("div"),h,t),d(n,t,h.directiveDef),n):"Argument"===i&&0===o&&h.argDef?(function(e,t,n){var r;t.directiveDef?c(e,t,n):t.fieldDef&&l(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||"";f(e,"("),f(e,i,"arg-name",n,(0,s.getArgumentReference)(t)),u(e,t,n,t.inputType),f(e,")")}(n=document.createElement("div"),h,t),d(n,t,h.argDef),n):"EnumValue"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";p(e,t,n,t.inputType),f(e,"."),f(e,i,"enum-value",n,(0,s.getEnumValueReference)(t))}(n=document.createElement("div"),h,t),d(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(p(n=document.createElement("div"),h,t,h.type),d(n,t,h.type),n):void 0}}))},5391:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237)),o=r(n(5385)),a=n(7957);n(6862),i.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,i=n.step,s=(0,o.default)(t.schema,n);return"Field"===r&&0===i&&s.fieldDef||"AliasedField"===r&&2===i&&s.fieldDef?(0,a.getFieldReference)(s):"Directive"===r&&1===i&&s.directiveDef?(0,a.getDirectiveReference)(s):"Argument"===r&&0===i&&s.argDef?(0,a.getArgumentReference)(s):"EnumValue"===r&&s.enumValue?(0,a.getEnumValueReference)(s):"NamedType"===r&&s.type?(0,a.getTypeReference)(s):void 0}}))},7418:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237)),o=n(4919),a=["error","warning","information","hint"],s={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};i.default.registerHelper("lint","graphql",(function(e,t){var n=t.schema;return(0,o.getDiagnostics)(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?a[e.severity-1]:a[0],type:e.source?s[e.source]:void 0,from:i.default.Pos(e.range.start.line,e.range.start.character),to:i.default.Pos(e.range.end.line,e.range.end.character)}}))}))},4884:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237)),o=r(n(5));i.default.defineMode("graphql",o.default)},9263:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237)),o=n(4919);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-results",(function(e){var t=(0,o.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,o.p)("{"),(0,o.list)("Entry",(0,o.p)(",")),(0,o.p)("}")],Entry:[(0,o.t)("String","def"),(0,o.p)(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.list)("Value",(0,o.p)(",")),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField",(0,o.p)(",")),(0,o.p)("}")],ObjectField:[(0,o.t)("String","property"),(0,o.p)(":"),"Value"]}},7957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var r=n(5549);function i(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,r.getNamedType)(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}},9858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},5385:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(5549),o=n(8364),a=r(n(9858));function s(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)?o.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,a.default)(t,(function(t){var r,o;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?s(e,n.parentType,t.name):null,n.type=null===(r=n.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":n.parentType=n.type?(0,i.getNamedType)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var l=0;l{"use strict";function n(e,t){var n=e.filter(t);return 0===n.length?e:n}function r(e){return e.toLowerCase().replace(/\W/g,"")}function i(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){var a=function(e,t){return t?n(n(e.map((function(e){return{proximity:i(r(e.text),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry})):n(e,(function(e){return!e.isDeprecated}))}(o,r(t.string));if(a){var s=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,ch:s},to:{line:e.line,ch:t.end}}}}},9654:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237));function o(e,t){var n=e.state.info,r=t.target||t.srcElement;if(r instanceof HTMLElement&&"SPAN"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,c)},s=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,r,e,n);s&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var o=r.getBoundingClientRect(),a=window.getComputedStyle(r),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),l=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),c=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-l),c<0&&(c=t.bottom);var u,p=Math.max(0,window.innerWidth-s-15);p>t.left&&(p=t.left),r.style.opacity="1",r.style.top=c+"px",r.style.left=p+"px";var d=function(){clearTimeout(u)},f=function(){clearTimeout(u),u=setTimeout(h,200)},h=function(){i.default.off(r,"mouseover",d),i.default.off(r,"mouseout",f),i.default.off(e.getWrapperElement(),"mouseout",f),r.style.opacity?(r.style.opacity="0",setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),600)):r.parentNode&&r.parentNode.removeChild(r)};i.default.on(r,"mouseover",d),i.default.on(r,"mouseout",f),i.default.on(e.getWrapperElement(),"mouseout",f)}(e,t,s)}}}(e,o)},c=function(e){var t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}(e);n.hoverTimeout=setTimeout(l,c),i.default.on(document,"mousemove",a),i.default.on(e.getWrapperElement(),"mouseout",s)}}i.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=o.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))},7640:function(e,t){"use strict";var n,r,i,o,a,s,l,c,u=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});function p(){var e=o,t=[];if(m("{"),!y("}")){do{t.push(d())}while(y(","));m("}")}return{kind:"Object",start:e,end:s,members:t}}function d(){var e=o,t="String"===c?h():null;m("String"),m(":");var n=f();return{kind:"Member",start:e,end:s,key:t,value:n}}function f(){switch(c){case"[":return function(){var e=o,t=[];if(m("["),!y("]")){do{t.push(f())}while(y(","));m("]")}return{kind:"Array",start:e,end:s,values:t}}();case"{":return p();case"String":case"Number":case"Boolean":case"Null":var e=h();return E(),e}m("Value")}function h(){return{kind:c,start:o,end:a,value:JSON.parse(r.slice(o,a))}}function m(e){if(c!==e){var t;if("EOF"===c)t="[end of file]";else if(a-o>1)t="`"+r.slice(o,a)+"`";else{var n=r.slice(o).match(/^.+?\b/);t="`"+(n?n[0]:r[o])+"`"}throw v("Expected ".concat(e," but found ").concat(t,"."))}E()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSONSyntaxError=void 0,t.default=function(e){r=e,i=e.length,o=a=s=-1,b(),E();var t=p();return m("EOF"),t};var g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.position=n,r}return u(t,e),t}(Error);function v(e){return new g(e,{start:o,end:a})}function y(e){if(c===e)return E(),!0}function b(){return a31;)if(92===l)switch(l=b()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:b();break;case 117:b(),w(),w(),w(),w();break;default:throw v("Bad character escape sequence.")}else{if(a===i)throw v("Unterminated string.");b()}if(34!==l)throw v("Unterminated string.");b()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c="Number",45===l&&b(),48===l?b():T(),46===l&&(b(),T()),void(69!==l&&101!==l||(43!==(l=b())&&45!==l||b(),T()));case 102:if("false"!==r.slice(o,o+5))break;return a+=4,b(),void(c="Boolean");case 110:if("null"!==r.slice(o,o+4))break;return a+=3,b(),void(c="Null");case 116:if("true"!==r.slice(o,o+4))break;return a+=3,b(),void(c="Boolean")}c=r[o],b()}else c="EOF"}function w(){if(l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102)return b();throw v("Expected hexadecimal digit.")}function T(){if(l<48||l>57)throw v("Expected decimal digit.");do{b()}while(l>=48&&l<=57)}t.JSONSyntaxError=g},6862:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237));function o(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null==n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&c(e)}}function a(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&u(e):e.state.jump.cursor=null}function s(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(l?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&c(e);var n=function(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&u(e),i.default.off(document,"keyup",n),i.default.off(document,"click",r),e.off("mousedown",o))},r=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};i.default.on(document,"keyup",n),i.default.on(document,"click",r),e.on("mousedown",o)}}i.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.jump.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r);var l=e.state.jump.onMouseOut;i.default.off(e.getWrapperElement(),"mouseout",l),i.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var c=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:a.bind(null,e),onKeyDown:s.bind(null,e)};i.default.on(e.getWrapperElement(),"mouseover",c.onMouseOver),i.default.on(e.getWrapperElement(),"mouseout",c.onMouseOut),i.default.on(document,"keydown",c.onKeyDown)}}));var l="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function c(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function u(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},5:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(4919),o=r(n(3405));t.default=function(e){var t=(0,i.onlineParser)({eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}},3405:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}},1256:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237)),o=n(5549),a=r(n(9858)),s=r(n(364));i.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),l=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,i=r.kind,l=r.step;if("Document"===i&&0===l)return(0,s.default)(e,t,[{text:"{"}]);var c=n.variableToType;if(c){var u=function(e,t){var n={type:null,fields:null};return(0,a.default)(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?(0,o.getNullableType)(n.type):void 0;n.type=r instanceof o.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var i=n.type?(0,o.getNamedType)(n.type):void 0;n.fields=i instanceof o.GraphQLInputObjectType?i.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=null==a?void 0:a.type}})),n}(c,t.state);if("Document"===i||"Variable"===i&&0===l){var p=Object.keys(c);return(0,s.default)(e,t,p.map((function(e){return{text:'"'.concat(e,'": '),type:c[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===l)&&u.fields){var d=Object.keys(u.fields).map((function(e){return u.fields[e]}));return(0,s.default)(e,t,d.map((function(e){return{text:'"'.concat(e.name,'": '),type:e.type,description:e.description}})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===l||"ObjectField"===i&&2===l||"Variable"===i&&2===l){var f=u.type?(0,o.getNamedType)(u.type):void 0;if(f instanceof o.GraphQLInputObjectType)return(0,s.default)(e,t,[{text:"{"}]);if(f instanceof o.GraphQLEnumType){var h=f.getValues();return(0,s.default)(e,t,h.map((function(e){return{text:'"'.concat(e.name,'"'),type:f,description:e.description}})))}if(f===o.GraphQLBoolean)return(0,s.default)(e,t,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}}(n,r,t);return(null==l?void 0:l.list)&&l.list.length>0&&(l.from=i.default.Pos(l.from.line,l.from.ch),l.to=i.default.Pos(l.to.line,l.to.ch),i.default.signal(e,"hasCompletion",e,l,r)),l}))},8116:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(5237)),c=n(5549),u=o(n(7640));function p(e,t){if(!e||!t)return[];if(e instanceof c.GraphQLNonNull)return"Null"===t.kind?[[t,'Type "'.concat(e,'" is non-nullable and cannot be null.')]]:p(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof c.GraphQLList){var n=e.ofType;return"Array"===t.kind?f(t.values||[],(function(e){return p(n,e)})):p(n,t)}if(e instanceof c.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,'Type "'.concat(e,'" must be an Object.')]];var r=Object.create(null),i=f(t.members,(function(t){var n,i=null===(n=null==t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;var o=e.getFields()[i];return o?p(o?o.type:void 0,t.value):[[t.key,'Type "'.concat(e,'" does not have a field "').concat(i,'".')]]}));return Object.keys(e.getFields()).forEach((function(n){r[n]||e.getFields()[n].type instanceof c.GraphQLNonNull&&i.push([t,'Object of type "'.concat(e,'" is missing required field "').concat(n,'".')])})),i}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof c.GraphQLEnumType||e instanceof c.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(o=e.parseValue(t.value))||o!=o)?[[t,'Expected value of type "'.concat(e,'".')]]:[];var o}function d(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function f(e,t){return Array.prototype.concat.apply([],e.map(t))}l.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var r;try{r=(0,u.default)(e)}catch(e){if(e instanceof u.JSONSyntaxError)return[d(n,e.position,e.message)];throw e}var i=t.variableToType;return i?function(e,t,n){var r=[];return n.members.forEach((function(n){var i;if(n){var o=null===(i=n.key)||void 0===i?void 0:i.value,s=t[o];s?p(s,n.value).forEach((function(t){var n=a(t,2),i=n[0],o=n[1];r.push(d(e,i,o))})):r.push(d(e,n.key,'Variable "$'.concat(o,'" does not appear in any GraphQL query.')))}})),r}(n,i,r):[]}))},9886:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5237)),o=n(4919);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-variables",(function(e){var t=(0,o.onlineParser)({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,o.p)("{"),(0,o.list)("Variable",(0,o.opt)((0,o.p)(","))),(0,o.p)("}")],Variable:[c("variable"),(0,o.p)(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.list)("Value",(0,o.opt)((0,o.p)(","))),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField",(0,o.opt)((0,o.p)(","))),(0,o.p)("}")],ObjectField:[c("attribute"),(0,o.p)(":"),"Value"]};function c(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},7829:(e,t,n)=>{!function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),c=o[s].to();l.line>=i||(c.line>=i&&(c=r(i,0)),i=l.line,null==a?n.uncomment(l,c,e)?a="un":(n.lineComment(l,c,e),a="line"):"un"==a?n.uncomment(l,c,e):n.lineComment(l,c,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var l,c,u=this,p=a(u,e),d=u.getLine(e.line);if(null!=d&&(l=e,c=d,!/\bstring\b/.test(u.getTokenTypeAt(r(l.line,0)))||/^[\'\"\`]/.test(c))){var f=s.lineComment||p.lineComment;if(f){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;u.operation((function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;id||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(d));l.replaceRange(f+p,r(d)),l.replaceRange(u+f,r(e.line,0));var a=s.blockCommentLead||c.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=d;++h)(h!=d||t)&&l.replaceRange(a+f,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(p,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(u,e)}}))}}else(s.lineComment||c.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,l=this,c=a(l,e),u=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),p=Math.min(e.line,u),d=o.lineComment||c.lineComment,f=[],h=null==o.padding?" ":o.padding;e:if(d){for(var m=p;m<=u;++m){var g=l.getLine(m),v=g.indexOf(d);if(v>-1&&!/comment/.test(l.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;f.push(g)}if(l.operation((function(){for(var e=p;e<=u;++e){var t=f[e-p],n=t.indexOf(d),i=n+d.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var y=o.blockCommentStart||c.blockCommentStart,b=o.blockCommentEnd||c.blockCommentEnd;if(!y||!b)return!1;var E=o.blockCommentLead||c.blockCommentLead,w=l.getLine(p),T=w.indexOf(y);if(-1==T)return!1;var S=u==p?w:l.getLine(u),k=S.indexOf(b,u==p?T+y.length:0),O=r(p,T+1),x=r(u,k+1);if(-1==k||!/comment/.test(l.getTokenTypeAt(O))||!/comment/.test(l.getTokenTypeAt(x))||l.getRange(O,x,"\n").indexOf(b)>-1)return!1;var C=w.lastIndexOf(y,e.ch),_=-1==C?-1:w.slice(0,e.ch).indexOf(b,C+y.length);if(-1!=C&&-1!=_&&_+b.length!=e.ch)return!1;_=S.indexOf(b,i.ch);var N=S.slice(i.ch).lastIndexOf(y,_-i.ch);return C=-1==_||-1==N?-1:i.ch+N,(-1==_||-1==C||C==i.ch)&&(l.operation((function(){l.replaceRange("",r(u,k-(h&&S.slice(k-h.length,k)==h?h.length:0)),r(u,k+b.length));var e=T+y.length;if(h&&w.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(p,T),r(p,e)),E)for(var t=p+1;t<=u;++t){var i=l.getLine(t),o=i.indexOf(E);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+E.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(5237))},8527:(e,t,n)=>{!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function c(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",(function(e){o.onInput(e,p.value,c)})),o.onKeyUp&&e.on(p,"keyup",(function(e){o.onKeyUp(e,p.value,c)})),e.on(p,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),c()),13==t.keyCode&&i(p.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){c(),l.focus()})),!1!==o.closeOnBlur&&e.on(u,"blur",c),u.focus()),c})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function p(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var d=0;d{!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l=0;l--){var p=a[l].head;t.replaceRange("",n(p.line,p.ch-1),n(p.line,p.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(i)>=0&&t.getRange(n(w.line,w.ch-2),w)==i+i){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;b="addFour"}else if(m){var S=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(T)||S==i||e.isWordChar(S))return e.Pass;b="both"}else{if(!v||!(0===T.length||/\s/.test(T)||f.indexOf(T)>-1))return e.Pass;b="both"}else b=m&&p(t,w)?"both":h.indexOf(i)>=0&&t.getRange(w,n(w.line,w.ch+3))==i+i+i?"skipThree":"skip";if(d){if(d!=b)return e.Pass}else d=b}var k=u%2?a.charAt(u-1):i,O=u%2?i:a.charAt(u+1);t.operation((function(){if("skip"==d)l(t,1);else if("skipThree"==d)l(t,3);else if("surround"==d){for(var e=t.getSelections(),n=0;n0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function c(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function u(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function p(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(5237))},7923:(e,t,n)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),p=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!p)return null;var d=">"==p.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],p=i(s),d=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),f=t.line;f!=d;f+=o){var h=e.getLine(f);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(f==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(p.test(v)&&(void 0===a||(e.getTokenTypeAt(n(f,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)u.push(v);else{if(!u.length)return{pos:n(f,m),ch:v};u.pop()}}}}}return f-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],c=e.listSelections(),u=0;u{!function(e){"use strict";function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var c=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=c){if(1==l&&ct.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(5237))},8948:(e,t,n)=>{!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),c=l(!1);if(c&&!c.cleared&&"unfold"!==o){var u=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,c);e.on(u,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,c.from,c.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n{!function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",u),t.off("viewportChange",p),t.off("fold",d),t.off("unfold",d),t.off("swapDoc",u),t.off("optionChange",c)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",u),t.on("viewportChange",p),t.on("fold",d),t.on("unfold",d),t.on("swapDoc",u),t.on("optionChange",c))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i=c){if(d&&a&&d.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e,t){"mode"==t&&u(e)}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function p(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function d(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r{!function(e){"use strict";var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in c)i[o]=c[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;iu.clientHeight+1;if(setTimeout((function(){N=s.getScrollInfo()})),I.bottom-_>0){var A=I.bottom-I.top,D=I.top-(y.bottom-y.top)-2;_-I.topD&&(u.style.height=(A=D)+"px"),u.style.top=(E=y.top-A)+S+"px",w=!1):u.style.height=_-I.top-2+"px"}var P,R=I.right-C;if(L&&(R+=s.display.nativeBarWidth),R>0&&(I.right-I.left>C&&(u.style.width=C-5+"px",R-=I.right-I.left-C),u.style.left=(b=Math.max(y.left-R-T,0))+"px"),L)for(var M=u.firstChild;M;M=M.nextSibling)M.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:d.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){P=setTimeout((function(){n.close()}),100)}),s.on("focus",this.onFocus=function(){clearTimeout(P)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();N||(N=s.getScrollInfo());var r=E+N.top-e.top,i=r-(c.pageYOffset||(l.documentElement||l.body).scrollTop);if(w||(i+=u.offsetHeight),i<=t.top||i>=t.bottom)return n.close();u.style.top=r+"px",u.style.left=b+N.left-e.left+"px"}),e.on(u,"dblclick",(function(e){var t=a(u,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(u,"click",(function(e){var t=a(u,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())})),e.on(u,"mousedown",(function(){setTimeout((function(){s.focus()}),20)}));var j=this.getSelectedHintRange();return 0===j.from&&0===j.to||this.scrollToActive(),e.signal(r,"select",d[this.selectedHint],u.childNodes[this.selectedHint]),!0}function l(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+t,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n(5237))},1561:(e,t,n)=>{!function(e){"use strict";var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(e){e.parentNode&&e.parentNode.removeChild(e)}function i(t,n,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,n,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&r(t),t.style.opacity=0,setTimeout((function(){r(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(o,"mouseout",s)}function o(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},a)this.options[r]=a[r];for(var r in t)a.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),o=(r.left+r.right)/2,a=(r.top+r.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],u=0;u1,u.tooltips)),u.highlightLines&&e.addLineClass(d,"wrap",n+h)}}u.onUpdateLinting&&u.onUpdateLinting(r,p,e)}}function d(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){u(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,r,i){if(i&&i!=e.Init&&(s(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",d),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var a=n.getOption("gutters"),l=!1,c=0;c{!function(e){"use strict";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(5237),n(8527))},6895:(e,t,n)=>{!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function c(t,r,i,a){var s=n(t);if(s.query)return u(t,r);var c=t.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),u(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(e)},onKeyDown:i,bottom:e.options.search.bottom})})(t,f(t),c,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&c&&(l(t,s,c),u(t,r))}else o(t,f(t),"Search for:",c,(function(e){e&&!s.query&&t.operation((function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),u(t,r)}))}))}function u(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function p(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function d(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i{!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;iu);p++){var d=e.getLine(c++);s=null==s?d:s+"\n"+d}l*=2,t.lastIndex=n.ch;var f=t.exec(s);if(f){var h=s.slice(0,f.index).split("\n"),m=f[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:f}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var c=e.getLine(o),u=l(c,t,a<0?0:c.length-a);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function u(e,t,n){if(!o(t))return c(e,t,n);t=i(t,"gm");for(var a,s=1,u=e.getLine(n.line).length-n.ch,p=n.line,d=e.firstLine();p>=d;){for(var f=0;f=d;f++){var h=e.getLine(p--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,u);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=p+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function d(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var f=e.getLine(c).slice(u),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=p(f,h,m,s)+u,{from:r(c,p(f,h,m,s)+u),to:r(c,p(f,h,m+l[0].length,s)+u)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v=d;c--,u=-1){var f=e.getLine(c);u>-1&&(f=f.slice(0,u));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(c,p(f,h,m,s)),to:r(c,p(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=c-l.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(5237))},8208:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,p=0;c!=u;c+=i,p++){var d=o.charAt(i<0?c-1:c),f="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==f&&d.toUpperCase()==d&&(f="W"),"start"==s)"o"!=f?(s="in",a=f):l=c+i;else if("in"==s&&a!=f){if("w"==a&&"W"==f&&i<0&&c--,"W"==a&&"w"==f&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var c=r[i[s]];if(!(l&&e.cmpPos(c.head,l)>0)){var u=o(t,c.head);l=u.from,t.replaceRange(n(u.word),u.from,u.to)}}}))}function d(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function f(e,t){var r=d(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,c(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,c(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,e.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}t.replaceRange("",c,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){f(e,!0)},t.findUnderPrevious=function(e){f(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(5237),n(3653),n(7923))},5237:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),p=u&&+u[1],d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),E=/\bCrOS\b/.test(e),w=/win/i.test(t),T=d&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(d=!1,l=!0);var S=b&&(c||d&&(null==T||T<12.11)),k=n||a&&s>=9;function O(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var x,C=function(e,t){var n=e.className,r=O(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function _(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return _(e).appendChild(t)}function I(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?M=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(M=function(e){try{e.select()}catch(e){}});var G=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function Q(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var J=[""];function Z(e){for(;J.length<=e;)J.push(ee(J)+" ");return J[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ie.test(e))}function ae(e,t){return t?!!(t.source.indexOf("\\w")>-1&&oe(e))||t.test(e):oe(e)}function se(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&le.test(e)}function ue(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function fe(e,t,n){var r;de=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var he=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,c="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u=a.length,p=[],d=0;d-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ee(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ke(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Oe(e),xe(e)}function Ne(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Le,Ae,De=function(){if(a&&s<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Le){var t=I("span","​");N(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Le?I("span","​"):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Re(e){if(null!=Ae)return Ae;var t=N(e,document.createTextNode("AخA")),n=x(t,0,1).getBoundingClientRect(),r=x(t,1,2).getBoundingClientRect();return _(e),!(!n||n.left==n.right)&&(Ae=r.right-n.right<3)}var Me,je=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},$e="oncopy"in(Me=I("div"))||(Me.setAttribute("oncopy","return;"),"function"==typeof Me.oncopy),Ve=null;var Be={},qe={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function Ge(e){if("string"==typeof e&&qe.hasOwnProperty(e))e=qe[e];else if(e&&"string"==typeof e.name&&qe.hasOwnProperty(e.name)){var t=qe[e.name];"string"==typeof t&&(t={name:t}),(e=re(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Qe(e,t){t=Ge(t);var n=Be[t.name];if(!n)return Qe(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var i=Ue[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function He(e,t){q(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?at(n,Je(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?at(e.line,t):n<0?at(e.line,0):e}(t,Je(e,t.line).text.length)}function ht(e,t){for(var n=[],r=0;r=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.post},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var mt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,r){var i=[e.state.modeGen],o={};xt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,xt(e,t.text,s.mode,n,(function(e,t){for(var n=l;ce&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Je(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof mt?c.lookAhead:0)<=o.modeFrontier))return s;var u=z(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&Je(r,o-1).stateAfter,s=a?gt.fromSaved(r,a,o):new gt(r,Ye(r.mode),o);return r.iter(o,t,(function(n){Et(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof mt?new gt(e,Ke(e.mode,t.state),n,t.lookAhead):new gt(e,Ke(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t};var St=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Je(a,(t=ft(a,t)).line),c=bt(e,t.line,n),u=new Xe(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&Et(e,t,r,p.pos),p.pos=t.length,l=null):l=Ot(Tt(n,p,r.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c=t:o.to>t);(r||(r=[])).push(new Nt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Ft(n,o.marker)<0)&&(n=o.marker)}return n}function zt(e,t,n,r,i){var o=Je(e,t),a=_t&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?st(c.to,n)>=0:st(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?st(c.from,r)<=0:st(c.from,r)<0)))return!0}}}function Gt(e){for(var t;t=Vt(e);)e=t.find(-1,!0).line;return e}function Qt(e,t){var n=Je(e,t),r=Gt(n);return n==r?t:nt(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!Ht(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return nt(r)+1}function Ht(e,t){var n=_t&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Jt=function(e,t,n){this.text=e,Rt(this,t),this.height=n?n(this):1};function Zt(e){e.parent=null,Pt(e)}Jt.prototype.lineNo=function(){return nt(this)},ke(Jt);var en={},tn={};function nn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?tn:en;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function rn(e,t){var n=L("span",null,null,l?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=an,Re(e.display.measure)&&(a=me(o,e.doc.direction))&&(r.addToken=sn(r.addToken,a)),r.map=[],cn(o,r,yt(e,o,t!=e.display.externalMeasured&&nt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=R(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=R(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ee(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function on(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function an(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ic&&p.from<=c);d++);if(p.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,p.to-c),i,o,null,s,l),o=null,r=r.slice(p.to-c),c=p.to}}}function ln(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function cn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,p,d,f=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",d=null,p=null,v=1/0;for(var y=[],b=void 0,E=0;Eh||T.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,c=""),T.className&&(l+=" "+T.className),T.css&&(s=(s?s+";":"")+T.css),T.startStyle&&w.from==h&&(u+=" "+T.startStyle),T.endStyle&&w.to==v&&(b||(b=[])).push(T.endStyle,w.to),T.title&&((d||(d={})).title=T.title),T.attributes)for(var S in T.attributes)(d||(d={}))[S]=T.attributes[S];T.collapsed&&(!p||Ft(p.marker,T)<0)&&(p=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var k=0;k=f)break;for(var x=Math.min(f,v);;){if(g){var C=h+g.length;if(!p){var _=C>x?g.slice(0,x-h):g;t.addToken(t,_,a?a+l:l,u,h+_.length==v?c:"",s,d)}if(C>=x){g=g.slice(x-h),h=x;break}h=C,u=""}g=i.slice(o,o=n[m++]),a=nn(n[m++],t.cm.options)}}else for(var N=1;Nn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function jn(e,t,n,r){return Vn(e,$n(e,t),n,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=zn(t.map,n,r),l=o.node,c=o.start,u=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&ce(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var f;c>0&&(p=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+pr(e.display),top:h.top,bottom:h.bottom}:qn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c=0&&(n=e[i]).left==n.right;i--);return n}function Qn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=fe(s,l,c),d=de,f=u(l,p,"before"==c);return null!=d&&(f.other=u(l,d,"before"!=c)),f}function tr(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=pr(e.display)*t.ch);var r=Je(e.doc,t.line),i=Wt(r)+In(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function nr(e,t,n,r,i){var o=at(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function rr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return nr(r.first,0,null,-1,-1);var i=rt(r,n),o=r.first+r.size-1;if(i>o)return nr(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var s=sr(e,a,i,t,n),l=qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Je(r,i=c.line)}}function ir(e,t,n,r){r-=Yn(t);var i=t.text.length,o=pe((function(t){return Vn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=pe((function(t){return Vn(e,n,t).top>r}),o,i)}}function or(e,t,n,r){return n||(n=$n(e,t)),ir(e,t,n,Xn(e,t,Vn(e,n,r),"line").top)}function ar(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function sr(e,t,n,r,i){i-=Wt(t);var o=$n(e,t),a=Yn(t),s=0,l=t.text.length,c=!0,u=me(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?cr:lr)(e,t,n,o,u,r,i);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var d,f,h=null,m=null,g=pe((function(t){var n=Vn(e,o,t);return n.top+=a,n.bottom+=a,!!ar(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left=E.bottom?1:0}return nr(n,g=ue(t.text,g,1),f,v,r-d)}function lr(e,t,n,r,i,o,a){var s=pe((function(s){var l=i[s],c=1!=l.level;return ar(er(e,at(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=er(e,at(n,c?l.from:l.to,c?"after":"before"),"line",t,r);ar(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function cr(e,t,n,r,i,o,a){var s=ir(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,p=null,d=0;d=c||f.to<=l)){var h=Vn(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=hm)&&(u=f,p=m)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function ur(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Bn){Bn=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Bn.appendChild(document.createTextNode("x")),Bn.appendChild(I("br"));Bn.appendChild(document.createTextNode("x"))}N(e.measure,Bn);var n=Bn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),_(e.measure),n||1}function pr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=I("span","xxxxxxxxxx"),n=I("pre",[t],"CodeMirror-line-like");N(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function dr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function hr(e){var t=ur(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/pr(e.display)-3);return function(i){if(Ht(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Je(e.doc,c.line).text).length==c.ch){var u=z(l,l.length,e.options.tabSize)-l.length;c=at(c.line,Math.max(0,Math.round((o-An(e.display).left)/pr(e.display))-u))}return c}function vr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)_t&&Qt(e.doc,t)i.viewFrom?Er(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Er(e);else if(t<=i.viewFrom){var o=wr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Er(e)}else if(n>=i.viewTo){var a=wr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Er(e)}else{var s=wr(e,t,t,-1),l=wr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(pn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Er(e)}var c=i.externalMeasured;c&&(n=i.lineN&&t=r.viewTo)){var o=r.view[vr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Q(a,n)&&a.push(n)}}}function Er(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function wr(e,t,n,r){var i,o=vr(e,t),a=e.display.view;if(!_t||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Qt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Tr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(I("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function xr(e,t){return e.top-t.top||e.left-t.left}function Cr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),s=a.left,l=Math.max(r.sizerWidth,Pn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=Je(i,t),d=p.text.length;function f(n,r){return Zn(e,at(t,n),"div",p,r)}function h(t,n,r){var i=or(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=me(p,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?d:r,(function(e,t,i,p){var g="ltr"==i,v=f(e,g?"left":"right"),y=f(t-1,g?"right":"left"),b=null==n&&0==e,E=null==r&&t==d,w=0==p,T=!m||p==m.length-1;if(y.top-v.top<=3){var S=(c?E:b)&&T,k=(c?b:E)&&w?s:(g?v:y).left,O=S?l:(g?y:v).right;u(k,v.top,O-k,v.bottom)}else{var x,C,_,N;g?(x=c&&b&&w?s:v.left,C=c?l:h(e,i,"before"),_=c?s:h(t,i,"after"),N=c&&E&&T?l:y.right):(x=c?h(e,i,"before"):s,C=!c&&b&&w?l:v.right,_=!c&&E&&T?s:y.left,N=c?h(t,i,"after"):l),u(x,v.top,C-x,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Nr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Lr(e))}function Ir(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))}),100)}function Lr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ee(e,"focus",e,t),e.state.focused=!0,P(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),_r(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ee(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Dr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(d/pr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Pr(e){if(e.widgets)for(var t=0;t=a&&(o=rt(t,Wt(Je(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Mr(e,t){var n=e.display,r=ur(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Rn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Ln(n),l=t.tops-r;if(t.topi+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,f=Pn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function jr(e,t){null!=t&&(Vr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fr(e){Vr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $r(e,t,n){null==t&&null==n||Vr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Vr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Br(e,tr(e,t.from),tr(e,t.to),t.margin))}function Br(e,t,n,r){var i=Mr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});$r(e,i.scrollLeft,i.scrollTop)}function qr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||mi(e,{top:t}),zr(e,t,!0),n&&mi(e),ui(e,100))}function zr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Gr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Qr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ln(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Dn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ve(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new G,this.disableVert=new G},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Hr=function(){};function Kr(e,t){t||(t=Qr(e));var n=e.display.barWidth,r=e.display.barHeight;Wr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Dr(e),Wr(e,Qr(e)),n=e.display.barWidth,r=e.display.barHeight}function Wr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Yr={native:Ur,null:Hr};function Xr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Yr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Gr(e,t):qr(e,t)}),e),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)}var Jr=0;function Zr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Jr,markArrays:null},t=e.curOp,dn?dn.ops.push(t):t.ownsGroup=dn={ops:[t],delayedCallbacks:[]}}function ei(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new di(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ni(e){e.updatedDisplay=e.mustUpdate&&fi(e.cm,e.update)}function ri(e){var t=e.cm,n=t.display;e.updatedDisplay&&Dr(t),e.barMeasure=Qr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=jn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Dn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ii(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=I("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-In(e.display))+"px;\n height: "+(t.bottom-t.top+Dn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?at(t.line,t.ch+1,"before"):t,t=t.ch?at(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=er(e,t),l=n&&n!=t?er(e,n):s,c=Mr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(qr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Gr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!p&&dn)return ui(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ai(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Tr(e))return!1;bi(e)&&(Er(e),t.dims=dr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),_t&&(o=Qt(e.doc,o),a=Ut(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=pn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=pn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,vr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Wt(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=Tr(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=D(F(e));if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=V(e).getSelection();r.anchorNode&&r.extend&&A(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,p=0;p-1&&(f=!1),gn(e,d,u,n)),f&&(_(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ot(e.options,u)))),a=d.node.nextSibling}else{var h=Sn(e,d,u,n);o.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=D($(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&A(document.body,e.anchorNode)&&A(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(u),_(n.cursorDiv),_(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ui(e,400)),n.updateLineNumbers=null,!0}function hi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Pn(e))r&&(t.visible=Rr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ln(e.display)-Rn(e),n.top)}),t.visible=Rr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!fi(e,t))break;Dr(e);var i=Qr(e);Sr(e),Kr(e,i),vi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function mi(e,t){var n=new di(e,t);if(fi(e,n)){Dr(e),hi(e,n);var r=Qr(e);Sr(e),Kr(e,r),vi(e,r),n.finish()}}function gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hn(e,"gutterChanged",e)}function vi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Dn(e)+"px"}function yi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=fr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ei(i.gutters,i.lineNumbers),wi(o),r.init(o)}di.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},di.prototype.finish=function(){for(var e=0;ec.clientWidth,h=c.scrollHeight>c.clientHeight;if(i&&f||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=c;m=m.parentNode)for(var v=0;v=0&&st(e,r.to())<=0)return n}return-1};var Ii=function(e,t){this.anchor=e,this.head=t};function Li(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return st(e.from(),t.from())})),n=Q(t,i);for(var o=1;o0:l>=0){var c=pt(s.from(),a.from()),u=ut(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ii(p?u:c,p?c:u))}}return new Ni(t,n)}function Ai(e,t){return new Ni([new Ii(e,t||e)],0)}function Di(e){return e.text?at(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Pi(e,t){if(st(e,t.from)<0)return e;if(st(e,t.to)<=0)return Di(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Di(t).ch-t.to.ch),at(n,r)}function Ri(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}hn(e,"change",e,t)}function Bi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ui(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}(i,i.lastOp==r)))a=ee(o.changes),0==st(t.from,t.to)&&0==st(t.from,a.to)?a.to=Di(t):o.changes.push(Qi(e,t));else{var l=ee(i.done);for(l&&l.ranges||Wi(e.sel,i.done),o={changes:[Qi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ee(e,"historyAdded")}function Ki(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:Wi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ui(i.undone)}function Wi(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Yi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Xi(e){if(!e)return null;for(var t,n=0;n-1&&(ee(s)[p]=c[p],delete c[p])}}}return r}function eo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=st(t,i)<0;o!=st(n,i)<0?(i=t,t=n):o!=st(t,n)<0&&(t=n)}return new Ii(i,t)}return new Ii(n||t,t)}function to(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),ao(e,new Ni([eo(e.sel.primary(),t,n,i)],0),r)}function no(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(Ee(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(p=ho(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=st(p,n))&&(r<0?d<0:d>0))return po(e,p,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=ho(e,f,r,f.line==t.line?o:null)),f?po(e,f,t,r,i):null}}return t}function fo(e,t,n,r,i){var o=r||1;return po(e,t,n,o,i)||!i&&po(e,t,n,o,!0)||po(e,t,n,-o,i)||!i&&po(e,t,n,-o,!0)||(e.cantEdit=!0,at(e.first,0))}function ho(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,at(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line0)){var u=[l,1],p=st(c.from,s.from),d=st(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)yo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else yo(e,t)}}function yo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=st(t.from,t.to)){var n=Ri(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),wo(e,t,n,At(e,t));var r=[];Bi(e,(function(e,n){n||-1!=Q(r,e.history)||(Oo(e.history,t),r.push(e.history)),wo(e,t,null,At(e,t))}))}}function bo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c=0;--f){var h=d(f);if(h)return h.v}}}}function Eo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ni(te(e.sel.ranges,(function(e){return new Ii(at(e.anchor.line+t,e.anchor.ch),at(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){yr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:at(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=Ri(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=nt(Gt(Je(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Te(e),Vi(r,t,n,hr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Yt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof mt)||r+i.lookAhead1||!(this.children[0]instanceof Co))){var s=[];this.collapse(s),this.children=[new Co(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(e,t.line,t,n,o)||t.line!=n.line&&zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");_t=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&Gt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&tt(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new Nt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ht(e,t)&&tt(t,0)})),o.clearOnEnter&&ve(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ct=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Lo,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)yr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)br(c,u,"text");o.atomic&&co(c.doc),hn(c,"markerAdded",c,o)}return o}Ao.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Zr(e),Se(this,"clear")){var n=this.find();n&&hn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&yr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&co(e.doc)),e&&hn(e,"markerCleared",e,this,r,i),t&&ei(e),this.parent&&this.parent.clear()}},Ao.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)vo(this,r[l]);s?oo(this,s):this.cm&&Fr(this.cm)})),undo:ci((function(){bo(this,"undo")})),redo:ci((function(){bo(this,"redo")})),undoSelection:ci((function(){bo(this,"undo",!0)})),redoSelection:ci((function(){bo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),ft(this,at(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),so(t.doc,Ai(n,n)),d)for(var f=0;f=0;t--)To(e.doc,"",r[t].from,r[t].to,"+delete");Fr(e)}))}function oa(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function aa(e,t,n){var r=oa(e,t.ch,n);return null==r?null:new at(t.line,r,n<0?"after":"before")}function sa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=me(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=$n(t,n);a=i<0?n.text.length-1:0;var u=Vn(t,c,a).top;a=pe((function(e){return Vn(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=oa(n,a,1))}else a=i<0?s.to:s.from;return new at(r,a,l)}}return new at(r,i<0?n.text.length:0,i<0?"before":"after")}Yo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Yo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Yo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Yo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Yo.default=b?Yo.macDefault:Yo.pcDefault;var la={selectAll:mo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return ia(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new at(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),at(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Je(e.doc,i.line-1).text;a&&(i=new at(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),at(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ii(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ai(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(st((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(st(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=si(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ir(e)),be(i.wrapper.ownerDocument,"mouseup",c),be(i.wrapper.ownerDocument,"mousemove",u),be(i.scroller,"dragstart",p),be(i.scroller,"drop",c),o||(Oe(t),r.addNew||to(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",p),ve(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&Ir(e);var i=e.display,o=e.doc;Oe(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new Ii(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ii(n,n)),n=gr(e,t,!0,!0),l=-1;else{var p=ka(e,n,r.unit);s=r.extend?eo(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=u.length,ao(o,Li(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(ao(o,Li(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):ro(o,l,s,W):(l=0,ao(o,new Ni([s],0),W),c=o.sel);var d=n;function f(t){if(0!=st(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=z(Je(o,n.line).text,n.ch,a),p=z(Je(o,t.line).text,t.ch,a),f=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Je(o,m).text,y=X(v,f,a);f==h?i.push(new Ii(at(m,y),at(m,y))):v.length>y&&i.push(new Ii(at(m,y),at(m,X(v,h,a))))}i.length||i.push(new Ii(n,n)),ao(o,Li(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,w=ka(e,t,r.unit),T=E.anchor;st(w.anchor,T)>0?(b=w.head,T=pt(E.from(),w.anchor)):(b=w.anchor,T=ut(E.to(),w.head));var S=c.ranges.slice(0);S[l]=function(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==st(n,r)&&n.sticky==r.sticky)return t;var o=me(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=fe(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var d=o[c+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new Ii(new at(n.line,h,m),r)}(e,new Ii(ft(o,T),b)),ao(o,Li(e,S,l),W)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=gr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=st(a,d)){e.curOp.focus=D(F(e)),f(a);var s=Rr(i,o);(a.line>=s.to||a.lineh.bottom?20:0;l&&setTimeout(si(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Oe(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=si(e,(function(e){0!==e.buttons&&Ie(e)?g(e):v(e)})),b=si(e,v);e.state.selectingText=b,ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):Ne(e)==n.scroller&&Oe(e):2==i?(r&&to(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):Ir(t)))}}function ka(e,t,n){if("char"==n)return new Ii(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ii(at(t.line,0),ft(e.doc,at(t.line+1,0)));var r=n(e,t);return new Ii(r.from,r.to)}function Oa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Oe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Se(e,n))return Ce(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return Ee(e,n,e,rt(e.doc,o),e.display.gutterSpecs[l].className,t),Ce(t)}}function xa(e,t){return Oa(e,t,"gutterClick",!0)}function Ca(e,t){Nn(e.display,t)||function(e,t){return!!Se(e,"gutterContextMenu")&&Oa(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function _a(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(e)}Ta.prototype.compare=function(e,t,n){return this.time+400>e&&0==st(t,this.pos)&&n==this.button};var Na={toString:function(){return"CodeMirror.Init"}},Ia={},La={};function Aa(e,t,n){if(!t!=!(n&&n!=Na)){var r=e.display.dragFunctions,i=t?ve:be;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Da(e){e.options.lineWrapping?(P(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),Xt(e)),mr(e),yr(e),Hn(e),setTimeout((function(){return Kr(e)}),100)}function Pa(e,t){var n=this;if(!(this instanceof Pa))return new Pa(e,t);this.options=t=t?q(t):{},q(Ia,t,!1);var r=t.value;"string"==typeof r?r=new Fo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Pa.inputStyles[t.inputStyle](this),o=this.display=new Si(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,_a(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new G,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;ve(t.scroller,"mousedown",si(e,Sa)),ve(t.scroller,"dblclick",a&&s<11?si(e,(function(t){if(!we(e,t)){var n=gr(e,t);if(n&&!xa(e,t)&&!Nn(e.display,t)){Oe(t);var r=e.findWordAt(n);to(e.doc,r.anchor,r.head)}}})):function(t){return we(e,t)||Oe(t)}),ve(t.scroller,"contextmenu",(function(t){return Ca(e,t)})),ve(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ca(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ve(t.scroller,"touchstart",(function(i){if(!we(e,i)&&!o(i)&&!xa(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Nn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new Ii(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new Ii(at(a.line,0),ft(e.doc,at(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Oe(n)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(qr(e,t.scroller.scrollTop),Gr(e,t.scroller.scrollLeft,!0),Ee(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return _i(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return _i(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||_e(t)},over:function(t){we(e,t)||(function(e,t){var n=gr(e,t);if(n){var r=document.createDocumentFragment();Or(e,n,r),e.display.dragCursor||(e.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,r)}}(e,t),_e(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-$o<100))_e(t);else if(!we(e,t)&&!Nn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=I("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:si(e,Vo),leave:function(t){we(e,t)||Bo(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return ya.call(e,t)})),ve(c,"keydown",si(e,va)),ve(c,"keypress",si(e,ba)),ve(c,"focus",(function(t){return Lr(e,t)})),ve(c,"blur",(function(t){return Ar(e,t)}))}(this),Go(),Zr(this),this.curOp.forceUpdate=!0,qi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Lr(n)}),20):Ar(this),La)La.hasOwnProperty(c)&&La[c](this,t[c],Na);bi(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?z(Je(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var p="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)d+=a,p+="\t";if(da,l=je(t),c=null;if(s&&r.ranges.length>1)if(ja&&ja.text.join("\n")==t){if(r.ranges.length%ja.text.length==0){c=[];for(var u=0;u=0;d--){var f=r.ranges[d],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=at(h.line,h.ch-n):e.state.overwrite&&!s?m=at(m.line,Math.min(Je(o,m.line).text.length,m.ch+ee(l).length)):s&&ja&&ja.lineWise&&ja.text.join("\n")==l.join("\n")&&(h=m=at(h.line,0)));var g={from:h,to:m,text:c?c[d%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};vo(e.doc,g),hn(e,"inputRead",e,g)}t&&!s&&Ba(e,t),Fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Va(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ai(t,(function(){return $a(t,n,0,null,"paste")})),!0}function Ba(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ma(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ma(e,i.head.line,"smart"));a&&hn(e,"electricInput",e,i.head.line)}}}function qa(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new at(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?function(e,t,n,r){var i=me(t,e.doc.direction);if(!i)return aa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=u.begin)){var f=p?"before":"after";return new at(n.line,d,f)}}var h=function(e,t,r){for(var o=function(e,t){return t?new at(n.line,l(e,1),"before"):new at(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,s,t,n):aa(s,t,n);if(null==a){if(o||((c=t.line+l)=e.first+e.size||(t=new at(c,t.ch,t.sticky),!(s=Je(e,c)))))return!1;t=sa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||c(!f);f=!1){var h=s.text.charAt(t.ch)||"\n",m=ae(h,d)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||f||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!f))break}var g=fo(e,t,o,a,!0);return lt(o,g)&&(g.hitSide=!0),g}function Ua(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,V(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*ur(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=rr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ha=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new G,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ka(e,t){var n=Fn(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Mn(n,r,t.line),o=me(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=zn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Wa(e,t){return t&&(e.bad=!0),e}function Ya(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Wa(e.clipPos(at(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ka(t,i)||{node:l[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=at(a.line-1,Je(r.doc,a.line-1).length)),s.ch==Je(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=vr(r,a.line))?(t=nt(i.view[0].line),n=i.view[0].node):(t=nt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=vr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=nt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(e){e&&(c(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,d=t.getAttribute("cm-marker");if(d){var f=e.findMarks(at(r,0),at(i+1,0),(g=+d,function(e){return e.id==g}));return void(f.length&&(o=f[0].find(0))&&u(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&c();for(var m=0;m1&&d.length>1;)if(ee(p)==ee(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var f=0,h=0,m=p[0],g=d[0],v=Math.min(m.length,g.length);fa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var w=at(t,f),T=at(l,d.length?ee(d).length-h:0);return p.length>1||p[0]||st(w,T)?(To(r.doc,p,w,T,"+input"),!0):void 0},Ha.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ha.prototype.reset=function(){this.forceCompositionEnd()},Ha.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ha.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ha.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ai(this.cm,(function(){return yr(e.cm)}))},Ha.prototype.setUneditable=function(e){e.contentEditable="false"},Ha.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||si(this.cm,$a)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ha.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ha.prototype.onContextMenu=function(){},Ha.prototype.resetPosition=function(){},Ha.prototype.needsContentAttribute=!0;var Ja=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ja.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())Fa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=qa(r);Fa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,K):(n.prevInput="",i.value=t.text.join("\n"),M(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ve(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ve(i,"paste",(function(e){we(r,e)||Va(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ve(i,"cut",o),ve(i,"copy",o),ve(e.scroller,"paste",(function(t){if(!Nn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ve(e.lineSpace,"selectstart",(function(t){Nn(e,t)||Oe(t)})),ve(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ja.prototype.createField=function(e){this.wrapper=Ga(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;za(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ja.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ja.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=kr(e);if(e.options.moveInputWithCursor){var i=er(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ja.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ja.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&M(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ja.prototype.getField=function(){return this.textarea},Ja.prototype.supportsTouch=function(){return!1},Ja.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D($(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Ja.prototype.blur=function(){this.textarea.blur()},Ja.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ja.prototype.receivedFocus=function(){this.slowPoll()},Ja.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ja.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ja.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ja.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ja.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ja.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=gr(n,e),c=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&si(n,ao)(n.doc,Ai(o),K);var u,p=i.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),k){_e(e);var m=function(){be(window,"mouseup",m),setTimeout(v,20)};ve(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?si(n,mo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ja.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ja.prototype.setUneditable=function(){},Ja.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Na&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Na,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ji(e)}),!0),n("indentUnit",2,ji,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Fi(e),Hn(e),yr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(at(r,o))}r++}));for(var i=n.length-1;i>=0;i--)To(e.doc,t,n[i],at(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Na&&e.refresh()})),n("specialCharPlaceholder",on,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){_a(e),Ti(e)}),!0),n("keyMap","default",(function(e,t,n){var r=ra(t),i=n!=Na&&ra(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Da,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ei(t,e.options.lineNumbers),Ti(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?fr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Kr(e)}),!0),n("scrollbarStyle","native",(function(e){Xr(e),Kr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ei(e.options.gutters,t),Ti(e)}),!0),n("firstLineNumber",1,Ti,!0),n("lineNumberFormatter",(function(e){return e}),Ti,!0),n("showCursorWhenSelecting",!1,Sr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Aa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Sr,!0),n("singleCursorHeightPerLine",!0,Sr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fi,!0),n("addModeClass",!1,Fi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Fi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Pa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){V(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&si(this,t[e])(this,n,i),Ee(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ra(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Ma(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Fr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&ro(this.doc,r,new Ii(o,c[r].to()),K)}}})),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,at(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Je(this.doc,e)}else r=e;return Xn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Wt(r):0)},defaultTextHeight:function(){return ur(this.display)},defaultCharWidth:function(){return pr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,c=(e=er(this,ft(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var p=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(c=e.bottom),u+t.offsetWidth>d&&(u=d-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(s=Mr(o,a)).scrollTop&&qr(o,s.scrollTop),null!=s.scrollLeft&&Gr(o,s.scrollLeft))},triggerOnKeyDown:li(va),triggerOnKeyPress:li(ba),triggerOnKeyUp:ya,triggerOnMouseDown:li(Sa),execCommand:function(e){if(la.hasOwnProperty(e))return la[e].call(null,this)},triggerElectric:li((function(e){Ba(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&mr(this),Ee(this,"refresh",this)})),swapDoc:li((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),qi(this,e),Hn(this),this.display.input.reset(),$r(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,hn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Pa);var Za="iter insert remove copy getEditor constructor".split(" ");for(var es in Fo.prototype)Fo.prototype.hasOwnProperty(es)&&Q(Za,es)<0&&(Pa.prototype[es]=function(e){return function(){return e.apply(this.doc,arguments)}}(Fo.prototype[es]));return ke(Fo),Pa.inputStyles={textarea:Ja,contenteditable:Ha},Pa.defineMode=function(e){Pa.defaults.mode||"null"==e||(Pa.defaults.mode=e),ze.apply(this,arguments)},Pa.defineMIME=function(e,t){qe[e]=t},Pa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Pa.defineMIME("text/plain","null"),Pa.defineExtension=function(e,t){Pa.prototype[e]=t},Pa.defineDocExtension=function(e,t){Fo.prototype[e]=t},Pa.fromTextArea=function(e,t){if((t=t?q(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D($(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Pa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=be,e.on=ve,e.wheelEventPixels=Ci,e.Doc=Fo,e.splitLines=je,e.countColumn=z,e.findColumn=X,e.isWordChar=oe,e.Pass=H,e.signal=Ee,e.Line=Jt,e.changeEnd=Di,e.scrollbarModel=Yr,e.Pos=at,e.cmpPos=st,e.modes=Be,e.mimeModes=qe,e.resolveMode=Ge,e.getMode=Qe,e.modeExtensions=Ue,e.extendMode=He,e.copyState=Ke,e.startState=Ye,e.innerMode=We,e.commands=la,e.keyMap=Yo,e.keyName=na,e.isModifierKey=ea,e.lookupKey=Zo,e.normalizeKeyMap=Jo,e.StringStream=Xe,e.SharedTextMarker=Po,e.TextMarker=Ao,e.LineWidget=No,e.e_preventDefault=Oe,e.e_stopPropagation=xe,e.e_stop=_e,e.addClass=P,e.contains=A,e.rmClass=C,e.keyNames=Uo}(Pa),Pa.version="5.65.16",Pa}()},6792:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=!1!==n.trackScope,u=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):et(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(p))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(f.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var i=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(i)){var o=d[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var b="([{}])";function E(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=b.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(p.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function S(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(O.state=e,O.stream=i,O.marked=null,O.cc=o,O.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?z:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return O.marked?O.marked:"variable"==n&&S(e,r)?"variable-2":t}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)O.cc.push(arguments[e])}function C(){return x.apply(null,arguments),!0}function _(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function N(e){var t=O.state;if(O.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=I(e,t.context);if(null!=r)return void(t.context=r)}else if(!_(e,t.localVars))return void(t.localVars=new D(e,t.localVars));n.globalVars&&!_(e,t.globalVars)&&(t.globalVars=new D(e,t.globalVars))}}function I(e,t){if(t){if(t.block){var n=I(e,t.prev);return n?n==t.prev?t:new A(n,t.vars,!0):null}return _(e,t.vars)?t:new A(t.prev,new D(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,n){this.prev=e,this.vars=t,this.block=n}function D(e,t){this.name=e,this.next=t}var P=new D("this",new D("arguments",null));function R(){O.state.context=new A(O.state.context,O.state.localVars,!1),O.state.localVars=P}function M(){O.state.context=new A(O.state.context,O.state.localVars,!0),O.state.localVars=null}function j(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}function F(e,t){var n=function(){var n=O.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,O.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function $(){var e=O.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?C():";"==e||"}"==n||")"==n||"]"==n?x():C(t)}}function B(e,t){return"var"==e?C(F("vardef",t),Oe,V(";"),$):"keyword a"==e?C(F("form"),Q,B,$):"keyword b"==e?C(F("form"),B,$):"keyword d"==e?O.stream.match(/^\s*$/,!1)?C():C(F("stat"),H,V(";"),$):"debugger"==e?C(V(";")):"{"==e?C(F("}"),M,ce,$,j):";"==e?C():"if"==e?("else"==O.state.lexical.info&&O.state.cc[O.state.cc.length-1]==$&&O.state.cc.pop()(),C(F("form"),Q,B,$,Le)):"function"==e?C(Re):"for"==e?C(F("form"),M,Ae,B,j,$):"class"==e||u&&"interface"==t?(O.marked="keyword",C(F("form","class"==e?e:t),Ve,$)):"variable"==e?u&&"declare"==t?(O.marked="keyword",C(B)):u&&("module"==t||"enum"==t||"type"==t)&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword","enum"==t?C(Je):"type"==t?C(je,V("operator"),he,V(";")):C(F("form"),xe,V("{"),F("}"),ce,$,$)):u&&"namespace"==t?(O.marked="keyword",C(F("form"),z,B,$)):u&&"abstract"==t?(O.marked="keyword",C(B)):C(F("stat"),ne):"switch"==e?C(F("form"),Q,V("{"),F("}","switch"),M,ce,$,$,j):"case"==e?C(z,V(":")):"default"==e?C(V(":")):"catch"==e?C(F("form"),R,q,B,$,j):"export"==e?C(F("stat"),Ge,$):"import"==e?C(F("stat"),Ue,$):"async"==e?C(B):"@"==t?C(z,B):x(F("stat"),z,V(";"),$)}function q(e){if("("==e)return C(Fe,V(")"))}function z(e,t){return U(e,t,!1)}function G(e,t){return U(e,t,!0)}function Q(e){return"("!=e?x():C(F(")"),H,V(")"),$)}function U(e,t,n){if(O.state.fatArrowAt==O.stream.start){var r=n?Z:J;if("("==e)return C(R,F(")"),se(Fe,")"),$,V("=>"),r,j);if("variable"==e)return x(R,xe,V("=>"),r,j)}var i=n?W:K;return w.hasOwnProperty(e)?C(i):"function"==e?C(Re,i):"class"==e||u&&"interface"==t?(O.marked="keyword",C(F("form"),$e,$)):"keyword c"==e||"async"==e?C(n?G:z):"("==e?C(F(")"),H,V(")"),$,i):"operator"==e||"spread"==e?C(n?G:z):"["==e?C(F("]"),Xe,$,i):"{"==e?le(ie,"}",null,i):"quasi"==e?x(Y,i):"new"==e?C(function(e){return function(t){return"."==t?C(e?te:ee):"variable"==t&&u?C(Te,e?W:K):x(e?G:z)}}(n)):C()}function H(e){return e.match(/[;\}\)\],]/)?x():x(z)}function K(e,t){return","==e?C(H):W(e,t,!1)}function W(e,t,n){var r=0==n?K:W,i=0==n?z:G;return"=>"==e?C(R,n?Z:J,j):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?C(r):u&&"<"==t&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(F(">"),se(he,">"),$,r):"?"==t?C(z,V(":"),i):C(i):"quasi"==e?x(Y,r):";"!=e?"("==e?le(G,")","call",r):"."==e?C(re,r):"["==e?C(F("]"),H,V("]"),$,r):u&&"as"==t?(O.marked="keyword",C(he,r)):"regexp"==e?(O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),C(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?C(Y):C(H,X)}function X(e){if("}"==e)return O.marked="string-2",O.state.tokenize=y,C(Y)}function J(e){return E(O.stream,O.state),x("{"==e?B:z)}function Z(e){return E(O.stream,O.state),x("{"==e?B:G)}function ee(e,t){if("target"==t)return O.marked="keyword",C(K)}function te(e,t){if("target"==t)return O.marked="keyword",C(W)}function ne(e){return":"==e?C($,B):x(K,V(";"),$)}function re(e){if("variable"==e)return O.marked="property",C()}function ie(e,t){return"async"==e?(O.marked="property",C(ie)):"variable"==e||"keyword"==O.style?(O.marked="property","get"==t||"set"==t?C(oe):(u&&O.state.fatArrowAt==O.stream.start&&(n=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+n[0].length),C(ae))):"number"==e||"string"==e?(O.marked=s?"property":O.style+" property",C(ae)):"jsonld-keyword"==e?C(ae):u&&L(t)?(O.marked="keyword",C(ie)):"["==e?C(z,ue,V("]"),ae):"spread"==e?C(G,ae):"*"==t?(O.marked="keyword",C(ie)):":"==e?x(ae):void 0;var n}function oe(e){return"variable"!=e?x(ae):(O.marked="property",C(Re))}function ae(e){return":"==e?C(G):"("==e?x(Re):void 0}function se(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=O.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),C((function(n,r){return n==t||r==t?x():x(e)}),r)}return i==t||o==t?C():n&&n.indexOf(";")>-1?x(e):C(V(t))}return function(n,i){return n==t||i==t?C():x(e,r)}}function le(e,t,n){for(var r=3;r"),he):"quasi"==e?x(ye,we):void 0}function me(e){if("=>"==e)return C(he)}function ge(e){return e.match(/[\}\)\]]/)?C():","==e||";"==e?C(ge):x(ve,ge)}function ve(e,t){return"variable"==e||"keyword"==O.style?(O.marked="property",C(ve)):"?"==t||"number"==e||"string"==e?C(ve):":"==e?C(he):"["==e?C(V("variable"),pe,V("]"),ve):"("==e?x(Me,ve):e.match(/[;\}\)\],]/)?void 0:C()}function ye(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?C(ye):C(he,be)}function be(e){if("}"==e)return O.marked="string-2",O.state.tokenize=y,C(ye)}function Ee(e,t){return"variable"==e&&O.stream.match(/^\s*[?:]/,!1)||"?"==t?C(Ee):":"==e?C(he):"spread"==e?C(Ee):x(he)}function we(e,t){return"<"==t?C(F(">"),se(he,">"),$,we):"|"==t||"."==e||"&"==t?C(he):"["==e?C(he,V("]"),we):"extends"==t||"implements"==t?(O.marked="keyword",C(he)):"?"==t?C(he,V(":"),he):void 0}function Te(e,t){if("<"==t)return C(F(">"),se(he,">"),$,we)}function Se(){return x(he,ke)}function ke(e,t){if("="==t)return C(he)}function Oe(e,t){return"enum"==t?(O.marked="keyword",C(Je)):x(xe,ue,Ne,Ie)}function xe(e,t){return u&&L(t)?(O.marked="keyword",C(xe)):"variable"==e?(N(t),C()):"spread"==e?C(xe):"["==e?le(_e,"]"):"{"==e?le(Ce,"}"):void 0}function Ce(e,t){return"variable"!=e||O.stream.match(/^\s*:/,!1)?("variable"==e&&(O.marked="property"),"spread"==e?C(xe):"}"==e?x():"["==e?C(z,V("]"),V(":"),Ce):C(V(":"),xe,Ne)):(N(t),C(Ne))}function _e(){return x(xe,Ne)}function Ne(e,t){if("="==t)return C(G)}function Ie(e){if(","==e)return C(Oe)}function Le(e,t){if("keyword b"==e&&"else"==t)return C(F("form","else"),B,$)}function Ae(e,t){return"await"==t?C(Ae):"("==e?C(F(")"),De,$):void 0}function De(e){return"var"==e?C(Oe,Pe):"variable"==e?C(Pe):x(Pe)}function Pe(e,t){return")"==e?C():";"==e?C(Pe):"in"==t||"of"==t?(O.marked="keyword",C(z,Pe)):x(z,Pe)}function Re(e,t){return"*"==t?(O.marked="keyword",C(Re)):"variable"==e?(N(t),C(Re)):"("==e?C(R,F(")"),se(Fe,")"),$,de,B,j):u&&"<"==t?C(F(">"),se(Se,">"),$,Re):void 0}function Me(e,t){return"*"==t?(O.marked="keyword",C(Me)):"variable"==e?(N(t),C(Me)):"("==e?C(R,F(")"),se(Fe,")"),$,de,j):u&&"<"==t?C(F(">"),se(Se,">"),$,Me):void 0}function je(e,t){return"keyword"==e||"variable"==e?(O.marked="type",C(je)):"<"==t?C(F(">"),se(Se,">"),$):void 0}function Fe(e,t){return"@"==t&&C(z,Fe),"spread"==e?C(Fe):u&&L(t)?(O.marked="keyword",C(Fe)):u&&"this"==e?C(ue,Ne):x(xe,ue,Ne)}function $e(e,t){return"variable"==e?Ve(e,t):Be(e,t)}function Ve(e,t){if("variable"==e)return N(t),C(Be)}function Be(e,t){return"<"==t?C(F(">"),se(Se,">"),$,Be):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(O.marked="keyword"),C(u?he:z,Be)):"{"==e?C(F("}"),qe,$):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&L(t))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(O.marked="keyword",C(qe)):"variable"==e||"keyword"==O.style?(O.marked="property",C(ze,qe)):"number"==e||"string"==e?C(ze,qe):"["==e?C(z,ue,V("]"),ze,qe):"*"==t?(O.marked="keyword",C(qe)):u&&"("==e?x(Me,qe):";"==e||","==e?C(qe):"}"==e?C():"@"==t?C(z,qe):void 0}function ze(e,t){if("!"==t)return C(ze);if("?"==t)return C(ze);if(":"==e)return C(he,Ne);if("="==t)return C(G);var n=O.state.lexical.prev;return x(n&&"interface"==n.info?Me:Re)}function Ge(e,t){return"*"==t?(O.marked="keyword",C(Ye,V(";"))):"default"==t?(O.marked="keyword",C(z,V(";"))):"{"==e?C(se(Qe,"}"),Ye,V(";")):x(B)}function Qe(e,t){return"as"==t?(O.marked="keyword",C(V("variable"))):"variable"==e?x(G,Qe):void 0}function Ue(e){return"string"==e?C():"("==e?x(z):"."==e?x(K):x(He,Ke,Ye)}function He(e,t){return"{"==e?le(He,"}"):("variable"==e&&N(t),"*"==t&&(O.marked="keyword"),C(We))}function Ke(e){if(","==e)return C(He,Ke)}function We(e,t){if("as"==t)return O.marked="keyword",C(He)}function Ye(e,t){if("from"==t)return O.marked="keyword",C(z)}function Xe(e){return"]"==e?C():x(se(G,"]"))}function Je(){return x(F("form"),xe,V("{"),F("}"),se(Ze,"}"),$,$)}function Ze(){return x(xe,Ne)}function et(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return R.lex=M.lex=!0,j.lex=!0,$.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new A(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),E(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==$)l=l.prev;else if(u!=Le&&u!=j)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==K||i==W)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,d=s==p;return"vardef"==p?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==p&&"{"==s?l.indented:"form"==p?l.indented+o:"stat"==p?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(t){k(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(5237))},7965:(e,t,n)=>{"use strict";var r=n(6426),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r{"use strict";var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,i=t.exec(r);if(!i)return r;var o="",a=0,s=0;for(a=i.index;a{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o{"use strict";n.r(t),n.d(t,{CharacterStream:()=>Be,CompletionItemKind:()=>Ve,DIAGNOSTIC_SEVERITY:()=>nn,FileChangeTypeKind:()=>$e,LexRules:()=>He,ParseRules:()=>Ke,Position:()=>Mt,Range:()=>Rt,RuleKinds:()=>ot,SEVERITY:()=>tn,SuggestionCommand:()=>at,canUseDirective:()=>yt,collectVariables:()=>Vt,getASTNodeAtPosition:()=>Dt,getAutocompleteSuggestions:()=>ut,getDefinitionQueryResultForDefinitionNode:()=>Jt,getDefinitionQueryResultForField:()=>Yt,getDefinitionQueryResultForFragmentSpread:()=>Xt,getDefinitionQueryResultForNamedType:()=>Wt,getDefinitionState:()=>Ie,getDiagnostics:()=>on,getFieldDef:()=>Le,getFragmentDefinitions:()=>mt,getFragmentDependencies:()=>kt,getFragmentDependenciesForAST:()=>Ot,getHoverInformation:()=>fn,getOperationASTFacts:()=>Bt,getOperationFacts:()=>qt,getOutline:()=>pn,getQueryFacts:()=>zt,getRange:()=>ln,getTokenAtPosition:()=>gt,getTypeInfo:()=>bt,getVariableCompletions:()=>ht,getVariablesJSONSchema:()=>At,isIgnored:()=>Ue,list:()=>ze,offsetToPosition:()=>jt,onlineParser:()=>Xe,opt:()=>qe,p:()=>Qe,pointToOffset:()=>Pt,t:()=>Ge,validateQuery:()=>an,validateWithCustomRules:()=>$t});var r,i,o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,E,w,T,S,k,O,x,C,_,N,I,L,A,D,P,R,M,j,F,$,V,B,q,z,G,Q,U,H,K,W,Y,X,J,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,pe,de,fe,he,me,ge,ve,ye,be,Ee,we,Te,Se,ke,Oe,xe,Ce,_e,Ne=n(5549);function Ie(e){let t;return Ae(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function Le(e,t,n){return n===Ne.SchemaMetaFieldDef.name&&e.getQueryType()===t?Ne.SchemaMetaFieldDef:n===Ne.TypeMetaFieldDef.name&&e.getQueryType()===t?Ne.TypeMetaFieldDef:n===Ne.TypeNameMetaFieldDef.name&&(0,Ne.isCompositeType)(t)?Ne.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function Ae(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function De(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i!e.isDeprecated));return Re(Re(e.map((e=>({proximity:je(Me(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry))}(t,Me(e.string))}function Re(e,t){const n=e.filter(t);return 0===n.length?e:n}function Me(e){return e.toLowerCase().replaceAll(/\W/g,"")}function je(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(a||(a={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=a.MAX_VALUE),t===Number.MAX_VALUE&&(t=a.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return _e.objectLiteral(t)&&_e.uinteger(t.line)&&_e.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(_e.uinteger(e)&&_e.uinteger(t)&&_e.uinteger(n)&&_e.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return _e.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return _e.objectLiteral(t)&&l.is(t.range)&&(_e.string(t.uri)||_e.undefined(t.uri))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return _e.objectLiteral(t)&&l.is(t.targetRange)&&_e.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||_e.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.numberRange(t.red,0,1)&&_e.numberRange(t.green,0,1)&&_e.numberRange(t.blue,0,1)&&_e.numberRange(t.alpha,0,1)}}(p||(p={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&l.is(t.range)&&p.is(t.color)}}(d||(d={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.label)&&(_e.undefined(t.textEdit)||T.is(t))&&(_e.undefined(t.additionalTextEdits)||_e.typedArray(t.additionalTextEdits,T.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(h||(h={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return _e.defined(n)&&(a.startCharacter=n),_e.defined(r)&&(a.endCharacter=r),_e.defined(i)&&(a.kind=i),_e.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.uinteger(t.startLine)&&_e.uinteger(t.startLine)&&(_e.undefined(t.startCharacter)||_e.uinteger(t.startCharacter))&&(_e.undefined(t.endCharacter)||_e.uinteger(t.endCharacter))&&(_e.undefined(t.kind)||_e.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return _e.defined(t)&&c.is(t.location)&&_e.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(v||(v={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return _e.defined(n)&&(a.severity=n),_e.defined(r)&&(a.code=r),_e.defined(i)&&(a.source=i),_e.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return _e.defined(n)&&l.is(n.range)&&_e.string(n.message)&&(_e.number(n.severity)||_e.undefined(n.severity))&&(_e.integer(n.code)||_e.string(n.code)||_e.undefined(n.code))&&(_e.undefined(n.codeDescription)||_e.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(_e.string(n.source)||_e.undefined(n.source))&&(_e.undefined(n.relatedInformation)||_e.typedArray(n.relatedInformation,g.is))}}(E||(E={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return _e.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.title)&&_e.string(t.command)}}(w||(w={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.newText)&&l.is(t.range)}}(T||(T={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.label)&&(_e.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(_e.string(t.description)||void 0===t.description)}}(S||(S={})),function(e){e.is=function(e){const t=e;return _e.string(t)}}(k||(k={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return T.is(t)&&(S.is(t.annotationId)||k.is(t.annotationId))}}(O||(O={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return _e.defined(t)&&D.is(t.textDocument)&&Array.isArray(t.edits)}}(x||(x={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&_e.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||_e.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||_e.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(C||(C={})),function(e){e.create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){let t=e;return t&&"rename"===t.kind&&_e.string(t.oldUri)&&_e.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||_e.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||_e.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(_||(_={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&_e.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||_e.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||_e.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||k.is(t.annotationId))}}(N||(N={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>_e.string(e.kind)?C.is(e)||_.is(e)||N.is(e):x.is(e))))}}(I||(I={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)}}(L||(L={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)&&_e.integer(t.version)}}(A||(A={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)&&(null===t.version||_e.integer(t.version))}}(D||(D={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)&&_e.string(t.languageId)&&_e.integer(t.version)&&_e.string(t.text)}}(P||(P={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(R||(R={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(e)&&R.is(t.kind)&&_e.string(t.value)}}(M||(M={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}(F||(F={})),function(e){e.Deprecated=1}($||($={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&_e.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(V||(V={})),function(e){e.asIs=1,e.adjustIndentation=2}(B||(B={})),function(e){e.is=function(e){const t=e;return t&&(_e.string(t.detail)||void 0===t.detail)&&(_e.string(t.description)||void 0===t.description)}}(q||(q={})),function(e){e.create=function(e){return{label:e}}}(z||(z={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(G||(G={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return _e.string(t)||_e.objectLiteral(t)&&_e.string(t.language)&&_e.string(t.value)}}(Q||(Q={})),function(e){e.is=function(e){let t=e;return!!t&&_e.objectLiteral(t)&&(M.is(t.contents)||Q.is(t.contents)||_e.typedArray(t.contents,Q.is))&&(void 0===e.range||l.is(e.range))}}(U||(U={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(H||(H={})),function(e){e.create=function(e,t,...n){let r={label:e};return _e.defined(t)&&(r.documentation=t),_e.defined(n)?r.parameters=n:r.parameters=[],r}}(K||(K={})),function(e){e.Text=1,e.Read=2,e.Write=3}(W||(W={})),function(e){e.create=function(e,t){let n={range:e};return _e.number(t)&&(n.kind=t),n}}(Y||(Y={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(X||(X={})),function(e){e.Deprecated=1}(J||(J={})),function(e){e.create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(Z||(Z={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(ee||(ee={})),function(e){e.create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){let t=e;return t&&_e.string(t.name)&&_e.number(t.kind)&&l.is(t.range)&&l.is(t.selectionRange)&&(void 0===t.detail||_e.string(t.detail))&&(void 0===t.deprecated||_e.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(te||(te={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ne||(ne={})),function(e){e.Invoked=1,e.Automatic=2}(re||(re={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return _e.defined(t)&&_e.typedArray(t.diagnostics,E.is)&&(void 0===t.only||_e.typedArray(t.only,_e.string))&&(void 0===t.triggerKind||t.triggerKind===re.Invoked||t.triggerKind===re.Automatic)}}(ie||(ie={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):w.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&_e.string(t.title)&&(void 0===t.diagnostics||_e.typedArray(t.diagnostics,E.is))&&(void 0===t.kind||_e.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||w.is(t.command))&&(void 0===t.isPreferred||_e.boolean(t.isPreferred))&&(void 0===t.edit||I.is(t.edit))}}(oe||(oe={})),function(e){e.create=function(e,t){let n={range:e};return _e.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return _e.defined(t)&&l.is(t.range)&&(_e.undefined(t.command)||w.is(t.command))}}(ae||(ae={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return _e.defined(t)&&_e.uinteger(t.tabSize)&&_e.boolean(t.insertSpaces)}}(se||(se={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return _e.defined(t)&&l.is(t.range)&&(_e.undefined(t.target)||_e.string(t.target))}}(le||(le={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return _e.objectLiteral(n)&&l.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ce||(ce={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(ue||(ue={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(pe||(pe={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(de||(de={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&_e.string(t.text)}}(fe||(fe={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&_e.boolean(t.caseSensitiveLookup)&&(_e.string(t.variableName)||void 0===t.variableName)}}(he||(he={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&(_e.string(t.expression)||void 0===t.expression)}}(me||(me={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return _e.defined(t)&&l.is(e.stoppedLocation)}}(ge||(ge={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(ve||(ve={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&(void 0===t.tooltip||_e.string(t.tooltip)||M.is(t.tooltip))&&(void 0===t.location||c.is(t.location))&&(void 0===t.command||w.is(t.command))}}(ye||(ye={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return _e.objectLiteral(t)&&s.is(t.position)&&(_e.string(t.label)||_e.typedArray(t.label,ye.is))&&(void 0===t.kind||ve.is(t.kind))&&void 0===t.textEdits||_e.typedArray(t.textEdits,T.is)&&(void 0===t.tooltip||_e.string(t.tooltip)||M.is(t.tooltip))&&(void 0===t.paddingLeft||_e.boolean(t.paddingLeft))&&(void 0===t.paddingRight||_e.boolean(t.paddingRight))}}(be||(be={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Ee||(Ee={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(we||(we={})),function(e){e.create=function(e){return{items:e}}}(Te||(Te={})),function(e){e.Invoked=0,e.Automatic=1}(Se||(Se={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(ke||(ke={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Oe||(Oe={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(t)&&i.is(t.uri)&&_e.string(t.name)}}(xe||(xe={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,l=0;for(;a{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Ce||(Ce={}));class Fe{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return s.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return s.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function qe(e){return{ofRule:e}}function ze(e,t){return{ofRule:e,isList:!0,separator:t}}function Ge(e,t){return{style:t,match:t=>t.kind===e}}function Qe(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const Ue=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,He={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},Ke={Document:[ze("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Ne.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[We("query"),qe(Ye("def")),qe("VariableDefinitions"),ze("Directive"),"SelectionSet"],Mutation:[We("mutation"),qe(Ye("def")),qe("VariableDefinitions"),ze("Directive"),"SelectionSet"],Subscription:[We("subscription"),qe(Ye("def")),qe("VariableDefinitions"),ze("Directive"),"SelectionSet"],VariableDefinitions:[Qe("("),ze("VariableDefinition"),Qe(")")],VariableDefinition:["Variable",Qe(":"),"Type",qe("DefaultValue")],Variable:[Qe("$","variable"),Ye("variable")],DefaultValue:[Qe("="),"Value"],SelectionSet:[Qe("{"),ze("Selection"),Qe("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Ye("property"),Qe(":"),Ye("qualifier"),qe("Arguments"),ze("Directive"),qe("SelectionSet")],Field:[Ye("property"),qe("Arguments"),ze("Directive"),qe("SelectionSet")],Arguments:[Qe("("),ze("Argument"),Qe(")")],Argument:[Ye("attribute"),Qe(":"),"Value"],FragmentSpread:[Qe("..."),Ye("def"),ze("Directive")],InlineFragment:[Qe("..."),qe("TypeCondition"),ze("Directive"),"SelectionSet"],FragmentDefinition:[We("fragment"),qe(function(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}(Ye("def"),[We("on")])),"TypeCondition",ze("Directive"),"SelectionSet"],TypeCondition:[We("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Ge("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ge("Name","builtin")],NullValue:[Ge("Name","keyword")],EnumValue:[Ye("string-2")],ListValue:[Qe("["),ze("Value"),Qe("]")],ObjectValue:[Qe("{"),ze("ObjectField"),Qe("}")],ObjectField:[Ye("attribute"),Qe(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Qe("["),"Type",Qe("]"),qe(Qe("!"))],NonNullType:["NamedType",qe(Qe("!"))],NamedType:[("atom",{style:"atom",match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[Qe("@","meta"),Ye("meta"),qe("Arguments")],DirectiveDef:[We("directive"),Qe("@","meta"),Ye("meta"),qe("ArgumentsDef"),We("on"),ze("DirectiveLocation",Qe("|"))],InterfaceDef:[We("interface"),Ye("atom"),qe("Implements"),ze("Directive"),Qe("{"),ze("FieldDef"),Qe("}")],Implements:[We("implements"),ze("NamedType",Qe("&"))],DirectiveLocation:[Ye("string-2")],SchemaDef:[We("schema"),ze("Directive"),Qe("{"),ze("OperationTypeDef"),Qe("}")],OperationTypeDef:[Ye("keyword"),Qe(":"),Ye("atom")],ScalarDef:[We("scalar"),Ye("atom"),ze("Directive")],ObjectTypeDef:[We("type"),Ye("atom"),qe("Implements"),ze("Directive"),Qe("{"),ze("FieldDef"),Qe("}")],FieldDef:[Ye("property"),qe("ArgumentsDef"),Qe(":"),"Type",ze("Directive")],ArgumentsDef:[Qe("("),ze("InputValueDef"),Qe(")")],InputValueDef:[Ye("attribute"),Qe(":"),"Type",qe("DefaultValue"),ze("Directive")],UnionDef:[We("union"),Ye("atom"),ze("Directive"),Qe("="),ze("UnionMember",Qe("|"))],UnionMember:["NamedType"],EnumDef:[We("enum"),Ye("atom"),ze("Directive"),Qe("{"),ze("EnumValueDef"),Qe("}")],EnumValueDef:[Ye("string-2"),ze("Directive")],InputDef:[We("input"),Ye("atom"),ze("Directive"),Qe("{"),ze("InputValueDef"),Qe("}")],ExtendDef:[We("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Ne.Kind.SCHEMA_EXTENSION;case"scalar":return Ne.Kind.SCALAR_TYPE_EXTENSION;case"type":return Ne.Kind.OBJECT_TYPE_EXTENSION;case"interface":return Ne.Kind.INTERFACE_TYPE_EXTENSION;case"union":return Ne.Kind.UNION_TYPE_EXTENSION;case"enum":return Ne.Kind.ENUM_TYPE_EXTENSION;case"input":return Ne.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[Ne.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[Ne.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Ne.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Ne.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Ne.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[Ne.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[Ne.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function We(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Ye(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Xe(e={eatWhitespace:e=>e.eatWhile(Ue),lexRules:He,parseRules:Ke,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return et(e.parseRules,t,Ne.Kind.DOCUMENT),t},token:(t,n)=>function(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?tt(t):t.needsAdvance&&(t.needsAdvance=!1,nt(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e.at(-1){const t=[];if(e)try{(0,Ne.visit)((0,Ne.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t},lt=[Ne.Kind.SCHEMA_DEFINITION,Ne.Kind.OPERATION_TYPE_DEFINITION,Ne.Kind.SCALAR_TYPE_DEFINITION,Ne.Kind.OBJECT_TYPE_DEFINITION,Ne.Kind.INTERFACE_TYPE_DEFINITION,Ne.Kind.UNION_TYPE_DEFINITION,Ne.Kind.ENUM_TYPE_DEFINITION,Ne.Kind.INPUT_OBJECT_TYPE_DEFINITION,Ne.Kind.DIRECTIVE_DEFINITION,Ne.Kind.SCHEMA_EXTENSION,Ne.Kind.SCALAR_TYPE_EXTENSION,Ne.Kind.OBJECT_TYPE_EXTENSION,Ne.Kind.INTERFACE_TYPE_EXTENSION,Ne.Kind.UNION_TYPE_EXTENSION,Ne.Kind.ENUM_TYPE_EXTENSION,Ne.Kind.INPUT_OBJECT_TYPE_EXTENSION],ct=e=>{let t=!1;if(e)try{(0,Ne.visit)((0,Ne.parse)(e),{enter(e){if("Document"!==e.kind)return!!lt.includes(e.kind)&&(t=!0,Ne.BREAK)}})}catch(e){return t}return t};function ut(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),l=r||gt(t,n,1),c="Invalid"===l.state.kind?l.state.prevState:l.state,u=(null==o?void 0:o.mode)||(p=t,(null==(d=null==o?void 0:o.uri)?void 0:d.endsWith(".graphqls"))||ct(p)?Et.TYPE_SYSTEM:Et.EXECUTABLE);var p,d;if(!c)return[];const{kind:f,step:h,prevState:m}=c,g=bt(e,l.state);if(f===ot.DOCUMENT)return u===Et.TYPE_SYSTEM?function(e){return Pe(e,[{label:"extend",kind:Ve.Function},{label:"type",kind:Ve.Function},{label:"interface",kind:Ve.Function},{label:"union",kind:Ve.Function},{label:"input",kind:Ve.Function},{label:"scalar",kind:Ve.Function},{label:"schema",kind:Ve.Function}])}(l):function(e){return Pe(e,[{label:"query",kind:Ve.Function},{label:"mutation",kind:Ve.Function},{label:"subscription",kind:Ve.Function},{label:"fragment",kind:Ve.Function},{label:"{",kind:Ve.Constructor}])}(l);if(f===ot.EXTEND_DEF)return function(e){return Pe(e,[{label:"type",kind:Ve.Function},{label:"interface",kind:Ve.Function},{label:"union",kind:Ve.Function},{label:"input",kind:Ve.Function},{label:"scalar",kind:Ve.Function},{label:"schema",kind:Ve.Function}])}(l);if((null===(a=null==m?void 0:m.prevState)||void 0===a?void 0:a.kind)===ot.EXTENSION_DEFINITION&&c.name)return Pe(l,[]);if((null==m?void 0:m.kind)===Ne.Kind.SCALAR_TYPE_EXTENSION)return Pe(l,Object.values(e.getTypeMap()).filter(Ne.isScalarType).map((e=>({label:e.name,kind:Ve.Function}))));if((null==m?void 0:m.kind)===Ne.Kind.OBJECT_TYPE_EXTENSION)return Pe(l,Object.values(e.getTypeMap()).filter((e=>(0,Ne.isObjectType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ve.Function}))));if((null==m?void 0:m.kind)===Ne.Kind.INTERFACE_TYPE_EXTENSION)return Pe(l,Object.values(e.getTypeMap()).filter(Ne.isInterfaceType).map((e=>({label:e.name,kind:Ve.Function}))));if((null==m?void 0:m.kind)===Ne.Kind.UNION_TYPE_EXTENSION)return Pe(l,Object.values(e.getTypeMap()).filter(Ne.isUnionType).map((e=>({label:e.name,kind:Ve.Function}))));if((null==m?void 0:m.kind)===Ne.Kind.ENUM_TYPE_EXTENSION)return Pe(l,Object.values(e.getTypeMap()).filter((e=>(0,Ne.isEnumType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ve.Function}))));if((null==m?void 0:m.kind)===Ne.Kind.INPUT_OBJECT_TYPE_EXTENSION)return Pe(l,Object.values(e.getTypeMap()).filter(Ne.isInputObjectType).map((e=>({label:e.name,kind:Ve.Function}))));if(f===ot.IMPLEMENTS||f===ot.NAMED_TYPE&&(null==m?void 0:m.kind)===ot.IMPLEMENTS)return function(e,t,n,r,i){if(t.needsSeparator)return[];const o=De(n.getTypeMap()).filter(Ne.isInterfaceType),a=o.map((({name:e})=>e)),s=new Set;vt(r,((e,t)=>{var r,o,l,c,u;if(t.name&&(t.kind!==ot.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===ot.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===ot.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(l=i.interfaceDef)||void 0===l?void 0:l.toConfig();i.interfaceDef=new Ne.GraphQLInterfaceType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Ne.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(c=i.objectTypeDef)||void 0===c?void 0:c.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(u=i.objectTypeDef)||void 0===u?void 0:u.toConfig();i.objectTypeDef=new Ne.GraphQLObjectType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Ne.GraphQLInterfaceType({name:t.name,fields:{}})]}))}}));const l=i.interfaceDef||i.objectTypeDef,c=((null==l?void 0:l.getInterfaces())||[]).map((({name:e})=>e));return Pe(e,o.concat([...s].map((e=>({name:e})))).filter((({name:e})=>e!==(null==l?void 0:l.name)&&!c.includes(e))).map((e=>{const t={label:e.name,kind:Ve.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(l,c,e,t,g);if(f===ot.SELECTION_SET||f===ot.FIELD||f===ot.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=De(i.getFields())),(0,Ne.isCompositeType)(i)&&o.push(Ne.TypeNameMetaFieldDef),i===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(Ne.SchemaMetaFieldDef,Ne.TypeMetaFieldDef),Pe(e,o.map(((e,t)=>{var r;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(r=e.description)&&void 0!==r?r:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Ve.Field,type:e.type};if(null==n?void 0:n.fillLeafsOnComplete){const t=dt(e);t&&(i.insertText=e.name+t,i.insertTextFormat=F.Snippet,i.command=at)}return i})))}return[]}(l,g,s);if(f===ot.ARGUMENTS||f===ot.ARGUMENT&&0===h){const{argDefs:e}=g;if(e)return Pe(l,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:at,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Ve.Variable,type:e.type}})))}if((f===ot.OBJECT_VALUE||f===ot.OBJECT_FIELD&&0===h)&&g.objectFieldDefs){const e=De(g.objectFieldDefs),t=f===ot.OBJECT_VALUE?Ve.Value:Ve.Field;return Pe(l,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(f===ot.ENUM_VALUE||f===ot.LIST_VALUE&&1===h||f===ot.OBJECT_FIELD&&2===h||f===ot.ARGUMENT&&2===h)return function(e,t,n,r){const i=(0,Ne.getNamedType)(t.inputType),o=ht(n,r,e).filter((e=>e.detail===i.name));return i instanceof Ne.GraphQLEnumType?Pe(e,i.getValues().map((e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Ve.EnumMember,type:i}})).concat(o)):i===Ne.GraphQLBoolean?Pe(e,o.concat([{label:"true",detail:String(Ne.GraphQLBoolean),documentation:"Not false.",kind:Ve.Variable,type:Ne.GraphQLBoolean},{label:"false",detail:String(Ne.GraphQLBoolean),documentation:"Not true.",kind:Ve.Variable,type:Ne.GraphQLBoolean}])):o}(l,g,t,e);if(f===ot.VARIABLE&&1===h){const n=(0,Ne.getNamedType)(g.inputType);return Pe(l,ht(t,e,l).filter((e=>e.detail===(null==n?void 0:n.name))))}if(f===ot.TYPE_CONDITION&&1===h||f===ot.NAMED_TYPE&&null!=m&&m.kind===ot.TYPE_CONDITION)return function(e,t,n,r){let i;if(t.parentType)if((0,Ne.isAbstractType)(t.parentType)){const e=(0,Ne.assertAbstractType)(t.parentType),r=n.getPossibleTypes(e),o=Object.create(null);for(const e of r)for(const t of e.getInterfaces())o[t.name]=t;i=r.concat(De(o))}else i=[t.parentType];else i=De(n.getTypeMap()).filter((e=>(0,Ne.isCompositeType)(e)&&!e.name.startsWith("__")));return Pe(e,i.map((e=>{const t=(0,Ne.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:Ve.Field}})))}(l,g,e);if(f===ot.FRAGMENT_SPREAD&&1===h)return function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=Ie(e.state),s=mt(r);i&&i.length>0&&s.push(...i);return Pe(e,s.filter((e=>o[e.typeCondition.name.value]&&!(a&&a.kind===ot.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,Ne.isCompositeType)(t.parentType)&&(0,Ne.isCompositeType)(o[e.typeCondition.name.value])&&(0,Ne.doTypesOverlap)(n,t.parentType,o[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:Ve.Field,type:o[e.typeCondition.name.value]}))))}(l,g,e,t,Array.isArray(i)?i:st(i));const v=wt(c);if(u===Et.TYPE_SYSTEM&&!v.needsAdvance&&f===ot.NAMED_TYPE||f===ot.LIST_TYPE){if(v.kind===ot.FIELD_DEF)return Pe(l,Object.values(e.getTypeMap()).filter((e=>(0,Ne.isOutputType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ve.Function}))));if(v.kind===ot.INPUT_VALUE_DEF)return Pe(l,Object.values(e.getTypeMap()).filter((e=>(0,Ne.isInputType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:Ve.Function}))))}return f===ot.VARIABLE_DEFINITION&&2===h||f===ot.LIST_TYPE&&1===h||f===ot.NAMED_TYPE&&m&&(m.kind===ot.VARIABLE_DEFINITION||m.kind===ot.LIST_TYPE||m.kind===ot.NON_NULL_TYPE)?function(e,t,n){return Pe(e,De(t.getTypeMap()).filter(Ne.isInputType).map((e=>({label:e.name,documentation:e.description,kind:Ve.Variable}))))}(l,e):f===ot.DIRECTIVE?function(e,t,n,r){var i;return(null===(i=t.prevState)||void 0===i?void 0:i.kind)?Pe(e,n.getDirectives().filter((e=>yt(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:Ve.Function})))):[]}(l,c,e):[]}const pt=" {\n $1\n}",dt=e=>{const{type:t}=e;if((0,Ne.isCompositeType)(t))return pt;if((0,Ne.isListType)(t)&&(0,Ne.isCompositeType)(t.ofType))return pt;if((0,Ne.isNonNullType)(t)){if((0,Ne.isCompositeType)(t.ofType))return pt;if((0,Ne.isListType)(t.ofType)&&(0,Ne.isCompositeType)(t.ofType.ofType))return pt}return null},ft=(e,t)=>{var n,r,i,o,a,s,l,c,u,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(u=null===(c=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===u?void 0:u.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function ht(e,t,n){let r,i=null;const o=Object.create({});return vt(e,((e,a)=>{if((null==a?void 0:a.kind)===ot.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===ot.NAMED_TYPE&&i){const e=ft(a,ot.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}i&&r&&!o[i]&&(o[i]={detail:r.toString(),insertText:"$"===n.string?i:"$"+i,label:i,type:r,kind:Ve.Variable},i=null,r=null)})),De(o)}function mt(e){const t=[];return vt(e,((e,n)=>{n.kind===ot.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ot.FRAGMENT_DEFINITION,name:{kind:Ne.Kind.NAME,value:n.name},selectionSet:{kind:ot.SELECTION_SET,selections:[]},typeCondition:{kind:ot.NAMED_TYPE,name:{kind:Ne.Kind.NAME,value:n.type}}})})),t}function gt(e,t,n=0){let r=null,i=null,o=null;const a=vt(e,((e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n{var f;switch(t.kind){case ot.QUERY:case"ShortQuery":p=e.getQueryType();break;case ot.MUTATION:p=e.getMutationType();break;case ot.SUBSCRIPTION:p=e.getSubscriptionType();break;case ot.INLINE_FRAGMENT:case ot.FRAGMENT_DEFINITION:t.type&&(p=e.getType(t.type));break;case ot.FIELD:case ot.ALIASED_FIELD:p&&t.name?(a=u?Le(e,u,t.name):null,p=a?a.type:null):a=null;break;case ot.SELECTION_SET:u=(0,Ne.getNamedType)(p);break;case ot.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case ot.INTERFACE_DEF:t.name&&(l=null,d=new Ne.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case ot.OBJECT_TYPE_DEF:t.name&&(d=null,l=new Ne.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case ot.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case ot.FIELD:r=a&&a.args;break;case ot.DIRECTIVE:r=i&&i.args;break;case ot.ALIASED_FIELD:{const n=null===(f=t.prevState)||void 0===f?void 0:f.name;if(!n){r=null;break}const i=u?Le(e,u,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case ot.ARGUMENT:if(r)for(let e=0;ee.value===t.name)):null;break;case ot.LIST_VALUE:const m=(0,Ne.getNullableType)(s);s=m instanceof Ne.GraphQLList?m.ofType:null;break;case ot.OBJECT_VALUE:const g=(0,Ne.getNamedType)(s);c=g instanceof Ne.GraphQLInputObjectType?g.getFields():null;break;case ot.OBJECT_FIELD:const v=t.name&&c?c[t.name]:null;s=null==v?void 0:v.type;break;case ot.NAMED_TYPE:t.name&&(p=e.getType(t.name))}})),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:c,parentType:u,type:p,interfaceDef:d,objectTypeDef:l}}var Et;function wt(e){return e.prevState&&e.kind&&[ot.NAMED_TYPE,ot.LIST_TYPE,ot.TYPE,ot.NON_NULL_TYPE].includes(e.kind)?wt(e.prevState):e}!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE"}(Et||(Et={}));var Tt=n(801),St=n.n(Tt);const kt=(e,t)=>{if(!t)return[];let n;try{n=(0,Ne.parse)(e)}catch(e){return[]}return Ot(n,t)},Ot=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,Ne.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const e of r)!n.has(e)&&t.has(e)&&i.add(St()(t.get(e)));const o=[];for(const e of i)(0,Ne.visit)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(St()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e);return o};function xt(e,t){e.push(t)}function Ct(e,t){(0,Ne.isNonNullType)(t)?(Ct(e,t.ofType),xt(e,"!")):(0,Ne.isListType)(t)?(xt(e,"["),Ct(e,t.ofType),xt(e,"]")):xt(e,t.name)}function _t(e,t,n){const r=[],i="type"in e?e.type:e;return"type"in e&&e.description&&(xt(r,e.description),xt(r,"\n\n")),xt(r,function(e,t){const n=[];return t&&xt(n,"```graphql\n"),Ct(n,e),t&&xt(n,"\n```"),n.join("")}(i,t)),n?(xt(r,"\n"),xt(r,n)):!(0,Ne.isScalarType)(i)&&"description"in i&&i.description?(xt(r,"\n"),xt(r,i.description)):"ofType"in i&&!(0,Ne.isScalarType)(i.ofType)&&"description"in i.ofType&&i.ofType.description&&(xt(r,"\n"),xt(r,i.ofType.description)),r.join("")}const Nt={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}};class It{constructor(){this.set=new Set}mark(e){return!this.set.has(e)&&(this.set.add(e),!0)}}function Lt(e,t){var n,r;let i=Object.create(null);const o=Object.create(null),a="type"in e?e.type:e,s=(0,Ne.isNonNullType)(a)?a.ofType:a,l=(0,Ne.isNonNullType)(a);if((0,Ne.isScalarType)(s))(null===(n=null==t?void 0:t.scalarSchemas)||void 0===n?void 0:n[s.name])?i=JSON.parse(JSON.stringify(t.scalarSchemas[s.name])):i.type=["string","number","boolean","integer"],l||(Array.isArray(i.type)?i.type.push("null"):i.type?i.type=[i.type,"null"]:i.enum?i.enum.push(null):i.oneOf?i.oneOf.push({type:"null"}):i={oneOf:[i,{type:"null"}]});else if((0,Ne.isEnumType)(s))i.enum=s.getValues().map((e=>e.name)),l||i.enum.push(null);else if((0,Ne.isListType)(s)){i.type=l?"array":["array","null"];const{definition:e,definitions:n}=Lt(s.ofType,t);if(i.items=e,n)for(const e of Object.keys(n))o[e]=n[e]}else if((0,Ne.isInputObjectType)(s)&&(l?i.$ref=`#/definitions/${s.name}`:i.oneOf=[{$ref:`#/definitions/${s.name}`},{type:"null"}],null===(r=null==t?void 0:t.definitionMarker)||void 0===r?void 0:r.mark(s.name))){const e=s.getFields(),n={type:"object",properties:{},required:[]};n.description=_t(s),(null==t?void 0:t.useMarkdownDescription)&&(n.markdownDescription=_t(s,!0));for(const r of Object.keys(e)){const i=e[r],{required:a,definition:s,definitions:l}=Lt(i,t);if(n.properties[r]=s,a&&n.required.push(r),l)for(const[e,t]of Object.entries(l))o[e]=t}o[s.name]=n}"defaultValue"in e&&void 0!==e.defaultValue&&(i.default=e.defaultValue);const{description:c}=i;return i.description=_t(e,!1,c),(null==t?void 0:t.useMarkdownDescription)&&(i.markdownDescription=_t(e,!0,c)),{required:l,definition:i,definitions:o}}function At(e,t){var n;const r={$schema:"http://json-schema.org/draft-04/schema",type:"object",properties:{},required:[]},i=Object.assign(Object.assign({},t),{definitionMarker:new It,scalarSchemas:Object.assign(Object.assign({},Nt),null==t?void 0:t.scalarSchemas)});if(e)for(const[t,o]of Object.entries(e)){const{definition:e,required:a,definitions:s}=Lt(o,i);r.properties[t]=e,a&&(null===(n=r.required)||void 0===n||n.push(t)),s&&(r.definitions=Object.assign(Object.assign({},null==r?void 0:r.definitions),s))}return r}function Dt(e,t,n){const r=Pt(e,n);let i;return(0,Ne.visit)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=r&&r<=e.loc.end))return!1;i=e},leave(e){if(e.loc&&e.loc.start<=r&&r<=e.loc.end)return!1}}),i}function Pt(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map((e=>e.length+1)).reduce(((e,t)=>e+t),0)}class Rt{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new Mt(e,t)}setEnd(e,t){this.end=new Mt(e,t)}}class Mt{constructor(e,t){this.lessThanOrEqualTo=e=>this.linee!==Ne.NoUnusedFragmentsRule&&e!==Ne.ExecutableDefinitionsRule&&(!r||e!==Ne.KnownFragmentNamesRule)));return n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,Ft),(0,Ne.validate)(e,t,o).filter((e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===Ne.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}function Vt(e,t){const n=Object.create(null);for(const r of t.definitions)if("OperationDefinition"===r.kind){const{variableDefinitions:t}=r;if(t)for(const{variable:r,type:i}of t){const t=(0,Ne.typeFromAST)(e,i);t?n[r.name.value]=t:i.kind===Ne.Kind.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=Ne.GraphQLFloat)}}return n}function Bt(e,t){const n=t?Vt(t,e):void 0,r=[];return(0,Ne.visit)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function qt(e,t){if(t)try{const n=(0,Ne.parse)(t);return Object.assign(Object.assign({},Bt(n,e)),{documentAST:n})}catch(e){return}}const zt=qt;var Gt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Qt="GraphQL";function Ut(e,t){if(!e)throw new Error(t)}function Ht(e,t){const n=t.loc;return Ut(n,"Expected ASTNode to have a location."),function(e,t){const n=jt(e,t.start),r=jt(e,t.end);return new Rt(n,r)}(e,n)}function Kt(e,t){const n=t.loc;return Ut(n,"Expected ASTNode to have a location."),jt(e,n.start)}function Wt(e,t,n){return Gt(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name&&e.name.value===r));if(0===i.length)throw new Error(`Definition not found for GraphQL type ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>function(e,t,n){const{name:r}=n;return Ut(r,"Expected ASTNode to have a Name."),{path:e,position:Kt(t,n),range:Ht(t,n),name:r.value||"",language:Qt,projectRoot:e}}(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>Ht(e,t)))}}))}function Yt(e,t,n){var r;return Gt(this,void 0,void 0,(function*(){const i=n.filter((({definition:e})=>e.name&&e.name.value===t));if(0===i.length)throw new Error(`Definition not found for GraphQL type ${t}`);const o=[];for(const{filePath:t,content:n,definition:a}of i){const i=null===(r=a.fields)||void 0===r?void 0:r.find((t=>t.name.value===e));null!=i&&o.push(en(t||"",n,i))}return{definitions:o,queryRange:[]}}))}function Xt(e,t,n){return Gt(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name.value===r));if(0===i.length)throw new Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>Zt(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>Ht(e,t)))}}))}function Jt(e,t,n){return{definitions:[Zt(e,t,n)],queryRange:n.name?[Ht(t,n.name)]:[]}}function Zt(e,t,n){const{name:r}=n;if(!r)throw new Error("Expected ASTNode to have a Name.");return{path:e,position:Kt(t,n),range:Ht(t,n),name:r.value||"",language:Qt,projectRoot:e}}function en(e,t,n){const{name:r}=n;return Ut(r,"Expected ASTNode to have a Name."),{path:e,position:Kt(t,n),range:Ht(t,n),name:r.value||"",language:Qt,projectRoot:e}}const tn={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},nn={[tn.Error]:1,[tn.Warning]:2,[tn.Information]:3,[tn.Hint]:4},rn=(e,t)=>{if(!e)throw new Error(t)};function on(e,t=null,n,r,i){var o,a;let s=null,l="";i&&(l="string"==typeof i?i:i.reduce(((e,t)=>e+(0,Ne.print)(t)+"\n\n"),""));const c=l?`${e}\n\n${l}`:e;try{s=(0,Ne.parse)(c)}catch(e){if(e instanceof Ne.GraphQLError){const t=ln(null!==(a=null===(o=e.locations)||void 0===o?void 0:o[0])&&void 0!==a?a:{line:0,column:0},c);return[{severity:nn.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return an(s,t,n,r)}function an(e,t=null,n,r){if(!t)return[];const i=$t(t,e,n,r).flatMap((e=>sn(e,nn.Error,"Validation"))),o=(0,Ne.validate)(t,e,[Ne.NoDeprecatedCustomRule]).flatMap((e=>sn(e,nn.Warning,"Deprecation")));return i.concat(o)}function sn(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){rn(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=cn(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new Rt(new Mt(o.line-1,o.column-1),new Mt(o.line-1,l))})}}return r}function ln(e,t){const n=Xe(),r=n.startState(),i=t.split("\n");rn(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t({representativeName:t.name,startPosition:jt(e,t.loc.start),endPosition:jt(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field(e){const n=e.alias?[dn("plain",e.alias),dn("plain",": ")]:[];return n.push(dn("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[dn("keyword",e.operation),dn("whitespace"," "),dn("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let t=0;te.value,FragmentDefinition:e=>Object.assign({tokenizedText:[dn("keyword","fragment"),dn("whitespace"," "),dn("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[dn("keyword","interface"),dn("whitespace"," "),dn("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[dn("keyword","enum"),dn("whitespace"," "),dn("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[dn("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[dn("keyword","type"),dn("whitespace"," "),dn("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[dn("keyword","input"),dn("whitespace"," "),dn("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[dn("plain","..."),dn("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[dn("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[dn("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,Ne.visit)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function dn(e,t){return{kind:e,value:t}}function fn(e,t,n,r,i){const o=r||gt(t,n);if(!e||!o||!o.state)return"";const{kind:a,step:s}=o.state,l=bt(e,o.state),c=Object.assign(Object.assign({},i),{schema:e});if("Field"===a&&0===s&&l.fieldDef||"AliasedField"===a&&2===s&&l.fieldDef){const e=[];return hn(e,c),function(e,t,n){gn(e,t,n),yn(e,t,n,t.type)}(e,l,c),mn(e,c),En(e,0,l.fieldDef),e.join("").trim()}if("Directive"===a&&1===s&&l.directiveDef){const e=[];return hn(e,c),vn(e,l),mn(e,c),En(e,0,l.directiveDef),e.join("").trim()}if("Argument"===a&&0===s&&l.argDef){const e=[];return hn(e,c),function(e,t,n){if(t.directiveDef?vn(e,t):t.fieldDef&&gn(e,t,n),!t.argDef)return;const{name:r}=t.argDef;wn(e,"("),wn(e,r),yn(e,t,n,t.inputType),wn(e,")")}(e,l,c),mn(e,c),En(e,0,l.argDef),e.join("").trim()}if("EnumValue"===a&&l.enumValue&&"description"in l.enumValue){const e=[];return hn(e,c),function(e,t,n){if(!t.enumValue)return;const{name:r}=t.enumValue;bn(e,t,n,t.inputType),wn(e,"."),wn(e,r)}(e,l,c),mn(e,c),En(e,0,l.enumValue),e.join("").trim()}if("NamedType"===a&&l.type&&"description"in l.type){const e=[];return hn(e,c),bn(e,l,c,l.type),mn(e,c),En(e,0,l.type),e.join("").trim()}return""}function hn(e,t){t.useMarkdown&&wn(e,"```graphql\n")}function mn(e,t){t.useMarkdown&&wn(e,"\n```")}function gn(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(bn(e,t,n,t.parentType),wn(e,".")),wn(e,r)}function vn(e,t,n){t.directiveDef&&wn(e,"@"+t.directiveDef.name)}function yn(e,t,n,r){wn(e,": "),bn(e,t,n,r)}function bn(e,t,n,r){r&&(r instanceof Ne.GraphQLNonNull?(bn(e,t,n,r.ofType),wn(e,"!")):r instanceof Ne.GraphQLList?(wn(e,"["),bn(e,t,n,r.ofType),wn(e,"]")):wn(e,r.name))}function En(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(wn(e,"\n\n"),wn(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason||null;r&&(wn(e,"\n\n"),wn(e,"Deprecated: "),wn(e,r))}(e,0,n)}function wn(e,t){e.push(t)}},1702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(5569),i=n(9530),o=n(825);class a extends Error{constructor(e,...t){var n,o,l;const{nodes:c,source:u,positions:p,path:d,originalError:f,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=u?u:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=p?p:null==m?void 0:m.map((e=>e.start)),this.locations=p&&u?p.map((e=>(0,i.getLocation)(u,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const g=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(l=null!=h?h:g)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},9211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(1702),i=n(1352),o=n(6107)},6107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=(0,r.toError)(e);return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,{nodes:null!==(o=a.nodes)&&void 0!==o?o:t,source:a.source,positions:a.positions,path:n,originalError:a});var s};var r=n(2036),i=n(1702)},1352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(1702)},1516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return l(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&l(e,t,n,r,s.selectionSet,o,a);return o};var r=n(7030),i=n(3754),o=n(8685),a=n(6693),s=n(8113);function l(e,t,n,i,o,a,s){for(const d of o.selections)switch(d.kind){case r.Kind.FIELD:{if(!c(n,d))continue;const e=(p=d).alias?p.alias.value:p.name.value,t=a.get(e);void 0!==t?t.push(d):a.set(e,[d]);break}case r.Kind.INLINE_FRAGMENT:if(!c(n,d)||!u(e,d,i))continue;l(e,t,n,i,d.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=d.name.value;if(s.has(r)||!c(n,d))continue;s.add(r);const o=t[r];if(!o||!u(e,o,i))continue;l(e,t,n,i,o.selectionSet,a,s);break}}var p}function c(e,t){const n=(0,s.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function u(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.typeFromAST)(e,r);return o===n||!!(0,i.isAbstractType)(o)&&e.isSubType(o,n)}},6892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=O,t.buildExecutionContext=x,t.buildResolveInfo=N,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=S,t.executeSync=function(e){const t=S(e);if((0,l.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=j;var r=n(3028),i=n(9657),o=n(1321),a=n(4820),s=n(5569),l=n(7724),c=n(2104),u=n(6506),p=n(4702),d=n(5662),f=n(1702),h=n(6107),m=n(6257),g=n(7030),v=n(3754),y=n(8364),b=n(9873),E=n(1516),w=n(8113);const T=(0,c.memoize3)(((e,t,n)=>(0,E.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n)));function S(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;O(t,n,i);const a=x(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new f.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,E.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return C(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,d.promiseReduce)(i.entries(),((i,[o,a])=>{const s=(0,u.addPath)(r,o,t.name),c=_(e,t,n,a,s);return void 0===c?i:(0,l.isPromise)(c)?c.then((e=>(i[o]=e,i))):(i[o]=c,i)}),Object.create(null))}(e,r,n,o,i);case m.OperationTypeNode.SUBSCRIPTION:return C(e,r,n,o,i)}}(a,e,o);return(0,l.isPromise)(t)?t.then((e=>k(e,a.errors)),(e=>(a.errors.push(e),k(null,a.errors)))):k(t,a.errors)}catch(e){return a.errors.push(e),k(null,a.errors)}}function k(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function O(e,t,n){t||(0,r.devAssert)(!1,"Must provide document."),(0,b.assertValidSchema)(e),null==n||(0,s.isObjectLike)(n)||(0,r.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function x(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:l,fieldResolver:c,typeResolver:u,subscribeFieldResolver:p}=e;let d;const h=Object.create(null);for(const e of i.definitions)switch(e.kind){case g.Kind.OPERATION_DEFINITION:if(null==l){if(void 0!==d)return[new f.GraphQLError("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(d=e);break;case g.Kind.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!d)return null!=l?[new f.GraphQLError(`Unknown operation named "${l}".`)]:[new f.GraphQLError("Must provide an operation.")];const m=null!==(n=d.variableDefinitions)&&void 0!==n?n:[],v=(0,w.getVariableValues)(r,m,null!=s?s:{},{maxErrors:50});return v.errors?v.errors:{schema:r,fragments:h,rootValue:o,contextValue:a,operation:d,variableValues:v.coerced,fieldResolver:null!=c?c:M,typeResolver:null!=u?u:R,subscribeFieldResolver:null!=p?p:M,errors:[]}}function C(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,c]of i.entries()){const i=_(e,t,n,c,(0,u.addPath)(r,s,t.name));void 0!==i&&(o[s]=i,(0,l.isPromise)(i)&&(a=!0))}}catch(e){if(a)return(0,p.promiseForObject)(o).finally((()=>{throw e}));throw e}return a?(0,p.promiseForObject)(o):o}function _(e,t,n,r,i){var o;const a=j(e.schema,t,r[0]);if(!a)return;const s=a.type,c=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,p=N(e,a,r,t,i);try{const t=c(n,(0,w.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,p);let o;return o=(0,l.isPromise)(t)?t.then((t=>L(e,s,r,p,i,t))):L(e,s,r,p,i,t),(0,l.isPromise)(o)?o.then(void 0,(t=>I((0,h.locatedError)(t,r,(0,u.pathToArray)(i)),s,e))):o}catch(t){return I((0,h.locatedError)(t,r,(0,u.pathToArray)(i)),s,e)}}function N(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function I(e,t,n){if((0,v.isNonNullType)(t))throw e;return n.errors.push(e),null}function L(e,t,n,r,s,c){if(c instanceof Error)throw c;if((0,v.isNonNullType)(t)){const i=L(e,t.ofType,n,r,s,c);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==c?null:(0,v.isListType)(t)?function(e,t,n,r,i,o){if(!(0,a.isIterableObject)(o))throw new f.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let c=!1;const p=Array.from(o,((t,o)=>{const a=(0,u.addPath)(i,o,void 0);try{let i;return i=(0,l.isPromise)(t)?t.then((t=>L(e,s,n,r,a,t))):L(e,s,n,r,a,t),(0,l.isPromise)(i)?(c=!0,i.then(void 0,(t=>I((0,h.locatedError)(t,n,(0,u.pathToArray)(a)),s,e)))):i}catch(t){return I((0,h.locatedError)(t,n,(0,u.pathToArray)(a)),s,e)}}));return c?Promise.all(p):p}(e,t,n,r,s,c):(0,v.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.inspect)(e)}.serialize(${(0,i.inspect)(t)})\` to return non-nullable value, returned: ${(0,i.inspect)(n)}`);return n}(t,c):(0,v.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,c=e.contextValue,u=s(o,c,r,t);return(0,l.isPromise)(u)?u.then((a=>D(e,A(a,e,t,n,r,o),n,r,i,o))):D(e,A(u,e,t,n,r,o),n,r,i,o)}(e,t,n,r,s,c):(0,v.isObjectType)(t)?D(e,t,n,r,s,c):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,i.inspect)(t))}function A(e,t,n,r,o,a){if(null==e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,v.isObjectType)(e))throw new f.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.inspect)(a)}, received "${(0,i.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,v.isObjectType)(s))throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function D(e,t,n,r,i,o){const a=T(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if((0,l.isPromise)(s))return s.then((r=>{if(!r)throw P(t,o,n);return C(e,t,o,i,a)}));if(!s)throw P(t,o,n)}return C(e,t,o,i,a)}function P(e,t,n){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const R=function(e,t,n,r){if((0,s.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return o.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return i.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return i.defaultTypeResolver}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return i.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return i.executeSync}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return a.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return a.getVariableValues}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.pathToArray}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return o.subscribe}});var r=n(6506),i=n(6892),o=n(9567),a=n(8113)},1215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapAsyncIterator=function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},9567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await f(e);return(0,o.isAsyncIterable)(t)?(0,p.mapAsyncIterator)(t,(t=>(0,u.execute)({...e,rootValue:t}))):t};var r=n(3028),i=n(9657),o=n(1619),a=n(6506),s=n(1702),l=n(6107),c=n(1516),u=n(6892),p=n(1215),d=n(8113);async function f(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:p}=t;(0,u.assertValidExecutionArguments)(n,r,p);const f=(0,u.buildExecutionContext)(t);if(!("schema"in f))return{errors:f};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,p=t.getSubscriptionType();if(null==p)throw new s.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});const f=(0,c.collectFields)(t,n,i,p,r.selectionSet),[h,m]=[...f.entries()][0],g=(0,u.getFieldDef)(t,p,m[0]);if(!g){const e=m[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:m})}const v=(0,a.addPath)(void 0,h,p.name),y=(0,u.buildResolveInfo)(e,g,m,p,v);try{var b;const t=(0,d.getArgumentValues)(g,m[0],i),n=e.contextValue,r=null!==(b=g.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,a=await r(o,t,n,y);if(a instanceof Error)throw a;return a}catch(e){throw(0,l.locatedError)(e,m,(0,a.pathToArray)(v))}}(f);if(!(0,o.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.inspect)(e)}.`);return e}catch(e){if(e instanceof s.GraphQLError)return{errors:[e]};throw e}}},8113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=f,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return f(e,i,n)},t.getVariableValues=function(e,t,n,i){const s=[],f=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const f of t){const t=f.variable.name.value,m=(0,p.typeFromAST)(e,f.type);if(!(0,c.isInputType)(m)){const e=(0,l.print)(f.type);i(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!h(n,t)){if(f.defaultValue)s[t]=(0,d.valueFromAST)(f.defaultValue,m);else if((0,c.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const g=n[t];if(null===g&&(0,c.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}))}else s[t]=(0,u.coerceInputValue)(g,m,((e,n,s)=>{let l=`Variable "$${t}" got invalid value `+(0,r.inspect)(n);e.length>0&&(l+=` at "${t}${(0,o.printPathArray)(e)}"`),i(new a.GraphQLError(l+"; "+s.message,{nodes:f,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=f&&s.length>=f)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:i}}catch(e){s.push(e)}return{errors:s}};var r=n(9657),i=n(4590),o=n(636),a=n(1702),s=n(7030),l=n(585),c=n(3754),u=n(4090),p=n(6693),d=n(2302);function f(e,t,n){var o;const u={},p=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.keyMap)(p,(e=>e.name.value));for(const i of e.args){const e=i.name,o=i.type,p=f[e];if(!p){if(void 0!==i.defaultValue)u[e]=i.defaultValue;else if((0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was not provided.`,{nodes:t});continue}const m=p.value;let g=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!h(n,t)){if(void 0!==i.defaultValue)u[e]=i.defaultValue;else if((0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:m});continue}g=null==n[t]}if(g&&(0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,r.inspect)(o)}" must not be null.`,{nodes:m});const v=(0,d.valueFromAST)(m,o,n);if(void 0===v)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,l.print)(m)}.`,{nodes:m});u[e]=v}return u}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise((t=>t(c(e))))},t.graphqlSync=function(e){const t=c(e);if((0,i.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(3028),i=n(7724),o=n(246),a=n(9873),s=n(9040),l=n(6892);function c(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:i,contextValue:c,variableValues:u,operationName:p,fieldResolver:d,typeResolver:f}=e,h=(0,a.validateSchema)(t);if(h.length>0)return{errors:h};let m;try{m=(0,o.parse)(n)}catch(e){return{errors:[e]}}const g=(0,s.validate)(t,m);return g.length>0?{errors:g}:(0,l.execute)({schema:t,document:m,rootValue:i,contextValue:c,variableValues:u,operationName:p,fieldResolver:d,typeResolver:f})}},3574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return u.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return u.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return l.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return l.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return l.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return c.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return l.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return l.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return l.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return l.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return l.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return l.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return l.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return l.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return l.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return l.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return l.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return l.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return l.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return l.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return l.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return l.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return l.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return u.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return l.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return l.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return l.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return l.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return l.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return l.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return l.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return l.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return l.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return l.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return l.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return l.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return l.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return l.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return l.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return l.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return u.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return u.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return u.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return u.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return u.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return u.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return u.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return u.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return u.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return c.formatError}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return s.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return u.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return u.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return u.getOperationRootType}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return s.getVariableValues}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return u.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return u.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return u.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return u.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return c.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return c.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return u.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return u.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return u.printType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return o.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return o.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return u.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return l.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return u.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return c.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return u.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return l.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return u.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return u.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return u.visitWithTypeInfo}});var r=n(4274),i=n(9151),o=n(219),a=n(425),s=n(8259),l=n(4360),c=n(9211),u=n(4889)},6506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},3028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},2832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[r,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";r&&(o+=r+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,n),l=s.pop();return o+s.join(", ")+", or "+l+"?"};const n=5},4947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},6033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},9657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return i(e,[])};const n=10,r=2;function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const o=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,o)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";const o=Math.min(n,e.length),a=e.length-o,s=[];for(let n=0;n1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}(e,o);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>r)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const o=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+o.join(", ")+" }"}(e,o)}(e,t);default:return String(e)}}},9527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(9657);const i=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};t.instanceOf=i},1321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},1619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},4820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},5569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},4590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},5785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},3430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}},2104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},5745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let r=0,o=0;for(;r0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(lc)return 1}else{if(as)return 1;++r,++o}}return e.length-t.length};const n=48,r=57;function i(e){return!isNaN(e)&&n<=e&&e<=r}},636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}},4702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}},5662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then((e=>t(e,n))):t(i,n);return i};var r=n(7724)},1709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)}))};var r=n(5745);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.lengtht)return;const l=this._rows;for(let e=0;e<=s;e++)l[0][e]=e;for(let e=1;e<=a;e++){const n=l[(e-1)%3],o=l[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let c=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=l[(e-2)%3][t-2];c=Math.min(c,n+1)}ct)return}const c=l[a%3][s];return c<=t?c:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toError=function(e){return e instanceof Error?e:new i(e)};var r=n(9657);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}},3101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toObjMap=function(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}},6257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class r{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;const o=new Set(Object.keys(i));var a;t.OperationTypeNode=a,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(a||(t.OperationTypeNode=a={}))},9165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o1&&i.slice(1).every((e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,p=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s);let d="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(p&&!f||a)&&(d+="\n"),d+=n,(p||u)&&(d+="\n"),'"""'+d+'"""'};var r=n(3932);function i(e){let t=0;for(;t{"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},5919:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return p.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return h.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return l.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return d.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return d.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return d.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return p.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return p.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return f.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return f.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return f.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return f.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return f.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return f.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return f.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return f.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return f.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return f.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return c.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return c.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return c.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return u.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return p.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return p.visitInParallel}});var r=n(6876),i=n(9530),o=n(825),a=n(7030),s=n(3038),l=n(6083),c=n(246),u=n(585),p=n(9111),d=n(6257),f=n(9187),h=n(5919)},7030:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},6083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var r=n(1352),i=n(6257),o=n(9165),a=n(3932),s=n(3038);class l{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return p(e.charCodeAt(t))&&d(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function d(e){return e>=56320&&e<=57343}function f(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function k(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function O(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,l=t+3,p=l,d="";const m=[];for(;l{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(1321);const i=/\r\n|[\n\r]/g},246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new u(e,t).parseDocument()},t.parseConstValue=function(e,t){const n=new u(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(c.TokenKind.EOF),r},t.parseType=function(e,t){const n=new u(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(c.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new u(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(c.TokenKind.EOF),r};var r=n(1352),i=n(6257),o=n(5919),a=n(7030),s=n(6083),l=n(6876),c=n(3038);class u{constructor(e,t={}){const n=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(c.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(c.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(c.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${d(e)}, found ${p(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${p(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${p(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function p(e){const t=e.value;return d(e.kind)+(null!=t?` "${t}"`:"")}function d(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},9187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some((t=>e(t.value))):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||l(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=c,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=l,t.isValueNode=o;var r=n(7030);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function l(e){return e.kind===r.Kind.SCHEMA_EXTENSION||c(e)}function c(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9530);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,l=1===t.line?n:0,c=t.column+l,u=`${e.name}:${s}:${c}\n`,p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",p[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,p[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},7583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(9165),i=n(7583),o=n(9111);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=c("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+c(" = ",n)+c(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=c("",e,": ")+t;let a=o+c("(",s(n,", "),")");return a.length>80&&(a=o+c("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",c("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${c("(",s(n,", "),")")} on ${t} ${c("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>c("",e,"\n")+s(["schema",s(t," "),l(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["type",t,c("implements ",s(n," & ")),s(r," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>c("",e,"\n")+t+(p(n)?c("(\n",u(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>c("",e,"\n")+s([t+": "+n,c("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["interface",t,c("implements ",s(n," & ")),s(r," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>c("",e,"\n")+s(["union",t,s(n," "),c("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>c("",e,"\n")+s(["enum",t,s(n," "),l(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>c("",e,"\n")+s(["input",t,s(n," "),l(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>c("",e,"\n")+"directive @"+t+(p(n)?c("(\n",u(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,c("implements ",s(t," & ")),s(n," "),l(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,c("implements ",s(t," & ")),s(n," "),l(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),c("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),l(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),l(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function l(e){return c("{\n",u(s(e,"\n")),"\n}")}function c(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return c(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},6876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(3028),i=n(9657),o=n(9527);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},3038:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},9111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=l,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=l(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(a.Kind))c.set(e,l(t,e));let u,p,d,f=Array.isArray(e),h=[e],m=-1,g=[],v=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(p=0===b.length?void 0:y[y.length-1],v=d,d=b.pop(),a)if(f){v=v.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[e,t]of g)v[e]=t}m=u.index,h=u.keys,g=u.edits,f=u.inArray,u=u.prev}else if(d){if(p=f?m:h[m],v=d[p],null==v)continue;y.push(p)}let l;if(!Array.isArray(v)){var E,w;(0,o.isNode)(v)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(v)}.`);const n=e?null===(E=c.get(v.kind))||void 0===E?void 0:E.leave:null===(w=c.get(v.kind))||void 0===w?void 0:w.enter;if(l=null==n?void 0:n.call(t,v,p,d,y,b),l===s)break;if(!1===l){if(!e){y.pop();continue}}else if(void 0!==l&&(g.push([p,l]),!e)){if(!(0,o.isNode)(l)){y.pop();continue}v=l}}var T;void 0===l&&a&&g.push([p,v]),e?y.pop():(u={inArray:f,index:m,keys:h,edits:g,prev:u},f=Array.isArray(v),h=f?v:null!==(T=n[v.kind])&&void 0!==T?T:[],m=-1,g=[],d&&b.push(d),d=v)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertEnumValueName=function(e){if("true"===e||"false"===e||"null"===e)throw new i.GraphQLError(`Enum values cannot be named: ${e}`);return a(e)},t.assertName=a;var r=n(3028),i=n(1702),o=n(3932);function a(e){if(null!=e||(0,r.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new i.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0,t.argsToArgsConfig=H,t.assertAbstractType=function(e){if(!A(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL abstract type.`);return e},t.assertCompositeType=function(e){if(!L(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL composite type.`);return e},t.assertEnumType=function(e){if(!k(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Enum type.`);return e},t.assertInputObjectType=function(e){if(!O(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Input Object type.`);return e},t.assertInputType=function(e){if(!_(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL input type.`);return e},t.assertInterfaceType=function(e){if(!T(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Interface type.`);return e},t.assertLeafType=function(e){if(!I(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL leaf type.`);return e},t.assertListType=function(e){if(!x(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL List type.`);return e},t.assertNamedType=function(e){if(!j(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL named type.`);return e},t.assertNonNullType=function(e){if(!C(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Non-Null type.`);return e},t.assertNullableType=function(e){if(!M(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`);return e},t.assertObjectType=function(e){if(!w(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Object type.`);return e},t.assertOutputType=function(e){if(!N(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL output type.`);return e},t.assertScalarType=function(e){if(!E(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Scalar type.`);return e},t.assertType=function(e){if(!b(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`);return e},t.assertUnionType=function(e){if(!S(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Union type.`);return e},t.assertWrappingType=function(e){if(!R(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL wrapping type.`);return e},t.defineArguments=G,t.getNamedType=function(e){if(e){let t=e;for(;R(t);)t=t.ofType;return t}},t.getNullableType=function(e){if(e)return C(e)?e.ofType:e},t.isAbstractType=A,t.isCompositeType=L,t.isEnumType=k,t.isInputObjectType=O,t.isInputType=_,t.isInterfaceType=T,t.isLeafType=I,t.isListType=x,t.isNamedType=j,t.isNonNullType=C,t.isNullableType=M,t.isObjectType=w,t.isOutputType=N,t.isRequiredArgument=function(e){return C(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return C(e.type)&&void 0===e.defaultValue},t.isScalarType=E,t.isType=b,t.isUnionType=S,t.isWrappingType=R,t.resolveObjMapThunk=$,t.resolveReadonlyArrayThunk=F;var r=n(3028),i=n(2832),o=n(6033),a=n(9657),s=n(9527),l=n(5569),c=n(4590),u=n(5785),p=n(3430),d=n(1709),f=n(3101),h=n(1702),m=n(7030),g=n(585),v=n(8805),y=n(3506);function b(e){return E(e)||w(e)||T(e)||S(e)||k(e)||O(e)||x(e)||C(e)}function E(e){return(0,s.instanceOf)(e,V)}function w(e){return(0,s.instanceOf)(e,B)}function T(e){return(0,s.instanceOf)(e,K)}function S(e){return(0,s.instanceOf)(e,W)}function k(e){return(0,s.instanceOf)(e,X)}function O(e){return(0,s.instanceOf)(e,Z)}function x(e){return(0,s.instanceOf)(e,D)}function C(e){return(0,s.instanceOf)(e,P)}function _(e){return E(e)||k(e)||O(e)||R(e)&&_(e.ofType)}function N(e){return E(e)||w(e)||T(e)||S(e)||k(e)||R(e)&&N(e.ofType)}function I(e){return E(e)||k(e)}function L(e){return w(e)||T(e)||S(e)}function A(e){return T(e)||S(e)}class D{constructor(e){b(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=D;class P{constructor(e){M(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function R(e){return x(e)||C(e)}function M(e){return b(e)&&!C(e)}function j(e){return E(e)||w(e)||T(e)||S(e)||k(e)||O(e)}function F(e){return"function"==typeof e?e():e}function $(e){return"function"==typeof e?e():e}t.GraphQLNonNull=P;class V{constructor(e){var t,n,i,s;const l=null!==(t=e.parseValue)&&void 0!==t?t:o.identityFunc;this.name=(0,y.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.identityFunc,this.parseValue=l,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>l((0,v.valueFromASTUntyped)(e,t)),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=V;class B{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>z(e),this._interfaces=()=>q(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:U(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function q(e){var t;const n=F(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function z(e){const t=$(e.fields);return Q(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,p.mapValue)(t,((t,n)=>{var i;Q(t)||(0,r.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return Q(o)||(0,r.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,y.assertName)(n),description:t.description,type:t.type,args:G(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}}))}function G(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}function Q(e){return(0,l.isObjectLike)(e)&&!Array.isArray(e)}function U(e){return(0,p.mapValue)(e,(e=>({description:e.description,type:e.type,args:H(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function H(e){return(0,u.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}t.GraphQLObjectType=B;class K{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=z.bind(void 0,e),this._interfaces=q.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:U(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=K;class W{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Y.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Y(e){const t=F(e.types);return Array.isArray(t)||(0,r.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=W;class X{constructor(e){var t,n,i;this.name=(0,y.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,Q(i=e.values)||(0,r.devAssert)(!1,`${n} values must be an object with value names as keys.`),Object.entries(i).map((([e,t])=>(Q(t)||(0,r.devAssert)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${(0,a.inspect)(t)}.`),{name:(0,y.assertEnumValueName)(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=(0,c.keyMap)(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,a.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.inspect)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+J(this,t))}const t=this.getValue(e);if(null==t)throw new h.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+J(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,g.print)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+J(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.print)(e);throw new h.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+J(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,u.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function J(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.suggestionList)(t,n);return(0,i.didYouMean)("the enum value",r)}t.GraphQLEnumType=X;class Z{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ee.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,p.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ee(e){const t=$(e.fields);return Q(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,p.mapValue)(t,((t,n)=>(!("resolve"in t)||(0,r.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,y.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}t.GraphQLInputObjectType=Z},8685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!d(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=d,t.isSpecifiedDirective=function(e){return b.some((({name:t})=>t===e.name))},t.specifiedDirectives=void 0;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),l=n(5919),c=n(3506),u=n(3754),p=n(1062);function d(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.name=(0,c.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.devAssert)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.isObjectLike)(i)&&!Array.isArray(i)||(0,r.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,u.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,u.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=f;const h=new f({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.DirectiveLocation.FIELD,l.DirectiveLocation.FRAGMENT_SPREAD,l.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new u.GraphQLNonNull(p.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=h;const m=new f({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.DirectiveLocation.FIELD,l.DirectiveLocation.FRAGMENT_SPREAD,l.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new u.GraphQLNonNull(p.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const v=new f({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.DirectiveLocation.FIELD_DEFINITION,l.DirectiveLocation.ARGUMENT_DEFINITION,l.DirectiveLocation.INPUT_FIELD_DEFINITION,l.DirectiveLocation.ENUM_VALUE],args:{reason:{type:p.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=v;const y=new f({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[l.DirectiveLocation.SCALAR],args:{url:{type:new u.GraphQLNonNull(p.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=y;const b=Object.freeze([h,m,v,y]);t.specifiedDirectives=b},219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return c.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return c.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return l.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return i.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return i.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return l.validateSchema}});var r=n(4648),i=n(3754),o=n(8685),a=n(1062),s=n(8364),l=n(9873),c=n(3506)},8364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return T.some((({name:t})=>e.name===t))};var r=n(9657),i=n(1321),o=n(5919),a=n(585),s=n(8096),l=n(3754),c=n(1062);const u=new l.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.GraphQLNonNull(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(p))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const p=new l.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})});t.__Directive=p;const d=new l.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const f=new l.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new l.GraphQLNonNull(y),resolve:e=>(0,l.isScalarType)(e)?v.SCALAR:(0,l.isObjectType)(e)?v.OBJECT:(0,l.isInterfaceType)(e)?v.INTERFACE:(0,l.isUnionType)(e)?v.UNION:(0,l.isEnumType)(e)?v.ENUM:(0,l.isInputObjectType)(e)?v.INPUT_OBJECT:(0,l.isListType)(e)?v.LIST:(0,l.isNonNullType)(e)?v.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.GraphQLList(new l.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.GraphQLList(new l.GraphQLNonNull(f)),resolve(e){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new l.GraphQLList(new l.GraphQLNonNull(f)),resolve(e,t,n,{schema:r}){if((0,l.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new l.GraphQLList(new l.GraphQLNonNull(g)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isEnumType)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.GraphQLList(new l.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0}})});t.__Type=f;const h=new l.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new l.GraphQLNonNull(f),resolve:e=>e.type},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=h;const m=new l.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new l.GraphQLNonNull(f),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,a.print)(r):null}},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const g=new l.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new l.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new l.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});var v;t.__EnumValue=g,t.TypeKind=v,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(v||(t.TypeKind=v={}));const y=new l.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const b={name:"__schema",type:new l.GraphQLNonNull(u),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=b;const E={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.GraphQLNonNull(c.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=E;const w={name:"__typename",type:new l.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=w;const T=Object.freeze([u,p,d,f,h,m,g,y]);t.introspectionTypes=T},1062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0,t.isSpecifiedScalarType=function(e){return g.some((({name:t})=>e.name===t))},t.specifiedScalarTypes=void 0;var r=n(9657),i=n(5569),o=n(1702),a=n(7030),s=n(585),l=n(3754);const c=2147483647;t.GRAPHQL_MAX_INT=c;const u=-2147483648;t.GRAPHQL_MIN_INT=u;const p=new l.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=v(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>c||nc||ec||t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0,t.assertSchema=function(e){if(!d(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL schema.`);return e},t.isSchema=d;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),l=n(6257),c=n(3754),u=n(8685),p=n(8364);function d(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.isObjectLike)(e)||(0,r.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:u.specifiedDirectives;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),h(t,o);null!=this._queryType&&h(this._queryType,o),null!=this._mutationType&&h(this._mutationType,o),null!=this._subscriptionType&&h(this._subscriptionType,o);for(const e of this._directives)if((0,u.isDirective)(e))for(const t of e.args)h(t.type,o);h(p.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,c.isInterfaceType)(e)){for(const t of e.getInterfaces())if((0,c.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,c.isObjectType)(e))for(const t of e.getInterfaces())if((0,c.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.OperationTypeNode.QUERY:return this.getQueryType();case l.OperationTypeNode.MUTATION:return this.getMutationType();case l.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,c.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,c.isUnionType)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function h(e,t){const n=(0,c.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,c.isUnionType)(n))for(const e of n.getTypes())h(e,t);else if((0,c.isObjectType)(n)||(0,c.isInterfaceType)(n)){for(const e of n.getInterfaces())h(e,t);for(const e of Object.values(n.getFields())){h(e.type,t);for(const n of e.args)h(n.type,t)}}else if((0,c.isInputObjectType)(n))for(const e of Object.values(n.getFields()))h(e.type,t);return t}t.GraphQLSchema=f},9873:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.validateSchema=p;var r=n(9657),i=n(1702),o=n(6257),a=n(3448),s=n(3754),l=n(8685),c=n(8364),u=n(4648);function p(e){if((0,u.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new d(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=f(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var l;a&&!(0,s.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(l=f(t,o.OperationTypeNode.MUTATION))&&void 0!==l?l:a.astNode);const c=t.getSubscriptionType();var u;c&&!(0,s.isObjectType)(c)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(c)}.`,null!==(u=f(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==u?u:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.isDirective)(n)){h(e,n);for(const i of n.args){var t;h(e,i),(0,s.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,s.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[k(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.isNonNullType)(t.type)&&(0,s.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.isNamedType)(i)?((0,c.isIntrospectionType)(i)||h(e,i),(0,s.isObjectType)(i)||(0,s.isInterfaceType)(i)?(m(e,i),g(e,i)):(0,s.isUnionType)(i)?b(e,i):(0,s.isEnumType)(i)?E(e,i):(0,s.isInputObjectType)(i)&&(w(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class d{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}}function f(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function h(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const l of n){var i;h(e,l),(0,s.isOutputType)(l.type)||e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${(0,r.inspect)(l.type)}.`,null===(i=l.astNode)||void 0===i?void 0:i.type);for(const n of l.args){const i=n.name;var o,a;h(e,n),(0,s.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${l.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${l.name}(${i}:) cannot be deprecated.`,[k(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function g(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,T(t,i)):(n[i.name]=!0,y(e,t,i),v(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,T(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,T(t,i))}function v(e,t,n){const i=t.getFields();for(const p of Object.values(n.getFields())){const d=p.name,f=i[d];if(f){var o,l;(0,a.isTypeSubTypeOf)(e.schema,f.type,p.type)||e.reportError(`Interface field ${n.name}.${d} expects type ${(0,r.inspect)(p.type)} but ${t.name}.${d} is type ${(0,r.inspect)(f.type)}.`,[null===(o=p.astNode)||void 0===o?void 0:o.type,null===(l=f.astNode)||void 0===l?void 0:l.type]);for(const i of p.args){const o=i.name,s=f.args.find((e=>e.name===o));var c,u;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${d}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(c=i.astNode)||void 0===c?void 0:c.type,null===(u=s.astNode)||void 0===u?void 0:u.type]):e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!p.args.find((e=>e.name===i))&&(0,s.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${i} that is missing from the Interface field ${n.name}.${d}.`,[r.astNode,p.astNode])}}else e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes])}}function y(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...T(n,i),...T(t,n)])}function b(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,S(t,o.name)):(i[o.name]=!0,(0,s.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,S(t,String(o))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)h(e,t)}function w(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;h(e,a),(0,s.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[k(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function T(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function S(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function k(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.GraphQLDeprecatedDirective.name))}},7485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.getEnterLeaveForKind)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(6257),i=n(7030),o=n(9111),a=n(3754),s=n(8364),l=n(6693);class c{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:u,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case i.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,l.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case i.Kind.VARIABLE_DEFINITION:{const n=(0,l.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case i.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case i.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}}}function u(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=c},8426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(3028),i=n(1702),o=n(3506);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},8096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,l.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,l.isListType)(n)){const r=n.ofType;if((0,o.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,l.isInputObjectType)(n)){if(!(0,a.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,l.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return u.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,l.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===c.GraphQLID&&u.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(9657),i=n(1321),o=n(4820),a=n(5569),s=n(7030),l=n(3754),c=n(1062);const u=/^-?(?:0|[1-9][0-9]*)$/},434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=u,t.buildSchema=function(e,t){return u((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(3028),i=n(7030),o=n(246),a=n(8685),s=n(4648),l=n(9040),c=n(1442);function u(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,l.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,c.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const u=[...o.directives,...a.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new s.GraphQLSchema({...o,directives:u})}},6613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,r.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.inspect)(e)}.`);const n=e.__schema,h=(0,a.keyValMap)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case u.TypeKind.SCALAR:return r=e,new l.GraphQLScalarType({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case u.TypeKind.OBJECT:return n=e,new l.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>S(n),fields:()=>k(n)});case u.TypeKind.INTERFACE:return t=e,new l.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>S(t),fields:()=>k(t)});case u.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new l.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(w)})}(e);case u.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new l.GraphQLEnumType({name:e.name,description:e.description,values:(0,a.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case u.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new l.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>x(e.inputFields)})}(e)}var t,n,r;const o=(0,i.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const e of[...p.specifiedScalarTypes,...u.introspectionTypes])h[e.name]&&(h[e.name]=e);const m=n.queryType?w(n.queryType):null,g=n.mutationType?w(n.mutationType):null,v=n.subscriptionType?w(n.subscriptionType):null,y=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new c.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:x(e.args)})})):[];return new d.GraphQLSchema({description:n.description,query:m,mutation:g,subscription:v,types:Object.values(h),directives:y,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===u.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new l.GraphQLList(b(t))}if(e.kind===u.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new l.GraphQLNonNull((0,l.assertNullableType)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.inspect)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function w(e){return(0,l.assertObjectType)(E(e))}function T(e){return(0,l.assertInterfaceType)(E(e))}function S(e){if(null===e.interfaces&&e.kind===u.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(T)}function k(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.inspect)(e)}.`);return(0,a.keyValMap)(e.fields,(e=>e.name),O)}function O(e){const t=b(e.type);if(!(0,l.isOutputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:x(e.args)}}function x(e){return(0,a.keyValMap)(e,(e=>e.name),C)}function C(e){const t=b(e.type);if(!(0,l.isInputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(3028),i=n(9657),o=n(5569),a=n(5785),s=n(246),l=n(3754),c=n(8685),u=n(8364),p=n(1062),d=n(4648),f=n(2302)},4090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=f){return h(e,t,n,void 0)};var r=n(2832),i=n(9657),o=n(1321),a=n(4820),s=n(5569),l=n(6506),c=n(636),u=n(1709),p=n(1702),d=n(3754);function f(e,t,n){let r="Invalid value "+(0,i.inspect)(t);throw e.length>0&&(r+=` at "value${(0,c.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function h(e,t,n,c){if((0,d.isNonNullType)(t))return null!=e?h(e,t.ofType,n,c):void n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected non-nullable type "${(0,i.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,d.isListType)(t)){const r=t.ofType;return(0,a.isIterableObject)(e)?Array.from(e,((e,t)=>{const i=(0,l.addPath)(c,t,void 0);return h(e,r,n,i)})):[h(e,r,n,c)]}if((0,d.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return void n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=h(a,r.type,n,(0,l.addPath)(c,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,d.isNonNullType)(r.type)){const t=(0,i.inspect)(r.type);n((0,l.pathToArray)(c),e,new p.GraphQLError(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,u.suggestionList)(i,Object.keys(t.getFields()));n((0,l.pathToArray)(c),e,new p.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}return o}if((0,d.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof p.GraphQLError?n((0,l.pathToArray)(c),e,r):n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,l.pathToArray)(c),e,new p.GraphQLError(`Expected type "${t.name}".`)),r}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(t))}},3129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(7030)},1442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,h.assertSchema)(e),null!=t&&t.kind===l.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,m.assertValidSDLExtension)(t,e);const i=e.toConfig(),o=y(i,t,n);return i===o?e:new h.GraphQLSchema(o)},t.extendSchemaImpl=y;var r=n(3028),i=n(9657),o=n(1321),a=n(4590),s=n(3430),l=n(7030),c=n(9187),u=n(3754),p=n(8685),d=n(8364),f=n(1062),h=n(4648),m=n(9040),g=n(8113),v=n(2302);function y(e,t,n){var r,a,h,m;const g=[],y=Object.create(null),T=[];let S;const k=[];for(const e of t.definitions)if(e.kind===l.Kind.SCHEMA_DEFINITION)S=e;else if(e.kind===l.Kind.SCHEMA_EXTENSION)k.push(e);else if((0,c.isTypeDefinitionNode)(e))g.push(e);else if((0,c.isTypeExtensionNode)(e)){const t=e.name.value,n=y[t];y[t]=n?n.concat([e]):[e]}else e.kind===l.Kind.DIRECTIVE_DEFINITION&&T.push(e);if(0===Object.keys(y).length&&0===g.length&&0===T.length&&0===k.length&&null==S)return e;const O=Object.create(null);for(const t of e.types)O[t.name]=(x=t,(0,d.isIntrospectionType)(x)||(0,f.isSpecifiedScalarType)(x)?x:(0,u.isScalarType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=y[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=w(e))&&void 0!==o?o:i}return new u.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isObjectType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=y[n.name])&&void 0!==t?t:[];return new u.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(I),...V(r)],fields:()=>({...(0,s.mapValue)(n.fields,L),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isInterfaceType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=y[n.name])&&void 0!==t?t:[];return new u.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(I),...V(r)],fields:()=>({...(0,s.mapValue)(n.fields,L),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isUnionType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=y[n.name])&&void 0!==t?t:[];return new u.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(I),...B(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isEnumType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=y[e.name])&&void 0!==t?t:[];return new u.GraphQLEnumType({...n,values:{...n.values,...$(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isInputObjectType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=y[n.name])&&void 0!==t?t:[];return new u.GraphQLInputObjectType({...n,fields:()=>({...(0,s.mapValue)(n.fields,(e=>({...e,type:N(e.type)}))),...F(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(x)));var x;for(const e of g){var C;const t=e.name.value;O[t]=null!==(C=b[t])&&void 0!==C?C:q(e)}const _={query:e.query&&I(e.query),mutation:e.mutation&&I(e.mutation),subscription:e.subscription&&I(e.subscription),...S&&D([S]),...D(k)};return{description:null===(r=S)||void 0===r||null===(a=r.description)||void 0===a?void 0:a.value,..._,types:Object.values(O),directives:[...e.directives.map((function(e){const t=e.toConfig();return new p.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,A)})})),...T.map((function(e){var t;return new p.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:j(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(h=S)&&void 0!==h?h:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(k),assumeValid:null!==(m=null==n?void 0:n.assumeValid)&&void 0!==m&&m};function N(e){return(0,u.isListType)(e)?new u.GraphQLList(N(e.ofType)):(0,u.isNonNullType)(e)?new u.GraphQLNonNull(N(e.ofType)):I(e)}function I(e){return O[e.name]}function L(e){return{...e,type:N(e.type),args:e.args&&(0,s.mapValue)(e.args,A)}}function A(e){return{...e,type:N(e.type)}}function D(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=P(n.type)}return t}function P(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:O[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function R(e){return e.kind===l.Kind.LIST_TYPE?new u.GraphQLList(R(e.type)):e.kind===l.Kind.NON_NULL_TYPE?new u.GraphQLNonNull(R(e.type)):P(e)}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:R(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:j(n.arguments),deprecationReason:E(n),astNode:n}}}return t}function j(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=R(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,v.valueFromAST)(e.defaultValue,t),deprecationReason:E(e),astNode:e}}return n}function F(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=R(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,v.valueFromAST)(n.defaultValue,e),deprecationReason:E(n),astNode:n}}}return t}function $(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:E(n),astNode:n}}}return t}function V(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]}))}function B(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]}))}function q(e){var t;const n=e.name.value,r=null!==(t=y[n])&&void 0!==t?t:[];switch(e.kind){case l.Kind.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new u.GraphQLObjectType({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>V(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case l.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new u.GraphQLInterfaceType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>V(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case l.Kind.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new u.GraphQLEnumType({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:$(t),astNode:e,extensionASTNodes:r})}case l.Kind.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new u.GraphQLUnionType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>B(t),astNode:e,extensionASTNodes:r})}case l.Kind.SCALAR_TYPE_DEFINITION:var c;return new u.GraphQLScalarType({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:w(e),astNode:e,extensionASTNodes:r});case l.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var p;const t=[e,...r];return new u.GraphQLInputObjectType({name:n,description:null===(p=e.description)||void 0===p?void 0:p.value,fields:()=>F(t),astNode:e,extensionASTNodes:r})}}}}const b=(0,a.keyMap)([...f.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function E(e){const t=(0,g.getDirectiveValues)(p.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function w(e){const t=(0,g.getDirectiveValues)(p.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},3666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return f(e,t).filter((e=>e.type in r))},t.findDangerousChanges=function(e,t){return f(e,t).filter((e=>e.type in i))};var r,i,o=n(9657),a=n(1321),s=n(4590),l=n(585),c=n(3754),u=n(1062),p=n(8096),d=n(1152);function f(e,t){return[...m(e,t),...h(e,t)]}function h(e,t){const n=[],i=x(e.getDirectives(),t.getDirectives());for(const e of i.removed)n.push({type:r.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of i.persisted){const i=x(e.args,t.args);for(const t of i.added)(0,c.isRequiredArgument)(t)&&n.push({type:r.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of i.removed)n.push({type:r.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:r.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const i of e.locations)t.locations.includes(i)||n.push({type:r.DIRECTIVE_LOCATION_REMOVED,description:`${i} was removed from ${e.name}.`})}return n}function m(e,t){const n=[],i=x(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of i.removed)n.push({type:r.TYPE_REMOVED,description:(0,u.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of i.persisted)(0,c.isEnumType)(e)&&(0,c.isEnumType)(t)?n.push(...y(e,t)):(0,c.isUnionType)(e)&&(0,c.isUnionType)(t)?n.push(...v(e,t)):(0,c.isInputObjectType)(e)&&(0,c.isInputObjectType)(t)?n.push(...g(e,t)):(0,c.isObjectType)(e)&&(0,c.isObjectType)(t)||(0,c.isInterfaceType)(e)&&(0,c.isInterfaceType)(t)?n.push(...E(e,t),...b(e,t)):e.constructor!==t.constructor&&n.push({type:r.TYPE_CHANGED_KIND,description:`${e.name} changed from ${k(e)} to ${k(t)}.`});return n}function g(e,t){const n=[],o=x(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of o.added)(0,c.isRequiredInputField)(t)?n.push({type:r.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:i.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of o.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of o.persisted)S(t.type,i.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function v(e,t){const n=[],o=x(e.getTypes(),t.getTypes());for(const t of o.added)n.push({type:i.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of o.removed)n.push({type:r.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function y(e,t){const n=[],o=x(e.getValues(),t.getValues());for(const t of o.added)n.push({type:i.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of o.removed)n.push({type:r.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function b(e,t){const n=[],o=x(e.getInterfaces(),t.getInterfaces());for(const t of o.added)n.push({type:i.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of o.removed)n.push({type:r.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function E(e,t){const n=[],i=x(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of i.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of i.persisted)n.push(...w(e,t,o)),T(t.type,o.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`});return n}function w(e,t,n){const o=[],a=x(t.args,n.args);for(const n of a.removed)o.push({type:r.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,s]of a.persisted)if(S(n.type,s.type)){if(void 0!==n.defaultValue)if(void 0===s.defaultValue)o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const r=O(n.defaultValue,n.type),a=O(s.defaultValue,s.type);r!==a&&o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:r.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(s.type)}.`});for(const n of a.added)(0,c.isRequiredArgument)(n)?o.push({type:r.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):o.push({type:i.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return o}function T(e,t){return(0,c.isListType)(e)?(0,c.isListType)(t)&&T(e.ofType,t.ofType)||(0,c.isNonNullType)(t)&&T(e,t.ofType):(0,c.isNonNullType)(e)?(0,c.isNonNullType)(t)&&T(e.ofType,t.ofType):(0,c.isNamedType)(t)&&e.name===t.name||(0,c.isNonNullType)(t)&&T(e,t.ofType)}function S(e,t){return(0,c.isListType)(e)?(0,c.isListType)(t)&&S(e.ofType,t.ofType):(0,c.isNonNullType)(e)?(0,c.isNonNullType)(t)&&S(e.ofType,t.ofType)||!(0,c.isNonNullType)(t)&&S(e.ofType,t):(0,c.isNamedType)(t)&&e.name===t.name}function k(e){return(0,c.isScalarType)(e)?"a Scalar type":(0,c.isObjectType)(e)?"an Object type":(0,c.isInterfaceType)(e)?"an Interface type":(0,c.isUnionType)(e)?"a Union type":(0,c.isEnumType)(e)?"an Enum type":(0,c.isInputObjectType)(e)?"an Input type":void(0,a.invariant)(!1,"Unexpected type: "+(0,o.inspect)(e))}function O(e,t){const n=(0,p.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,l.print)((0,d.sortValueNode)(n))}function x(e,t){const n=[],r=[],i=[],o=(0,s.keyMap)(e,(({name:e})=>e)),a=(0,s.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}t.BreakingChangeType=r,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(r||(t.BreakingChangeType=r={})),t.DangerousChangeType=i,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(i||(t.DangerousChangeType=i={}))},6032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},3810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(7030)},4676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})};var r=n(1702)},4889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return S.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return S.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return g.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return T.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return l.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return l.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return v.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return y.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return w.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return c.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return S.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return S.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return w.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return w.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return T.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return p.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return p.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return p.printType}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return b.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return E.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return d.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return f.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return h.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return g.visitWithTypeInfo}});var r=n(6032),i=n(3810),o=n(4676),a=n(5197),s=n(6613),l=n(434),c=n(1442),u=n(7460),p=n(2254),d=n(6693),f=n(2302),h=n(8805),m=n(8096),g=n(7485),v=n(4090),y=n(3129),b=n(1070),E=n(8401),w=n(3448),T=n(8426),S=n(3666)},5197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),l=(0,o.executeSync)({schema:e,document:s});return!l.errors&&l.data||(0,r.invariant)(!1),l.data};var r=n(1321),i=n(246),o=n(6892),a=n(6032)},7460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(d(t.types),(e=>e.name),(function(e){if((0,s.isScalarType)(e)||(0,c.isIntrospectionType)(e))return e;if((0,s.isObjectType)(e)){const t=e.toConfig();return new s.GraphQLObjectType({...t,interfaces:()=>y(t.interfaces),fields:()=>v(t.fields)})}if((0,s.isInterfaceType)(e)){const t=e.toConfig();return new s.GraphQLInterfaceType({...t,interfaces:()=>y(t.interfaces),fields:()=>v(t.fields)})}if((0,s.isUnionType)(e)){const t=e.toConfig();return new s.GraphQLUnionType({...t,types:()=>y(t.types)})}if((0,s.isEnumType)(e)){const t=e.toConfig();return new s.GraphQLEnumType({...t,values:p(t.values,(e=>e))})}if((0,s.isInputObjectType)(e)){const t=e.toConfig();return new s.GraphQLInputObjectType({...t,fields:()=>p(t.fields,(e=>({...e,type:a(e.type)})))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}));return new u.GraphQLSchema({...t,types:Object.values(n),directives:d(t.directives).map((function(e){const t=e.toConfig();return new l.GraphQLDirective({...t,locations:f(t.locations,(e=>e)),args:g(t.args)})})),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,s.isListType)(e)?new s.GraphQLList(a(e.ofType)):(0,s.isNonNullType)(e)?new s.GraphQLNonNull(a(e.ofType)):h(e)}function h(e){return n[e.name]}function m(e){return e&&h(e)}function g(e){return p(e,(e=>({...e,type:a(e.type)})))}function v(e){return p(e,(e=>({...e,type:a(e.type),args:e.args&&g(e.args)})))}function y(e){return d(e).map(h)}};var r=n(9657),i=n(1321),o=n(5785),a=n(5745),s=n(3754),l=n(8685),c=n(8364),u=n(4648);function p(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(a.naturalCompare))n[r]=t(e[r]);return n}function d(e){return f(e,(e=>e.name))}function f(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)}))}},2254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return h(e,c.isSpecifiedDirective,u.isIntrospectionType)},t.printSchema=function(e){return h(e,(e=>!(0,c.isSpecifiedDirective)(e)),f)},t.printType=g;var r=n(9657),i=n(1321),o=n(9165),a=n(7030),s=n(585),l=n(3754),c=n(8685),u=n(8364),p=n(1062),d=n(8096);function f(e){return!(0,p.isSpecifiedScalarType)(e)&&!(0,u.isIntrospectionType)(e)}function h(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map((e=>function(e){return S(e)+"directive @"+e.name+E(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>g(e)))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),S(e)+`schema {\n${t.join("\n")}\n}`}function g(e){return(0,l.isScalarType)(e)?function(e){return S(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,s.print)({kind:a.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,l.isObjectType)(e)?function(e){return S(e)+`type ${e.name}`+v(e)+y(e)}(e):(0,l.isInterfaceType)(e)?function(e){return S(e)+`interface ${e.name}`+v(e)+y(e)}(e):(0,l.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return S(e)+"union "+e.name+n}(e):(0,l.isEnumType)(e)?function(e){const t=e.getValues().map(((e,t)=>S(e," ",!t)+" "+e.name+T(e.deprecationReason)));return S(e)+`enum ${e.name}`+b(t)}(e):(0,l.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>S(e," ",!t)+" "+w(e)));return S(e)+`input ${e.name}`+b(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function v(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function y(e){return b(Object.values(e.getFields()).map(((e,t)=>S(e," ",!t)+" "+e.name+E(e.args," ")+": "+String(e.type)+T(e.deprecationReason))))}function b(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function E(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(w).join(", ")+")":"(\n"+e.map(((e,n)=>S(e," "+t,!n)+" "+t+w(e))).join("\n")+"\n"+t+")"}function w(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,s.print)(t)}`),n+T(e.deprecationReason)}function T(e){return null==e?"":e!==c.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,s.print)({kind:a.Kind.STRING,value:e})})`:" @deprecated"}function S(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,s.print)({kind:a.Kind.STRING,value:r,block:(0,o.isPrintableAsBlockString)(r)}).replace(/\n/g,"\n"+t)+"\n"}},1070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return i};var r=n(7030),i=n(9111);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},1152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortValueNode=function e(t){switch(t.kind){case i.Kind.OBJECT:return{...t,fields:(n=t.fields,n.map((t=>({...t,value:e(t.value)}))).sort(((e,t)=>(0,r.naturalCompare)(e.name.value,t.name.value))))};case i.Kind.LIST:return{...t,values:t.values.map(e)};case i.Kind.INT:case i.Kind.FLOAT:case i.Kind.STRING:case i.Kind.BOOLEAN:case i.Kind.NULL:case i.Kind.ENUM:case i.Kind.VARIABLE:return t}var n};var r=n(5745),i=n(7030)},8401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,o.isSource)(e)?e:new o.Source(e),n=t.body,s=new i.Lexer(t);let l="",c=!1;for(;s.advance().kind!==a.TokenKind.EOF;){const e=s.token,t=e.kind,o=!(0,i.isPunctuatorTokenKind)(e.kind);c&&(o||e.kind===a.TokenKind.SPREAD)&&(l+=" ");const u=n.slice(e.start,e.end);t===a.TokenKind.BLOCK_STRING?l+=(0,r.printBlockString)(e.value,{minimize:!0}):l+=u,c=o}return l};var r=n(9165),i=n(6083),o=n(6876),a=n(3038)},3448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(3754)},6693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){switch(n.kind){case r.Kind.LIST_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLList(r)}case r.Kind.NON_NULL_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLNonNull(r)}case r.Kind.NAMED_TYPE:return t.getType(n.name.value)}};var r=n(7030),i=n(3754)},2302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,c){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==c||void 0===c[e])return;const r=c[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,c)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(l(i,c)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,c);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,c);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const r=Object.create(null),i=(0,o.keyMap)(t.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const n=i[t.name];if(!n||l(n.value,c)){if(void 0!==t.defaultValue)r[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const o=e(n.value,t.type,c);if(void 0===o)return;r[t.name]=o}return r}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,c)}catch(e){return}if(void 0===e)return;return e}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))}};var r=n(9657),i=n(1321),o=n(4590),a=n(7030),s=n(3754);function l(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},8805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case i.Kind.NULL:return null;case i.Kind.INT:return parseInt(t.value,10);case i.Kind.FLOAT:return parseFloat(t.value);case i.Kind.STRING:case i.Kind.ENUM:case i.Kind.BOOLEAN:return t.value;case i.Kind.LIST:return t.values.map((t=>e(t,n)));case i.Kind.OBJECT:return(0,r.keyValMap)(t.fields,(e=>e.name.value),(t=>e(t.value,n)));case i.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}};var r=n(5785),i=n(7030)},4782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(7030),i=n(9111),o=n(7485);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class l extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=l},4360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return l.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return p.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return f.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return A.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return V.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return B.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return g.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return v.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return y.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return $.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return E.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return w.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return T.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return j.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return S.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return F.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return k.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return R.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return M.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return O.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return x.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return C.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return D.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return P.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return _.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return N.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return I.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return L.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9040),i=n(4782),o=n(7283),a=n(2988),s=n(9284),l=n(6514),c=n(7372),u=n(7999),p=n(9093),d=n(5117),f=n(9130),h=n(944),m=n(1350),g=n(6072),v=n(4472),y=n(2457),b=n(6839),E=n(1672),w=n(1843),T=n(3618),S=n(5566),k=n(9529),O=n(7091),x=n(7027),C=n(5988),_=n(3191),N=n(7909),I=n(964),L=n(4281),A=n(502),D=n(105),P=n(3171),R=n(1813),M=n(3084),j=n(1066),F=n(5972),$=n(817),V=n(4555),B=n(5588)},2988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}};var r=n(1702),i=n(7030),o=n(9187)},9284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const l=e.getSchema(),c=t.name.value;let u=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,i.naturalCompare)(t.name,n.name)})).map((e=>e.name))}(l,n,c));""===u&&(u=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,o.suggestionList)(t,n)}return[]}(n,c))),e.reportError(new a.GraphQLError(`Cannot query field "${c}" on type "${n.name}".`+u,{nodes:t}))}}}};var r=n(2832),i=n(5745),o=n(1709),a=n(1702),s=n(3754)},6514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},7372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=l,t.KnownArgumentNamesRule=function(e){return{...l(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,l=a.args.map((e=>e.name)),c=(0,i.suggestionList)(n,l);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(c),{nodes:t}))}}}};var r=n(2832),i=n(1709),o=n(1702),a=n(7030),s=n(8685);function l(e){const t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():s.specifiedDirectives;for(const e of l)t[e.name]=e.args.map((e=>e.name));const c=e.getDocument().definitions;for(const e of c)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var u;const n=null!==(u=e.arguments)&&void 0!==u?u:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const l=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(l),{nodes:t}))}}return!1}}}},7999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():c.specifiedDirectives;for(const e of u)t[e.name]=e.locations;const p=e.getDocument().definitions;for(const e of p)e.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,c,u,p,d){const f=n.name.value,h=t[f];if(!h)return void e.reportError(new o.GraphQLError(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case l.Kind.OPERATION_DEFINITION:return function(e){switch(e){case a.OperationTypeNode.QUERY:return s.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return s.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return s.DirectiveLocation.SUBSCRIPTION}}(t.operation);case l.Kind.FIELD:return s.DirectiveLocation.FIELD;case l.Kind.FRAGMENT_SPREAD:return s.DirectiveLocation.FRAGMENT_SPREAD;case l.Kind.INLINE_FRAGMENT:return s.DirectiveLocation.INLINE_FRAGMENT;case l.Kind.FRAGMENT_DEFINITION:return s.DirectiveLocation.FRAGMENT_DEFINITION;case l.Kind.VARIABLE_DEFINITION:return s.DirectiveLocation.VARIABLE_DEFINITION;case l.Kind.SCHEMA_DEFINITION:case l.Kind.SCHEMA_EXTENSION:return s.DirectiveLocation.SCHEMA;case l.Kind.SCALAR_TYPE_DEFINITION:case l.Kind.SCALAR_TYPE_EXTENSION:return s.DirectiveLocation.SCALAR;case l.Kind.OBJECT_TYPE_DEFINITION:case l.Kind.OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.OBJECT;case l.Kind.FIELD_DEFINITION:return s.DirectiveLocation.FIELD_DEFINITION;case l.Kind.INTERFACE_TYPE_DEFINITION:case l.Kind.INTERFACE_TYPE_EXTENSION:return s.DirectiveLocation.INTERFACE;case l.Kind.UNION_TYPE_DEFINITION:case l.Kind.UNION_TYPE_EXTENSION:return s.DirectiveLocation.UNION;case l.Kind.ENUM_TYPE_DEFINITION:case l.Kind.ENUM_TYPE_EXTENSION:return s.DirectiveLocation.ENUM;case l.Kind.ENUM_VALUE_DEFINITION:return s.DirectiveLocation.ENUM_VALUE;case l.Kind.INPUT_OBJECT_TYPE_DEFINITION:case l.Kind.INPUT_OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.INPUT_OBJECT;case l.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===l.Kind.INPUT_OBJECT_TYPE_DEFINITION?s.DirectiveLocation.INPUT_FIELD_DEFINITION:s.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,i.invariant)(!1,"Unexpected kind: "+(0,r.inspect)(t.kind))}}(d);m&&!h.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}};var r=n(9657),i=n(1321),o=n(1702),a=n(6257),s=n(5919),l=n(7030),c=n(8685)},9093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}};var r=n(1702)},5117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const c=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,u,p,d,f){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=f[2])&&void 0!==m?m:p,s=null!=n&&"kind"in(g=n)&&((0,a.isTypeSystemDefinitionNode)(g)||(0,a.isTypeSystemExtensionNode)(g));if(s&&l.includes(h))return;const u=(0,i.suggestionList)(h,s?l.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${h}".`+(0,r.didYouMean)(u),{nodes:t}))}var g}}};var r=n(2832),i=n(1709),o=n(1702),a=n(9187),s=n(8364);const l=[...n(1062).specifiedScalarTypes,...s.introspectionTypes].map((e=>e.name))},9130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.Kind.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}};var r=n(1702),i=n(7030)},502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",{nodes:t})),++s)}}};var r=n(1702)},944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const l=e.getFragmentSpreads(a.selectionSet);if(0!==l.length){i[s]=n.length;for(const t of l){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}};var r=n(1702)},1350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(1702)},6072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,{nodes:t}))}}}}};var r=n(1702)},4472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}};var r=n(1702)},2457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new E,n=new Map;return{SelectionSet(r){const o=function(e,t,n,r,i){const o=[],[a,s]=v(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i`subfields "${e}" conflict because `+u(t))).join(" and "):e}function p(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[l,c]=y(e,n,s);if(o!==l){f(e,t,n,r,i,o,l);for(const s of c)r.has(s,a,i)||(r.add(s,a,i),p(e,t,n,r,i,o,s))}}function d(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),l=e.getFragment(a);if(!s||!l)return;const[c,u]=y(e,n,s),[p,h]=y(e,n,l);f(e,t,n,r,i,c,p);for(const a of h)d(e,t,n,r,i,o,a);for(const o of u)d(e,t,n,r,i,o,a)}function f(e,t,n,r,i,o,a){for(const[s,l]of Object.entries(o)){const o=a[s];if(o)for(const a of l)for(const l of o){const o=h(e,n,r,i,s,a,l);o&&t.push(o)}}}function h(e,t,n,i,o,a,l){const[c,u,h]=a,[y,b,E]=l,w=i||c!==y&&(0,s.isObjectType)(c)&&(0,s.isObjectType)(y);if(!w){const e=u.name.value,t=b.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[b]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((({name:e,value:t})=>[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&m(t)===m(n)}))}(u,b))return[[o,"they have differing arguments"],[u],[b]]}const T=null==h?void 0:h.type,S=null==E?void 0:E.type;if(T&&S&&g(T,S))return[[o,`they return conflicting types "${(0,r.inspect)(T)}" and "${(0,r.inspect)(S)}"`],[u],[b]];const k=u.selectionSet,O=b.selectionSet;if(k&&O){const r=function(e,t,n,r,i,o,a,s){const l=[],[c,u]=v(e,t,i,o),[h,m]=v(e,t,a,s);f(e,l,t,n,r,c,h);for(const i of m)p(e,l,t,n,r,c,i);for(const i of u)p(e,l,t,n,r,h,i);for(const i of u)for(const o of m)d(e,l,t,n,r,i,o);return l}(e,t,n,w,(0,s.getNamedType)(T),k,(0,s.getNamedType)(S),O);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,o,u,b)}}function m(e){return(0,a.print)((0,l.sortValueNode)(e))}function g(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||g(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||g(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function v(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);b(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function y(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return v(e,t,i,n.selectionSet)}function b(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,c.typeFromAST)(e.getSchema(),n):t;b(e,o,a.selectionSet,r,i);break}}}class E{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleFragmentSpreadsRule=function(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s),a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,l=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t))return t}}(e,n),c=e.getParentType();if(l&&c&&!(0,a.doTypesOverlap)(e.getSchema(),l,c)){const o=(0,r.inspect)(c),a=(0,r.inspect)(l);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754),a=n(3448),s=n(6693)},817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleTypeExtensionsRule=function(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,c.isTypeDefinitionNode)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:d,ObjectTypeExtension:d,InterfaceTypeExtension:d,UnionTypeExtension:d,EnumTypeExtension:d,InputObjectTypeExtension:d};function d(c){const d=c.name.value,f=n[d],h=null==t?void 0:t.getType(d);let m;if(f?m=p[f.kind]:h&&(g=h,m=(0,u.isScalarType)(g)?l.Kind.SCALAR_TYPE_EXTENSION:(0,u.isObjectType)(g)?l.Kind.OBJECT_TYPE_EXTENSION:(0,u.isInterfaceType)(g)?l.Kind.INTERFACE_TYPE_EXTENSION:(0,u.isUnionType)(g)?l.Kind.UNION_TYPE_EXTENSION:(0,u.isEnumType)(g)?l.Kind.ENUM_TYPE_EXTENSION:(0,u.isInputObjectType)(g)?l.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(g))),m){if(m!==c.kind){const t=function(e){switch(e){case l.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case l.Kind.OBJECT_TYPE_EXTENSION:return"object";case l.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case l.Kind.UNION_TYPE_EXTENSION:return"union";case l.Kind.ENUM_TYPE_EXTENSION:return"enum";case l.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.invariant)(!1,"Unexpected kind: "+(0,i.inspect)(e))}}(c.kind);e.reportError(new s.GraphQLError(`Cannot extend non-${t} type "${d}".`,{nodes:f?[f,c]:c}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,a.suggestionList)(d,i);e.reportError(new s.GraphQLError(`Cannot extend type "${d}" because it is not defined.`+(0,r.didYouMean)(o),{nodes:c.name}))}var g}};var r=n(2832),i=n(9657),o=n(1321),a=n(1709),s=n(1702),l=n(7030),c=n(9187),u=n(3754);const p={[l.Kind.SCALAR_TYPE_DEFINITION]:l.Kind.SCALAR_TYPE_EXTENSION,[l.Kind.OBJECT_TYPE_DEFINITION]:l.Kind.OBJECT_TYPE_EXTENSION,[l.Kind.INTERFACE_TYPE_DEFINITION]:l.Kind.INTERFACE_TYPE_EXTENSION,[l.Kind.UNION_TYPE_DEFINITION]:l.Kind.UNION_TYPE_EXTENSION,[l.Kind.ENUM_TYPE_DEFINITION]:l.Kind.ENUM_TYPE_EXTENSION,[l.Kind.INPUT_OBJECT_TYPE_DEFINITION]:l.Kind.INPUT_OBJECT_TYPE_EXTENSION}},1672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedRequiredArgumentsOnDirectivesRule=u,t.ProvidedRequiredArgumentsRule=function(e){return{...u(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,l.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}};var r=n(9657),i=n(4590),o=n(1702),a=n(7030),s=n(585),l=n(3754),c=n(8685);function u(e){var t;const n=Object.create(null),u=e.getSchema(),d=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of d)n[e.name]=(0,i.keyMap)(e.args.filter(l.isRequiredArgument),(e=>e.name));const f=e.getDocument().definitions;for(const e of f)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.keyMap)(t.filter(p),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var c;const n=null!==(c=t.arguments)&&void 0!==c?c:[],u=new Set(n.map((e=>e.name.value)));for(const[n,c]of Object.entries(a))if(!u.has(n)){const a=(0,l.isType)(c.type)?(0,r.inspect)(c.type):(0,s.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}}function p(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},1843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(!a){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754)},3618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,l=Object.create(null),c=e.getDocument(),u=Object.create(null);for(const e of c.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(u[e.name.value]=e);const p=(0,o.collectFields)(n,u,l,a,t.selectionSet);if(p.size>1){const t=[...p.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of p.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}};var r=n(1702),i=n(7030),o=n(1516)},1066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map((e=>e.name))}));return!1}};var r=n(4947),i=n(1702)},5566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}};var r=n(4947),i=n(1702)},5972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}};var r=n(1702)},9529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const l=e.getDocument().definitions;for(const e of l)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const c=Object.create(null),u=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=c;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=u[e],void 0===a&&(u[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}};var r=n(1702),i=n(7030),o=n(9187),a=n(8685)},1813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const l=null!==(a=t.values)&&void 0!==a?a:[],c=o[s];for(const t of l){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,{nodes:[c[o],t.name]})):c[o]=t.name}return!1}};var r=n(1702),i=n(3754)},3084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const l=null!==(a=t.fields)&&void 0!==a?a:[],c=i[s];for(const t of l){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,{nodes:[c[i],t.name]})):c[i]=t.name}return!1}};var r=n(1702),i=n(3754);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},7091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}};var r=n(1702)},7027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}};var r=n(1321),i=n(1702)},5988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(1702)},105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[a,t]})):n[o]=t}return!1}};var r=n(1702)},3171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}};var r=n(1702)},3191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}};var r=n(4947),i=n(1702)},7909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){return{ListValue(t){const n=(0,c.getNullableType)(e.getParentInputType());if(!(0,c.isListType)(n))return u(e,t),!1},ObjectValue(t){const n=(0,c.getNamedType)(e.getInputType());if(!(0,c.isInputObjectType)(n))return u(e,t),!1;const r=(0,o.keyMap)(t.fields,(e=>e.name.value));for(const o of Object.values(n.getFields()))if(!r[o.name]&&(0,c.isRequiredInputField)(o)){const r=(0,i.inspect)(o.type);e.reportError(new s.GraphQLError(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=(0,c.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,c.isInputObjectType)(n)){const i=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.didYouMean)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,c.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,l.print)(t)}.`,{nodes:t}))},EnumValue:t=>u(e,t),IntValue:t=>u(e,t),FloatValue:t=>u(e,t),StringValue:t=>u(e,t),BooleanValue:t=>u(e,t)}};var r=n(2832),i=n(9657),o=n(4590),a=n(1709),s=n(1702),l=n(585),c=n(3754);function u(e,t){const n=e.getInputType();if(!n)return;const r=(0,c.getNamedType)(n);if((0,c.isLeafType)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,l.print)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,l.print)(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,l.print)(t)}.`,{nodes:t}))}}},964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},4281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:s}of o){const o=n.name.value,u=t[o];if(u&&a){const t=e.getSchema(),p=(0,l.typeFromAST)(t,u.type);if(p&&!c(t,p,u.defaultValue,a,s)){const t=(0,r.inspect)(p),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,{nodes:[u,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(9657),i=n(1702),o=n(7030),a=n(3754),s=n(3448),l=n(6693);function c(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){if((null==n||n.kind===o.Kind.NULL)&&void 0===i)return!1;const a=r.ofType;return(0,s.isTypeSubTypeOf)(e,t,a)}return(0,s.isTypeSubTypeOf)(e,t,r)}},4555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}};var r=n(1321),i=n(1702),o=n(3754)},5588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}};var r=n(1702),i=n(3754),o=n(8364)},7283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=void 0;var r=n(2988),i=n(9284),o=n(6514),a=n(7372),s=n(7999),l=n(9093),c=n(5117),u=n(9130),p=n(502),d=n(944),f=n(1350),h=n(6072),m=n(4472),g=n(2457),v=n(6839),y=n(817),b=n(1672),E=n(1843),w=n(3618),T=n(1066),S=n(5566),k=n(5972),O=n(9529),x=n(1813),C=n(3084),_=n(7091),N=n(7027),I=n(5988),L=n(105),A=n(3171),D=n(3191),P=n(7909),R=n(964),M=n(4281);const j=Object.freeze([r.ExecutableDefinitionsRule,I.UniqueOperationNamesRule,u.LoneAnonymousOperationRule,w.SingleFieldSubscriptionsRule,c.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,R.VariablesAreInputTypesRule,E.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,_.UniqueFragmentNamesRule,l.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,v.PossibleFragmentSpreadsRule,d.NoFragmentCyclesRule,D.UniqueVariableNamesRule,f.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,s.KnownDirectivesRule,O.UniqueDirectivesPerLocationRule,a.KnownArgumentNamesRule,S.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,b.ProvidedRequiredArgumentsRule,M.VariablesInAllowedPositionRule,g.OverlappingFieldsCanBeMergedRule,N.UniqueInputFieldNamesRule]);t.specifiedRules=j;const F=Object.freeze([p.LoneSchemaDefinitionRule,L.UniqueOperationTypesRule,A.UniqueTypeNamesRule,x.UniqueEnumValueNamesRule,C.UniqueFieldDefinitionNamesRule,T.UniqueArgumentDefinitionNamesRule,k.UniqueDirectiveNamesRule,c.KnownTypeNamesRule,s.KnownDirectivesRule,O.UniqueDirectivesPerLocationRule,y.PossibleTypeExtensionsRule,a.KnownArgumentNamesOnDirectivesRule,S.UniqueArgumentNamesRule,N.UniqueInputFieldNamesRule,b.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=F},9040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=u(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=u(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))},t.validate=function(e,t,n=l.specifiedRules,u,p=new s.TypeInfo(e)){var d;const f=null!==(d=null==u?void 0:u.maxErrors)&&void 0!==d?d:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const h=Object.freeze({}),m=[],g=new c.ValidationContext(e,t,p,(e=>{if(m.length>=f)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),v=(0,o.visitInParallel)(n.map((e=>e(g))));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(p,v))}catch(e){if(e!==h)throw e}return m},t.validateSDL=u;var r=n(3028),i=n(1702),o=n(9111),a=n(9873),s=n(7485),l=n(7283),c=n(4782);function u(e,t,n=l.specifiedSDLRules){const r=[],i=new c.SDLValidationContext(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},4274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.8.1";const n=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});t.versionInfo=n},4146:(e,t,n)=>{"use strict";var r=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function T(e){return w(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return T(e)||w(e)===u},t.isConcurrentMode=T,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=w},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},5214:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){var t=e.re=n(2879)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?o(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},2879:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(6027).source,t.src_Cc=n(592).source,t.src_Z=n(3978).source,t.src_P=n(2828).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},2992:(e,t,n)=>{var r,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}0==--p&&(p=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--p&&(p=Math.pow(2,f),f++),a[c]=d++,u=String(l)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--p&&(p=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--p&&(p=Math.pow(2,f),f++)}for(i=2,r=0;r>=1;for(;;){if(m<<=1,g==t-1){h.push(n(m));break}g++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,o,a,s,l,c,u,p=[],d=4,f=4,h=3,m="",g=[],v={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)p[i]=i;for(a=0,l=Math.pow(2,2),c=1;c!=l;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*c,c<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),c=1;c!=l;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*c,c<<=1;u=e(a);break;case 1:for(a=0,l=Math.pow(2,16),c=1;c!=l;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*c,c<<=1;u=e(a);break;case 2:return""}for(p[3]=u,o=u,g.push(u);;){if(v.index>t)return"";for(a=0,l=Math.pow(2,h),c=1;c!=l;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*c,c<<=1;switch(u=a){case 0:for(a=0,l=Math.pow(2,8),c=1;c!=l;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*c,c<<=1;p[f++]=e(a),u=f-1,d--;break;case 1:for(a=0,l=Math.pow(2,16),c=1;c!=l;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*c,c<<=1;p[f++]=e(a),u=f-1,d--;break;case 2:return g.join("")}if(0==d&&(d=Math.pow(2,h),h++),p[u])m=p[u];else{if(u!==f)return null;m=o+o.charAt(0)}g.push(m),p[f++]=o+m.charAt(0),o=m,0==--d&&(d=Math.pow(2,h),h++)}}};return o}();void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)},2922:(e,t,n)=>{"use strict";e.exports=n(1246)},8359:(e,t,n)=>{"use strict";e.exports=n(4357)},1358:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6557:e=>{"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.l=r,e.exports.p=i},9963:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(8359),p=/[&<>"]/,d=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function h(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g,g=n(2828);t.lib={},t.lib.mdurl=n(6781),t.lib.ucmicro=n(9295),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},3592:(e,t,n)=>{"use strict";t.parseLinkLabel=n(1947),t.parseLinkDestination=n(8949),t.parseLinkTitle=n(7311)},8949:(e,t,n)=>{"use strict";var r=n(9963).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},1947:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos{"use strict";var r=n(9963).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t{"use strict";var r=n(9963),i=n(3592),o=n(4847),a=n(6321),s=n(1525),l=n(5552),c=n(5214),u=n(6781),p=n(8379),d={default:n(5092),zero:n(4719),commonmark:n(73)},f=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new c,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},1525:(e,t,n)=>{"use strict";var r=n(2378),i=[["table",n(4752),["paragraph","reference"]],["code",n(5711)],["fence",n(2373),["paragraph","reference","blockquote","list"]],["blockquote",n(2941),["paragraph","reference","blockquote","list"]],["hr",n(8e3),["paragraph","reference","blockquote","list"]],["list",n(6686),["paragraph","reference","blockquote"]],["reference",n(6897)],["html_block",n(1857),["paragraph","reference","blockquote"]],["heading",n(634),["paragraph","reference","blockquote"]],["lheading",n(9648)],["paragraph",n(7046)]];function o(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;r{"use strict";var r=n(2378),i=[["normalize",n(803)],["block",n(3437)],["inline",n(3547)],["linkify",n(986)],["replacements",n(203)],["smartquotes",n(5260)]];function o(){this.ruler=new r;for(var e=0;e{"use strict";var r=n(2378),i=[["text",n(2015)],["newline",n(2534)],["escape",n(1231)],["backticks",n(6757)],["strikethrough",n(7141).q],["emphasis",n(3898).q],["link",n(6552)],["image",n(3707)],["autolink",n(6955)],["html_inline",n(961)],["entity",n(8103)]],o=[["balance_pairs",n(5940)],["strikethrough",n(7141).g],["emphasis",n(3898).g],["text_collapse",n(7729)]];function a(){var e;for(this.ruler=new r,e=0;e=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i{"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},5092:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},4719:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},4847:(e,t,n)=>{"use strict";var r=n(9963).assign,i=n(9963).unescapeAll,o=n(9963).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+""},a.code_block=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+"\n"},a.fence=function(e,t,n,r,a){var s,l,c,u,p,d=e[t],f=d.info?i(d.info).trim():"",h="",m="";return f&&(h=(c=f.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,h,m)||o(d.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,E,w,T,S,k,O=e.lineMax,x=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(i)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(x)?(x++,l++,f++,o=!1,E=!0):9===e.src.charCodeAt(x)?(E=!0,(e.bsCount[t]+f)%4==3?(x++,l++,f++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=x;x=C,y=[e.sCount[t]],e.sCount[t]=f-l,b=[e.tShift[t]],e.tShift[t]=x-e.bMarks[t],T=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=t+1;d=(C=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(x++)||k){if(u)break;for(w=!1,s=0,c=T.length;s=C,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(E?1:0),y.push(e.sCount[d]),e.sCount[d]=f-l,b.push(e.tShift[d]),e.tShift[d]=x-e.bMarks[d]}for(g=e.blkIndent,e.blkIndent=0,(S=e.push("blockquote_open","blockquote",1)).markup=">",S.map=p=[t,0],e.md.block.tokenize(e,t,d),(S=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=O,e.parentType=v,p[1]=e.line,s=0;s{"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},2373:e=>{"use strict";e.exports=function(e,t,n,r){var i,o,a,s,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]=4||(d=e.skipChars(d,i))-l{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c6||cc&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},8e3:(e,t,n)=>{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(a=1;c{"use strict";var r=n(1358),i=n(6557).p,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),i=0;i{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,c,u,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o{"use strict";var r=n(9963).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(P=!0),(_=o(e,t))>=0){if(d=!0,I=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(I,_-1)),P&&1!==y)return!1}else{if(!((_=i(e,t))>=0))return!1;d=!1}if(P&&e.skipSpaces(_)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(_-1),r)return!0;for(g=e.tokens.length,d?(D=e.push("ordered_list_open","ol",1),1!==y&&(D.attrs=[["start",y]])):D=e.push("bullet_list_open","ul",1),D.map=m=[t,0],D.markup=String.fromCharCode(v),E=t,N=!1,A=e.md.block.ruler.getRules("list"),S=e.parentType,e.parentType="list";E=b?1:w-p)>4&&(u=1),c=p+u,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),D.map=f=[t,0],d&&(D.info=e.src.slice(I,_-1)),x=e.tight,O=e.tShift[t],k=e.sCount[t],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=w,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(R=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[t]=O,e.sCount[t]=k,e.tight=x,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),E=t=e.line,f[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]=4)break;for(L=!1,l=0,h=A.length;l{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t,n,o){var a,s,l,c,u,p,d,f,h,m,g,v,y,b,E,w,T=0,S=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],O=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(S))return!1;for(;++S3||e.sCount[O]<0)){for(b=!1,p=0,d=E.length;p{"use strict";var r=n(5099),i=n(9963).isSpace;function o(e,t,n,r){var o,a,s,l,c,u,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=u=p=0,c=(a=this.src).length;l0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,l,c,u,p,d=e;if(e>=t)return"";for(u=new Array(t-e),o=0;dn?new Array(a-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},o.prototype.Token=r,e.exports=o},4752:(e,t,n)=>{"use strict";var r=n(9963).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(d=t+1,e.sCount[d]=4)return!1;if((c=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(S=e.src.charCodeAt(c++))&&45!==S&&58!==S)return!1;if(c>=e.eMarks[d])return!1;if(124!==(k=e.src.charCodeAt(c++))&&45!==k&&58!==k&&!r(k))return!1;if(45===S&&r(k))return!1;for(;c=4)return!1;if((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(h=f.length)||h!==g.length)return!1;if(a)return!0;for(E=e.parentType,e.parentType="table",T=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[d,d+1],u=0;u{"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},3547:e=>{"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n{"use strict";var r=n(9963).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,E,w=e.tokens;if(e.md.options.linkify)for(n=0,o=w.length;n=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(E=l.content,/^\s]/i.test(E)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,b=e.md.linkify.match(p),c=[],h=l.level,f=0,u=0;uf&&((s=new e.Token("text","",0)).content=p.slice(f,d),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),f=b[u].lastIndex);f{"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},203:e=>{"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},5260:(e,t,n)=>{"use strict";var r=n(9963).isWhiteSpace,i=n(9963).isPunctChar,o=n(9963).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,u,p,d,f,h,m,g,v,y,b,E,w,T,S,k,O,x,C;for(O=[],n=0;n=0&&!(O[S].level<=f);S--);if(O.length=S+1,"text"===a.type){p=0,d=(c=a.content).length;e:for(;p=0)m=c.charCodeAt(u.index-1);else for(S=n-1;S>=0&&"softbreak"!==e[S].type&&"hardbreak"!==e[S].type;S--)if(e[S].content){m=e[S].content.charCodeAt(e[S].content.length-1);break}if(g=32,p=48&&m<=57&&(T=w=!1),w&&T&&(w=v,T=y),w||T){if(T)for(S=O.length-1;S>=0&&(h=O[S],!(O[S].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},1839:(e,t,n)=>{"use strict";var r=n(5099);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},6955:e=>{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(l+1,u),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},6757:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u{"use strict";function t(e,t){var n,r,i,o,a,s,l,c,u={},p=t.length;if(p){var d=0,f=-2,h=[];for(n=0;na;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){c=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+c,h[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,f=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.q=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n{"use strict";var r=n(8359),i=n(9963).has,o=n(9963).isValidEntityCode,a=n(9963).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1{"use strict";for(var r=n(9963).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o{"use strict";var r=n(6557).l;e.exports=function(e,t){var n,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},3707:(e,t,n)=>{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t){var n,o,a,s,l,c,u,p,d,f,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)=b)return!1;for(g=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(v=e.md.normalizeLink(d.str),e.md.validateLink(v)?u=d.pos:v=""),g=u;u=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(g,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(p=e.env.references[r(s)]))return e.pos=y,!1;v=p.href,f=p.title}return t||(a=e.src.slice(c,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=m,h.content=a,f&&n.push(["title",f])),e.pos=u,e.posMax=b,!0}},6552:(e,t,n)=>{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t){var n,o,a,s,l,c,u,p,d="",f="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?c=u.pos:d="",g=c;c=m||41!==e.src.charCodeAt(c))&&(v=!0),c++}if(v){if(void 0===e.env.references)return!1;if(c=0?a=e.src.slice(g,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;d=p.href,f=p.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},2534:(e,t,n)=>{"use strict";var r=n(9963).isSpace;e.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a{"use strict";var r=n(5099),i=n(9963).isWhiteSpace,o=n(9963).isPunctChar,a=n(9963).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,p,d,f,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h{"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t0&&r++,"text"===i[t].type&&t+1{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},3527:e=>{"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+91114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},3331:e=>{"use strict";var t={};function n(e,r,i){var o,a,s,l,c,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),c=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},6998:e=>{"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},6781:(e,t,n)=>{"use strict";e.exports.encode=n(3331),e.exports.decode=n(3527),e.exports.format=n(6998),e.exports.parse=n(4994)},4994:e=>{"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,f,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&p[v]||(m=m.substr(2),this.slashes=!0)),!p[v]&&(h||v&&!d[v])){var y,b,E=-1;for(r=0;r127?O+="x":O+=k[x];if(!O.match(c)){var _=S.slice(0,r),N=S.slice(r+1),I=k.match(u);I&&(_.push(I[1]),N.unshift(I[2])),N.length&&(m=N.join(".")+m),this.hostname=_.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=m.indexOf("#");-1!==L&&(this.hash=m.substr(L),m=m.slice(0,L));var A=m.indexOf("?");return-1!==A&&(this.search=m.substr(A),m=m.slice(0,A)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},801:e=>{"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},8379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>w,encode:()=>y,toASCII:()=>E,toUnicode:()=>b,ucs2decode:()=>f,ucs2encode:()=>h});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(l[e])}function d(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function f(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=i)e=c(e/35);return c(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let o=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let d=l>0?l+1:0;d=n&&p("invalid-input");const l=(u=e.charCodeAt(d++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:i;l>=i&&p("invalid-input"),l>c((r-o)/t)&&p("overflow"),o+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(lc(r/h)&&p("overflow"),t*=h}const f=t.length+1;s=g(o-l,f,0==l),c(o/f)>r-a&&p("overflow"),a+=c(o/f),o%=f,t.splice(o++,0,a)}var u;return String.fromCodePoint(...t)},y=function(e){const t=[],n=(e=f(e)).length;let o=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));const l=t.length;let d=l;for(l&&t.push("-");d=o&&tc((r-a)/f)&&p("overflow"),a+=(n-o)*f,o=n;for(const n of e)if(nr&&p("overflow"),n===o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e{"use strict";const r=n(4280),i=n(454),o=n(528),a=n(3055),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=p(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},2799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isFragment=function(e){return v(e)===o},t.isMemo=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===d||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},2833:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},4280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},6426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{e.exports=/[\0-\x1F\x7F-\x9F]/},2675:e=>{e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},2828:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},3978:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},9295:(e,t,n)=>{"use strict";t.Any=n(6027),t.Cc=n(592),t.Cf=n(2675),t.P=n(2828),t.Z=n(3978)},6027:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},5549:e=>{"use strict";e.exports=wpGraphiQL.GraphQL},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.wp.element},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var a=1/0;for(u=0;u=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={524:0,57:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);cr(5581)));i=r.O(i)})(); \ No newline at end of file + `}).then((e=>{const t=e?.data?iS(e.data):null;t!==a&&s(t),c(!1)}),(e=>{console.error(`Failure running getIntrospectionQuery: ${JSON.stringify(e,null,2)}`),c(!1)}))}),[i]);const[p,f]=(0,o.useState)((()=>{const e=u&&u.find((e=>e.id===l));return e?e.id:"graphiql"})());return p?(0,r.createElement)(aS,{"data-testid":"graphiql-router"},(0,r.createElement)(Mi,{style:{height:"calc(100vh - 32px)",width:"100%"}},(0,r.createElement)(sS,{setQueryParams:n,setCurrentScreen:f,currentScreen:p,screens:u}),(0,r.createElement)(Mi,{className:"screen-layout",style:{background:"#fff"}},(e=>{const t=null!==(n=u.find((e=>e.id===p)))&&void 0!==n?n:u[0];var n;return t?(0,r.createElement)(Mi,{className:"router-screen","data-testid":`router-screen-${t.id}`},t?.render(e)):null})(e)))):null}).displayName||uS.name||"Component")+")",dS);var lS,uS,dS,pS,fS,hS,mS=n(4291),gS=n(7243),vS=n.t(gS,2),yS=c_?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";var bS=function(e){var t=e.client,n=e.children,r=function(){Sb("createContext"in vS,54);var e=gS.createContext[yS];return e||(Object.defineProperty(gS.createContext,yS,{value:e=gS.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}(),i=gS.useContext(r),o=gS.useMemo((function(){return ib(ib({},i),{client:t||i.client})}),[i,t]);return Sb(o.client,55),gS.createElement(r.Provider,{value:o},n)};const{hooks:ES,AppContextProvider:_S,useAppContext:wS}=window.wpGraphiQL,kS=()=>{const e=wS();return ES.applyFilters("graphiql_app",(0,r.createElement)(cS,null),{appContext:e})},TS={push:e=>{history.replaceState(null,null,e.href)},replace:e=>{history.replaceState(null,null,e.href)}},SS=()=>{const e=ES.applyFilters("graphiql_query_params_provider_config",{query:Bg,variables:Bg}),[t,n]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(!t){const e=document.getElementById("graphiql");e&&e.classList.remove("graphiql-container"),ES.doAction("graphiql_rendered"),n(!0)}}),[]),t?(0,r.createElement)(gv,{history:TS},(0,r.createElement)(pv,{config:e},(e=>{const{query:t,setQuery:n}=e;return(0,r.createElement)(_S,{queryParams:t,setQueryParams:n},(0,r.createElement)(bS,{client:GT((0,mS.yP)())},(0,r.createElement)(kS,null)))}))):null};document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("graphiql");e&&(o.createRoot?(0,o.createRoot)(e).render((0,r.createElement)(SS,null)):(0,o.render)((0,r.createElement)(SS,null),e))}))},4291:(e,t,n)=>{"use strict";n.d(t,{QG:()=>l,Us:()=>s,yP:()=>c});var r=n(1609),i=n(6087),o=n(3408);const a=(0,i.createContext)(),s=()=>(0,i.useContext)(a),c=()=>{var e;return null!==(e=window?.wpGraphiQLSettings?.graphqlEndpoint)&&void 0!==e?e:null},l=({children:e,setQueryParams:t,queryParams:n})=>{const[s,l]=(0,i.useState)(null),[u,d]=(0,i.useState)(!0),[p,f]=(0,i.useState)(null!==(h=window?.wpGraphiQLSettings?.nonce)&&void 0!==h?h:null);var h;const[m,g]=(0,i.useState)(c()),[v,y]=(0,i.useState)(n);let b={endpoint:m,setEndpoint:g,nonce:p,setNonce:f,schema:s,setSchema:l,schemaLoading:u,setSchemaLoading:d,queryParams:v,setQueryParams:e=>{y(e),t(e)}},E=o.J.applyFilters("graphiql_app_context",b);return(0,r.createElement)(a.Provider,{value:E},e)}},3408:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(3574);const i=window.wp.hooks;var o=n(4291);const a=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:a,useAppContext:o.Us,AppContextProvider:o.QG}},454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o1||c(e,t)}))})}function c(e,t){try{(n=i[e](t)).value instanceof o?Promise.resolve(n.value.v).then(l,u):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function l(e){c("next",e)}function u(e){c("throw",e)}function d(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.TerminatedCloseEvent=t.createClient=void 0;const s=n(2738),c=n(8214);i(n(2738),t),t.createClient=function(e){const{url:t,connectionParams:r,lazy:i=!0,onNonLazyError:d=console.error,lazyCloseTimeout:p=0,keepAlive:f=0,disablePong:h,connectionAckWaitTimeout:m=0,retryAttempts:g=5,retryWait:v=async function(e){let t=1e3;for(let n=0;nsetTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:y=u,isFatalConnectionProblem:b,on:E,webSocketImpl:_,generateID:w=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:k,jsonMessageReviver:T}=e;let S;if(_){if(!("function"==typeof(O=_)&&"constructor"in O&&"CLOSED"in O&&"CLOSING"in O&&"CONNECTING"in O&&"OPEN"in O))throw new Error("Invalid WebSocket implementation provided");S=_}else"undefined"!=typeof WebSocket?S=WebSocket:void 0!==n.g?S=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window&&(S=window.WebSocket||window.MozWebSocket);var O;if(!S)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=S,C=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==E?void 0:E.connecting)?[E.connecting]:[],opened:(null==E?void 0:E.opened)?[E.opened]:[],connected:(null==E?void 0:E.connected)?[E.connected]:[],ping:(null==E?void 0:E.ping)?[E.ping]:[],pong:(null==E?void 0:E.pong)?[E.pong]:[],message:(null==E?void 0:E.message)?[e.emit,E.message]:[e.emit],closed:(null==E?void 0:E.closed)?[E.closed]:[],error:(null==E?void 0:E.error)?[E.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function N(e){const t=[C.on("error",(n=>{t.forEach((e=>e())),e(n)})),C.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let A,I,D=0,L=!1,P=0,j=!1;async function R(){clearTimeout(I);const[e,n]=await(null!=A?A:A=new Promise(((e,n)=>(async()=>{if(L){if(await v(P),!D)return A=void 0,n({code:1e3,reason:"All Subscriptions Gone"});P++}C.emit("connecting",L);const i=new x("function"==typeof t?await t():t,s.GRAPHQL_TRANSPORT_WS_PROTOCOL);let o,a;function u(){isFinite(f)&&f>0&&(clearTimeout(a),a=setTimeout((()=>{i.readyState===x.OPEN&&(i.send((0,s.stringifyMessage)({type:s.MessageType.Ping})),C.emit("ping",!1,void 0))}),f))}N((e=>{A=void 0,clearTimeout(o),clearTimeout(a),n(e),e instanceof l&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=e=>C.emit("error",e),i.onclose=e=>C.emit("closed",e),i.onopen=async()=>{try{C.emit("opened",i);const e="function"==typeof r?await r():r;if(i.readyState!==x.OPEN)return;i.send((0,s.stringifyMessage)(e?{type:s.MessageType.ConnectionInit,payload:e}:{type:s.MessageType.ConnectionInit},k)),isFinite(m)&&m>0&&(o=setTimeout((()=>{i.close(s.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),m)),u()}catch(e){C.emit("error",e),i.close(s.CloseCode.InternalClientError,(0,c.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let d=!1;i.onmessage=({data:t})=>{try{const n=(0,s.parseMessage)(t,T);if(C.emit("message",n),"ping"===n.type||"pong"===n.type)return C.emit(n.type,!0,n.payload),void("pong"===n.type?u():h||(i.send((0,s.stringifyMessage)(n.payload?{type:s.MessageType.Pong,payload:n.payload}:{type:s.MessageType.Pong})),C.emit("pong",!1,n.payload)));if(d)return;if(n.type!==s.MessageType.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(o),d=!0,C.emit("connected",i,n.payload,L),L=!1,P=0,e([i,new Promise(((e,t)=>N(t)))])}catch(e){i.onmessage=null,C.emit("error",e),i.close(s.CloseCode.BadResponse,(0,c.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===x.CLOSING&&await n;let i=()=>{};const o=new Promise((e=>i=e));return[e,i,Promise.race([o.then((()=>{if(!D){const t=()=>e.close(1e3,"Normal Closure");isFinite(p)&&p>0?I=setTimeout((()=>{e.readyState===x.OPEN&&t()}),p):t()}})),n])]}function $(e){if(u(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1014].includes(t)&&t>=1e3&&t<=1999||[s.CloseCode.InternalServerError,s.CloseCode.InternalClientError,s.CloseCode.BadRequest,s.CloseCode.BadResponse,s.CloseCode.Unauthorized,s.CloseCode.SubprotocolNotAcceptable,s.CloseCode.SubscriberAlreadyExists,s.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(j)return!1;if(u(e)&&1e3===e.code)return D>0;if(!g||P>=g)throw e;if(!y(e))throw e;if(null==b?void 0:b(e))throw e;return L=!0}function F(e,t){const n=w(e);let r=!1,i=!1,o=()=>{D--,r=!0};return(async()=>{for(D++;;)try{const[a,c,l]=await R();if(r)return c();const u=C.onMessage(n,(e=>{switch(e.type){case s.MessageType.Next:return void t.next(e.payload);case s.MessageType.Error:return i=!0,r=!0,t.error(e.payload),void o();case s.MessageType.Complete:return r=!0,void o()}}));return a.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Subscribe,payload:e},k)),o=()=>{r||a.readyState!==x.OPEN||a.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Complete},k)),D--,r=!0,c()},void await l.finally(u)}catch(e){if(!$(e))return}})().then((()=>{i||t.complete()})).catch((e=>{t.error(e)})),()=>{r||o()}}return i||(async()=>{for(D++;;)try{const[,,e]=await R();await e}catch(e){try{if(!$(e))return}catch(e){return null==d?void 0:d(e)}}})(),{on:C.on,subscribe:F,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=F(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),i=function(){return a(this,arguments,(function*(){for(;;){for(t.length||(yield o(new Promise((e=>n.resolve=e))));t.length;)yield yield o(t.shift());if(n.error)throw n.error;if(n.done)return yield o(void 0)}}))}();return i.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),i.return=async()=>(r(),{done:!0,value:void 0}),i},async dispose(){if(j=!0,A){const[e]=await A;e.close(1e3,"Normal Closure")}},terminate(){A&&C.emit("closed",new l)}}};class l extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function u(e){return(0,c.isObject)(e)&&"code"in e&&"reason"in e}t.TerminatedCloseEvent=l},2738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyMessage=t.parseMessage=t.isMessage=t.validateMessage=t.MessageType=t.CloseCode=t.DEPRECATED_GRAPHQL_WS_PROTOCOL=t.GRAPHQL_TRANSPORT_WS_PROTOCOL=void 0;const r=n(8214);var i,o;function a(e){if(!(0,r.isObject)(e))throw new Error(`Message is expected to be an object, but got ${(0,r.extendedTypeof)(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${(0,r.extendedTypeof)(e.type)}`);switch(e.type){case o.ConnectionInit:case o.ConnectionAck:case o.Ping:case o.Pong:if(null!=e.payload&&!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case o.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${(0,r.extendedTypeof)(e.payload.query)}`);if(null!=e.payload.variables&&!(0,r.isObject)(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==(0,r.extendedTypeof)(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.operationName)}`);if(null!=e.payload.extensions&&!(0,r.isObject)(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.extensions)}`);break;case o.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);break;case o.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.areGraphQLErrors)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case o.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}t.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",t.DEPRECATED_GRAPHQL_WS_PROTOCOL="graphql-ws",function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(i||(t.CloseCode=i={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(o||(t.MessageType=o={})),t.validateMessage=a,t.isMessage=function(e){try{return a(e),!0}catch(e){return!1}},t.parseMessage=function(e,t){return a("string"==typeof e?JSON.parse(e,t):e)},t.stringifyMessage=function(e,t){return a(e),JSON.stringify(e,t)}},4891:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9220),t),i(n(9232),t),i(n(2738),t)},9232:function(e,t,n){"use strict";var r=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleProtocols=t.makeServer=void 0;const i=n(5549),o=n(2738),a=n(8214);t.makeServer=function(e){const{schema:t,context:n,roots:s,validate:c,execute:l,subscribe:u,connectionInitWaitTimeout:d=3e3,onConnect:p,onDisconnect:f,onClose:h,onSubscribe:m,onOperation:g,onNext:v,onError:y,onComplete:b,jsonMessageReviver:E,jsonMessageReplacer:_}=e;return{opened(e,w){const k={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:w};if(e.protocol!==o.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(o.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==h?void 0:h(k,e,t))};const T=d>0&&isFinite(d)?setTimeout((()=>{k.connectionInitReceived||e.close(o.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),d):null;return e.onMessage((async function(d){var f,h,w,T,S;let O;try{O=(0,o.parseMessage)(d,E)}catch(t){return e.close(o.CloseCode.BadRequest,"Invalid message received")}switch(O.type){case o.MessageType.ConnectionInit:{if(k.connectionInitReceived)return e.close(o.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");k.connectionInitReceived=!0,(0,a.isObject)(O.payload)&&(k.connectionParams=O.payload);const t=await(null==p?void 0:p(k));return!1===t?e.close(o.CloseCode.Forbidden,"Forbidden"):(k.acknowledged=!0,void await e.send((0,o.stringifyMessage)((0,a.isObject)(t)?{type:o.MessageType.ConnectionAck,payload:t}:{type:o.MessageType.ConnectionAck},_)))}case o.MessageType.Ping:return e.onPing?await e.onPing(O.payload):void await e.send((0,o.stringifyMessage)(O.payload?{type:o.MessageType.Pong,payload:O.payload}:{type:o.MessageType.Pong}));case o.MessageType.Pong:return await(null===(S=e.onPong)||void 0===S?void 0:S.call(e,O.payload));case o.MessageType.Subscribe:{if(!k.acknowledged)return e.close(o.CloseCode.Unauthorized,"Unauthorized");const{id:d,payload:p}=O;if(d in k.subscriptions)return e.close(o.CloseCode.SubscriberAlreadyExists,`Subscriber for ${d} already exists`);k.subscriptions[d]=null;const E={next:async(t,n)=>{let r={id:d,type:o.MessageType.Next,payload:t};const i=await(null==v?void 0:v(k,r,n,t));i&&(r=Object.assign(Object.assign({},r),{payload:i})),await e.send((0,o.stringifyMessage)(r,_))},error:async t=>{let n={id:d,type:o.MessageType.Error,payload:t};const r=await(null==y?void 0:y(k,n,t));r&&(n=Object.assign(Object.assign({},n),{payload:r})),await e.send((0,o.stringifyMessage)(n,_))},complete:async t=>{const n={id:d,type:o.MessageType.Complete};await(null==b?void 0:b(k,n)),t&&await e.send((0,o.stringifyMessage)(n,_))}};try{let e;const o=await(null==m?void 0:m(k,O));if(o){if((0,a.areGraphQLErrors)(o))return d in k.subscriptions?await E.error(o):void 0;if(Array.isArray(o))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=o}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:p.operationName,document:(0,i.parse)(p.query),variableValues:p.variables};e=Object.assign(Object.assign({},n),{schema:"function"==typeof t?await t(k,O,n):t});const r=(null!=c?c:i.validate)(e.schema,e.document);if(r.length>0)return d in k.subscriptions?await E.error(r):void 0}const v=(0,i.getOperationAST)(e.document,e.operationName);if(!v)return d in k.subscriptions?await E.error([new i.GraphQLError("Unable to identify operation")]):void 0;let y;"rootValue"in e||(e.rootValue=null==s?void 0:s[v.operation]),"contextValue"in e||(e.contextValue="function"==typeof n?await n(k,O,e):n),y="subscription"===v.operation?await(null!=u?u:i.subscribe)(e):await(null!=l?l:i.execute)(e);const b=await(null==g?void 0:g(k,O,e,y));if(b&&(y=b),(0,a.isAsyncIterable)(y))if(d in k.subscriptions){k.subscriptions[d]=y;try{for(var x,C=!0,N=r(y);!(f=(x=await N.next()).done);C=!0){T=x.value,C=!1;const t=T;await E.next(t,e)}}catch(e){h={error:e}}finally{try{C||f||!(w=N.return)||await w.call(N)}finally{if(h)throw h.error}}}else(0,a.isAsyncGenerator)(y)&&y.return(void 0);else d in k.subscriptions&&await E.next(y,e);await E.complete(d in k.subscriptions)}finally{delete k.subscriptions[d]}return}case o.MessageType.Complete:{const e=k.subscriptions[O.id];return delete k.subscriptions[O.id],void((0,a.isAsyncGenerator)(e)&&await e.return(void 0))}default:throw new Error(`Unexpected message of type ${O.type} received`)}})),async(e,t)=>{T&&clearTimeout(T);const n=Object.assign({},k.subscriptions);k.subscriptions={},await Promise.all(Object.values(n).filter(a.isAsyncGenerator).map((e=>e.return(void 0)))),k.acknowledged&&await(null==f?void 0:f(k,e,t)),await(null==h?void 0:h(k,e,t))}}}},t.handleProtocols=function(e){switch(!0){case e instanceof Set&&e.has(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"==typeof e&&e.split(",").map((e=>e.trim())).includes(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):return o.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}},8214:(e,t)=>{"use strict";function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function r(e){return"object"===n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.limitCloseReason=t.areGraphQLErrors=t.isAsyncGenerator=t.isAsyncIterable=t.isObject=t.extendedTypeof=void 0,t.extendedTypeof=n,t.isObject=r,t.isAsyncIterable=function(e){return"function"==typeof Object(e)[Symbol.asyncIterator]},t.isAsyncGenerator=function(e){return r(e)&&"function"==typeof Object(e)[Symbol.asyncIterator]&&"function"==typeof e.return},t.areGraphQLErrors=function(e){return Array.isArray(e)&&e.length>0&&e.every((e=>"message"in e))},t.limitCloseReason=function(e,t){return e.length<124?e:t}},1702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(5569),i=n(9530),o=n(825);class a extends Error{constructor(e,...t){var n,o,c;const{nodes:l,source:u,positions:d,path:p,originalError:f,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(l)?l:l?[l]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=u?u:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&u?d.map((e=>(0,i.getLocation)(u,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const g=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(c=null!=h?h:g)&&void 0!==c?c:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},9211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(1702),i=n(1352),o=n(6107)},6107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=(0,r.toError)(e);return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,{nodes:null!==(o=a.nodes)&&void 0!==o?o:t,source:a.source,positions:a.positions,path:n,originalError:a});var s};var r=n(2036),i=n(1702)},1352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(1702)},1516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&c(e,t,n,r,s.selectionSet,o,a);return o};var r=n(7030),i=n(3754),o=n(8685),a=n(6693),s=n(8113);function c(e,t,n,i,o,a,s){for(const p of o.selections)switch(p.kind){case r.Kind.FIELD:{if(!l(n,p))continue;const e=(d=p).alias?d.alias.value:d.name.value,t=a.get(e);void 0!==t?t.push(p):a.set(e,[p]);break}case r.Kind.INLINE_FRAGMENT:if(!l(n,p)||!u(e,p,i))continue;c(e,t,n,i,p.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=p.name.value;if(s.has(r)||!l(n,p))continue;s.add(r);const o=t[r];if(!o||!u(e,o,i))continue;c(e,t,n,i,o.selectionSet,a,s);break}}var d}function l(e,t){const n=(0,s.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function u(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.typeFromAST)(e,r);return o===n||!!(0,i.isAbstractType)(o)&&e.isSubType(o,n)}},6892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=S,t.buildExecutionContext=O,t.buildResolveInfo=N,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=k,t.executeSync=function(e){const t=k(e);if((0,c.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=$;var r=n(3028),i=n(9657),o=n(1321),a=n(4820),s=n(5569),c=n(7724),l=n(2104),u=n(6506),d=n(4702),p=n(5662),f=n(1702),h=n(6107),m=n(6257),g=n(7030),v=n(3754),y=n(8364),b=n(9873),E=n(1516),_=n(8113);const w=(0,l.memoize3)(((e,t,n)=>(0,E.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n)));function k(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;S(t,n,i);const a=O(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new f.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,E.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return x(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,p.promiseReduce)(i.entries(),((i,[o,a])=>{const s=(0,u.addPath)(r,o,t.name),l=C(e,t,n,a,s);return void 0===l?i:(0,c.isPromise)(l)?l.then((e=>(i[o]=e,i))):(i[o]=l,i)}),Object.create(null))}(e,r,n,o,i);case m.OperationTypeNode.SUBSCRIPTION:return x(e,r,n,o,i)}}(a,e,o);return(0,c.isPromise)(t)?t.then((e=>T(e,a.errors)),(e=>(a.errors.push(e),T(null,a.errors)))):T(t,a.errors)}catch(e){return a.errors.push(e),T(null,a.errors)}}function T(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function S(e,t,n){t||(0,r.devAssert)(!1,"Must provide document."),(0,b.assertValidSchema)(e),null==n||(0,s.isObjectLike)(n)||(0,r.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function O(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:c,fieldResolver:l,typeResolver:u,subscribeFieldResolver:d}=e;let p;const h=Object.create(null);for(const e of i.definitions)switch(e.kind){case g.Kind.OPERATION_DEFINITION:if(null==c){if(void 0!==p)return[new f.GraphQLError("Must provide operation name if query contains multiple operations.")];p=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(p=e);break;case g.Kind.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!p)return null!=c?[new f.GraphQLError(`Unknown operation named "${c}".`)]:[new f.GraphQLError("Must provide an operation.")];const m=null!==(n=p.variableDefinitions)&&void 0!==n?n:[],v=(0,_.getVariableValues)(r,m,null!=s?s:{},{maxErrors:50});return v.errors?v.errors:{schema:r,fragments:h,rootValue:o,contextValue:a,operation:p,variableValues:v.coerced,fieldResolver:null!=l?l:R,typeResolver:null!=u?u:j,subscribeFieldResolver:null!=d?d:R,errors:[]}}function x(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,l]of i.entries()){const i=C(e,t,n,l,(0,u.addPath)(r,s,t.name));void 0!==i&&(o[s]=i,(0,c.isPromise)(i)&&(a=!0))}}catch(e){if(a)return(0,d.promiseForObject)(o).finally((()=>{throw e}));throw e}return a?(0,d.promiseForObject)(o):o}function C(e,t,n,r,i){var o;const a=$(e.schema,t,r[0]);if(!a)return;const s=a.type,l=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,d=N(e,a,r,t,i);try{const t=l(n,(0,_.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,d);let o;return o=(0,c.isPromise)(t)?t.then((t=>I(e,s,r,d,i,t))):I(e,s,r,d,i,t),(0,c.isPromise)(o)?o.then(void 0,(t=>A((0,h.locatedError)(t,r,(0,u.pathToArray)(i)),s,e))):o}catch(t){return A((0,h.locatedError)(t,r,(0,u.pathToArray)(i)),s,e)}}function N(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function A(e,t,n){if((0,v.isNonNullType)(t))throw e;return n.errors.push(e),null}function I(e,t,n,r,s,l){if(l instanceof Error)throw l;if((0,v.isNonNullType)(t)){const i=I(e,t.ofType,n,r,s,l);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==l?null:(0,v.isListType)(t)?function(e,t,n,r,i,o){if(!(0,a.isIterableObject)(o))throw new f.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let l=!1;const d=Array.from(o,((t,o)=>{const a=(0,u.addPath)(i,o,void 0);try{let i;return i=(0,c.isPromise)(t)?t.then((t=>I(e,s,n,r,a,t))):I(e,s,n,r,a,t),(0,c.isPromise)(i)?(l=!0,i.then(void 0,(t=>A((0,h.locatedError)(t,n,(0,u.pathToArray)(a)),s,e)))):i}catch(t){return A((0,h.locatedError)(t,n,(0,u.pathToArray)(a)),s,e)}}));return l?Promise.all(d):d}(e,t,n,r,s,l):(0,v.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.inspect)(e)}.serialize(${(0,i.inspect)(t)})\` to return non-nullable value, returned: ${(0,i.inspect)(n)}`);return n}(t,l):(0,v.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,u=s(o,l,r,t);return(0,c.isPromise)(u)?u.then((a=>L(e,D(a,e,t,n,r,o),n,r,i,o))):L(e,D(u,e,t,n,r,o),n,r,i,o)}(e,t,n,r,s,l):(0,v.isObjectType)(t)?L(e,t,n,r,s,l):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,i.inspect)(t))}function D(e,t,n,r,o,a){if(null==e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,v.isObjectType)(e))throw new f.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.inspect)(a)}, received "${(0,i.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,v.isObjectType)(s))throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function L(e,t,n,r,i,o){const a=w(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if((0,c.isPromise)(s))return s.then((r=>{if(!r)throw P(t,o,n);return x(e,t,o,i,a)}));if(!s)throw P(t,o,n)}return x(e,t,o,i,a)}function P(e,t,n){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const j=function(e,t,n,r){if((0,s.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return o.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return i.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return i.defaultTypeResolver}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return i.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return i.executeSync}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return a.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return a.getVariableValues}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.pathToArray}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return o.subscribe}});var r=n(6506),i=n(6892),o=n(9567),a=n(8113)},1215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapAsyncIterator=function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},9567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await f(e);return(0,o.isAsyncIterable)(t)?(0,d.mapAsyncIterator)(t,(t=>(0,u.execute)({...e,rootValue:t}))):t};var r=n(3028),i=n(9657),o=n(1619),a=n(6506),s=n(1702),c=n(6107),l=n(1516),u=n(6892),d=n(1215),p=n(8113);async function f(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:d}=t;(0,u.assertValidExecutionArguments)(n,r,d);const f=(0,u.buildExecutionContext)(t);if(!("schema"in f))return{errors:f};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,d=t.getSubscriptionType();if(null==d)throw new s.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});const f=(0,l.collectFields)(t,n,i,d,r.selectionSet),[h,m]=[...f.entries()][0],g=(0,u.getFieldDef)(t,d,m[0]);if(!g){const e=m[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:m})}const v=(0,a.addPath)(void 0,h,d.name),y=(0,u.buildResolveInfo)(e,g,m,d,v);try{var b;const t=(0,p.getArgumentValues)(g,m[0],i),n=e.contextValue,r=null!==(b=g.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,a=await r(o,t,n,y);if(a instanceof Error)throw a;return a}catch(e){throw(0,c.locatedError)(e,m,(0,a.pathToArray)(v))}}(f);if(!(0,o.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.inspect)(e)}.`);return e}catch(e){if(e instanceof s.GraphQLError)return{errors:[e]};throw e}}},8113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=f,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return f(e,i,n)},t.getVariableValues=function(e,t,n,i){const s=[],f=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const f of t){const t=f.variable.name.value,m=(0,d.typeFromAST)(e,f.type);if(!(0,l.isInputType)(m)){const e=(0,c.print)(f.type);i(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!h(n,t)){if(f.defaultValue)s[t]=(0,p.valueFromAST)(f.defaultValue,m);else if((0,l.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const g=n[t];if(null===g&&(0,l.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}))}else s[t]=(0,u.coerceInputValue)(g,m,((e,n,s)=>{let c=`Variable "$${t}" got invalid value `+(0,r.inspect)(n);e.length>0&&(c+=` at "${t}${(0,o.printPathArray)(e)}"`),i(new a.GraphQLError(c+"; "+s.message,{nodes:f,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=f&&s.length>=f)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:i}}catch(e){s.push(e)}return{errors:s}};var r=n(9657),i=n(4590),o=n(636),a=n(1702),s=n(7030),c=n(585),l=n(3754),u=n(4090),d=n(6693),p=n(2302);function f(e,t,n){var o;const u={},d=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.keyMap)(d,(e=>e.name.value));for(const i of e.args){const e=i.name,o=i.type,d=f[e];if(!d){if(void 0!==i.defaultValue)u[e]=i.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was not provided.`,{nodes:t});continue}const m=d.value;let g=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!h(n,t)){if(void 0!==i.defaultValue)u[e]=i.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:m});continue}g=null==n[t]}if(g&&(0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,r.inspect)(o)}" must not be null.`,{nodes:m});const v=(0,p.valueFromAST)(m,o,n);if(void 0===v)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(m)}.`,{nodes:m});u[e]=v}return u}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise((t=>t(l(e))))},t.graphqlSync=function(e){const t=l(e);if((0,i.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(3028),i=n(7724),o=n(246),a=n(9873),s=n(9040),c=n(6892);function l(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:i,contextValue:l,variableValues:u,operationName:d,fieldResolver:p,typeResolver:f}=e,h=(0,a.validateSchema)(t);if(h.length>0)return{errors:h};let m;try{m=(0,o.parse)(n)}catch(e){return{errors:[e]}}const g=(0,s.validate)(t,m);return g.length>0?{errors:g}:(0,c.execute)({schema:t,document:m,rootValue:i,contextValue:l,variableValues:u,operationName:d,fieldResolver:p,typeResolver:f})}},3574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return u.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return u.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return c.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return c.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return l.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return o.GraphQLOneOfDirective}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return c.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return c.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return c.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return c.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return c.MaxIntrospectionDepthRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return c.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return c.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return c.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return c.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return c.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return c.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return c.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return c.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return c.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return u.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return c.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return c.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return c.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return c.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return c.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return c.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return c.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return c.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return c.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return c.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return c.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return c.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return u.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return u.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return u.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return u.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return u.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return u.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return u.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return u.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return u.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return l.formatError}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return s.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return u.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return u.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return u.getOperationRootType}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return s.getVariableValues}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return u.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return u.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return u.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return u.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return l.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return l.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return u.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return u.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return u.printType}}),Object.defineProperty(t,"recommendedRules",{enumerable:!0,get:function(){return c.recommendedRules}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return o.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return o.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return u.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return c.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return u.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return l.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return u.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return u.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return u.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return u.visitWithTypeInfo}});var r=n(4274),i=n(9151),o=n(219),a=n(425),s=n(8259),c=n(4360),l=n(9211),u=n(4889)},6506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},3028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},2832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[r,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";r&&(o+=r+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,n),c=s.pop();return o+s.join(", ")+", or "+c+"?"};const n=5},4947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},6033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},9657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return i(e,[])};const n=10,r=2;function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const o=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,o)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";const o=Math.min(n,e.length),a=e.length-o,s=[];for(let n=0;n1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}(e,o);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>r)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const o=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+o.join(", ")+" }"}(e,o)}(e,t);default:return String(e)}}},9527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(9657);const i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};t.instanceOf=i},1321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},1619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},4820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},5569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},4590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},5785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},3430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}},2104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},5745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let r=0,o=0;for(;r0);let l=0;do{++o,l=10*l+s-n,s=t.charCodeAt(o)}while(i(s)&&l>0);if(cl)return 1}else{if(as)return 1;++r,++o}}return e.length-t.length};const n=48,r=57;function i(e){return!isNaN(e)&&n<=e&&e<=r}},636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}},4702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}},5662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then((e=>t(e,n))):t(i,n);return i};var r=n(7724)},1709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)}))};var r=n(5745);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.lengtht)return;const c=this._rows;for(let e=0;e<=s;e++)c[0][e]=e;for(let e=1;e<=a;e++){const n=c[(e-1)%3],o=c[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let l=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=c[(e-2)%3][t-2];l=Math.min(l,n+1)}lt)return}const l=c[a%3][s];return l<=t?l:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toError=function(e){return e instanceof Error?e:new i(e)};var r=n(9657);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}},3101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toObjMap=function(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}},6257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class r{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;const o=new Set(Object.keys(i));var a;t.OperationTypeNode=a,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(a||(t.OperationTypeNode=a={}))},9165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o1&&i.slice(1).every((e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),c=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=c||l,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s);let p="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(d&&!f||a)&&(p+="\n"),p+=n,(d||u)&&(p+="\n"),'"""'+p+'"""'};var r=n(3932);function i(e){let t=0;for(;t{"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},5919:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return d.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return h.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return c.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return p.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return p.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return p.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return d.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return d.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return f.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return f.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return f.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return f.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return f.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return f.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return f.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return f.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return f.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return f.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return l.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return l.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return l.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return u.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return d.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return d.visitInParallel}});var r=n(6876),i=n(9530),o=n(825),a=n(7030),s=n(3038),c=n(6083),l=n(246),u=n(585),d=n(9111),p=n(6257),f=n(9187),h=n(5919)},7030:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},6083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var r=n(1352),i=n(6257),o=n(9165),a=n(3932),s=n(3038);class c{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return d(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function f(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,c=t+3,d=c,p="";const m=[];for(;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(1321);const i=/\r\n|[\n\r]/g},246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){const n=new u(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r},t.parseConstValue=function(e,t){const n=new u(e,t);n.expectToken(l.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(l.TokenKind.EOF),r},t.parseType=function(e,t){const n=new u(e,t);n.expectToken(l.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(l.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new u(e,t);n.expectToken(l.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(l.TokenKind.EOF),r};var r=n(1352),i=n(6257),o=n(5919),a=n(7030),s=n(6083),c=n(6876),l=n(3038);class u{constructor(e,t={}){const n=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(l.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(l.TokenKind.SOF,this.parseDefinition,l.TokenKind.EOF)})}parseDefinition(){if(this.peek(l.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===l.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(l.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(l.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(l.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseVariableDefinition,l.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(l.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(l.TokenKind.BRACE_L,this.parseSelection,l.TokenKind.BRACE_R)})}parseSelection(){return this.peek(l.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(l.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.TokenKind.PAREN_L,t,l.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(l.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(l.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case l.TokenKind.BRACKET_L:return this.parseList(e);case l.TokenKind.BRACE_L:return this.parseObject(e);case l.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case l.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case l.TokenKind.STRING:case l.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case l.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case l.TokenKind.DOLLAR:if(e){if(this.expectToken(l.TokenKind.DOLLAR),this._lexer.token.kind===l.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===l.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(l.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),l.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(l.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),l.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(l.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(l.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(l.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(l.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(l.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(l.TokenKind.STRING)||this.peek(l.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(l.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(l.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseFieldDefinition,l.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(l.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseInputValueDef,l.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(l.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(l.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(l.TokenKind.EQUALS)?this.delimitedMany(l.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseEnumValueDefinition,l.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${d(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseInputValueDef,l.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===l.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(l.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${p(e)}, found ${d(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==l.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${d(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===l.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${d(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==l.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function d(e){const t=e.value;return p(e.kind)+(null!=t?` "${t}"`:"")}function p(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},9187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some((t=>e(t.value))):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||c(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=l,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=c,t.isValueNode=o;var r=n(7030);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function c(e){return e.kind===r.Kind.SCHEMA_EXTENSION||l(e)}function l(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9530);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,c=1===t.line?n:0,l=t.column+c,u=`${e.name}:${s}:${l}\n`,d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",d[i-1]],[`${s} |`,p],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},7583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(9165),i=n(7583),o=n(9111);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=l("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+l(" = ",n)+l(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=l("",e,": ")+t;let a=o+l("(",s(n,", "),")");return a.length>80&&(a=o+l("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",l("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${l("(",s(n,", "),")")} on ${t} ${l("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>l("",e,"\n")+s(["schema",s(t," "),c(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>l("",e,"\n")+t+(d(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+": "+r+l(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>l("",e,"\n")+s([t+": "+n,l("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["interface",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>l("",e,"\n")+s(["union",t,s(n," "),l("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>l("",e,"\n")+s(["enum",t,s(n," "),c(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>l("",e,"\n")+s(["input",t,s(n," "),c(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>l("",e,"\n")+"directive @"+t+(d(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),l("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),c(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),c(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function c(e){return l("{\n",u(s(e,"\n")),"\n}")}function l(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return l(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},6876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(3028),i=n(9657),o=n(9527);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},3038:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},9111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=c,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a.Kind))l.set(e,c(t,e));let u,d,p,f=Array.isArray(e),h=[e],m=-1,g=[],v=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===b.length?void 0:y[y.length-1],v=p,p=b.pop(),a)if(f){v=v.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[e,t]of g)v[e]=t}m=u.index,h=u.keys,g=u.edits,f=u.inArray,u=u.prev}else if(p){if(d=f?m:h[m],v=p[d],null==v)continue;y.push(d)}let c;if(!Array.isArray(v)){var E,_;(0,o.isNode)(v)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(v)}.`);const n=e?null===(E=l.get(v.kind))||void 0===E?void 0:E.leave:null===(_=l.get(v.kind))||void 0===_?void 0:_.enter;if(c=null==n?void 0:n.call(t,v,d,p,y,b),c===s)break;if(!1===c){if(!e){y.pop();continue}}else if(void 0!==c&&(g.push([d,c]),!e)){if(!(0,o.isNode)(c)){y.pop();continue}v=c}}var w;void 0===c&&a&&g.push([d,v]),e?y.pop():(u={inArray:f,index:m,keys:h,edits:g,prev:u},f=Array.isArray(v),h=f?v:null!==(w=n[v.kind])&&void 0!==w?w:[],m=-1,g=[],p&&b.push(p),p=v)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertEnumValueName=function(e){if("true"===e||"false"===e||"null"===e)throw new i.GraphQLError(`Enum values cannot be named: ${e}`);return a(e)},t.assertName=a;var r=n(3028),i=n(1702),o=n(3932);function a(e){if(null!=e||(0,r.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new i.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0,t.argsToArgsConfig=H,t.assertAbstractType=function(e){if(!D(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL abstract type.`);return e},t.assertCompositeType=function(e){if(!I(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL composite type.`);return e},t.assertEnumType=function(e){if(!T(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Enum type.`);return e},t.assertInputObjectType=function(e){if(!S(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Input Object type.`);return e},t.assertInputType=function(e){if(!C(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL input type.`);return e},t.assertInterfaceType=function(e){if(!w(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Interface type.`);return e},t.assertLeafType=function(e){if(!A(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL leaf type.`);return e},t.assertListType=function(e){if(!O(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL List type.`);return e},t.assertNamedType=function(e){if(!$(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL named type.`);return e},t.assertNonNullType=function(e){if(!x(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Non-Null type.`);return e},t.assertNullableType=function(e){if(!R(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`);return e},t.assertObjectType=function(e){if(!_(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Object type.`);return e},t.assertOutputType=function(e){if(!N(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL output type.`);return e},t.assertScalarType=function(e){if(!E(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Scalar type.`);return e},t.assertType=function(e){if(!b(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`);return e},t.assertUnionType=function(e){if(!k(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Union type.`);return e},t.assertWrappingType=function(e){if(!j(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL wrapping type.`);return e},t.defineArguments=G,t.getNamedType=function(e){if(e){let t=e;for(;j(t);)t=t.ofType;return t}},t.getNullableType=function(e){if(e)return x(e)?e.ofType:e},t.isAbstractType=D,t.isCompositeType=I,t.isEnumType=T,t.isInputObjectType=S,t.isInputType=C,t.isInterfaceType=w,t.isLeafType=A,t.isListType=O,t.isNamedType=$,t.isNonNullType=x,t.isNullableType=R,t.isObjectType=_,t.isOutputType=N,t.isRequiredArgument=function(e){return x(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return x(e.type)&&void 0===e.defaultValue},t.isScalarType=E,t.isType=b,t.isUnionType=k,t.isWrappingType=j,t.resolveObjMapThunk=M,t.resolveReadonlyArrayThunk=F;var r=n(3028),i=n(2832),o=n(6033),a=n(9657),s=n(9527),c=n(5569),l=n(4590),u=n(5785),d=n(3430),p=n(1709),f=n(3101),h=n(1702),m=n(7030),g=n(585),v=n(8805),y=n(3506);function b(e){return E(e)||_(e)||w(e)||k(e)||T(e)||S(e)||O(e)||x(e)}function E(e){return(0,s.instanceOf)(e,q)}function _(e){return(0,s.instanceOf)(e,V)}function w(e){return(0,s.instanceOf)(e,K)}function k(e){return(0,s.instanceOf)(e,W)}function T(e){return(0,s.instanceOf)(e,Y)}function S(e){return(0,s.instanceOf)(e,ee)}function O(e){return(0,s.instanceOf)(e,L)}function x(e){return(0,s.instanceOf)(e,P)}function C(e){return E(e)||T(e)||S(e)||j(e)&&C(e.ofType)}function N(e){return E(e)||_(e)||w(e)||k(e)||T(e)||j(e)&&N(e.ofType)}function A(e){return E(e)||T(e)}function I(e){return _(e)||w(e)||k(e)}function D(e){return w(e)||k(e)}class L{constructor(e){b(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=L;class P{constructor(e){R(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function j(e){return O(e)||x(e)}function R(e){return b(e)&&!x(e)}function $(e){return E(e)||_(e)||w(e)||k(e)||T(e)||S(e)}function F(e){return"function"==typeof e?e():e}function M(e){return"function"==typeof e?e():e}t.GraphQLNonNull=P;class q{constructor(e){var t,n,i,s;const c=null!==(t=e.parseValue)&&void 0!==t?t:o.identityFunc;this.name=(0,y.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.identityFunc,this.parseValue=c,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>c((0,v.valueFromASTUntyped)(e,t)),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=q;class V{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>B(e),this._interfaces=()=>z(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:U(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function z(e){var t;const n=F(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function B(e){const t=M(e.fields);return Q(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,((t,n)=>{var i;Q(t)||(0,r.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return Q(o)||(0,r.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,y.assertName)(n),description:t.description,type:t.type,args:G(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}}))}function G(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}function Q(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function U(e){return(0,d.mapValue)(e,(e=>({description:e.description,type:e.type,args:H(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function H(e){return(0,u.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}t.GraphQLObjectType=V;class K{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=B.bind(void 0,e),this._interfaces=z.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:U(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=K;class W{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=X.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function X(e){const t=F(e.types);return Array.isArray(t)||(0,r.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=W;class Y{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Z(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Z(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,l.keyMap)(this.getValues(),(e=>e.name))),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map((e=>[e.value,e]))));const t=this._valueLookup.get(e);if(void 0===t)throw new h.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,a.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.inspect)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+J(this,t))}const t=this.getValue(e);if(null==t)throw new h.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+J(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,g.print)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+J(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.print)(e);throw new h.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+J(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,u.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function J(e,t){const n=e.getValues().map((e=>e.name)),r=(0,p.suggestionList)(t,n);return(0,i.didYouMean)("the enum value",r)}function Z(e,t){return Q(t)||(0,r.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(Q(n)||(0,r.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,a.inspect)(n)}.`),{name:(0,y.assertEnumValueName)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,f.toObjMap)(n.extensions),astNode:n.astNode})))}t.GraphQLEnumType=Y;class ee{constructor(e){var t,n;this.name=(0,y.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=te.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,d.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function te(e){const t=M(e.fields);return Q(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,((t,n)=>(!("resolve"in t)||(0,r.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,y.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}t.GraphQLInputObjectType=ee},8685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!p(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=p,t.isSpecifiedDirective=function(e){return E.some((({name:t})=>t===e.name))},t.specifiedDirectives=void 0;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),c=n(5919),l=n(3506),u=n(3754),d=n(1062);function p(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.name=(0,l.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.devAssert)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.isObjectLike)(i)&&!Array.isArray(i)||(0,r.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,u.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,u.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=f;const h=new f({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new u.GraphQLNonNull(d.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=h;const m=new f({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new u.GraphQLNonNull(d.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const v=new f({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:d.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=v;const y=new f({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new u.GraphQLNonNull(d.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=y;const b=new f({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=b;const E=Object.freeze([h,m,v,y,b]);t.specifiedDirectives=E},219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return o.GraphQLOneOfDirective}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return l.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return l.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return c.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return i.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return i.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return c.validateSchema}});var r=n(4648),i=n(3754),o=n(8685),a=n(1062),s=n(8364),c=n(9873),l=n(3506)},8364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return w.some((({name:t})=>e.name===t))};var r=n(9657),i=n(1321),o=n(5919),a=n(585),s=n(8096),c=n(3754),l=n(1062);const u=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:l.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const d=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(m))),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})});t.__Directive=d;const p=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=p;const f=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve:e=>(0,c.isScalarType)(e)?v.SCALAR:(0,c.isObjectType)(e)?v.OBJECT:(0,c.isInterfaceType)(e)?v.INTERFACE:(0,c.isUnionType)(e)?v.UNION:(0,c.isEnumType)(e)?v.ENUM:(0,c.isInputObjectType)(e)?v.INPUT_OBJECT:(0,c.isListType)(e)?v.LIST:(0,c.isNonNullType)(e)?v.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:l.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:l.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:l.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(f)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(f)),resolve(e,t,n,{schema:r}){if((0,c.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:l.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e))return e.isOneOf}}})});t.__Type=f;const h=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(m))),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new c.GraphQLNonNull(f),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=h;const m=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(f),resolve:e=>e.type},defaultValue:{type:l.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,a.print)(r):null}},isDeprecated:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const g=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.GraphQLString,resolve:e=>e.deprecationReason}})});var v;t.__EnumValue=g,t.TypeKind=v,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(v||(t.TypeKind=v={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const b={name:"__schema",type:new c.GraphQLNonNull(u),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=b;const E={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new c.GraphQLNonNull(l.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=E;const _={name:"__typename",type:new c.GraphQLNonNull(l.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=_;const w=Object.freeze([u,d,p,f,h,m,g,y]);t.introspectionTypes=w},1062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0,t.isSpecifiedScalarType=function(e){return g.some((({name:t})=>e.name===t))},t.specifiedScalarTypes=void 0;var r=n(9657),i=n(5569),o=n(1702),a=n(7030),s=n(585),c=n(3754);const l=2147483647;t.GRAPHQL_MAX_INT=l;const u=-2147483648;t.GRAPHQL_MIN_INT=u;const d=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=v(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>l||nl||el||t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0,t.assertSchema=function(e){if(!p(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL schema.`);return e},t.isSchema=p;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),c=n(6257),l=n(3754),u=n(8685),d=n(8364);function p(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.isObjectLike)(e)||(0,r.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:u.specifiedDirectives;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),h(t,o);null!=this._queryType&&h(this._queryType,o),null!=this._mutationType&&h(this._mutationType,o),null!=this._subscriptionType&&h(this._subscriptionType,o);for(const e of this._directives)if((0,u.isDirective)(e))for(const t of e.args)h(t.type,o);h(d.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,l.isInterfaceType)(e)){for(const t of e.getInterfaces())if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,l.isObjectType)(e))for(const t of e.getInterfaces())if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,l.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,l.isUnionType)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function h(e,t){const n=(0,l.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,l.isUnionType)(n))for(const e of n.getTypes())h(e,t);else if((0,l.isObjectType)(n)||(0,l.isInterfaceType)(n)){for(const e of n.getInterfaces())h(e,t);for(const e of Object.values(n.getFields())){h(e.type,t);for(const n of e.args)h(n.type,t)}}else if((0,l.isInputObjectType)(n))for(const e of Object.values(n.getFields()))h(e.type,t);return t}t.GraphQLSchema=f},9873:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=d(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.validateSchema=d;var r=n(9657),i=n(1702),o=n(6257),a=n(3448),s=n(3754),c=n(8685),l=n(8364),u=n(4648);function d(e){if((0,u.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new p(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=f(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var c;a&&!(0,s.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(c=f(t,o.OperationTypeNode.MUTATION))&&void 0!==c?c:a.astNode);const l=t.getSubscriptionType();var u;l&&!(0,s.isObjectType)(l)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(l)}.`,null!==(u=f(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==u?u:l.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,c.isDirective)(n)){h(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args){var t;h(e,i),(0,s.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,s.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[S(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.isNonNullType)(t.type)&&(0,s.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.isNamedType)(i)?((0,l.isIntrospectionType)(i)||h(e,i),(0,s.isObjectType)(i)||(0,s.isInterfaceType)(i)?(m(e,i),g(e,i)):(0,s.isUnionType)(i)?b(e,i):(0,s.isEnumType)(i)?E(e,i):(0,s.isInputObjectType)(i)&&(_(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class p{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}}function f(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function h(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const c of n){var i;h(e,c),(0,s.isOutputType)(c.type)||e.reportError(`The type of ${t.name}.${c.name} must be Output Type but got: ${(0,r.inspect)(c.type)}.`,null===(i=c.astNode)||void 0===i?void 0:i.type);for(const n of c.args){const i=n.name;var o,a;h(e,n),(0,s.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${c.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${c.name}(${i}:) cannot be deprecated.`,[S(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function g(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,k(t,i)):(n[i.name]=!0,y(e,t,i),v(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,k(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,k(t,i))}function v(e,t,n){const i=t.getFields();for(const d of Object.values(n.getFields())){const p=d.name,f=i[p];if(f){var o,c;(0,a.isTypeSubTypeOf)(e.schema,f.type,d.type)||e.reportError(`Interface field ${n.name}.${p} expects type ${(0,r.inspect)(d.type)} but ${t.name}.${p} is type ${(0,r.inspect)(f.type)}.`,[null===(o=d.astNode)||void 0===o?void 0:o.type,null===(c=f.astNode)||void 0===c?void 0:c.type]);for(const i of d.args){const o=i.name,s=f.args.find((e=>e.name===o));var l,u;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${p}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${p}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(l=i.astNode)||void 0===l?void 0:l.type,null===(u=s.astNode)||void 0===u?void 0:u.type]):e.reportError(`Interface field argument ${n.name}.${p}(${o}:) expected but ${t.name}.${p} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!d.args.find((e=>e.name===i))&&(0,s.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${i} that is missing from the Interface field ${n.name}.${p}.`,[r.astNode,d.astNode])}}else e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[d.astNode,t.astNode,...t.extensionASTNodes])}}function y(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...k(n,i),...k(t,n)])}function b(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,T(t,o.name)):(i[o.name]=!0,(0,s.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,T(t,String(o))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)h(e,t)}function _(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;h(e,a),(0,s.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[S(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&w(t,a,e)}}function w(e,t,n){var r;(0,s.isNonNullType)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function k(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function T(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function S(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},7485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.getEnterLeaveForKind)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(6257),i=n(7030),o=n(9111),a=n(3754),s=n(8364),c=n(6693);class l{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:u,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case i.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,c.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case i.Kind.VARIABLE_DEFINITION:{const n=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case i.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case i.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}}}function u(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=l},8426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(3028),i=n(1702),o=n(3506);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},8096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,c.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,c.isListType)(n)){const r=n.ofType;if((0,o.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,c.isInputObjectType)(n)){if(!(0,a.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return u.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,c.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===l.GraphQLID&&u.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(9657),i=n(1321),o=n(4820),a=n(5569),s=n(7030),c=n(3754),l=n(1062);const u=/^-?(?:0|[1-9][0-9]*)$/},434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=u,t.buildSchema=function(e,t){return u((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(3028),i=n(7030),o=n(246),a=n(8685),s=n(4648),c=n(9040),l=n(1442);function u(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,c.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,l.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const u=[...o.directives,...a.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new s.GraphQLSchema({...o,directives:u})}},6613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,r.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.inspect)(e)}.`);const n=e.__schema,h=(0,a.keyValMap)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case u.TypeKind.SCALAR:return r=e,new c.GraphQLScalarType({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case u.TypeKind.OBJECT:return n=e,new c.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>k(n),fields:()=>T(n)});case u.TypeKind.INTERFACE:return t=e,new c.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>k(t),fields:()=>T(t)});case u.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(_)})}(e);case u.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,a.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case u.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>O(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const o=(0,i.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const e of[...d.specifiedScalarTypes,...u.introspectionTypes])h[e.name]&&(h[e.name]=e);const m=n.queryType?_(n.queryType):null,g=n.mutationType?_(n.mutationType):null,v=n.subscriptionType?_(n.subscriptionType):null,y=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new l.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:O(e.args)})})):[];return new p.GraphQLSchema({description:n.description,query:m,mutation:g,subscription:v,types:Object.values(h),directives:y,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===u.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new c.GraphQLList(b(t))}if(e.kind===u.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new c.GraphQLNonNull((0,c.assertNullableType)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.inspect)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function _(e){return(0,c.assertObjectType)(E(e))}function w(e){return(0,c.assertInterfaceType)(E(e))}function k(e){if(null===e.interfaces&&e.kind===u.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(w)}function T(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.inspect)(e)}.`);return(0,a.keyValMap)(e.fields,(e=>e.name),S)}function S(e){const t=b(e.type);if(!(0,c.isOutputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:O(e.args)}}function O(e){return(0,a.keyValMap)(e,(e=>e.name),x)}function x(e){const t=b(e.type);if(!(0,c.isInputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(3028),i=n(9657),o=n(5569),a=n(5785),s=n(246),c=n(3754),l=n(8685),u=n(8364),d=n(1062),p=n(4648),f=n(2302)},4090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=f){return h(e,t,n,void 0)};var r=n(2832),i=n(9657),o=n(1321),a=n(4820),s=n(5569),c=n(6506),l=n(636),u=n(1709),d=n(1702),p=n(3754);function f(e,t,n){let r="Invalid value "+(0,i.inspect)(t);throw e.length>0&&(r+=` at "value${(0,l.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function h(e,t,n,l){if((0,p.isNonNullType)(t))return null!=e?h(e,t.ofType,n,l):void n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected non-nullable type "${(0,i.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,p.isListType)(t)){const r=t.ofType;return(0,a.isIterableObject)(e)?Array.from(e,((e,t)=>{const i=(0,c.addPath)(l,t,void 0);return h(e,r,n,i)})):[h(e,r,n,l)]}if((0,p.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return void n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=h(a,r.type,n,(0,c.addPath)(l,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,p.isNonNullType)(r.type)){const t=(0,i.inspect)(r.type);n((0,c.pathToArray)(l),e,new d.GraphQLError(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,u.suggestionList)(i,Object.keys(t.getFields()));n((0,c.pathToArray)(l),e,new d.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}if(t.isOneOf){const r=Object.keys(o);1!==r.length&&n((0,c.pathToArray)(l),e,new d.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));const i=r[0],a=o[i];null===a&&n((0,c.pathToArray)(l).concat(i),a,new d.GraphQLError(`Field "${i}" must be non-null.`))}return o}if((0,p.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof d.GraphQLError?n((0,c.pathToArray)(l),e,r):n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected type "${t.name}".`)),r}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(t))}},3129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(7030)},1442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,h.assertSchema)(e),null!=t&&t.kind===c.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,m.assertValidSDLExtension)(t,e);const i=e.toConfig(),o=y(i,t,n);return i===o?e:new h.GraphQLSchema(o)},t.extendSchemaImpl=y;var r=n(3028),i=n(9657),o=n(1321),a=n(4590),s=n(3430),c=n(7030),l=n(9187),u=n(3754),d=n(8685),p=n(8364),f=n(1062),h=n(4648),m=n(9040),g=n(8113),v=n(2302);function y(e,t,n){var r,a,h,m;const y=[],w=Object.create(null),k=[];let T;const S=[];for(const e of t.definitions)if(e.kind===c.Kind.SCHEMA_DEFINITION)T=e;else if(e.kind===c.Kind.SCHEMA_EXTENSION)S.push(e);else if((0,l.isTypeDefinitionNode)(e))y.push(e);else if((0,l.isTypeExtensionNode)(e)){const t=e.name.value,n=w[t];w[t]=n?n.concat([e]):[e]}else e.kind===c.Kind.DIRECTIVE_DEFINITION&&k.push(e);if(0===Object.keys(w).length&&0===y.length&&0===k.length&&0===S.length&&null==T)return e;const O=Object.create(null);for(const t of e.types)O[t.name]=(x=t,(0,p.isIntrospectionType)(x)||(0,f.isSpecifiedScalarType)(x)?x:(0,u.isScalarType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=_(e))&&void 0!==o?o:i}return new u.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isObjectType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(I),...V(r)],fields:()=>({...(0,s.mapValue)(n.fields,D),...$(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isInterfaceType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(I),...V(r)],fields:()=>({...(0,s.mapValue)(n.fields,D),...$(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isUnionType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(I),...z(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isEnumType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[e.name])&&void 0!==t?t:[];return new u.GraphQLEnumType({...n,values:{...n.values,...q(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):(0,u.isInputObjectType)(x)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLInputObjectType({...n,fields:()=>({...(0,s.mapValue)(n.fields,(e=>({...e,type:A(e.type)}))),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(x):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(x)));var x;for(const e of y){var C;const t=e.name.value;O[t]=null!==(C=b[t])&&void 0!==C?C:B(e)}const N={query:e.query&&I(e.query),mutation:e.mutation&&I(e.mutation),subscription:e.subscription&&I(e.subscription),...T&&P([T]),...P(S)};return{description:null===(r=T)||void 0===r||null===(a=r.description)||void 0===a?void 0:a.value,...N,types:Object.values(O),directives:[...e.directives.map((function(e){const t=e.toConfig();return new d.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,L)})})),...k.map((function(e){var t;return new d.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:F(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(h=T)&&void 0!==h?h:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(S),assumeValid:null!==(m=null==n?void 0:n.assumeValid)&&void 0!==m&&m};function A(e){return(0,u.isListType)(e)?new u.GraphQLList(A(e.ofType)):(0,u.isNonNullType)(e)?new u.GraphQLNonNull(A(e.ofType)):I(e)}function I(e){return O[e.name]}function D(e){return{...e,type:A(e.type),args:e.args&&(0,s.mapValue)(e.args,L)}}function L(e){return{...e,type:A(e.type)}}function P(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=j(n.type)}return t}function j(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:O[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function R(e){return e.kind===c.Kind.LIST_TYPE?new u.GraphQLList(R(e.type)):e.kind===c.Kind.NON_NULL_TYPE?new u.GraphQLNonNull(R(e.type)):j(e)}function $(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:R(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:F(n.arguments),deprecationReason:E(n),astNode:n}}}return t}function F(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=R(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,v.valueFromAST)(e.defaultValue,t),deprecationReason:E(e),astNode:e}}return n}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=R(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,v.valueFromAST)(n.defaultValue,e),deprecationReason:E(n),astNode:n}}}return t}function q(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:E(n),astNode:n}}}return t}function V(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(j))&&void 0!==t?t:[]}))}function z(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(j))&&void 0!==t?t:[]}))}function B(e){var t;const n=e.name.value,r=null!==(t=w[n])&&void 0!==t?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new u.GraphQLObjectType({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>V(t),fields:()=>$(t),astNode:e,extensionASTNodes:r})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new u.GraphQLInterfaceType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>V(t),fields:()=>$(t),astNode:e,extensionASTNodes:r})}case c.Kind.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new u.GraphQLEnumType({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:q(t),astNode:e,extensionASTNodes:r})}case c.Kind.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new u.GraphQLUnionType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>z(t),astNode:e,extensionASTNodes:r})}case c.Kind.SCALAR_TYPE_DEFINITION:var l;return new u.GraphQLScalarType({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,specifiedByURL:_(e),astNode:e,extensionASTNodes:r});case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var p;const t=[e,...r];return new u.GraphQLInputObjectType({name:n,description:null===(p=e.description)||void 0===p?void 0:p.value,fields:()=>M(t),astNode:e,extensionASTNodes:r,isOneOf:(f=e,Boolean((0,g.getDirectiveValues)(d.GraphQLOneOfDirective,f)))})}}var f}}const b=(0,a.keyMap)([...f.specifiedScalarTypes,...p.introspectionTypes],(e=>e.name));function E(e){const t=(0,g.getDirectiveValues)(d.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function _(e){const t=(0,g.getDirectiveValues)(d.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},3666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return f(e,t).filter((e=>e.type in r))},t.findDangerousChanges=function(e,t){return f(e,t).filter((e=>e.type in i))};var r,i,o=n(9657),a=n(1321),s=n(4590),c=n(585),l=n(3754),u=n(1062),d=n(8096),p=n(1152);function f(e,t){return[...m(e,t),...h(e,t)]}function h(e,t){const n=[],i=O(e.getDirectives(),t.getDirectives());for(const e of i.removed)n.push({type:r.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of i.persisted){const i=O(e.args,t.args);for(const t of i.added)(0,l.isRequiredArgument)(t)&&n.push({type:r.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of i.removed)n.push({type:r.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:r.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const i of e.locations)t.locations.includes(i)||n.push({type:r.DIRECTIVE_LOCATION_REMOVED,description:`${i} was removed from ${e.name}.`})}return n}function m(e,t){const n=[],i=O(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of i.removed)n.push({type:r.TYPE_REMOVED,description:(0,u.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of i.persisted)(0,l.isEnumType)(e)&&(0,l.isEnumType)(t)?n.push(...y(e,t)):(0,l.isUnionType)(e)&&(0,l.isUnionType)(t)?n.push(...v(e,t)):(0,l.isInputObjectType)(e)&&(0,l.isInputObjectType)(t)?n.push(...g(e,t)):(0,l.isObjectType)(e)&&(0,l.isObjectType)(t)||(0,l.isInterfaceType)(e)&&(0,l.isInterfaceType)(t)?n.push(...E(e,t),...b(e,t)):e.constructor!==t.constructor&&n.push({type:r.TYPE_CHANGED_KIND,description:`${e.name} changed from ${T(e)} to ${T(t)}.`});return n}function g(e,t){const n=[],o=O(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of o.added)(0,l.isRequiredInputField)(t)?n.push({type:r.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:i.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of o.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of o.persisted)k(t.type,i.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function v(e,t){const n=[],o=O(e.getTypes(),t.getTypes());for(const t of o.added)n.push({type:i.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of o.removed)n.push({type:r.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function y(e,t){const n=[],o=O(e.getValues(),t.getValues());for(const t of o.added)n.push({type:i.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of o.removed)n.push({type:r.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function b(e,t){const n=[],o=O(e.getInterfaces(),t.getInterfaces());for(const t of o.added)n.push({type:i.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of o.removed)n.push({type:r.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function E(e,t){const n=[],i=O(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of i.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of i.persisted)n.push(..._(e,t,o)),w(t.type,o.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`});return n}function _(e,t,n){const o=[],a=O(t.args,n.args);for(const n of a.removed)o.push({type:r.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,s]of a.persisted)if(k(n.type,s.type)){if(void 0!==n.defaultValue)if(void 0===s.defaultValue)o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const r=S(n.defaultValue,n.type),a=S(s.defaultValue,s.type);r!==a&&o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:r.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(s.type)}.`});for(const n of a.added)(0,l.isRequiredArgument)(n)?o.push({type:r.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):o.push({type:i.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return o}function w(e,t){return(0,l.isListType)(e)?(0,l.isListType)(t)&&w(e.ofType,t.ofType)||(0,l.isNonNullType)(t)&&w(e,t.ofType):(0,l.isNonNullType)(e)?(0,l.isNonNullType)(t)&&w(e.ofType,t.ofType):(0,l.isNamedType)(t)&&e.name===t.name||(0,l.isNonNullType)(t)&&w(e,t.ofType)}function k(e,t){return(0,l.isListType)(e)?(0,l.isListType)(t)&&k(e.ofType,t.ofType):(0,l.isNonNullType)(e)?(0,l.isNonNullType)(t)&&k(e.ofType,t.ofType)||!(0,l.isNonNullType)(t)&&k(e.ofType,t):(0,l.isNamedType)(t)&&e.name===t.name}function T(e){return(0,l.isScalarType)(e)?"a Scalar type":(0,l.isObjectType)(e)?"an Object type":(0,l.isInterfaceType)(e)?"an Interface type":(0,l.isUnionType)(e)?"a Union type":(0,l.isEnumType)(e)?"an Enum type":(0,l.isInputObjectType)(e)?"an Input type":void(0,a.invariant)(!1,"Unexpected type: "+(0,o.inspect)(e))}function S(e,t){const n=(0,d.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,c.print)((0,p.sortValueNode)(n))}function O(e,t){const n=[],r=[],i=[],o=(0,s.keyMap)(e,(({name:e})=>e)),a=(0,s.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}t.BreakingChangeType=r,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(r||(t.BreakingChangeType=r={})),t.DangerousChangeType=i,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(i||(t.DangerousChangeType=i={}))},6032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}const s=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${s}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${a("isDeprecated")}\n ${a("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},3810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(7030)},4676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})};var r=n(1702)},4889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return k.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return k.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return g.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return w.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return v.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return y.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return _.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return l.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return k.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return k.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return _.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return _.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return w.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return d.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return d.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return d.printType}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return b.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return E.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return p.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return f.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return h.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return g.visitWithTypeInfo}});var r=n(6032),i=n(3810),o=n(4676),a=n(5197),s=n(6613),c=n(434),l=n(1442),u=n(7460),d=n(2254),p=n(6693),f=n(2302),h=n(8805),m=n(8096),g=n(7485),v=n(4090),y=n(3129),b=n(1070),E=n(8401),_=n(3448),w=n(8426),k=n(3666)},5197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),c=(0,o.executeSync)({schema:e,document:s});return!c.errors&&c.data||(0,r.invariant)(!1),c.data};var r=n(1321),i=n(246),o=n(6892),a=n(6032)},7460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(p(t.types),(e=>e.name),(function(e){if((0,s.isScalarType)(e)||(0,l.isIntrospectionType)(e))return e;if((0,s.isObjectType)(e)){const t=e.toConfig();return new s.GraphQLObjectType({...t,interfaces:()=>y(t.interfaces),fields:()=>v(t.fields)})}if((0,s.isInterfaceType)(e)){const t=e.toConfig();return new s.GraphQLInterfaceType({...t,interfaces:()=>y(t.interfaces),fields:()=>v(t.fields)})}if((0,s.isUnionType)(e)){const t=e.toConfig();return new s.GraphQLUnionType({...t,types:()=>y(t.types)})}if((0,s.isEnumType)(e)){const t=e.toConfig();return new s.GraphQLEnumType({...t,values:d(t.values,(e=>e))})}if((0,s.isInputObjectType)(e)){const t=e.toConfig();return new s.GraphQLInputObjectType({...t,fields:()=>d(t.fields,(e=>({...e,type:a(e.type)})))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}));return new u.GraphQLSchema({...t,types:Object.values(n),directives:p(t.directives).map((function(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:f(t.locations,(e=>e)),args:g(t.args)})})),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,s.isListType)(e)?new s.GraphQLList(a(e.ofType)):(0,s.isNonNullType)(e)?new s.GraphQLNonNull(a(e.ofType)):h(e)}function h(e){return n[e.name]}function m(e){return e&&h(e)}function g(e){return d(e,(e=>({...e,type:a(e.type)})))}function v(e){return d(e,(e=>({...e,type:a(e.type),args:e.args&&g(e.args)})))}function y(e){return p(e).map(h)}};var r=n(9657),i=n(1321),o=n(5785),a=n(5745),s=n(3754),c=n(8685),l=n(8364),u=n(4648);function d(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(a.naturalCompare))n[r]=t(e[r]);return n}function p(e){return f(e,(e=>e.name))}function f(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)}))}},2254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return h(e,l.isSpecifiedDirective,u.isIntrospectionType)},t.printSchema=function(e){return h(e,(e=>!(0,l.isSpecifiedDirective)(e)),f)},t.printType=g;var r=n(9657),i=n(1321),o=n(9165),a=n(7030),s=n(585),c=n(3754),l=n(8685),u=n(8364),d=n(1062),p=n(8096);function f(e){return!(0,d.isSpecifiedScalarType)(e)&&!(0,u.isIntrospectionType)(e)}function h(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map((e=>function(e){return k(e)+"directive @"+e.name+E(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>g(e)))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),k(e)+`schema {\n${t.join("\n")}\n}`}function g(e){return(0,c.isScalarType)(e)?function(e){return k(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,s.print)({kind:a.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,c.isObjectType)(e)?function(e){return k(e)+`type ${e.name}`+v(e)+y(e)}(e):(0,c.isInterfaceType)(e)?function(e){return k(e)+`interface ${e.name}`+v(e)+y(e)}(e):(0,c.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return k(e)+"union "+e.name+n}(e):(0,c.isEnumType)(e)?function(e){const t=e.getValues().map(((e,t)=>k(e," ",!t)+" "+e.name+w(e.deprecationReason)));return k(e)+`enum ${e.name}`+b(t)}(e):(0,c.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>k(e," ",!t)+" "+_(e)));return k(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+b(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function v(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function y(e){return b(Object.values(e.getFields()).map(((e,t)=>k(e," ",!t)+" "+e.name+E(e.args," ")+": "+String(e.type)+w(e.deprecationReason))))}function b(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function E(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(_).join(", ")+")":"(\n"+e.map(((e,n)=>k(e," "+t,!n)+" "+t+_(e))).join("\n")+"\n"+t+")"}function _(e){const t=(0,p.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,s.print)(t)}`),n+w(e.deprecationReason)}function w(e){return null==e?"":e!==l.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,s.print)({kind:a.Kind.STRING,value:e})})`:" @deprecated"}function k(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,s.print)({kind:a.Kind.STRING,value:r,block:(0,o.isPrintableAsBlockString)(r)}).replace(/\n/g,"\n"+t)+"\n"}},1070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return i};var r=n(7030),i=n(9111);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},1152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortValueNode=function e(t){switch(t.kind){case i.Kind.OBJECT:return{...t,fields:(n=t.fields,n.map((t=>({...t,value:e(t.value)}))).sort(((e,t)=>(0,r.naturalCompare)(e.name.value,t.name.value))))};case i.Kind.LIST:return{...t,values:t.values.map(e)};case i.Kind.INT:case i.Kind.FLOAT:case i.Kind.STRING:case i.Kind.BOOLEAN:case i.Kind.NULL:case i.Kind.ENUM:case i.Kind.VARIABLE:return t}var n};var r=n(5745),i=n(7030)},8401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,o.isSource)(e)?e:new o.Source(e),n=t.body,s=new i.Lexer(t);let c="",l=!1;for(;s.advance().kind!==a.TokenKind.EOF;){const e=s.token,t=e.kind,o=!(0,i.isPunctuatorTokenKind)(e.kind);l&&(o||e.kind===a.TokenKind.SPREAD)&&(c+=" ");const u=n.slice(e.start,e.end);t===a.TokenKind.BLOCK_STRING?c+=(0,r.printBlockString)(e.value,{minimize:!0}):c+=u,l=o}return c};var r=n(9165),i=n(6083),o=n(6876),a=n(3038)},3448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(3754)},6693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){switch(n.kind){case r.Kind.LIST_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLList(r)}case r.Kind.NON_NULL_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLNonNull(r)}case r.Kind.NAMED_TYPE:return t.getType(n.name.value)}};var r=n(7030),i=n(3754)},2302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,l){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==l||void 0===l[e])return;const r=l[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,l)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(c(i,l)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,l);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,l);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const r=Object.create(null),i=(0,o.keyMap)(t.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const n=i[t.name];if(!n||c(n.value,l)){if(void 0!==t.defaultValue)r[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const o=e(n.value,t.type,l);if(void 0===o)return;r[t.name]=o}if(n.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,l)}catch(e){return}if(void 0===e)return;return e}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))}};var r=n(9657),i=n(1321),o=n(4590),a=n(7030),s=n(3754);function c(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},8805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case i.Kind.NULL:return null;case i.Kind.INT:return parseInt(t.value,10);case i.Kind.FLOAT:return parseFloat(t.value);case i.Kind.STRING:case i.Kind.ENUM:case i.Kind.BOOLEAN:return t.value;case i.Kind.LIST:return t.values.map((t=>e(t,n)));case i.Kind.OBJECT:return(0,r.keyValMap)(t.fields,(e=>e.name.value),(t=>e(t.value,n)));case i.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}};var r=n(5785),i=n(7030)},4782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(7030),i=n(9111),o=n(7485);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class c extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=c},4360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return d.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return p.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return f.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return L.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return D.MaxIntrospectionDepthRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return V.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return z.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return g.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return v.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return y.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return q.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return E.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return _.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return w.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return F.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return k.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return M.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return T.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return R.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return $.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return S.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return O.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return x.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return P.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return j.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return C.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return N.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return A.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return I.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"recommendedRules",{enumerable:!0,get:function(){return o.recommendedRules}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9040),i=n(4782),o=n(7283),a=n(2988),s=n(9284),c=n(6514),l=n(7372),u=n(7999),d=n(9093),p=n(5117),f=n(9130),h=n(944),m=n(1350),g=n(6072),v=n(4472),y=n(2457),b=n(6839),E=n(1672),_=n(1843),w=n(3618),k=n(5566),T=n(9529),S=n(7091),O=n(7027),x=n(5988),C=n(3191),N=n(7909),A=n(964),I=n(4281),D=n(2128),L=n(502),P=n(105),j=n(3171),R=n(1813),$=n(3084),F=n(1066),M=n(5972),q=n(817),V=n(4555),z=n(5588)},2988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}};var r=n(1702),i=n(7030),o=n(9187)},9284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const c=e.getSchema(),l=t.name.value;let u=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,i.naturalCompare)(t.name,n.name)})).map((e=>e.name))}(c,n,l));""===u&&(u=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,o.suggestionList)(t,n)}return[]}(n,l))),e.reportError(new a.GraphQLError(`Cannot query field "${l}" on type "${n.name}".`+u,{nodes:t}))}}}};var r=n(2832),i=n(5745),o=n(1709),a=n(1702),s=n(3754)},6514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},7372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=c,t.KnownArgumentNamesRule=function(e){return{...c(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,c=a.args.map((e=>e.name)),l=(0,i.suggestionList)(n,c);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(l),{nodes:t}))}}}};var r=n(2832),i=n(1709),o=n(1702),a=n(7030),s=n(8685);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():s.specifiedDirectives;for(const e of c)t[e.name]=e.args.map((e=>e.name));const l=e.getDocument().definitions;for(const e of l)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var u;const n=null!==(u=e.arguments)&&void 0!==u?u:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const c=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(c),{nodes:t}))}}return!1}}}},7999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():l.specifiedDirectives;for(const e of u)t[e.name]=e.locations;const d=e.getDocument().definitions;for(const e of d)e.kind===c.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,l,u,d,p){const f=n.name.value,h=t[f];if(!h)return void e.reportError(new o.GraphQLError(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case c.Kind.OPERATION_DEFINITION:return function(e){switch(e){case a.OperationTypeNode.QUERY:return s.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return s.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return s.DirectiveLocation.SUBSCRIPTION}}(t.operation);case c.Kind.FIELD:return s.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return s.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return s.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return s.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return s.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return s.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return s.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return s.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return s.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return s.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return s.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return s.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?s.DirectiveLocation.INPUT_FIELD_DEFINITION:s.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,i.invariant)(!1,"Unexpected kind: "+(0,r.inspect)(t.kind))}}(p);m&&!h.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}};var r=n(9657),i=n(1321),o=n(1702),a=n(6257),s=n(5919),c=n(7030),l=n(8685)},9093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}};var r=n(1702)},5117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const l=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,u,d,p,f){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=f[2])&&void 0!==m?m:d,s=null!=n&&"kind"in(g=n)&&((0,a.isTypeSystemDefinitionNode)(g)||(0,a.isTypeSystemExtensionNode)(g));if(s&&c.includes(h))return;const u=(0,i.suggestionList)(h,s?c.concat(l):l);e.reportError(new o.GraphQLError(`Unknown type "${h}".`+(0,r.didYouMean)(u),{nodes:t}))}var g}}};var r=n(2832),i=n(1709),o=n(1702),a=n(9187),s=n(8364);const c=[...n(1062).specifiedScalarTypes,...s.introspectionTypes].map((e=>e.name))},9130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.Kind.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}};var r=n(1702),i=n(7030)},502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",{nodes:t})),++s)}}};var r=n(1702)},2128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxIntrospectionDepthRule=function(e){function t(n,r=Object.create(null),a=0){if(n.kind===i.Kind.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const o=e.getFragment(i);if(!o)return!1;try{return r[i]=!0,t(o,r,a)}finally{r[i]=void 0}}if(n.kind===i.Kind.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++a>=o)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,a))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new r.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}};var r=n(1702),i=n(7030);const o=3},944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const c=e.getFragmentSpreads(a.selectionSet);if(0!==c.length){i[s]=n.length;for(const t of c){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}};var r=n(1702)},1350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(1702)},6072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,{nodes:t}))}}}}};var r=n(1702)},4472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}};var r=n(1702)},2457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new E,n=new _,r=new Map;return{SelectionSet(o){const a=function(e,t,n,r,i,o){const a=[],[s,c]=v(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o`subfields "${e}" conflict because `+u(t))).join(" and "):e}function d(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);const c=e.getFragment(s);if(!c)return;const[l,u]=y(e,n,c);if(a!==l){f(e,t,n,r,i,o,a,l);for(const s of u)d(e,t,n,r,i,o,a,s)}}function p(e,t,n,r,i,o,a,s){if(a===s)return;if(i.has(a,s,o))return;i.add(a,s,o);const c=e.getFragment(a),l=e.getFragment(s);if(!c||!l)return;const[u,d]=y(e,n,c),[h,m]=y(e,n,l);f(e,t,n,r,i,o,u,h);for(const s of m)p(e,t,n,r,i,o,a,s);for(const a of d)p(e,t,n,r,i,o,a,s)}function f(e,t,n,r,i,o,a,s){for(const[c,l]of Object.entries(a)){const a=s[c];if(a)for(const s of l)for(const l of a){const a=h(e,n,r,i,o,c,s,l);a&&t.push(a)}}}function h(e,t,n,i,o,a,c,l){const[u,h,y]=c,[b,E,_]=l,w=o||u!==b&&(0,s.isObjectType)(u)&&(0,s.isObjectType)(b);if(!w){const e=h.name.value,t=E.name.value;if(e!==t)return[[a,`"${e}" and "${t}" are different fields`],[h],[E]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((({name:e,value:t})=>[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&m(t)===m(n)}))}(h,E))return[[a,"they have differing arguments"],[h],[E]]}const k=null==y?void 0:y.type,T=null==_?void 0:_.type;if(k&&T&&g(k,T))return[[a,`they return conflicting types "${(0,r.inspect)(k)}" and "${(0,r.inspect)(T)}"`],[h],[E]];const S=h.selectionSet,O=E.selectionSet;if(S&&O){const r=function(e,t,n,r,i,o,a,s,c){const l=[],[u,h]=v(e,t,o,a),[m,g]=v(e,t,s,c);f(e,l,t,n,r,i,u,m);for(const o of g)d(e,l,t,n,r,i,u,o);for(const o of h)d(e,l,t,n,r,i,m,o);for(const o of h)for(const a of g)p(e,l,t,n,r,i,o,a);return l}(e,t,n,i,w,(0,s.getNamedType)(k),S,(0,s.getNamedType)(T),O);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,a,h,E)}}function m(e){return(0,a.print)((0,c.sortValueNode)(e))}function g(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||g(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||g(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function v(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);b(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function y(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,l.typeFromAST)(e.getSchema(),n.typeCondition);return v(e,t,i,n.selectionSet)}function b(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,l.typeFromAST)(e.getSchema(),n):t;b(e,o,a.selectionSet,r,i);break}}}class E{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class _{constructor(){this._orderedPairSet=new E}has(e,t,n){return e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleFragmentSpreadsRule=function(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s),a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,c=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t))return t}}(e,n),l=e.getParentType();if(c&&l&&!(0,a.doTypesOverlap)(e.getSchema(),c,l)){const o=(0,r.inspect)(l),a=(0,r.inspect)(c);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754),a=n(3448),s=n(6693)},817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleTypeExtensionsRule=function(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,l.isTypeDefinitionNode)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:p,ObjectTypeExtension:p,InterfaceTypeExtension:p,UnionTypeExtension:p,EnumTypeExtension:p,InputObjectTypeExtension:p};function p(l){const p=l.name.value,f=n[p],h=null==t?void 0:t.getType(p);let m;if(f?m=d[f.kind]:h&&(g=h,m=(0,u.isScalarType)(g)?c.Kind.SCALAR_TYPE_EXTENSION:(0,u.isObjectType)(g)?c.Kind.OBJECT_TYPE_EXTENSION:(0,u.isInterfaceType)(g)?c.Kind.INTERFACE_TYPE_EXTENSION:(0,u.isUnionType)(g)?c.Kind.UNION_TYPE_EXTENSION:(0,u.isEnumType)(g)?c.Kind.ENUM_TYPE_EXTENSION:(0,u.isInputObjectType)(g)?c.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(g))),m){if(m!==l.kind){const t=function(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.invariant)(!1,"Unexpected kind: "+(0,i.inspect)(e))}}(l.kind);e.reportError(new s.GraphQLError(`Cannot extend non-${t} type "${p}".`,{nodes:f?[f,l]:l}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,a.suggestionList)(p,i);e.reportError(new s.GraphQLError(`Cannot extend type "${p}" because it is not defined.`+(0,r.didYouMean)(o),{nodes:l.name}))}var g}};var r=n(2832),i=n(9657),o=n(1321),a=n(1709),s=n(1702),c=n(7030),l=n(9187),u=n(3754);const d={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION}},1672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedRequiredArgumentsOnDirectivesRule=u,t.ProvidedRequiredArgumentsRule=function(e){return{...u(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,c.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}};var r=n(9657),i=n(4590),o=n(1702),a=n(7030),s=n(585),c=n(3754),l=n(8685);function u(e){var t;const n=Object.create(null),u=e.getSchema(),p=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:l.specifiedDirectives;for(const e of p)n[e.name]=(0,i.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name));const f=e.getDocument().definitions;for(const e of f)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.keyMap)(t.filter(d),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var l;const n=null!==(l=t.arguments)&&void 0!==l?l:[],u=new Set(n.map((e=>e.name.value)));for(const[n,l]of Object.entries(a))if(!u.has(n)){const a=(0,c.isType)(l.type)?(0,r.inspect)(l.type):(0,s.print)(l.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}}function d(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},1843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(a){if(0===a.selections.length){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have at least one field selected.`,{nodes:t}))}}else{const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754)},3618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,c=Object.create(null),l=e.getDocument(),u=Object.create(null);for(const e of l.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(u[e.name.value]=e);const d=(0,o.collectFields)(n,u,c,a,t.selectionSet);if(d.size>1){const t=[...d.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of d.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}};var r=n(1702),i=n(7030),o=n(1516)},1066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map((e=>e.name))}));return!1}};var r=n(4947),i=n(1702)},5566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}};var r=n(4947),i=n(1702)},5972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}};var r=n(1702)},9529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const c=e.getDocument().definitions;for(const e of c)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const l=Object.create(null),u=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=l;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=u[e],void 0===a&&(u[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}};var r=n(1702),i=n(7030),o=n(9187),a=n(8685)},1813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const c=null!==(a=t.values)&&void 0!==a?a:[],l=o[s];for(const t of c){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):l[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,{nodes:[l[o],t.name]})):l[o]=t.name}return!1}};var r=n(1702),i=n(3754)},3084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const c=null!==(a=t.fields)&&void 0!==a?a:[],l=i[s];for(const t of c){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):l[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,{nodes:[l[i],t.name]})):l[i]=t.name}return!1}};var r=n(1702),i=n(3754);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},7091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}};var r=n(1702)},7027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}};var r=n(1321),i=n(1702)},5988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(1702)},105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[a,t]})):n[o]=t}return!1}};var r=n(1702)},3171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}};var r=n(1702)},3191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}};var r=n(4947),i=n(1702)},7909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const n=(0,u.getNullableType)(e.getParentInputType());if(!(0,u.isListType)(n))return d(e,t),!1},ObjectValue(n){const r=(0,u.getNamedType)(e.getInputType());if(!(0,u.isInputObjectType)(r))return d(e,n),!1;const a=(0,o.keyMap)(n.fields,(e=>e.name.value));for(const t of Object.values(r.getFields()))if(!a[t.name]&&(0,u.isRequiredInputField)(t)){const o=(0,i.inspect)(t.type);e.reportError(new s.GraphQLError(`Field "${r.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:n}))}r.isOneOf&&function(e,t,n,r,i){var o;const a=Object.keys(r);if(1!==a.length)return void e.reportError(new s.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const l=null===(o=r[a[0]])||void 0===o?void 0:o.value,u=!l||l.kind===c.Kind.NULL,d=(null==l?void 0:l.kind)===c.Kind.VARIABLE;if(u)e.reportError(new s.GraphQLError(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));else if(d){const r=l.name.value;i[r].type.kind!==c.Kind.NON_NULL_TYPE&&e.reportError(new s.GraphQLError(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,r,a,t)},ObjectField(t){const n=(0,u.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,u.isInputObjectType)(n)){const i=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.didYouMean)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,u.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,l.print)(t)}.`,{nodes:t}))},EnumValue:t=>d(e,t),IntValue:t=>d(e,t),FloatValue:t=>d(e,t),StringValue:t=>d(e,t),BooleanValue:t=>d(e,t)}};var r=n(2832),i=n(9657),o=n(4590),a=n(1709),s=n(1702),c=n(7030),l=n(585),u=n(3754);function d(e,t){const n=e.getInputType();if(!n)return;const r=(0,u.getNamedType)(n);if((0,u.isLeafType)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,l.print)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,l.print)(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,l.print)(t)}.`,{nodes:t}))}}},964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},4281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:s}of o){const o=n.name.value,u=t[o];if(u&&a){const t=e.getSchema(),d=(0,c.typeFromAST)(t,u.type);if(d&&!l(t,d,u.defaultValue,a,s)){const t=(0,r.inspect)(d),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,{nodes:[u,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(9657),i=n(1702),o=n(7030),a=n(3754),s=n(3448),c=n(6693);function l(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){if((null==n||n.kind===o.Kind.NULL)&&void 0===i)return!1;const a=r.ofType;return(0,s.isTypeSubTypeOf)(e,t,a)}return(0,s.isTypeSubTypeOf)(e,t,r)}},4555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}};var r=n(1321),i=n(1702),o=n(3754)},5588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}};var r=n(1702),i=n(3754),o=n(8364)},7283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var r=n(2988),i=n(9284),o=n(6514),a=n(7372),s=n(7999),c=n(9093),l=n(5117),u=n(9130),d=n(502),p=n(2128),f=n(944),h=n(1350),m=n(6072),g=n(4472),v=n(2457),y=n(6839),b=n(817),E=n(1672),_=n(1843),w=n(3618),k=n(1066),T=n(5566),S=n(5972),O=n(9529),x=n(1813),C=n(3084),N=n(7091),A=n(7027),I=n(5988),D=n(105),L=n(3171),P=n(3191),j=n(7909),R=n(964),$=n(4281);const F=Object.freeze([p.MaxIntrospectionDepthRule]);t.recommendedRules=F;const M=Object.freeze([r.ExecutableDefinitionsRule,I.UniqueOperationNamesRule,u.LoneAnonymousOperationRule,w.SingleFieldSubscriptionsRule,l.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,R.VariablesAreInputTypesRule,_.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,N.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,m.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,f.NoFragmentCyclesRule,P.UniqueVariableNamesRule,h.NoUndefinedVariablesRule,g.NoUnusedVariablesRule,s.KnownDirectivesRule,O.UniqueDirectivesPerLocationRule,a.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,j.ValuesOfCorrectTypeRule,E.ProvidedRequiredArgumentsRule,$.VariablesInAllowedPositionRule,v.OverlappingFieldsCanBeMergedRule,A.UniqueInputFieldNamesRule,...F]);t.specifiedRules=M;const q=Object.freeze([d.LoneSchemaDefinitionRule,D.UniqueOperationTypesRule,L.UniqueTypeNamesRule,x.UniqueEnumValueNamesRule,C.UniqueFieldDefinitionNamesRule,k.UniqueArgumentDefinitionNamesRule,S.UniqueDirectiveNamesRule,l.KnownTypeNamesRule,s.KnownDirectivesRule,O.UniqueDirectivesPerLocationRule,b.PossibleTypeExtensionsRule,a.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,A.UniqueInputFieldNamesRule,E.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=q},9040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=u(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=u(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))},t.validate=function(e,t,n=c.specifiedRules,u,d=new s.TypeInfo(e)){var p;const f=null!==(p=null==u?void 0:u.maxErrors)&&void 0!==p?p:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const h=Object.freeze({}),m=[],g=new l.ValidationContext(e,t,d,(e=>{if(m.length>=f)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),v=(0,o.visitInParallel)(n.map((e=>e(g))));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(d,v))}catch(e){if(e!==h)throw e}return m},t.validateSDL=u;var r=n(3028),i=n(1702),o=n(9111),a=n(9873),s=n(7485),c=n(7283),l=n(4782);function u(e,t,n=c.specifiedSDLRules){const r=[],i=new l.SDLValidationContext(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},4274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.10.0";const n=Object.freeze({major:16,minor:10,patch:0,preReleaseTag:null});t.versionInfo=n},4146:(e,t,n)=>{"use strict";var r=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case m:case c:return e;default:return t}}case i:return t}}}function w(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||_(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=_},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},5214:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},c={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(2879)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},2879:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(6027).source,t.src_Cc=n(592).source,t.src_Z=n(3978).source,t.src_P=n(2828).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},2992:(e,t,n)=>{var r,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r>=1}else{for(i=1,r=0;r>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--d&&(d=Math.pow(2,f),f++),a[l]=p++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r>=1;0==--d&&(d=Math.pow(2,f),f++)}for(i=2,r=0;r>=1;for(;;){if(m<<=1,g==t-1){h.push(n(m));break}g++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,o,a,s,c,l,u,d=[],p=4,f=4,h=3,m="",g=[],v={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)d[i]=i;for(a=0,c=Math.pow(2,2),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 2:return""}for(d[3]=u,o=u,g.push(u);;){if(v.index>t)return"";for(a=0,c=Math.pow(2,h),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;switch(u=a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;d[f++]=e(a),u=f-1,p--;break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;d[f++]=e(a),u=f-1,p--;break;case 2:return g.join("")}if(0==p&&(p=Math.pow(2,h),h++),d[u])m=d[u];else{if(u!==f)return null;m=o+o.charAt(0)}g.push(m),d[f++]=o+m.charAt(0),o=m,0==--p&&(p=Math.pow(2,h),h++)}}};return o}();void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)},2922:(e,t,n)=>{"use strict";e.exports=n(1246)},8359:(e,t,n)=>{"use strict";e.exports=n(4357)},1358:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6557:e=>{"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.l=r,e.exports.p=i},9963:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(8359),d=/[&<>"]/,p=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function h(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g,g=n(2828);t.lib={},t.lib.mdurl=n(6781),t.lib.ucmicro=n(9295),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return d.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},3592:(e,t,n)=>{"use strict";t.parseLinkLabel=n(1947),t.parseLinkDestination=n(8949),t.parseLinkTitle=n(7311)},8949:(e,t,n)=>{"use strict";var r=n(9963).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},1947:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos{"use strict";var r=n(9963).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return c;for(t++,40===o&&(o=41);t{"use strict";var r=n(9963),i=n(3592),o=n(4847),a=n(6321),s=n(1525),c=n(5552),l=n(5214),u=n(6781),d=n(8379),p={default:n(5092),zero:n(4719),commonmark:n(73)},f=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new l,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},1525:(e,t,n)=>{"use strict";var r=n(2378),i=[["table",n(4752),["paragraph","reference"]],["code",n(5711)],["fence",n(2373),["paragraph","reference","blockquote","list"]],["blockquote",n(2941),["paragraph","reference","blockquote","list"]],["hr",n(8e3),["paragraph","reference","blockquote","list"]],["list",n(6686),["paragraph","reference","blockquote"]],["reference",n(6897)],["html_block",n(1857),["paragraph","reference","blockquote"]],["heading",n(634),["paragraph","reference","blockquote"]],["lheading",n(9648)],["paragraph",n(7046)]];function o(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[a]=c){e.line=n;break}for(r=0;r{"use strict";var r=n(2378),i=[["normalize",n(803)],["block",n(3437)],["inline",n(3547)],["linkify",n(986)],["replacements",n(203)],["smartquotes",n(5260)]];function o(){this.ruler=new r;for(var e=0;e{"use strict";var r=n(2378),i=[["text",n(2015)],["newline",n(2534)],["escape",n(1231)],["backticks",n(6757)],["strikethrough",n(7141).q],["emphasis",n(3898).q],["link",n(6552)],["image",n(3707)],["autolink",n(6955)],["html_inline",n(961)],["entity",n(8103)]],o=[["balance_pairs",n(5940)],["strikethrough",n(7141).g],["emphasis",n(3898).g],["text_collapse",n(7729)]];function a(){var e;for(this.ruler=new r,e=0;e=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i{"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},5092:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},4719:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},4847:(e,t,n)=>{"use strict";var r=n(9963).assign,i=n(9963).unescapeAll,o=n(9963).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+""},a.code_block=function(e,t,n,r,i){var a=e[t];return""+o(e[t].content)+"\n"},a.fence=function(e,t,n,r,a){var s,c,l,u,d,p=e[t],f=p.info?i(p.info).trim():"",h="",m="";return f&&(h=(l=f.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,m)||o(p.content)).indexOf(""+s+"\n"):"
"+s+"
\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S=e.lineMax,O=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(c=f=e.sCount[t]+1,32===e.src.charCodeAt(O)?(O++,c++,f++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[t]+f)%4==3?(O++,c++,f++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=O;O=x,y=[e.sCount[t]],e.sCount[t]=f-c,b=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",p=t+1;p=(x=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(O++)||T){if(u)break;for(_=!1,s=0,l=w.length;s=x,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(E?1:0),y.push(e.sCount[p]),e.sCount[p]=f-c,b.push(e.tShift[p]),e.tShift[p]=O-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=d=[t,0],e.md.block.tokenize(e,t,p),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,d[1]=e.line,s=0;s{"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},2373:e=>{"use strict";e.exports=function(e,t,n,r){var i,o,a,s,c,l,u,d=!1,p=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>f)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(c=p,(o=(p=e.skipChars(p,i))-c)<3)return!1;if(u=e.src.slice(c,p),a=e.src.slice(p,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(p=c=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]=4||(p=e.skipChars(p,i))-c{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=u)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l6||ll&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(c=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},8e3:(e,t,n)=>{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(a=1;l{"use strict";var r=n(1358),i=n(6557).p,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),i=0;i{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,c,l,u,d,p,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),(c=e.skipSpaces(c))>=l)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o{"use strict";var r=n(9963).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(P=!0),(C=o(e,t))>=0){if(p=!0,A=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(A,C-1)),P&&1!==y)return!1}else{if(!((C=i(e,t))>=0))return!1;p=!1}if(P&&e.skipSpaces(C)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(C-1),r)return!0;for(g=e.tokens.length,p?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(v),E=t,N=!1,D=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";E=b?1:_-d)>4&&(u=1),l=d+u,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),L.map=f=[t,0],p&&(L.info=e.src.slice(A,C-1)),O=e.tight,S=e.tShift[t],T=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=_,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(j=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=T,e.tight=O,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),E=t=e.line,f[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]=4)break;for(I=!1,c=0,h=D.length;c{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";c3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t,n,o){var a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w=0,k=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k3||e.sCount[S]<0)){for(b=!1,d=0,p=E.length;d{"use strict";var r=n(5099),i=n(9963).isSpace;function o(e,t,n,r){var o,a,s,c,l,u,d,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=c=u=d=0,l=(a=this.src).length;c0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,c,l,u,d,p=e;if(e>=t)return"";for(u=new Array(t-e),o=0;pn?new Array(a-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},o.prototype.Token=r,e.exports=o},4752:(e,t,n)=>{"use strict";var r=n(9963).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);rn)return!1;if(p=t+1,e.sCount[p]=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(k=e.src.charCodeAt(l++))&&45!==k&&58!==k)return!1;if(l>=e.eMarks[p])return!1;if(124!==(T=e.src.charCodeAt(l++))&&45!==T&&58!==T&&!r(T))return!1;if(45===k&&r(T))return!1;for(;l=4)return!1;if((f=o(c)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(h=f.length)||h!==g.length)return!1;if(a)return!0;for(E=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((f=o(c)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),p===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[p,p+1],u=0;u{"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},3547:e=>{"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n{"use strict";var r=n(9963).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_=e.tokens;if(e.md.options.linkify)for(n=0,o=_.length;n=0;t--)if("link_close"!==(c=a[t]).type){if("html_inline"===c.type&&(E=c.content,/^\s]/i.test(E)&&m>0&&m--,i(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(d=c.content,b=e.md.linkify.match(d),l=[],h=c.level,f=0,u=0;uf&&((s=new e.Token("text","",0)).content=d.slice(f,p),s.level=h,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,l.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",l.push(s),f=b[u].lastIndex);f{"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},203:e=>{"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},5260:(e,t,n)=>{"use strict";var r=n(9963).isWhiteSpace,i=n(9963).isPunctChar,o=n(9963).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function c(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,a,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S,O,x;for(S=[],n=0;n=0&&!(S[k].level<=f);k--);if(S.length=k+1,"text"===a.type){d=0,p=(l=a.content).length;e:for(;d=0)m=l.charCodeAt(u.index-1);else for(k=n-1;k>=0&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k--)if(e[k].content){m=e[k].content.charCodeAt(e[k].content.length-1);break}if(g=32,d=48&&m<=57&&(w=_=!1),_&&w&&(_=v,w=y),_||w){if(w)for(k=S.length-1;k>=0&&(h=S[k],!(S[k].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},1839:(e,t,n)=>{"use strict";var r=n(5099);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},6955:e=>{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(c+1,u),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},6757:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u{"use strict";function t(e,t){var n,r,i,o,a,s,c,l,u={},d=t.length;if(d){var p=0,f=-2,h=[];for(n=0;na;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,s=-1,f=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.q=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n{"use strict";var r=n(8359),i=n(9963).has,o=n(9963).isValidEntityCode,a=n(9963).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,c=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1{"use strict";for(var r=n(9963).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o{"use strict";var r=n(6557).l;e.exports=function(e,t){var n,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},3707:(e,t,n)=>{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,d,p,f,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)=b)return!1;for(g=u,(p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(v=e.md.normalizeLink(p.str),e.md.validateLink(v)?u=p.pos:v=""),g=u;u=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u=0?s=e.src.slice(g,u++):u=c+1):u=c+1,s||(s=e.src.slice(l,c)),!(d=e.env.references[r(s)]))return e.pos=y,!1;v=d.href,f=d.title}return t||(a=e.src.slice(l,c),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=m,h.content=a,f&&n.push(["title",f])),e.pos=u,e.posMax=b,!0}},6552:(e,t,n)=>{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,d,p="",f="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)=m)return!1;if(g=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?l=u.pos:p="",g=l;l=m||41!==e.src.charCodeAt(l))&&(v=!0),l++}if(v){if(void 0===e.env.references)return!1;if(l=0?a=e.src.slice(g,l++):l=s+1):l=s+1,a||(a=e.src.slice(c,s)),!(d=e.env.references[r(a)]))return e.pos=h,!1;p=d.href,f=d.title}return t||(e.pos=c,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",p]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},2534:(e,t,n)=>{"use strict";var r=n(9963).isSpace;e.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a{"use strict";var r=n(5099),i=n(9963).isWhiteSpace,o=n(9963).isPunctChar,a=n(9963).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,c,l,u,d,p,f,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h{"use strict";function t(e,t){var n,r,i,o,a,s=[],c=t.length;for(n=0;n{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t0&&r++,"text"===i[t].type&&t+1{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},3527:e=>{"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&r)&&t+91114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},3331:e=>{"use strict";var t={};function n(e,r,i){var o,a,s,c,l,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),l=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&c<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},6998:e=>{"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},6781:(e,t,n)=>{"use strict";e.exports.encode=n(3331),e.exports.decode=n(3527),e.exports.format=n(6998),e.exports.parse=n(4994)},4994:e=>{"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,f,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&d[v]||(m=m.substr(2),this.slashes=!0)),!d[v]&&(h||v&&!p[v])){var y,b,E=-1;for(r=0;r127?S+="x":S+=T[O];if(!S.match(l)){var C=k.slice(0,r),N=k.slice(r+1),A=T.match(u);A&&(C.push(A[1]),N.unshift(A[2])),N.length&&(m=N.join(".")+m),this.hostname=C.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=m.indexOf("#");-1!==I&&(this.hash=m.substr(I),m=m.slice(0,I));var D=m.indexOf("?");return-1!==D&&(this.search=m.substr(D),m=m.slice(0,D)),m&&(this.pathname=m),p[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},8379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>_,encode:()=>y,toASCII:()=>E,toUnicode:()=>b,ucs2decode:()=>f,ucs2encode:()=>h});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(c[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function f(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;r+=i)e=l(e/35);return l(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let o=0,a=128,s=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=c>0?c+1:0;p=n&&d("invalid-input");const c=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:i;c>=i&&d("invalid-input"),c>l((r-o)/t)&&d("overflow"),o+=c*t;const f=a<=s?1:a>=s+26?26:a-s;if(cl(r/h)&&d("overflow"),t*=h}const f=t.length+1;s=g(o-c,f,0==c),l(o/f)>r-a&&d("overflow"),a+=l(o/f),o%=f,t.splice(o++,0,a)}var u;return String.fromCodePoint(...t)},y=function(e){const t=[],n=(e=f(e)).length;let o=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));const c=t.length;let p=c;for(c&&t.push("-");p=o&&tl((r-a)/f)&&d("overflow"),a+=(n-o)*f,o=n;for(const n of e)if(nr&&d("overflow"),n===o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e{"use strict";const r=n(4280),i=n(454),o=n(528),a=n(3055),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",i,"]"].join("")]:[...n,[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[l(n,e),t,l(i,e)].join("")]:[[r,l(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=p(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},2799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case m:case h:case c:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===p||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},7243:(e,t,n)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(1609))},2833:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},4280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},592:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},2675:e=>{e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},2828:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},3978:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},9295:(e,t,n)=>{"use strict";t.Any=n(6027),t.Cc=n(592),t.Cf=n(2675),t.P=n(2828),t.Z=n(3978)},6027:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},5549:e=>{"use strict";e.exports=wpGraphiQL.GraphQL},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6087:e=>{"use strict";e.exports=window.wp.element},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.m=o,e=[],s.O=(t,n,r,i)=>{if(!n){var o=1/0;for(u=0;u=i)&&Object.keys(s.O).every((e=>s.O[e](n[c])))?n.splice(c--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);s.r(i);var o={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,s.d(i,o),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>e+".js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="wp-graphql:",s.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={57:0,524:0,431:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(431!=t){var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=s.p+s.u(t),a=new Error;s.l(o,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}else e[t]=0},s.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[o,a,c]=n,l=0;if(o.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)var u=c(s)}for(t&&t(n);ls(5017)));c=s.O(c)})(); \ No newline at end of file diff --git a/lib/wp-graphql/build/extensions-rtl.css b/lib/wp-graphql/build/extensions-rtl.css new file mode 100644 index 000000000..479dc3a18 --- /dev/null +++ b/lib/wp-graphql/build/extensions-rtl.css @@ -0,0 +1 @@ +.plugin-card .desc,.plugin-card .desc>p,.plugin-card .name{margin-right:0}.plugin-card .name{margin-bottom:10px}.plugin-card-top{min-height:110px}.plugin-card-top h2{margin:0}@media screen and (max-width:782px){.plugin-card-top{min-height:110px}}.plugin-card .perflab-plugin-experimental{font-size:80%;font-weight:400}@media (max-width:480px),screen and (max-width:1100px)and (min-width:782px){.plugin-card .action-links{margin-right:auto}.plugin-card .plugin-action-buttons>li:nth-child(3){border-right:1px solid;margin-right:2ex;padding-right:2ex}} diff --git a/lib/wp-graphql/build/extensions.asset.php b/lib/wp-graphql/build/extensions.asset.php new file mode 100644 index 000000000..aacf3eb48 --- /dev/null +++ b/lib/wp-graphql/build/extensions.asset.php @@ -0,0 +1 @@ + array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '72bcf21912629c604280'); diff --git a/lib/wp-graphql/build/extensions.css b/lib/wp-graphql/build/extensions.css new file mode 100644 index 000000000..cbf8a01be --- /dev/null +++ b/lib/wp-graphql/build/extensions.css @@ -0,0 +1 @@ +.plugin-card .desc,.plugin-card .desc>p,.plugin-card .name{margin-left:0}.plugin-card .name{margin-bottom:10px}.plugin-card-top{min-height:110px}.plugin-card-top h2{margin:0}@media screen and (max-width:782px){.plugin-card-top{min-height:110px}}.plugin-card .perflab-plugin-experimental{font-size:80%;font-weight:400}@media (max-width:480px),screen and (max-width:1100px)and (min-width:782px){.plugin-card .action-links{margin-left:auto}.plugin-card .plugin-action-buttons>li:nth-child(3){border-left:1px solid;margin-left:2ex;padding-left:2ex}} diff --git a/lib/wp-graphql/build/extensions.js b/lib/wp-graphql/build/extensions.js new file mode 100644 index 000000000..4656fb22b --- /dev/null +++ b/lib/wp-graphql/build/extensions.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,i=window.wp.apiFetch;var r=e.n(i);const s=({plugin:e})=>{const{installing:i,activating:s,status:o,error:p,installPlugin:c,activatePlugin:u}=((e,n)=>{const[l,i]=(0,t.useState)(!1),[s,o]=(0,t.useState)(!1),[p,c]=(0,t.useState)(""),[u,w]=(0,t.useState)(""),g=(e,t="")=>{c(e),w(t)},m=async(t=n)=>{if(o(!0),g((0,a.__)("Activating...","wp-graphql")),!t){let n=new URL(e).pathname.split("/").filter(Boolean).pop();t=`${n}/${n}.php`}try{const n=await r()({path:`/wp/v2/plugins/${t}`,method:"PUT",data:{status:"active"},headers:{"X-WP-Nonce":wpgraphqlExtensions.nonce}});if("active"===n.status)return g((0,a.__)("Active","wp-graphql")),window.wpgraphqlExtensions.extensions=window.wpgraphqlExtensions.extensions.map((t=>t.plugin_url===e?{...t,installed:!0,active:!0}:t)),!0;throw n.message.includes("Plugin file does not exist")?new Error((0,a.__)("Plugin file does not exist","wp-graphql")):new Error((0,a.__)("Activation failed","wp-graphql"))}catch(e){throw g((0,a.__)("Activation failed","wp-graphql"),e.message||(0,a.__)("Activation failed","wp-graphql")),e}finally{i(!1),o(!1)}};return{installing:l,activating:s,status:p,error:u,installPlugin:async()=>{i(!0),g((0,a.__)("Installing...","wp-graphql"));let t=new URL(e).pathname.split("/").filter(Boolean).pop();try{if("inactive"!==(await r()({path:"/wp/v2/plugins",method:"POST",data:{slug:t,status:"inactive"},headers:{"X-WP-Nonce":wpgraphqlExtensions.nonce}})).status)throw new Error((0,a.__)("Installation failed","wp-graphql"));await m(n)}catch(e){if(!e.message.includes("destination folder already exists"))throw g((0,a.__)("Installation failed","wp-graphql"),e.message||(0,a.__)("Installation failed","wp-graphql")),i(!1),e;await m(n)}},activatePlugin:m}})(e.plugin_url,e.plugin_path),[w,g]=(0,n.useState)(e.installed),[m,d]=(0,n.useState)(e.active),[h,_]=(0,n.useState)(!0);(0,n.useEffect)((()=>{g(e.installed),d(e.active)}),[e]);const E=new URL(e.plugin_url).host,{buttonText:b,buttonDisabled:f}=((e,t,n,l,i,r,s)=>{let o,p=!1,c=null;const u=e=>()=>window.open(e,"_blank");if(i)o=(0,a.__)("Installing...","wp-graphql"),p=!0;else if(r)o=(0,a.__)("Activating...","wp-graphql"),p=!0;else if(l)o=(0,a.__)("Active","wp-graphql"),p=!0;else if(n)o=(0,a.__)("Activate","wp-graphql"),c=s;else{const e=new URL(t).hostname.toLowerCase();switch(!0){case/github\.com$/.test(e):o=(0,a.__)("View on GitHub","wp-graphql"),c=u(t);break;case/bitbucket\.org$/.test(e):o=(0,a.__)("View on Bitbucket","wp-graphql"),c=u(t);break;case/gitlab\.com$/.test(e):o=(0,a.__)("View on GitLab","wp-graphql"),c=u(t);break;case/wordpress\.org$/.test(e):o=(0,a.__)("Install & Activate","wp-graphql"),c=s;break;default:o=(0,a.__)("View Plugin","wp-graphql"),c=u(t)}}return{buttonText:o,buttonDisabled:p,buttonOnClick:c}})(0,e.plugin_url,w,m,i,s);return(0,t.createElement)("div",{className:"plugin-card"},(0,t.createElement)("div",{className:"plugin-card-top"},(0,t.createElement)("div",{className:"name column-name"},(0,t.createElement)("h2",null,e.name),(0,t.createElement)((({author:e})=>e&&e.name&&e.homepage?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("em",null,"By "),(0,t.createElement)("cite",{key:e.homepage},(0,t.createElement)("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer"},e.name))):null),{author:e.author}),e.experiment&&(0,t.createElement)("em",{className:"plugin-experimental"},"(experimental)")),(0,t.createElement)("div",{className:"action-links"},(0,t.createElement)("ul",{className:"plugin-action-buttons"},E.includes("wordpress.org")&&(0,t.createElement)("li",null,(0,t.createElement)("button",{type:"button",className:"button "+(m?"button-disabled":"button-primary"),disabled:f,onClick:async()=>{const t=w,n=m;try{w?(await u(e.plugin_path),d(!0)):(await c(),g(!0),d(!0))}catch(e){g(t),d(n)}finally{window.wpgraphqlExtensions.extensions=window.wpgraphqlExtensions.extensions.map((t=>t.plugin_url===e.plugin_url?{...t,installed:w,active:m}:t))}}},b,(i||s)&&(0,t.createElement)(l.Spinner,null))),E.includes("github.com")&&(0,t.createElement)("li",null,(0,t.createElement)("a",{href:e.plugin_url,target:"_blank",rel:"noopener noreferrer",className:"button button-secondary"},(0,a.__)("View on GitHub","wp-graphql"))),e.support_url&&(0,t.createElement)("li",null,(0,t.createElement)("a",{href:e.support_url,target:"_blank",rel:"noopener noreferrer",className:"thickbox open-plugin-details-modal"},(0,a.__)("Get Support","wp-graphql"))),e.settings_url&&(0,t.createElement)("li",null,(0,t.createElement)("a",{href:e.settings_url},(0,a.__)("Settings","wp-graphql"))))),(0,t.createElement)("div",{className:"desc column-description"},(0,t.createElement)("p",null,e.description))),p&&h&&(0,t.createElement)(l.Notice,{status:"error",isDismissible:!0,onRemove:()=>_(!1)},p))},o=()=>{const[e,n]=(0,t.useState)([]);return(0,t.useEffect)((()=>{window.wpgraphqlExtensions&&window.wpgraphqlExtensions.extensions&&n(window.wpgraphqlExtensions.extensions)}),[]),(0,t.createElement)("div",{className:"wp-clearfix"},(0,t.createElement)("div",{className:"plugin-cards"},e.map((e=>(0,t.createElement)(s,{key:e.plugin_url,plugin:e})))))};document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("wpgraphql-extensions");e&&(n.createRoot?(0,n.createRoot)(e).render((0,t.createElement)(o,null)):(0,n.render)((0,t.createElement)(o,null),e))}))})(); \ No newline at end of file diff --git a/lib/wp-graphql/build/graphiqlAuthSwitch.asset.php b/lib/wp-graphql/build/graphiqlAuthSwitch.asset.php index e6e2d67c4..43647b134 100644 --- a/lib/wp-graphql/build/graphiqlAuthSwitch.asset.php +++ b/lib/wp-graphql/build/graphiqlAuthSwitch.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-element'), 'version' => '16eb60e48778b28a2f95'); + array('react', 'react-dom', 'wp-element'), 'version' => '1987803dd89818cb06fe'); diff --git a/lib/wp-graphql/build/graphiqlAuthSwitch.js b/lib/wp-graphql/build/graphiqlAuthSwitch.js index a203a7f8c..f6c8d9166 100644 --- a/lib/wp-graphql/build/graphiqlAuthSwitch.js +++ b/lib/wp-graphql/build/graphiqlAuthSwitch.js @@ -1,5 +1,5 @@ -(()=>{var e={4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=c(t),m=c(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return x(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},2799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case l:case f:case m:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=f,t.isFragment=function(e){return v(e)===i},t.isMemo=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===d||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=n.n(e);const r=window.wp.element,{hooks:o}=wpGraphiQL,i=(0,r.createContext)(),a=()=>(0,r.useContext)(i),s=({children:t})=>{const[n,a]=(0,r.useState)((()=>{const e=window?.localStorage.getItem("graphiql:usePublicFetcher");return!(e&&"false"===e)})()),s=o.applyFilters("graphiql_auth_switch_context_default_value",{usePublicFetcher:n,setUsePublicFetcher:a,toggleUsePublicFetcher:()=>{const e=!n;window.localStorage.setItem("graphiql:usePublicFetcher",e.toString()),a(e)}});return(0,e.createElement)(i.Provider,{value:s},t)};var c=n(6942),l=n.n(c);function u(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return e.createElement("div",{className:l()("".concat(r,"-content"),a),style:s},e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):q}function Y(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function U(e){return Array.from((V.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,c=document.createElement("style");c.setAttribute(W,a),s&&i&&c.setAttribute(X,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var l=Y(t),u=l.firstChild;if(r){if(s){var f=(t.styles||U(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(W)))return!1;var t=Number(e.getAttribute(X)||0);return i>=t}));if(f.length)return l.insertBefore(c,f[f.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Y(t);return(t.styles||U(n)).find((function(n){return n.getAttribute(G(t))===e}))}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=K(e,t);n&&Y(t).removeChild(n)}function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y(n),o=U(r),i=g(g({},n),{},{styles:o});!function(e,t){var n=V.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Z("",t),o=r.parentNode;V.set(e,o),e.removeChild(r)}}(r,i);var a,s,c,l=K(t,i);if(l)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&l.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce)&&(l.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var u=Z(e,i);return u.setAttribute(G(i),t),u}var ee="rc-util-locker-".concat(Date.now()),te=0;function ne(t){var n=!!t,r=w(e.useState((function(){return te+=1,"".concat(ee,"_").concat(te)})),1)[0];F((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),l=parseInt(s.height,10);try{var u=c?"width: ".concat(s.width,";"):"",f=l?"height: ".concat(s.height,";"):"";J("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),t)}catch(e){console.error(e),r=c,o=l}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Q(t),{width:d,height:p}}(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;J("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else Q(r);var o;return function(){Q(r)}}),[n,r])}var re=!1,oe=function(e){return!1!==e&&(k()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},ie=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=(t.debug,t.autoDestroy),s=void 0===a||a,c=t.children,l=w(e.useState(r),2),u=l[0],f=l[1],d=u||r;e.useEffect((function(){(s||r)&&f(r)}),[r,s]);var p=w(e.useState((function(){return oe(i)})),2),h=p[0],m=p[1];e.useEffect((function(){var e=oe(i);m(null!=e?e:null)}));var g=function(t,n){var r=w(e.useState((function(){return k()?document.createElement("div"):null})),1)[0],o=e.useRef(!1),i=e.useContext(N),a=w(e.useState(D),2),s=a[0],c=a[1],l=i||(o.current?void 0:function(e){c((function(t){return[e].concat(I(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function f(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return F((function(){return t?i?i(u):u():f(),f}),[t]),F((function(){s.length&&(s.forEach((function(e){return e()})),c(D))}),[s]),[r,l]}(d&&!h),v=w(g,2),b=v[0],y=v[1],S=null!=h?h:b;ne(o&&r&&k()&&(S===b||S===document.body));var C=null;c&&_(c)&&n&&(C=c.ref);var O=z(C,n);if(!d||!k()||void 0===h)return null;var E=!1===S||re,$=c;return n&&($=e.cloneElement(c,{ref:O})),e.createElement(N.Provider,{value:y},E?$:(0,x.createPortal)($,S))}));const ae=ie;function se(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(se(e)):(0,P.isFragment)(e)&&e.props?r=r.concat(se(e.props.children,n)):r.push(e))})),r}function ce(e){return e instanceof HTMLElement||e instanceof SVGElement}function le(e){return ce(e)?e:e instanceof t().Component?S().findDOMNode(e):null}var ue=e.createContext(null),fe=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){de&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ge?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){de&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;me.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),be=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),je="undefined"!=typeof WeakMap?new WeakMap:new fe,Me=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ve.getInstance(),r=new Ae(t,n,this);je.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Me.prototype[e]=function(){var t;return(t=je.get(this))[e].apply(t,arguments)}}));const Pe=void 0!==pe.ResizeObserver?pe.ResizeObserver:Me;var Re=new Map,Te=new Pe((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Re.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};It.cancel=function(e){var t=_t.get(e);return Nt(e),Tt(t)};const Lt=It;var Ht=[ft,dt,pt,ht],Bt=[ft,mt],Ft=!1;function Dt(e){return e===pt||e===ht}const Wt=function(t){var n=t;"object"===d(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,c=t.forceRender,u=t.children,f=t.motionName,d=t.leavedClassName,p=t.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(nt).motion),v=(0,e.useRef)(),b=(0,e.useRef)(),y=function(t,n,r,o){var i=o.motionEnter,a=void 0===i||i,s=o.motionAppear,c=void 0===s||s,l=o.motionLeave,u=void 0===l||l,f=o.motionDeadline,d=o.motionLeaveImmediately,p=o.onAppearPrepare,m=o.onEnterPrepare,v=o.onLeavePrepare,b=o.onAppearStart,y=o.onEnterStart,x=o.onLeaveStart,S=o.onAppearActive,k=o.onEnterActive,C=o.onLeaveActive,O=o.onAppearEnd,E=o.onEnterEnd,$=o.onLeaveEnd,A=o.onVisibleChanged,j=w(it(),2),M=j[0],P=j[1],R=w(it(at),2),T=R[0],z=R[1],_=w(it(null),2),N=_[0],I=_[1],L=(0,e.useRef)(!1),H=(0,e.useRef)(null);function B(){return r()}var F=(0,e.useRef)(!1);function D(){z(at,!0),I(null,!0)}function W(e){var t=B();if(!e||e.deadline||e.target===t){var n,r=F.current;T===st&&r?n=null==O?void 0:O(t,e):T===ct&&r?n=null==E?void 0:E(t,e):T===lt&&r&&(n=null==$?void 0:$(t,e)),T!==at&&r&&!1!==n&&D()}}var X=w(function(t){var n=(0,e.useRef)(),r=(0,e.useRef)(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(jt,o),e.removeEventListener(At,o))}return e.useEffect((function(){return function(){i(n.current)}}),[]),[function(e){n.current&&n.current!==e&&i(n.current),e&&e!==n.current&&(e.addEventListener(jt,o),e.addEventListener(At,o),n.current=e)},i]}(W),1)[0],q=function(e){var t,n,r;switch(e){case st:return h(t={},ft,p),h(t,dt,b),h(t,pt,S),t;case ct:return h(n={},ft,m),h(n,dt,y),h(n,pt,k),n;case lt:return h(r={},ft,v),h(r,dt,x),h(r,pt,C),r;default:return{}}},V=e.useMemo((function(){return q(T)}),[T]),G=w(function(t,n,r){var o=w(it(ut),2),i=o[0],a=o[1],s=function(){var t=e.useRef(null);function n(){Lt.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Lt((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),c=w(s,2),l=c[0],u=c[1],f=n?Bt:Ht;return Pt((function(){if(i!==ut&&i!==ht){var e=f.indexOf(i),t=f[e+1],n=r(i);n===Ft?a(t,!0):t&&l((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(ft,!0)},i]}(T,!t,(function(e){if(e===ft){var t=V[ft];return t?t(B()):Ft}var n;return U in V&&I((null===(n=V[U])||void 0===n?void 0:n.call(V,B(),null))||null),U===pt&&(X(B()),f>0&&(clearTimeout(H.current),H.current=setTimeout((function(){W({deadline:!0})}),f))),U===mt&&D(),true})),2),Y=G[0],U=G[1],Z=Dt(U);F.current=Z,Pt((function(){P(n);var e,r=L.current;L.current=!0,!r&&n&&c&&(e=st),r&&n&&a&&(e=ct),(r&&!n&&u||!r&&d&&!n&&u)&&(e=lt);var o=q(e);e&&(t||o[ft])?(z(e),Y()):z(at)}),[n]),(0,e.useEffect)((function(){(T===st&&!c||T===ct&&!a||T===lt&&!u)&&z(at)}),[c,a,u]),(0,e.useEffect)((function(){return function(){L.current=!1,clearTimeout(H.current)}}),[]);var K=e.useRef(!1);(0,e.useEffect)((function(){M&&(K.current=!0),void 0!==M&&T===at&&((K.current||M)&&(null==A||A(M)),K.current=!0)}),[M,T]);var Q=N;return V[ft]&&U===dt&&(Q=g({transition:"none"},Q)),[T,U,Q,null!=M?M:n]}(m,i,(function(){try{return v.current instanceof HTMLElement?v.current:le(b.current)}catch(e){return null}}),t),x=w(y,4),S=x[0],k=x[1],C=x[2],O=x[3],E=e.useRef(O);O&&(E.current=!0);var $,A=e.useCallback((function(e){v.current=e,R(r,e)}),[r]),j=g(g({},p),{},{visible:i});if(u)if(S===at)$=O?u(g({},j),A):!s&&E.current&&d?u(g(g({},j),{},{className:d}),A):c||!s&&!d?u(g(g({},j),{},{style:{display:"none"}}),A):null;else{var M,P;k===ft?P="prepare":Dt(k)?P="active":k===dt&&(P="start");var T=Mt(f,"".concat(S,"-").concat(P));$=u(g(g({},j),{},{className:l()(Mt(f,S),(M={},h(M,T,T&&P),h(M,f,"string"==typeof f),M)),style:C}),A)}else $=null;return e.isValidElement($)&&_($)&&($.ref||($=e.cloneElement($,{ref:A}))),e.createElement(ot,{ref:b},$)}));return r.displayName="CSSMotion",r}($t);var Xt="add",qt="keep",Vt="remove",Gt="removed";function Yt(e){var t;return g(g({},t=e&&"object"===d(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ut(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Yt)}var Zt=["component","children","onVisibleChanged","onAllRemoved"],Kt=["status"],Qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wt,r=function(t){Le(o,t);var r=We(o);function o(){var e;ze(this,o);for(var t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Ut(e),a=Ut(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Vt}))).forEach((function(t){t.key===e&&(t.status=qt)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Gt||e.status!==Vt}))}}}]),o}(e.Component);h(r,"defaultProps",{component:"div"})}($t);const Jt=Wt;function en(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},s=a.className,c=a.content,u=i.x,f=void 0===u?0:u,d=i.y,p=void 0===d?0:d,h=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],v=r.points[1],b=g[0],y=g[1],w=v[0],x=v[1];b!==w&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==x&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=f}return e.createElement("div",{ref:h,className:l()("".concat(n,"-arrow"),s),style:m},c)}function tn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Jt,f({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:l()("".concat(n,"-mask"),r)})})):null}var nn=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const rn=nn;var on=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,s=t.target,c=t.onVisibleChanged,u=t.open,d=t.keepDom,p=t.fresh,h=t.onClick,m=t.mask,v=t.arrow,b=t.arrowPos,y=t.align,x=t.motion,S=t.maskMotion,k=t.forceRender,C=t.getPopupContainer,O=t.autoDestroy,E=t.portal,$=t.zIndex,A=t.onMouseEnter,j=t.onMouseLeave,M=t.onPointerEnter,P=t.ready,R=t.offsetX,z=t.offsetY,_=t.offsetR,N=t.offsetB,I=t.onAlign,L=t.onPrepare,H=t.stretch,B=t.targetWidth,D=t.targetHeight,W="function"==typeof r?r():r,X=u||d,q=(null==C?void 0:C.length)>0,V=w(e.useState(!C||!q),2),G=V[0],Y=V[1];if(F((function(){!G&&q&&s&&Y(!0)}),[G,q,s]),!G)return null;var U="auto",Z={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(P||!u){var K,Q=y.points,J=y.dynamicInset||(null===(K=y._experimental)||void 0===K?void 0:K.dynamicInset),ee=J&&"r"===Q[0][1],te=J&&"b"===Q[0][0];ee?(Z.right=_,Z.left=U):(Z.left=R,Z.right=U),te?(Z.bottom=N,Z.top=U):(Z.top=z,Z.bottom=U)}var ne={};return H&&(H.includes("height")&&D?ne.height=D:H.includes("minHeight")&&D&&(ne.minHeight=D),H.includes("width")&&B?ne.width=B:H.includes("minWidth")&&B&&(ne.minWidth=B)),u||(ne.pointerEvents="none"),e.createElement(E,{open:k||X,getContainer:C&&function(){return C(s)},autoDestroy:O},e.createElement(tn,{prefixCls:i,open:u,zIndex:$,mask:m,motion:S}),e.createElement(Ue,{onResize:I,disabled:!u},(function(t){return e.createElement(Jt,f({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:L,onEnterPrepare:L,visible:u,onVisibleChanged:function(e){var t;null==x||null===(t=x.onVisibleChanged)||void 0===t||t.call(x,e),c(e)}}),(function(r,s){var c=r.className,f=r.style,d=l()(i,c,o);return e.createElement("div",{ref:T(t,n,s),className:d,style:g(g(g(g({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},Z),ne),f),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:A,onMouseLeave:j,onPointerEnter:M,onClick:h},v&&e.createElement(en,{prefixCls:i,arrow:v,arrowPos:b,align:y}),e.createElement(rn,{cache:!u&&!p},W))}))})))}));const an=on;var sn=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=_(r),a=e.useCallback((function(e){R(n,o?o(e):e)}),[o]),s=z(a,r.ref);return i?e.cloneElement(r,{ref:s}):r}));const cn=sn,ln=e.createContext(null);function un(e){return e?Array.isArray(e)?e:[e]:[]}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function dn(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function pn(e){return e.ownerDocument.defaultView}function hn(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=pn(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function gn(e){return mn(parseFloat(e),0)}function vn(e,t){var n=g({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=pn(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=gn(i),m=gn(a),g=gn(s),v=gn(c),b=mn(Math.round(l.width/d*1e3)/1e3),y=mn(Math.round(l.height/u*1e3)/1e3),w=(d-p-g-v)*b,x=(u-f-h-m)*y,S=h*y,k=m*y,C=g*b,O=v*b,E=0,$=0;if("clip"===r){var A=gn(o);E=A*b,$=A*y}var j=l.x+C-E,M=l.y+S-$,P=j+l.width+2*E-C-O-w,R=M+l.height+2*$-S-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,M),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,R)}})),n}function bn(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function yn(e,t){var n=w(t||[],2),r=n[0],o=n[1];return[bn(e.width,r),bn(e.height,o)]}function wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function xn(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Sn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var kn=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Cn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,s=n.action,c=void 0===s?"hover":s,u=n.showAction,f=n.hideAction,d=n.popupVisible,p=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,b=n.mouseEnterDelay,y=n.mouseLeaveDelay,x=void 0===y?.1:y,S=n.focusDelay,k=n.blurDelay,C=n.mask,O=n.maskClosable,E=void 0===O||O,$=n.getPopupContainer,A=n.forceRender,j=n.autoDestroy,M=n.destroyPopupOnHide,P=n.popup,R=n.popupClassName,T=n.popupStyle,z=n.popupPlacement,_=n.builtinPlacements,N=void 0===_?{}:_,L=n.popupAlign,H=n.zIndex,B=n.stretch,D=n.getPopupClassNameFromAlign,W=n.fresh,X=n.alignPoint,q=n.onPopupClick,V=n.onPopupAlign,G=n.arrow,Y=n.popupMotion,U=n.maskMotion,Z=n.popupTransitionName,K=n.popupAnimation,Q=n.maskTransitionName,J=n.maskAnimation,ee=n.className,te=n.getTriggerDOMNode,ne=v(n,kn),re=j||M||!1,oe=w(e.useState(!1),2),ie=oe[0],ae=oe[1];F((function(){ae(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]);var se=e.useRef({}),le=e.useContext(ln),ue=e.useMemo((function(){return{registerSubPopup:function(e,t){se.current[e]=t,null==le||le.registerSubPopup(e,t)}}}),[le]),fe=tt(),de=w(e.useState(null),2),pe=de[0],he=de[1],me=Qe((function(e){ce(e)&&pe!==e&&he(e),null==le||le.registerSubPopup(fe,e)})),ge=w(e.useState(null),2),ve=ge[0],be=ge[1],ye=e.useRef(null),we=Qe((function(e){ce(e)&&ve!==e&&(be(e),ye.current=e)})),xe=e.Children.only(a),Se=(null==xe?void 0:xe.props)||{},ke={},Ce=Qe((function(e){var t,n,r=ve;return(null==r?void 0:r.contains(e))||(null===(t=Ke(r))||void 0===t?void 0:t.host)===e||e===r||(null==pe?void 0:pe.contains(e))||(null===(n=Ke(pe))||void 0===n?void 0:n.host)===e||e===pe||Object.values(se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Oe=dn(i,Y,K,Z),Ee=dn(i,U,J,Q),$e=w(e.useState(p||!1),2),Ae=$e[0],je=$e[1],Me=null!=d?d:Ae,Pe=Qe((function(e){void 0===d&&je(e)}));F((function(){je(d||!1)}),[d]);var Re=e.useRef(Me);Re.current=Me;var Te=e.useRef([]);Te.current=[];var ze=Qe((function(e){var t;Pe(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:Me)!==e&&(Te.current.push(e),null==h||h(e))})),_e=e.useRef(),Ne=function(){clearTimeout(_e.current)},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ne(),0===t?ze(e):_e.current=setTimeout((function(){ze(e)}),1e3*t)};e.useEffect((function(){return Ne}),[]);var Le=w(e.useState(!1),2),He=Le[0],Be=Le[1];F((function(e){e&&!Me||Be(!0)}),[Me]);var Fe=w(e.useState(null),2),De=Fe[0],We=Fe[1],Xe=w(e.useState([0,0]),2),qe=Xe[0],Ve=Xe[1],Ge=function(e){Ve([e.clientX,e.clientY])},Ye=function(t,n,r,o,i,a,s){var c=w(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),l=c[0],u=c[1],f=e.useRef(0),d=e.useMemo((function(){return n?hn(n):[]}),[n]),p=e.useRef({});t||(p.current={});var h=Qe((function(){if(n&&r&&t){var e,c,l,f=n,h=f.ownerDocument,m=pn(f).getComputedStyle(f),v=m.width,b=m.height,y=m.position,x=f.style.left,S=f.style.top,k=f.style.right,C=f.style.bottom,O=f.style.overflow,E=g(g({},i[o]),a),$=h.createElement("div");if(null===(e=f.parentElement)||void 0===e||e.appendChild($),$.style.left="".concat(f.offsetLeft,"px"),$.style.top="".concat(f.offsetTop,"px"),$.style.position=y,$.style.height="".concat(f.offsetHeight,"px"),$.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(r))l={x:r[0],y:r[1],width:0,height:0};else{var A=r.getBoundingClientRect();l={x:A.x,y:A.y,width:A.width,height:A.height}}var j=f.getBoundingClientRect(),M=h.documentElement,P=M.clientWidth,R=M.clientHeight,T=M.scrollWidth,z=M.scrollHeight,_=M.scrollTop,N=M.scrollLeft,I=j.height,L=j.width,H=l.height,B=l.width,F={left:0,top:0,right:P,bottom:R},D={left:-N,top:-_,right:T-N,bottom:z-_},W=E.htmlRegion,X="visible",q="visibleFirst";"scroll"!==W&&W!==q&&(W=X);var V=W===q,G=vn(D,d),Y=vn(F,d),U=W===X?Y:G,Z=V?Y:U;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var K=f.getBoundingClientRect();f.style.left=x,f.style.top=S,f.style.right=k,f.style.bottom=C,f.style.overflow=O,null===(c=f.parentElement)||void 0===c||c.removeChild($);var Q=mn(Math.round(L/parseFloat(v)*1e3)/1e3),J=mn(Math.round(I/parseFloat(b)*1e3)/1e3);if(0===Q||0===J||ce(r)&&!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(r))return;var ee=E.offset,te=E.targetOffset,ne=w(yn(j,ee),2),re=ne[0],oe=ne[1],ie=w(yn(l,te),2),ae=ie[0],se=ie[1];l.x-=ae,l.y-=se;var le=w(E.points||[],2),ue=le[0],fe=wn(le[1]),de=wn(ue),pe=xn(l,fe),he=xn(j,de),me=g({},E),ge=pe.x-he.x+re,ve=pe.y-he.y+oe;function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,r=j.x+e,o=j.y+t,i=r+L,a=o+I,s=Math.max(r,n.left),c=Math.max(o,n.top),l=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-s)*(u-c))}var be,ye,we,xe,Se=ut(ge,ve),ke=ut(ge,ve,Y),Ce=xn(l,["t","l"]),Oe=xn(j,["t","l"]),Ee=xn(l,["b","r"]),$e=xn(j,["b","r"]),Ae=E.overflow||{},je=Ae.adjustX,Me=Ae.adjustY,Pe=Ae.shiftX,Re=Ae.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function ft(){be=j.y+ve,ye=be+I,we=j.x+ge,xe=we+L}ft();var ze=Te(Me),_e=de[0]===fe[0];if(ze&&"t"===de[0]&&(ye>Z.bottom||p.current.bt)){var Ne=ve;_e?Ne-=I-H:Ne=Ce.y-$e.y-oe;var Ie=ut(ge,Ne),Le=ut(ge,Ne,Y);Ie>Se||Ie===Se&&(!V||Le>=ke)?(p.current.bt=!0,ve=Ne,oe=-oe,me.points=[Sn(de,0),Sn(fe,0)]):p.current.bt=!1}if(ze&&"b"===de[0]&&(beSe||Be===Se&&(!V||Fe>=ke)?(p.current.tb=!0,ve=He,oe=-oe,me.points=[Sn(de,0),Sn(fe,0)]):p.current.tb=!1}var De=Te(je),We=de[1]===fe[1];if(De&&"l"===de[1]&&(xe>Z.right||p.current.rl)){var Xe=ge;We?Xe-=L-B:Xe=Ce.x-$e.x-re;var qe=ut(Xe,ve),Ve=ut(Xe,ve,Y);qe>Se||qe===Se&&(!V||Ve>=ke)?(p.current.rl=!0,ge=Xe,re=-re,me.points=[Sn(de,1),Sn(fe,1)]):p.current.rl=!1}if(De&&"r"===de[1]&&(weSe||Ye===Se&&(!V||Ue>=ke)?(p.current.lr=!0,ge=Ge,re=-re,me.points=[Sn(de,1),Sn(fe,1)]):p.current.lr=!1}ft();var Ze=!0===Pe?0:Pe;"number"==typeof Ze&&(weY.right&&(ge-=xe-Y.right-re,l.x>Y.right-Ze&&(ge+=l.x-Y.right+Ze)));var Ke=!0===Re?0:Re;"number"==typeof Ke&&(beY.bottom&&(ve-=ye-Y.bottom-oe,l.y>Y.bottom-Ke&&(ve+=l.y-Y.bottom+Ke)));var Qe=j.x+ge,Je=Qe+L,et=j.y+ve,tt=et+I,nt=l.x,rt=nt+B,ot=l.y,it=ot+H,at=(Math.max(Qe,nt)+Math.min(Je,rt))/2-Qe,st=(Math.max(et,ot)+Math.min(tt,it))/2-et;null==s||s(n,me);var ct=K.right-j.x-(ge+j.width),lt=K.bottom-j.y-(ve+j.height);u({ready:!0,offsetX:ge/Q,offsetY:ve/J,offsetR:ct/Q,offsetB:lt/J,arrowX:at/Q,arrowY:st/J,scaleX:Q,scaleY:J,align:me})}})),m=function(){u((function(e){return g(g({},e),{},{ready:!1})}))};return F(m,[o]),F((function(){t||m()}),[t]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&h()}))}]}(Me,pe,X?qe:ve,z,N,L,V),Ze=w(Ye,11),Je=Ze[0],et=Ze[1],nt=Ze[2],rt=Ze[3],ot=Ze[4],it=Ze[5],at=Ze[6],st=Ze[7],ct=Ze[8],lt=Ze[9],ut=Ze[10],ft=function(t,n,r,o){return e.useMemo((function(){var e=un(null!=r?r:n),i=un(null!=o?o:n),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,n,r,o])}(ie,c,u,f),dt=w(ft,2),pt=dt[0],ht=dt[1],mt=pt.has("click"),gt=ht.has("click")||ht.has("contextMenu"),vt=Qe((function(){He||ut()}));!function(e,t,n,r,o){F((function(){if(e&&t&&n){var o=n,i=hn(t),a=hn(o),s=pn(o),c=new Set([s].concat(I(i),I(a)));function l(){r(),Re.current&&X&>&&Ie(!1)}return c.forEach((function(e){e.addEventListener("scroll",l,{passive:!0})})),s.addEventListener("resize",l,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",l),s.removeEventListener("resize",l)}))}}}),[e,t,n])}(Me,ve,pe,vt),F((function(){vt()}),[qe,z]),F((function(){!Me||null!=N&&N[z]||vt()}),[JSON.stringify(L)]);var bt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var zn="%";function Nn(e){return e.join(zn)}const In=function(){function e(t){ze(this,e),h(this,"instanceId",void 0),h(this,"cache",new Map),this.instanceId=t}return Ne(e,[{key:"get",value:function(e){return this.opGet(Nn(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Nn(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var Ln="data-token-hash",Hn="data-css-hash",Bn="__cssinjs_instance__";var Fn=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Hn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Bn]=t[Bn]||e,t[Bn]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Hn,"]"))).forEach((function(t){var n,o=t.getAttribute(Hn);r[o]?t[Bn]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new In(e)}(),defaultCache:!0});const Dn=Fn;var Wn=function(){function e(){ze(this,e),h(this,"cache",void 0),h(this,"keys",void 0),h(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ne(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=w(e,2)[1];return r.internalGet(t)[1]4&&void 0!==arguments[4]&&arguments[4])return e;var r=g(g({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},h(h({},Ln,t),Hn,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var or=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ir=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=w(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},ar=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=w(e,2),s=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var l,u=or(s,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[s]?String(c):"".concat(c,"px"),o[s]="var(".concat(u,")")}})),[o,ir(r,t,{scope:null==n?void 0:n.scope})]},sr=g({},e).useInsertionEffect;const cr=sr?function(e,t,n){return sr((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),F((function(){return n(!0)}),r)},lr=void 0!==g({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r||n.push(e)}}:function(){return function(e){e()}},ur=function(){return!1};function fr(t,n,r,o,i){var a=e.useContext(Dn).cache,s=Nn([t].concat(I(n))),c=lr([s]),l=(ur(),function(e){a.opUpdate(s,(function(t){var n=w(t||[void 0,void 0],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))});e.useMemo((function(){l()}),[s]);var u=a.opGet(s)[1];return cr((function(){null==i||i(u)}),(function(e){return l((function(t){var n=w(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(s,(function(t){var n=w(t||[],2),r=n[0],i=void 0===r?0:r,l=n[1];return 0==i-1?(c((function(){!e&&a.opGet(s)||null==o||o(l,!1)})),null):[i-1,l]}))}}),[s]),u}var dr={},pr="css",hr=new Map,mr=0;var gr=function(e,t,n,r){var o=g(g({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},vr="token";function br(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(Dn),i=o.cache.instanceId,a=o.container,s=r.salt,c=void 0===s?"":s,l=r.override,u=void 0===l?dr:l,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var r=Gn,o=0;omr&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ln,'="').concat(e,'"]')).forEach((function(e){var n;e[Bn]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),hr.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=w(e,4),n=t[0],r=t[3];if(p&&r){var o=J(r,Tn("css-variables-".concat(n._themeKey)),{mark:Hn,prepend:"queue",attachTo:a,priority:-999});o[Bn]=i,o.setAttribute(Ln,n._themeKey)}}));return y}const yr={animationIterationCount: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,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};var wr="comm",xr="rule",Sr="decl",kr="@import",Cr="@keyframes",Or="@layer",Er=Math.abs,$r=String.fromCharCode;function Ar(e){return e.trim()}function jr(e,t,n){return e.replace(t,n)}function Mr(e,t,n){return e.indexOf(t,n)}function Pr(e,t){return 0|e.charCodeAt(t)}function Rr(e,t,n){return e.slice(t,n)}function Tr(e){return e.length}function zr(e,t){return t.push(e),e}function _r(e,t){for(var n="",r=0;r0?Pr(Dr,--Br):0,Lr--,10===Fr&&(Lr=1,Ir--),Fr}function qr(){return Fr=Br2||Ur(Fr)>3?"":" "}function Qr(e,t){for(;--t&&qr()&&!(Fr<48||Fr>102||Fr>57&&Fr<65||Fr>70&&Fr<97););return Yr(e,Gr()+(t<6&&32==Vr()&&32==qr()))}function Jr(e){for(;qr();)switch(Fr){case e:return Br;case 34:case 39:34!==e&&39!==e&&Jr(Fr);break;case 40:41===e&&Jr(e);break;case 92:qr()}return Br}function eo(e,t){for(;qr()&&e+Fr!==57&&(e+Fr!==84||47!==Vr()););return"/*"+Yr(t,Br-1)+"*"+$r(47===e?e:qr())}function to(e){for(;!Ur(Vr());)qr();return Yr(e,Br)}function no(e){return function(e){return Dr="",e}(ro("",null,null,null,[""],e=function(e){return Ir=Lr=1,Hr=Tr(Dr=e),Br=0,[]}(e),0,[0],e))}function ro(e,t,n,r,o,i,a,s,c){for(var l=0,u=0,f=a,d=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",w=o,x=i,S=r,k=y;g;)switch(h=b,b=qr()){case 40:if(108!=h&&58==Pr(k,f-1)){-1!=Mr(k+=jr(Zr(b),"&","&\f"),"&\f",Er(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Zr(b);break;case 9:case 10:case 13:case 32:k+=Kr(h);break;case 92:k+=Qr(Gr()-1,7);continue;case 47:switch(Vr()){case 42:case 47:zr(io(eo(qr(),Gr()),t,n,c),c);break;default:k+="/"}break;case 123*m:s[l++]=Tr(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(k=jr(k,/\f/g,"")),p>0&&Tr(k)-f&&zr(p>32?ao(k+";",r,n,f-1,c):ao(jr(k," ","")+";",r,n,f-2,c),c);break;case 59:k+=";";default:if(zr(S=oo(k,t,n,l,u,o,s,y,w=[],x=[],f,i),i),123===b)if(0===u)ro(k,t,S,S,w,i,f,s,x);else switch(99===d&&110===Pr(k,3)?100:d){case 100:case 108:case 109:case 115:ro(e,S,S,r&&zr(oo(e,S,S,0,0,o,s,y,o,w=[],f,x),x),o,x,f,s,r?w:x);break;default:ro(k,S,S,S,[""],x,0,s,x)}}l=u=p=0,m=v=1,y=k="",f=a;break;case 58:f=1+Tr(k),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Xr())continue;switch(k+=$r(b),b*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(Tr(k)-1)*v,v=1;break;case 64:45===Vr()&&(k+=Zr(qr())),d=Vr(),u=f=Tr(y=k+=to(Gr())),b++;break;case 45:45===h&&2==Tr(k)&&(m=0)}}return i}function oo(e,t,n,r,o,i,a,s,c,l,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),m=0,g=0,v=0;m0?p[b]+" "+y:jr(y,/&\f/g,p[b])))&&(c[v++]=w);return Wr(e,t,n,0===o?xr:s,c,l,u,f)}function io(e,t,n,r){return Wr(e,t,n,wr,$r(Fr),Rr(e,2,-2),0,r)}function ao(e,t,n,r,o){return Wr(e,t,n,Sr,Rr(e,0,r),Rr(e,r+1,-1),r,o)}var so,co="data-ant-cssinjs-cache-path",lo="_FILE_STYLE__",uo=!0;var fo="_multi_value_";function po(e){return _r(no(e),Nr).replace(/\{%%%\:[^;];}/g,";")}var ho=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer,l=(n.path,n.hashPriority),u=n.transformers,f=void 0===u?[]:u,p=(n.linters,""),h={};function m(t){var r=t.getName(s);if(!h[r]){var o=w(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];h[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(v.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)p+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==d(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===d(e)&&e&&("_skip_check_"in e||fo in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;yr[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(s)),p+="".concat(n,":").concat(r,";")}var f=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===d(r)&&null!=r&&r[fo]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var v=!1,b=t.trim(),y=!1;(o||i)&&s?b.startsWith("@")?v=!0:b=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(I(n.slice(1))).join(" ")}));return i.join(",")}(t,s,l):!o||s||"&"!==b&&""!==b||(b="",y=!0);var x=w(e(r,n,{root:y,injectHash:v,parentSelectors:[].concat(I(a),[b])}),2),S=x[0],k=x[1];h=g(g({},h),k),p+="".concat(b).concat(S)}}))}})),o){if(c&&(void 0===er&&(er=function(e,t,n){if(k()){var r,o;J(e,Qn);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(Jn);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),Q(Qn),a}return!1}("@layer ".concat(Qn," { .").concat(Qn,' { content: "').concat(Jn,'"!important; } }'),(function(e){e.className=Qn}))),er)){var b=c.split(","),y=b[b.length-1].trim();p="@layer ".concat(y," {").concat(p,"}"),b.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}}else p="{".concat(p,"}");return[p,h]};function mo(e,t){return Tn("".concat(e.join("%")).concat(t))}function go(){return null}var vo="style";function bo(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,s=t.nonce,c=t.clientOnly,l=t.order,u=void 0===l?0:l,d=e.useContext(Dn),p=d.autoClear,m=(d.mock,d.defaultCache),g=d.hashPriority,v=d.container,b=d.ssrInline,y=d.transformers,x=d.linters,S=d.cache,C=r._tokenKey,O=[C].concat(I(o)),E=tr,$=fr(vo,O,(function(){var e=O.join("|");if(function(e){return function(){if(!so&&(so={},k())){var e=document.createElement("div");e.className=co,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=w(e.split(":"),2),n=t[0],r=t[1];so[n]=r}));var n,r=document.querySelector("style[".concat(co,"]"));r&&(uo=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!so[e]}(e)){var t=function(e){var t=so[e],n=null;if(t&&k())if(uo)n=lo;else{var r=document.querySelector("style[".concat(Hn,'="').concat(so[e],'"]'));r?n=r.innerHTML:delete so[e]}return[n,t]}(e),r=w(t,2),s=r[0],l=r[1];if(s)return[s,C,l,{},c,u]}var f=n(),d=w(ho(f,{hashId:i,hashPriority:g,layer:a,path:o.join("-"),transformers:y,linters:x}),2),p=d[0],h=d[1],m=po(p),v=mo(O,m);return[m,C,v,h,c,u]}),(function(e,t){var n=w(e,3)[2];(t||p)&&tr&&Q(n,{mark:Hn})}),(function(e){var t=w(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==lo){var i={mark:Hn,prepend:"queue",attachTo:v,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var c=J(n,r,i);c[Bn]=S.instanceId,c.setAttribute(Ln,C),Object.keys(o).forEach((function(e){J(po(o[e]),"_effect-".concat(e),i)}))}})),A=w($,3),j=A[0],M=A[1],P=A[2];return function(t){var n;return n=b&&!E&&m?e.createElement("style",f({},h(h({},Ln,M),Hn,P),{dangerouslySetInnerHTML:{__html:j}})):e.createElement(go,null),e.createElement(e.Fragment,null,n,t)}}var yo="cssVar";h(h(h({},vo,(function(e,t,n){var r=w(e,6),o=r[0],i=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=(n||{}).plain;if(c)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return f=rr(o,i,a,d,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=po(s[e]);f+=rr(n,i,"_effect-".concat(e),d,u)}})),[l,a,f]})),vr,(function(e,t,n){var r=w(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,rr(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),yo,(function(e,t,n){var r=w(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;return o?[-999,i,rr(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var wo=function(){function e(t,n){ze(this,e),h(this,"name",void 0),h(this,"style",void 0),h(this,"_keyframe",!0),this.name=t,this.style=n}return Ne(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const xo=wo;function So(e){return e.notSplit=!0,e}So(["borderTop","borderBottom"]),So(["borderTop"]),So(["borderBottom"]),So(["borderLeft","borderRight"]),So(["borderLeft"]),So(["borderRight"]);const ko="5.15.4";function Co(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Oo(e){return Math.min(1,Math.max(0,e))}function Eo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $o(e){return e<=1?"".concat(100*Number(e),"%"):e}function Ao(e){return 1===e.length?"0"+e:String(e)}function jo(e,t,n){e=Co(e,255),t=Co(t,255),n=Co(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Po(e,t,n){e=Co(e,255),t=Co(t,255),n=Co(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,c=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Do*t:Math.round(e.h)+Do*t:n?Math.round(e.h)+Do*t:Math.round(e.h)-Do*t)<0?r+=360:r>=360&&(r-=360),r}function Jo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Wo*t:t===Yo?e.s+Wo:e.s+Xo*t)>1&&(r=1),n&&t===Go&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function ei(e,t,n){var r;return(r=n?e.v+qo*t:e.v-Vo*t)>1&&(r=1),Number(r.toFixed(2))}function ti(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=No(e),o=Go;o>0;o-=1){var i=Zo(r),a=Ko(No({h:Qo(i,o,!0),s:Jo(i,o,!0),v:ei(i,o,!0)}));n.push(a)}n.push(Ko(r));for(var s=1;s<=Yo;s+=1){var c=Zo(r),l=Ko(No({h:Qo(c,s),s:Jo(c,s),v:ei(c,s)}));n.push(l)}return"dark"===t.theme?Uo.map((function(e){var r,o,i,a=e.index,s=e.opacity;return Ko((r=No(t.backgroundColor||"#141414"),i=100*s/100,{r:((o=No(n[a])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ni={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ri={},oi={};Object.keys(ni).forEach((function(e){ri[e]=ti(ni[e]),ri[e].primary=ri[e][5],oi[e]=ti(ni[e],{theme:"dark",backgroundColor:"#141414"}),oi[e].primary=oi[e][5]})),ri.red,ri.volcano,ri.gold,ri.orange,ri.yellow,ri.lime,ri.green,ri.cyan;var ii=ri.blue;ri.geekblue,ri.purple,ri.magenta,ri.grey,ri.grey;const ai={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},si=Object.assign(Object.assign({},ai),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var ci=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=No(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Eo(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Po(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Po(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=jo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=jo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Ro(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Ao(Math.round(e).toString(16)),Ao(Math.round(t).toString(16)),Ao(Math.round(n).toString(16)),Ao((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Co(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Co(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Ro(this.r,this.g,this.b,!1),t=0,n=Object.entries(_o);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Oo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Oo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Oo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Oo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;anew ci(e).setAlpha(t).toRgbString(),ui=(e,t)=>new ci(e).darken(t).toHexString(),fi=e=>{const t=ti(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},di=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:li(r,.88),colorTextSecondary:li(r,.65),colorTextTertiary:li(r,.45),colorTextQuaternary:li(r,.25),colorFill:li(r,.15),colorFillSecondary:li(r,.06),colorFillTertiary:li(r,.04),colorFillQuaternary:li(r,.02),colorBgLayout:ui(n,4),colorBgContainer:ui(n,0),colorBgElevated:ui(n,0),colorBgSpotlight:li(r,.85),colorBgBlur:"transparent",colorBorder:ui(n,15),colorBorderSecondary:ui(n,6)}},pi=(hi=function(e){const t=Object.keys(ai).map((t=>{const n=ti(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,f=n(c),d=n(o),p=n(i),h=n(a),m=n(s),g=r(l,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new ci("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:fi,generateNeutralColorPalettes:di})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))},mi=Array.isArray(hi)?hi:[hi],Vn.has(mi)||Vn.set(mi,new qn(mi)),Vn.get(mi));var hi,mi;const gi={token:si,override:{override:si},hashed:!0},vi=t().createContext(gi);function bi(e){return e>=0&&e<=255}const yi=function(e,t){const{r:n,g:r,b:o,a:i}=new ci(e).toRgb();if(i<1)return e;const{r:a,g:s,b:c}=new ci(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),l=Math.round((o-c*(1-e))/e);if(bi(t)&&bi(i)&&bi(l))return new ci({r:t,g:i,b:l,a:Math.round(100*e)/100}).toRgbString()}return new ci({r:n,g:r,b:o,a:1}).toRgbString()};var wi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:yi(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:yi(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:yi(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:yi(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new ci("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new ci("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new ci("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Si=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Si(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=xi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Si(n,["theme"]);let i=o;r&&(i=Ei(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function $i(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(vi),a=`${ko}-${n||""}`,s=r||pi,[c,l,u]=br(s,[si,e],{salt:a,override:o,getComputedToken:Ei,formatToken:xi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ki,ignore:Ci,preserve:Oi}});return[s,u,n?l:"",c,i]}const Ai=t().createContext(void 0),ji=100,Mi={Modal:ji,Drawer:ji,Popover:ji,Popconfirm:ji,Tooltip:ji,Tour:ji},Pi={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const Ri=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function Ti(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),l=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,f=l,d=2*o-a,p=s,h=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${f} L ${d} ${p} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const zi=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${nr(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},_i=8;function Ni(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?_i:r}}function Ii(e,t){return e?t:{}}function Li(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},zi(e,t,o)),{"&:before":{background:t}})]},Ii(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Ii(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Ii(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Ii(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Hi={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Bi={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Fi=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Di(e,n){return((e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}function Wi(){}const Xi=e.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:qi}=Xi,Vi=e.createContext(null),Gi=t=>{let{children:n}=t;return e.createElement(Vi.Provider,{value:null},n)},Yi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ui=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Zi=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ki=e=>({animationDuration:e,animationFillMode:"both"}),Qi=e=>({animationDuration:e,animationFillMode:"both"}),Ji=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},Ki(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Qi(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ea=new xo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ta=new xo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),na=new xo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ra=new xo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),oa=new xo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ia=new xo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),aa={zoom:{inKeyframes:ea,outKeyframes:ta},"zoom-big":{inKeyframes:na,outKeyframes:ra},"zoom-big-fast":{inKeyframes:na,outKeyframes:ra},"zoom-left":{inKeyframes:new xo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new xo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new xo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new xo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:oa,outKeyframes:ia},"zoom-down":{inKeyframes:new xo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new xo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},sa=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=aa[t];return[Ji(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ca=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function la(e,t){return ca.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const ua="undefined"!=typeof CSSINJS_STATISTIC;let fa=!0;function da(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),fa=!0,r}const pa={};function ha(){}function ma(e,t,n){return t=He(t),De(e,Be()?Reflect.construct(t,n||[],He(e).constructor):t.apply(e,n))}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const ga=Ne((function e(){ze(this,e)}));let va=function(e){function t(e){var n;return ze(this,t),(n=ma(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Le(t,e),Ne(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(ga);const ba="CALC_UNIT";function ya(e){return"number"==typeof e?`${e}${ba}`:e}let wa=function(e){function t(e){var n;return ze(this,t),(n=ma(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ya(e):"string"==typeof e&&(n.result=e),n}return Le(t,e),Ne(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${ya(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${ya(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${ba}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(ga);const xa=(e,t,n)=>{var r;return"function"==typeof n?n(da(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},Sa=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function ka(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Array.isArray(t)?t:[t,t],[a]=i,s=i.join("-");return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const[c,l,u,f,d]=$i(),{getPrefixCls:p,iconPrefixCls:h,csp:m}=(0,e.useContext)(Xi),g=p(),v=d?"css":"js",b=(e=>{const t="css"===e?wa:va;return e=>new t(e)})(v),{max:y,min:w}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;nnr(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;nnr(e))).join(",")})`}}}(v),x={theme:c,token:f,hashId:u,nonce:()=>null==m?void 0:m.nonce,clientOnly:o.clientOnly,order:o.order||-999};bo(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Ui(f)}])),((e,t)=>{const[n,r]=$i();bo({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))})(h,m);const S=bo(Object.assign(Object.assign({},x),{path:[s,t,h]}),(()=>{if(!1===o.injectStyle)return[];const{token:e,flush:s}=(e=>{let t,n=e,r=ha;return ua&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(fa&&t.add(n),e[n])}),r=(e,n)=>{var r;pa[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=pa[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(f),c=xa(a,l,r),p=`.${t}`,m=Sa(a,l,c,{deprecatedTokens:o.deprecatedTokens});d&&Object.keys(c).forEach((e=>{c[e]=`var(${or(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(a,d.prefix))})`}));const v=da(e,{componentCls:p,prefixCls:t,iconCls:`.${h}`,antCls:`.${g}`,calc:b,max:y,min:w},d?c:m),x=n(v,{hashId:u,prefixCls:t,rootPrefixCls:g,iconPrefixCls:h});return s(a,m),[!1===o.resetStyle?null:Zi(v,t,i),x]}));return[S,u]}}const Ca=(n,r,o,i)=>{const a=ka(n,r,o,i),s=((n,r,o)=>{function i(e){return`${n}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const{unitless:a={},injectStyle:s=!0}=null!=o?o:{},c={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{c[i(e)]=a[e]}));const l=t=>{let{rootCls:a,cssVar:s}=t;const[,l]=$i();return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,c=t.scope,l=void 0===c?"":c,u=(0,e.useContext)(Dn),f=u.cache.instanceId,d=u.container,p=s._tokenKey,h=[].concat(I(t.path),[r,l,p]),m=fr(yo,h,(function(){var e=n(),t=w(ar(e,r,{prefix:o,unitless:i,ignore:a,scope:l}),2),s=t[0],c=t[1];return[s,c,mo(h,c),r]}),(function(e){var t=w(e,3)[2];tr&&Q(t,{mark:Hn})}),(function(e){var t=w(e,3),n=t[1],o=t[2];if(n){var i=J(n,o,{mark:Hn,prepend:"queue",attachTo:d,priority:-999});i[Bn]=f,i.setAttribute(Ln,r)}}))}({path:[n],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},ki),c),ignore:Ci,token:l,scope:a},(()=>{const e=xa(n,l,r),t=Sa(n,l,e,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(e).forEach((e=>{t[i(e)]=t[e],delete t[e]})),t})),null};return e=>{const[,,,,r]=$i();return[o=>s&&r?t().createElement(t().Fragment,null,t().createElement(l,{rootCls:e,cssVar:r,component:n}),o):o,null==r?void 0:r.key]}})(Array.isArray(n)?n[0]:n,o,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e,t),[r,o]=s(t);return[r,n,o]}},Oa=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:c,paddingSM:l,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Yi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${nr(e.calc(l).div(2).equal())} ${nr(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,_i)}},[`${t}-content`]:{position:"relative"}}),la(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Li(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Ea=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ni({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ti(da(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$a=function(e){const t=Ca("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=da(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Oa(o),sa(e,"zoom-big-fast")]}),Ea,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Aa=ca.map((e=>`${e}-inverse`));function ja(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ca.includes(e):[].concat(I(Aa),I(ca)).includes(e)}function Ma(e,t){const n=ja(t),r=l()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Pa=e.forwardRef(((n,r)=>{var o,i;const{prefixCls:a,openClassName:s,getTooltipContainer:c,overlayClassName:u,color:f,overlayInnerStyle:d,children:p,afterOpenChange:h,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:v=!0,title:b,overlay:y,builtinPlacements:x,arrowPointAtCenter:S=!1,autoAdjustOverflow:k=!0}=n,C=!!v,[,O]=$i(),{getPopupContainer:E,getPrefixCls:$,direction:A}=e.useContext(Xi),j=(()=>{const e=()=>{};return e.deprecated=Wi,e})(),M=e.useRef(null),P=()=>{var e;null===(e=M.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(r,(()=>({forceAlign:P,forcePopupAlign:()=>{j.deprecated(!1,"forcePopupAlign","forceAlign"),P()}})));const[R,T]=(z=!1,_={value:null!==(o=n.open)&&void 0!==o?o:n.visible,defaultValue:null!==(i=n.defaultOpen)&&void 0!==i?i:n.defaultVisible},I=(N=_||{}).defaultValue,L=N.value,H=N.onChange,F=N.postState,D=w(it((function(){return Rn(L)?L:Rn(I)?"function"==typeof I?I():I:z})),2),W=D[0],X=D[1],q=void 0!==L?L:W,V=F?F(q):q,G=Qe(H),Y=w(it([q]),2),U=Y[0],Z=Y[1],B((function(){var e=U[0];W!==e&&G(W,e)}),[U]),B((function(){Rn(L)||X(L)}),[L]),[V,Qe((function(e,t){X(e,t),Z([q],t)}))]);var z,_,N,I,L,H,F,D,W,X,q,V,G,Y,U,Z;const K=!b&&!y&&0!==b,Q=e.useMemo((()=>{var e,t;let n=S;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:S),x||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,c={};return Object.keys(Hi).forEach((e=>{const l=r&&Bi[e]||Hi[e],u=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Fi.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const f=Ni({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-f.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=f.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,f,t,n),a&&(u.htmlRegion="visibleFirst")})),c}({arrowPointAtCenter:n,autoAdjustOverflow:k,arrowWidth:C?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0})}),[S,v,x,O]),J=e.useMemo((()=>0===b?b:y||b||""),[y,b]),ee=e.createElement(Gi,null,"function"==typeof J?J():J),{getPopupContainer:te,placement:ne="top",mouseEnterDelay:re=.1,mouseLeaveDelay:oe=.1,overlayStyle:ie,rootClassName:ae}=n,se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,r;T(!K&&e),K||(null===(t=n.onOpenChange)||void 0===t||t.call(n,e),null===(r=n.onVisibleChange)||void 0===r||r.call(n,e))},afterVisibleChange:null!=h?h:m,overlayInnerStyle:we,arrowContent:e.createElement("span",{className:`${ce}-arrow-content`}),motion:{motionName:Ri(le,"zoom-big-fast",n.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),fe?Di(de,{className:he}):de);return me(e.createElement(Ai.Provider,{value:ke},Ce))}));Pa._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:c}=e.useContext(Xi),f=c("tooltip",n),[d,p,h]=$a(f),m=Ma(f,a),g=m.arrowStyle,v=Object.assign(Object.assign({},s),m.overlayStyle),b=l()(p,h,f,`${f}-pure`,`${f}-placement-${o}`,r,m.className);return d(e.createElement("div",{className:b,style:g},e.createElement("div",{className:`${f}-arrow`}),e.createElement(u,Object.assign({},t,{className:p,prefixCls:f,overlayInnerStyle:v}),i)))};const Ra=Pa,Ta=new xo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),za=new xo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),_a=new xo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Na=new xo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Ia=new xo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),La=new xo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Ha=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return da(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ba=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},Fa=Ca("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:i,textFontSize:a,textFontSizeSM:s,statusSize:c,dotSize:l,textFontWeight:u,indicatorHeight:f,indicatorHeightSM:d,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,g=la(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Yi(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:f,height:f,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:nr(f),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(f).div(2).equal(),boxShadow:`0 0 0 ${nr(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:s,lineHeight:nr(d),borderRadius:h(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${nr(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${nr(o)} ${e.badgeShadowColor}`},[`${t}-dot${m}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:La,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:c,height:c,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Ta,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:za,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:_a,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Na,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Ia,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${m}`]:{overflow:"hidden",[`${m}-only`]:{position:"relative",display:"inline-block",height:f,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:f,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(Ha(e))),Ba),Da=Ca(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=la(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[`${s}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Yi(e)),{position:"absolute",top:r,padding:`0 ${nr(e.paddingXS)}`,color:e.colorPrimary,lineHeight:nr(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${nr(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Ha(e))),Ba);function Wa(t){let n,{prefixCls:r,value:o,current:i,offset:a=0}=t;return a&&(n={position:"absolute",top:`${a}00%`,left:0}),e.createElement("span",{style:n,className:l()(`${r}-only-unit`,{current:i})},o)}function Xa(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function qa(t){const{prefixCls:n,count:r,value:o}=t,i=Number(o),a=Math.abs(r),[s,c]=e.useState(i),[l,u]=e.useState(a),f=()=>{c(i),u(a)};let d,p;if(e.useEffect((()=>{const e=setTimeout((()=>{f()}),1e3);return()=>{clearTimeout(e)}}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))d=[e.createElement(Wa,Object.assign({},t,{key:i,current:!0}))],p={transition:"none"};else{d=[];const n=i+10,r=[];for(let e=i;e<=n;e+=1)r.push(e);const o=r.findIndex((e=>e%10===s));d=r.map(((n,r)=>{const i=n%10;return e.createElement(Wa,Object.assign({},t,{key:n,value:i,offset:r-o,current:r===o}))})),p={transform:`translateY(${-Xa(s,i,l{const{prefixCls:r,count:o,className:i,motionClassName:a,style:s,title:c,show:u,component:f="sup",children:d}=t,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.createElement(qa,{prefixCls:m,count:Number(o),value:n,key:t.length-r}))))}return s&&s.borderColor&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Di(d,(e=>({className:l()(`${m}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(f,Object.assign({},g,{ref:n}),v)})),Ga=Va;const Ya=(t,n)=>{var r,o,i,a,s;const{prefixCls:c,scrollNumberPrefixCls:u,children:f,status:d,text:p,color:h,count:m=null,overflowCount:g=99,dot:v=!1,size:b="default",title:y,offset:w,style:x,className:S,rootClassName:k,classNames:C,styles:O,showZero:E=!1}=t,$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);og?`${g}+`:m,N="0"===_||0===_,I=(null!=d||null!=h)&&(null===m||N&&!E),L=v&&!N,H=L?"":_,B=(0,e.useMemo)((()=>(null==H||""===H||N&&!E)&&!L),[H,N,E,L]),F=(0,e.useRef)(m);B||(F.current=m);const D=F.current,W=(0,e.useRef)(H);B||(W.current=H);const X=W.current,q=(0,e.useRef)(L);B||(q.current=L);const V=(0,e.useMemo)((()=>{if(!w)return Object.assign(Object.assign({},null==M?void 0:M.style),x);const e={marginTop:w[1]};return"rtl"===j?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==M?void 0:M.style),x)}),[j,w,x,null==M?void 0:M.style]),G=null!=y?y:"string"==typeof D||"number"==typeof D?D:void 0,Y=B||!p?null:e.createElement("span",{className:`${P}-status-text`},p),U=D&&"object"==typeof D?Di(D,(e=>({style:Object.assign(Object.assign({},V),e.style)}))):void 0,Z=ja(h,!1),K=l()(null==C?void 0:C.indicator,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.indicator,{[`${P}-status-dot`]:I,[`${P}-status-${d}`]:!!d,[`${P}-color-${h}`]:Z}),Q={};h&&!Z&&(Q.color=h,Q.background=h);const J=l()(P,{[`${P}-status`]:I,[`${P}-not-a-wrapper`]:!f,[`${P}-rtl`]:"rtl"===j},S,k,null==M?void 0:M.className,null===(o=null==M?void 0:M.classNames)||void 0===o?void 0:o.root,null==C?void 0:C.root,T,z);if(!f&&I){const t=V.color;return R(e.createElement("span",Object.assign({},$,{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==M?void 0:M.styles)||void 0===i?void 0:i.root),V)}),e.createElement("span",{className:K,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(a=null==M?void 0:M.styles)||void 0===a?void 0:a.indicator),Q)}),p&&e.createElement("span",{style:{color:t},className:`${P}-status-text`},p)))}return R(e.createElement("span",Object.assign({ref:n},$,{className:J,style:Object.assign(Object.assign({},null===(s=null==M?void 0:M.styles)||void 0===s?void 0:s.root),null==O?void 0:O.root)}),f,e.createElement(Jt,{visible:!B,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n,ref:r}=t;var o,i;const a=A("scroll-number",u),s=q.current,c=l()(null==C?void 0:C.indicator,null===(o=null==M?void 0:M.classNames)||void 0===o?void 0:o.indicator,{[`${P}-dot`]:s,[`${P}-count`]:!s,[`${P}-count-sm`]:"small"===b,[`${P}-multiple-words`]:!s&&X&&X.toString().length>1,[`${P}-status-${d}`]:!!d,[`${P}-color-${h}`]:Z});let f=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(i=null==M?void 0:M.styles)||void 0===i?void 0:i.indicator),V);return h&&!Z&&(f=f||{},f.background=h),e.createElement(Ga,{prefixCls:a,show:!B,motionClassName:n,className:c,count:X,title:G,style:f,key:"scrollNumber",ref:r},U)})),Y))},Ua=e.forwardRef(Ya);Ua.Ribbon=t=>{const{className:n,prefixCls:r,style:o,color:i,children:a,text:s,placement:c="end",rootClassName:u}=t,{getPrefixCls:f,direction:d}=e.useContext(Xi),p=f("ribbon",r),h=`${p}-wrapper`,[m,g,v]=Da(p,h),b=ja(i,!1),y=l()(p,`${p}-placement-${c}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${i}`]:b},n),w={},x={};return i&&!b&&(w.background=i,x.color=i),m(e.createElement("div",{className:l()(h,u,g,v)},a,e.createElement("div",{className:l()(y,g),style:Object.assign(Object.assign({},w),o)},e.createElement("span",{className:`${p}-text`},s),e.createElement("div",{className:`${p}-corner`,style:x}))))};const Za=Ua,Ka=["xxl","xl","lg","md","sm","xs"],Qa=e=>{const[,,,,t]=$i();return t?`${e}-css-var`:""},Ja=e.createContext(void 0),es=function(){let n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const r=(0,e.useRef)({}),o=function(){const[,t]=e.useReducer((e=>e+1),0);return t}(),i=function(){const[,e]=$i(),n=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Ka).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)}))},responsiveMap:n}}),[e])}();return F((()=>{const e=i.subscribe((e=>{r.current=e,n&&o()}));return()=>i.unsubscribe(e)}),[]),r.current},ts=e.createContext({}),ns=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:f,borderRadius:d,borderRadiusLG:p,borderRadiusSM:h,lineWidth:m,lineType:g}=e,v=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Yi(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${nr(m)} ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,l,d)),{"&-lg":Object.assign({},v(s,u,p)),"&-sm":Object.assign({},v(c,f,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},rs=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},os=Ca("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=da(e,{avatarBg:n,avatarColor:t});return[ns(r),rs(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}));const is=(n,r)=>{const[o,i]=e.useState(1),[a,s]=e.useState(!1),[c,u]=e.useState(!0),f=e.useRef(null),d=e.useRef(null),p=T(r,f),{getPrefixCls:h,avatar:m}=e.useContext(Xi),g=e.useContext(ts),v=()=>{if(!d.current||!f.current)return;const e=d.current.offsetWidth,t=f.current.offsetWidth;if(0!==e&&0!==t){const{gap:r=4}=n;2*r{s(!0)}),[]),e.useEffect((()=>{u(!0),i(1)}),[n.src]),e.useEffect(v,[n.gap]);const{prefixCls:b,shape:y,size:w,src:x,srcSet:S,icon:k,className:C,rootClassName:O,alt:E,draggable:$,children:A,crossOrigin:j}=n,M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=t().useContext(Ja);return t().useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])})((e=>{var t,n;return null!==(n=null!==(t=null!=w?w:null==g?void 0:g.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),R=Object.keys("object"==typeof P&&P||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),z=es(R),_=e.useMemo((()=>{if("object"!=typeof P)return{};const e=Ka.find((e=>z[e])),t=P[e];return t?{width:t,height:t,fontSize:t&&(k||A)?t/2:18}:{}}),[z,P]),N=h("avatar",b),I=Qa(N),[L,H,B]=os(N,I),F=l()({[`${N}-lg`]:"large"===P,[`${N}-sm`]:"small"===P}),D=e.isValidElement(x),W=y||(null==g?void 0:g.shape)||"circle",X=l()(N,F,null==m?void 0:m.className,`${N}-${W}`,{[`${N}-image`]:D||x&&c,[`${N}-icon`]:!!k},B,I,C,O,H),q="number"==typeof P?{width:P,height:P,fontSize:k?P/2:18}:{};let V;if("string"==typeof x&&c)V=e.createElement("img",{src:x,draggable:$,srcSet:S,onError:()=>{const{onError:e}=n;!1!==(null==e?void 0:e())&&u(!1)},alt:E,crossOrigin:j});else if(D)V=x;else if(k)V=k;else if(a||1!==o){const t=`scale(${o})`,n={msTransform:t,WebkitTransform:t,transform:t};V=e.createElement(Ue,{onResize:v},e.createElement("span",{className:`${N}-string`,ref:d,style:Object.assign({},n)},A))}else V=e.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:d},A);return delete M.onError,delete M.gap,L(e.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),_),null==m?void 0:m.style),M.style),className:X,ref:p}),V))},as=e.forwardRef(is),ss=e=>e?"function"==typeof e?e():e:null,cs=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:p,innerContentPadding:h,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Yi(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:h}})},Li(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},ls=e=>{const{componentCls:t}=e;return{[t]:ca.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},us=Ca("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=da(e,{popoverBg:t,popoverColor:n});return[cs(r),ls(r),sa(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:f}=e,d=n-r,p=d/2,h=d/2-t,m=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Ti(e)),Ni({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${m}px ${h}px`:0,titleBorderBottom:i?`${t}px ${l} ${u}`:"none",innerContentPadding:i?`${f}px ${m}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const fs=t=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:s,content:c,children:f}=t;return e.createElement("div",{className:l()(n,r,`${r}-pure`,`${r}-placement-${a}`,o),style:i},e.createElement("div",{className:`${r}-arrow`}),e.createElement(u,Object.assign({},t,{className:n,prefixCls:r}),f||((t,n,r)=>n||r?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${t}-title`},ss(n)),e.createElement("div",{className:`${t}-inner-content`},ss(r))):null)(r,s,c)))};const ds=t=>{let{title:n,content:r,prefixCls:o}=t;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},ss(n)),e.createElement("div",{className:`${o}-inner-content`},ss(r)))},ps=e.forwardRef(((t,n)=>{const{prefixCls:r,title:o,content:i,overlayClassName:a,placement:s="top",trigger:c="hover",mouseEnterDelay:u=.1,mouseLeaveDelay:f=.1,overlayStyle:d={}}=t,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{size:n,shape:r}=e.useContext(ts),o=e.useMemo((()=>({size:t.size||n,shape:t.shape||r})),[t.size,t.shape,n,r]);return e.createElement(ts.Provider,{value:o},t.children)},gs=as;gs.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Xi),{prefixCls:o,className:i,rootClassName:a,style:s,maxCount:c,maxStyle:u,size:f,shape:d,maxPopoverPlacement:p="top",maxPopoverTrigger:h="hover",children:m}=t,g=n("avatar",o),v=`${g}-group`,b=Qa(g),[y,w,x]=os(g,b),S=l()(v,{[`${v}-rtl`]:"rtl"===r},x,b,i,a,w),k=se(m).map(((e,t)=>Di(e,{key:`avatar-key-${t}`}))),C=k.length;if(c&&c0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function Ss(e,n,r){return r?t().createElement(e.tag,g(g({key:n},xs(e.attrs)),r),(e.children||[]).map((function(t,r){return Ss(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t().createElement(e.tag,g({key:n},xs(e.attrs)),(e.children||[]).map((function(t,r){return Ss(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function ks(e){return ti(e)[0]}function Cs(e){return e?Array.isArray(e)?e:[e]:[]}var Os=["icon","className","onClick","style","primaryColor","secondaryColor"],Es={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},$s=function(t){var n,r,o,i,a,s,c,l=t.icon,u=t.className,f=t.onClick,d=t.style,p=t.primaryColor,h=t.secondaryColor,m=v(t,Os),b=e.useRef(),y=Es;if(p&&(y={primaryColor:p,secondaryColor:h||ks(p)}),n=b,r=(0,e.useContext)(ys),o=r.csp,i=r.prefixCls,a="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(a=a.replace(/anticon/g,i)),(0,e.useEffect)((function(){var e=Ke(n.current);J(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),s=ws(l),c="icon should be icon definiton, but got ".concat(l),M(s,"[@ant-design/icons] ".concat(c)),!ws(l))return null;var w=l;return w&&"function"==typeof w.icon&&(w=g(g({},w),{},{icon:w.icon(y.primaryColor,y.secondaryColor)})),Ss(w.icon,"svg-".concat(w.name),g(g({className:u,onClick:f,style:d,"data-icon":w.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:b}))};$s.displayName="IconReact",$s.getTwoToneColors=function(){return g({},Es)},$s.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Es.primaryColor=t,Es.secondaryColor=n||ks(t),Es.calculated=!!n};const As=$s;function js(e){var t=w(Cs(e),2),n=t[0],r=t[1];return As.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ms=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];js(ii.primary);var Ps=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,s=t.tabIndex,c=t.onClick,u=t.twoToneColor,d=v(t,Ms),p=e.useContext(ys),m=p.prefixCls,g=void 0===m?"anticon":m,b=p.rootClassName,y=l()(b,g,h(h({},"".concat(g,"-").concat(o.name),!!o.name),"".concat(g,"-spin"),!!i||"loading"===o.name),r),x=s;void 0===x&&c&&(x=-1);var S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,k=w(Cs(u),2),C=k[0],O=k[1];return e.createElement("span",f({role:"img","aria-label":o.name},d,{ref:n,tabIndex:x,onClick:c,className:y}),e.createElement(As,{icon:o,primaryColor:C,secondaryColor:O,style:S}))}));Ps.displayName="AntdIcon",Ps.getTwoToneColor=function(){var e=As.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ps.setTwoToneColor=js;const Rs=Ps;var Ts=function(t,n){return e.createElement(Rs,f({},t,{ref:n,icon:bs}))};const zs=e.forwardRef(Ts);var _s=n(2833),Ns=n.n(_s);const Is=function(e){function t(e,r,c,l,d){for(var p,h,m,g,w,S=0,k=0,C=0,O=0,E=0,R=0,z=m=p=0,N=0,I=0,L=0,H=0,B=c.length,F=B-1,D="",W="",X="",q="";Np)&&(H=(D=D.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var tc=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&ec(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=oc&&(oc=t+1),nc.set(e,t),rc.set(t,e)},cc="style["+Ks+'][data-styled-version="5.3.5"]',lc=new RegExp("^"+Ks+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),uc=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ks))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ks,"active"),r.setAttribute("data-styled-version","5.3.5");var a=dc();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},hc=function(){function e(e){var t=this.element=pc(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),wc=/(a)(d)/gi,xc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Sc(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=xc(t%52)+n;return(xc(t%52)+n).replace(wc,"$1-$2")}var kc=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Cc=function(e){return kc(5381,e)};function Oc(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=kc(this.baseHash,n.hash),u="",f=0;f>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),Ac=/^\s*\/\/.*$/gm,jc=[":","[",".","#"];function Mc(e){var t,n,r,o,i=void 0===e?Gs:e,a=i.options,s=void 0===a?Gs:a,c=i.plugins,l=void 0===c?Vs:c,u=new Is(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,i){return 0===r&&-1!==jc.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Ac,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,l)}return u.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||ec(15),kc(e,t.name)}),5381).toString():"",h}var Pc=t().createContext(),Rc=(Pc.Consumer,t().createContext()),Tc=(Rc.Consumer,new yc),zc=Mc();function _c(){return(0,e.useContext)(Pc)||Tc}function Nc(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=_c(),s=(0,e.useMemo)((function(){var e=a;return n.sheet?e=n.sheet:n.target&&(e=e.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[n.disableCSSOMInjection,n.sheet,n.target]),c=(0,e.useMemo)((function(){return Mc({options:{prefix:!n.disableVendorPrefixes},plugins:o})}),[n.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){Ns()(o,n.stylisPlugins)||i(n.stylisPlugins)}),[n.stylisPlugins]),t().createElement(Pc.Provider,{value:s},t().createElement(Rc.Provider,{value:c},n.children))}var Ic=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=zc);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return ec(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=zc),this.name+e.hash},e}(),Lc=/([A-Z])/,Hc=/([A-Z])/g,Bc=/^ms-/,Fc=function(e){return"-"+e.toLowerCase()};function Dc(e){return Lc.test(e)?e.replace(Hc,Fc).replace(Bc,"-ms-"):e}var Wc=function(e){return null==e||!1===e||""===e};function Xc(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Yc=/(^-|-$)/g;function Uc(e){return e.replace(Gc,"-").replace(Yc,"")}function Zc(e){return"string"==typeof e&&!0}var Kc=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Qc=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Jc(e,t,n){var r=e[n];Kc(t)&&Kc(r)?el(r,t):e[n]=t}function el(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.5"+n+nl[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):l,f=r.displayName,d=void 0===f?function(e){return Zc(e)?"styled."+e:"Styled("+Us(e)+")"}(n):f,p=r.displayName&&r.componentId?Uc(r.displayName)+"-"+r.componentId:r.componentId||u,h=i&&n.attrs?Array.prototype.concat(n.attrs,c).filter(Boolean):c,m=r.shouldForwardProp;i&&n.shouldForwardProp&&(m=r.shouldForwardProp?function(e,t,o){return n.shouldForwardProp(e,t,o)&&r.shouldForwardProp(e,t,o)}:n.shouldForwardProp);var g,v=new $c(o,p,i?n.componentStyle:void 0),b=v.isStatic&&0===c.length,y=function(t,n){return function(t,n,r,o){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,c=t.foldedComponentIds,l=t.shouldForwardProp,u=t.styledComponentId,f=t.target,d=function(e,t,n){void 0===e&&(e=Gs);var r=Ws({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Ys(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=Gs),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,e.useContext)(tl),s)||Gs,n,i),p=d[0],h=d[1],m=function(t,n,r,o){var i=_c(),a=(0,e.useContext)(Rc)||zc;return n?t.generateAndInjectStyles(Gs,i,a):t.generateAndInjectStyles(r,i,a)}(a,o,p),g=r,v=h.$as||n.$as||h.as||n.as||f,b=Zc(v),y=h!==n?Ws({},n,{},h):n,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(l?l(x,Bs,v):!b||Bs(x))&&(w[x]=y[x]));return n.style&&h.style!==n.style&&(w.style=Ws({},n.style,{},h.style)),w.className=Array.prototype.concat(c,u,m!==u?m:null,n.className,h.className).filter(Boolean).join(" "),w.ref=g,(0,e.createElement)(v,w)}(g,t,n,b)};return y.displayName=d,(g=t().forwardRef(y)).attrs=h,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=m,g.foldedComponentIds=i?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):Vs,g.styledComponentId=p,g.target=i?n.target:n,g.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(Zc(e)?e:Uc(Us(e)));return rl(e,Ws({},n,{attrs:h,componentId:i}),o)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?el({},n.defaultProps,e):e}}),g.toString=function(){return"."+g.styledComponentId},a&&Ds()(g,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var ol,il=function(e){return function e(t,n,r){if(void 0===r&&(r=Gs),!(0,P.isValidElementType)(n))return ec(1,String(n));var o=function(){return t(n,r,Vc.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Ws({},r,{},o))},o.attrs=function(o){return e(t,n,Ws({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(rl,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){il[e]=il(e)})),(ol=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Oc(e),yc.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var o=r(Xc(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},ol.removeStyles=function(e,t){t.clearRules(this.componentId+e)},ol.renderStyles=function(e,t,n,r){e>2&&yc.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=dc();return""},this.getStyleTags=function(){return e.sealed?ec(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return ec(2);var r=((n={})[Ks]="",n["data-styled-version"]="5.3.5",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=dc();return o&&(r.nonce=o),[t().createElement("style",Ws({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new yc({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?ec(2):t().createElement(Nc,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return ec(3)}}();const al=il.div` +(()=>{var e={4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=c(t),g=c(n),v=0;v{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case g:case c:return e;default:return t}}case o:return t}}}function S(e){return x(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},2799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case h:return e;default:switch(e=e&&e.$$typeof){case u:case l:case f:case g:case p:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=f,t.isMemo=function(e){return m(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===d||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=m},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";const e=window.React;var t=n.n(e);const r=window.wp.element,{hooks:o}=wpGraphiQL,i=(0,r.createContext)(),a=()=>(0,r.useContext)(i),s=({children:t})=>{const[n,a]=(0,r.useState)((()=>{const e=window?.localStorage.getItem("graphiql:usePublicFetcher");return!(e&&"false"===e)})()),s=o.applyFilters("graphiql_auth_switch_context_default_value",{usePublicFetcher:n,setUsePublicFetcher:a,toggleUsePublicFetcher:()=>{const e=!n;window.localStorage.setItem("graphiql:usePublicFetcher",e.toString()),a(e)}});return(0,e.createElement)(i.Provider,{value:s},t)};var c=n(6942),l=n.n(c);function u(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,s=t.className,c=t.style;return e.createElement("div",{className:l()("".concat(r,"-content"),s),style:c},e.createElement("div",{className:l()("".concat(r,"-inner"),a),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=19)return!0;var r=(0,_.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===_.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===_.ForwardRef)};function V(t){return(0,e.isValidElement)(t)&&!I(t)}var W=function(e){if(e&&V(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};const U=e.createContext(null);function q(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function X(e){return function(e){if(Array.isArray(e))return b(e)}(e)||q(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var G=k()?e.useLayoutEffect:e.useEffect,Y=function(t,n){var r=e.useRef(!0);G((function(){return t(r.current)}),n),G((function(){return r.current=!1,function(){r.current=!0}}),[])},K=function(e,t){Y((function(t){if(!t)return e()}),t)};const Z=Y;var Q=[],J="data-rc-order",ee="data-rc-priority",te=new Map;function ne(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function re(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function oe(e){return Array.from((te.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,c=document.createElement("style");c.setAttribute(J,a),s&&i&&c.setAttribute(ee,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var l=re(t),u=l.firstChild;if(r){if(s){var f=(t.styles||oe(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(J)))return!1;var t=Number(e.getAttribute(ee)||0);return i>=t}));if(f.length)return l.insertBefore(c,f[f.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=re(t);return(t.styles||oe(n)).find((function(n){return n.getAttribute(ne(t))===e}))}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ae(e,t);n&&re(t).removeChild(n)}function ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=re(n),o=oe(r),i=v(v({},n),{},{styles:o});!function(e,t){var n=te.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=ie("",t),o=r.parentNode;te.set(e,o),e.removeChild(r)}}(r,i);var a,s,c,l=ae(t,i);if(l)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&l.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce)&&(l.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var u=ie(e,i);return u.setAttribute(ne(i),t),u}var le="rc-util-locker-".concat(Date.now()),ue=0;function fe(t){var n=!!t,r=S(e.useState((function(){return ue+=1,"".concat(le,"_").concat(ue)})),1)[0];Z((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),l=parseInt(s.height,10);try{var u=c?"width: ".concat(s.width,";"):"",f=l?"height: ".concat(s.height,";"):"";ce("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),t)}catch(e){console.error(e),r=c,o=l}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),se(t),{width:d,height:h}}(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ce("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else se(r);var o;return function(){se(r)}}),[n,r])}var de=!1,he=function(e){return!1!==e&&(k()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},pe=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=(t.debug,t.autoDestroy),s=void 0===a||a,c=t.children,l=S(e.useState(r),2),u=l[0],f=l[1],d=u||r;e.useEffect((function(){(s||r)&&f(r)}),[r,s]);var h=S(e.useState((function(){return he(i)})),2),p=h[0],g=h[1];e.useEffect((function(){var e=he(i);g(null!=e?e:null)}));var v=function(t){var n=S(e.useState((function(){return k()?document.createElement("div"):null})),1)[0],r=e.useRef(!1),o=e.useContext(U),i=S(e.useState(Q),2),a=i[0],s=i[1],c=o||(r.current?void 0:function(e){s((function(t){return[e].concat(X(t))}))});function l(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Z((function(){return t?o?o(l):l():u(),u}),[t]),Z((function(){a.length&&(a.forEach((function(e){return e()})),s(Q))}),[a]),[n,c]}(d&&!p),m=S(v,2),y=m[0],b=m[1],w=null!=p?p:y;fe(o&&r&&k()&&(w===y||w===document.body));var x=null;c&&B(c)&&n&&(x=c.ref);var E=D(x,n);if(!d||!k()||void 0===p)return null;var O=!1===w||de,A=c;return n&&(A=e.cloneElement(c,{ref:E})),e.createElement(U.Provider,{value:b},O?A:(0,C.createPortal)(A,w))}));const ge=pe;function ve(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(ve(e)):I(e)&&e.props?r=r.concat(ve(e.props.children,n)):r.push(e))})),r}function me(e){return e instanceof HTMLElement||e instanceof SVGElement}function ye(e){var n,r=function(e){return e&&"object"===d(e)&&me(e.nativeElement)?e.nativeElement:me(e)?e:null}(e);return r||(e instanceof t().Component?null===(n=E().findDOMNode)||void 0===n?void 0:n.call(E(),e):null)}var be=e.createContext(null),we=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){xe&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){xe&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ee.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ae=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Le="undefined"!=typeof WeakMap?new WeakMap:new we,ze=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Oe.getInstance(),r=new Ie(t,n,this);Le.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ze.prototype[e]=function(){var t;return(t=Le.get(this))[e].apply(t,arguments)}}));const He=void 0!==Se.ResizeObserver?Se.ResizeObserver:ze;var De=new Map,Be=new He((function(e){e.forEach((function(e){var t,n=e.target;null===(t=De.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var n=0;n3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!vt(e,t.slice(0,-1))?e:mt(e,t,n,r)}function bt(e){return Array.isArray(e)?[]:{}}var wt="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function xt(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};Jt.cancel=function(e){var t=Zt.get(e);return Qt(e),Yt(t)};const en=Jt;var tn=[At,Pt,Ft,jt],nn=[At,Mt],rn=!1;function on(e){return e===Ft||e===jt}function an(t,n,r,o){var i,a,s,c,l=o.motionEnter,u=void 0===l||l,f=o.motionAppear,d=void 0===f||f,h=o.motionLeave,g=void 0===h||h,m=o.motionDeadline,y=o.motionLeaveImmediately,b=o.onAppearPrepare,w=o.onEnterPrepare,x=o.onLeavePrepare,C=o.onAppearStart,E=o.onEnterStart,k=o.onLeaveStart,O=o.onAppearActive,A=o.onEnterActive,P=o.onLeaveActive,F=o.onAppearEnd,j=o.onEnterEnd,M=o.onLeaveEnd,$=o.onVisibleChanged,_=S(ht(),2),R=_[0],N=_[1],T=(i=St,a=e.useReducer((function(e){return e+1}),0),s=S(a,2)[1],c=e.useRef(i),[at((function(){return c.current})),at((function(e){c.current="function"==typeof e?e(c.current):e,s()}))]),I=S(T,2),L=I[0],z=I[1],H=S(ht(null),2),D=H[0],B=H[1],V=L(),W=(0,e.useRef)(!1),U=(0,e.useRef)(null);function q(){return r()}var X=(0,e.useRef)(!1);function G(){z(St),B(null,!0)}var Y=at((function(e){var t=L();if(t!==St){var n=q();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Ct&&o?r=null==F?void 0:F(n,e):t===Et&&o?r=null==j?void 0:j(n,e):t===kt&&o&&(r=null==M?void 0:M(n,e)),o&&!1!==r&&G()}}})),K=function(t){var n=(0,e.useRef)();function r(e){e&&(e.removeEventListener(Ut,t),e.removeEventListener(Wt,t))}return e.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(Ut,t),e.addEventListener(Wt,t),n.current=e)},r]}(Y),Z=S(K,1)[0],Q=function(e){switch(e){case Ct:return p(p(p({},At,b),Pt,C),Ft,O);case Et:return p(p(p({},At,w),Pt,E),Ft,A);case kt:return p(p(p({},At,x),Pt,k),Ft,P);default:return{}}},J=e.useMemo((function(){return Q(V)}),[V]),ee=S(function(t,n,r){var o=S(ht(Ot),2),i=o[0],a=o[1],s=function(){var t=e.useRef(null);function n(){en.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=en((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),c=S(s,2),l=c[0],u=c[1],f=n?nn:tn;return Xt((function(){if(i!==Ot&&i!==jt){var e=f.indexOf(i),t=f[e+1],n=r(i);n===rn?a(t,!0):t&&l((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(At,!0)},i]}(V,!t,(function(e){if(e===At){var t=J[At];return t?t(q()):rn}var n;return ne in J&&B((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===Ft&&V!==St&&(Z(q()),m>0&&(clearTimeout(U.current),U.current=setTimeout((function(){Y({deadline:!0})}),m))),ne===Mt&&G(),!0})),2),te=ee[0],ne=ee[1],re=on(ne);X.current=re;var oe=(0,e.useRef)(null);Xt((function(){if(!W.current||oe.current!==n){N(n);var e,r=W.current;W.current=!0,!r&&n&&d&&(e=Ct),r&&n&&u&&(e=Et),(r&&!n&&g||!r&&y&&!n&&g)&&(e=kt);var o=Q(e);e&&(t||o[At])?(z(e),te()):z(St),oe.current=n}}),[n]),(0,e.useEffect)((function(){(V===Ct&&!d||V===Et&&!u||V===kt&&!g)&&z(St)}),[d,u,g]),(0,e.useEffect)((function(){return function(){W.current=!1,clearTimeout(U.current)}}),[]);var ie=e.useRef(!1);(0,e.useEffect)((function(){R&&(ie.current=!0),void 0!==R&&V===St&&((ie.current||R)&&(null==$||$(R)),ie.current=!0)}),[R,V]);var ae=D;return J[At]&&ne===Pt&&(ae=v({transition:"none"},ae)),[V,ne,ae,null!=R?R:n]}const sn=function(t){var n=t;"object"===d(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,c=t.forceRender,u=t.children,f=t.motionName,d=t.leavedClassName,h=t.eventProps,g=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(ut).motion),m=(0,e.useRef)(),y=(0,e.useRef)(),b=S(an(g,i,(function(){try{return m.current instanceof HTMLElement?m.current:ye(y.current)}catch(e){return null}}),t),4),w=b[0],x=b[1],C=b[2],E=b[3],k=e.useRef(E);E&&(k.current=!0);var O,A=e.useCallback((function(e){m.current=e,z(r,e)}),[r]),P=v(v({},h),{},{visible:i});if(u)if(w===St)O=E?u(v({},P),A):!s&&k.current&&d?u(v(v({},P),{},{className:d}),A):c||!s&&!d?u(v(v({},P),{},{style:{display:"none"}}),A):null;else{var F;x===At?F="prepare":on(x)?F="active":x===Pt&&(F="start");var j=qt(f,"".concat(w,"-").concat(F));O=u(v(v({},P),{},{className:l()(qt(f,w),p(p({},j,j&&F),f,"string"==typeof f)),style:C}),A)}else O=null;return e.isValidElement(O)&&B(O)&&(W(O)||(O=e.cloneElement(O,{ref:A}))),e.createElement(dt,{ref:y},O)}));return r.displayName="CSSMotion",r}(Vt);var cn="add",ln="keep",un="remove",fn="removed";function dn(e){var t;return v(v({},t=e&&"object"===d(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function hn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(dn)}var pn=["component","children","onVisibleChanged","onAllRemoved"],gn=["status"],vn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn,n=function(n){Xe(o,n);var r=Ze(o);function o(){var e;Ve(this,o);for(var t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=hn(e),a=hn(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==un}))).forEach((function(t){t.key===e&&(t.status=ln)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==fn||e.status!==un}))}}}]),o}(e.Component);p(n,"defaultProps",{component:"div"})}(Vt);const mn=sn;function yn(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},s=a.className,c=a.content,u=i.x,f=void 0===u?0:u,d=i.y,h=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(!1!==r.autoArrow){var v=r.points[0],m=r.points[1],y=v[0],b=v[1],w=m[0],x=m[1];y!==w&&["t","b"].includes(y)?"t"===y?g.top=0:g.bottom=0:g.top=h,b!==x&&["l","r"].includes(b)?"l"===b?g.left=0:g.right=0:g.left=f}return e.createElement("div",{ref:p,className:l()("".concat(n,"-arrow"),s),style:g},c)}function bn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(mn,f({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:l()("".concat(n,"-mask"),r)})})):null}var wn=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const xn=wn;var Sn=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,s=t.target,c=t.onVisibleChanged,u=t.open,d=t.keepDom,h=t.fresh,p=t.onClick,g=t.mask,m=t.arrow,y=t.arrowPos,b=t.align,w=t.motion,x=t.maskMotion,C=t.forceRender,E=t.getPopupContainer,k=t.autoDestroy,O=t.portal,A=t.zIndex,P=t.onMouseEnter,F=t.onMouseLeave,j=t.onPointerEnter,M=t.onPointerDownCapture,$=t.ready,_=t.offsetX,R=t.offsetY,N=t.offsetR,T=t.offsetB,I=t.onAlign,L=t.onPrepare,z=t.stretch,D=t.targetWidth,B=t.targetHeight,V="function"==typeof r?r():r,W=u||d,U=(null==E?void 0:E.length)>0,q=S(e.useState(!E||!U),2),X=q[0],G=q[1];if(Z((function(){!X&&U&&s&&G(!0)}),[X,U,s]),!X)return null;var Y="auto",K={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if($||!u){var Q,J=b.points,ee=b.dynamicInset||(null===(Q=b._experimental)||void 0===Q?void 0:Q.dynamicInset),te=ee&&"r"===J[0][1],ne=ee&&"b"===J[0][0];te?(K.right=N,K.left=Y):(K.left=_,K.right=Y),ne?(K.bottom=T,K.top=Y):(K.top=R,K.bottom=Y)}var re={};return z&&(z.includes("height")&&B?re.height=B:z.includes("minHeight")&&B&&(re.minHeight=B),z.includes("width")&&D?re.width=D:z.includes("minWidth")&&D&&(re.minWidth=D)),u||(re.pointerEvents="none"),e.createElement(O,{open:C||W,getContainer:E&&function(){return E(s)},autoDestroy:k},e.createElement(bn,{prefixCls:i,open:u,zIndex:A,mask:g,motion:x}),e.createElement(rt,{onResize:I,disabled:!u},(function(t){return e.createElement(mn,f({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},w,{onAppearPrepare:L,onEnterPrepare:L,visible:u,onVisibleChanged:function(e){var t;null==w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),c(e)}}),(function(r,s){var c=r.className,f=r.style,d=l()(i,c,o);return e.createElement("div",{ref:H(t,n,s),className:d,style:v(v(v(v({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},K),re),f),{},{boxSizing:"border-box",zIndex:A},a),onMouseEnter:P,onMouseLeave:F,onPointerEnter:j,onClick:p,onPointerDownCapture:M},m&&e.createElement(yn,{prefixCls:i,arrow:m,arrowPos:y,align:b}),e.createElement(xn,{cache:!u&&!h},V))}))})))}));const Cn=Sn;var En=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=B(r),a=e.useCallback((function(e){z(n,o?o(e):e)}),[o]),s=D(a,W(r));return i?e.cloneElement(r,{ref:s}):r}));const kn=En,On=e.createContext(null);function An(e){return e?Array.isArray(e)?e:[e]:[]}function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Fn(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function jn(e){return e.ownerDocument.defaultView}function Mn(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=jn(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function $n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Rn(e){return $n(parseFloat(e),0)}function Nn(e,t){var n=v({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=jn(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,h=e.clientWidth,p=Rn(i),g=Rn(a),v=Rn(s),m=Rn(c),y=$n(Math.round(l.width/d*1e3)/1e3),b=$n(Math.round(l.height/u*1e3)/1e3),w=(d-h-v-m)*y,x=(u-f-p-g)*b,S=p*b,C=g*b,E=v*y,k=m*y,O=0,A=0;if("clip"===r){var P=Rn(o);O=P*y,A=P*b}var F=l.x+E-O,j=l.y+S-A,M=F+l.width+2*O-E-k-w,$=j+l.height+2*A-S-C-x;n.left=Math.max(n.left,F),n.top=Math.max(n.top,j),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,$)}})),n}function Tn(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function In(e,t){var n=S(t||[],2),r=n[0],o=n[1];return[Tn(e.width,r),Tn(e.height,o)]}function Ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function zn(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Hn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Dn=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Bn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,s=n.action,c=void 0===s?"hover":s,u=n.showAction,f=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,w=void 0===b?.1:b,x=n.focusDelay,C=n.blurDelay,E=n.mask,k=n.maskClosable,O=void 0===k||k,A=n.getPopupContainer,P=n.forceRender,F=n.autoDestroy,j=n.destroyPopupOnHide,M=n.popup,$=n.popupClassName,_=n.popupStyle,R=n.popupPlacement,N=n.builtinPlacements,T=void 0===N?{}:N,I=n.popupAlign,L=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,D=n.fresh,B=n.alignPoint,V=n.onPopupClick,W=n.onPopupAlign,U=n.arrow,q=n.popupMotion,G=n.maskMotion,Y=n.popupTransitionName,K=n.popupAnimation,Q=n.maskTransitionName,J=n.maskAnimation,ee=n.className,te=n.getTriggerDOMNode,ne=m(n,Dn),re=F||j||!1,oe=S(e.useState(!1),2),ie=oe[0],ae=oe[1];Z((function(){ae(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]);var se=e.useRef({}),ce=e.useContext(On),le=e.useMemo((function(){return{registerSubPopup:function(e,t){se.current[e]=t,null==ce||ce.registerSubPopup(e,t)}}}),[ce]),ue=lt(),fe=S(e.useState(null),2),de=fe[0],he=fe[1],pe=e.useRef(null),ge=at((function(e){pe.current=e,me(e)&&de!==e&&he(e),null==ce||ce.registerSubPopup(ue,e)})),ve=S(e.useState(null),2),ye=ve[0],be=ve[1],we=e.useRef(null),xe=at((function(e){me(e)&&ye!==e&&(be(e),we.current=e)})),Se=e.Children.only(a),Ce=(null==Se?void 0:Se.props)||{},Ee={},ke=at((function(e){var t,n,r=ye;return(null==r?void 0:r.contains(e))||(null===(t=it(r))||void 0===t?void 0:t.host)===e||e===r||(null==de?void 0:de.contains(e))||(null===(n=it(de))||void 0===n?void 0:n.host)===e||e===de||Object.values(se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Oe=Fn(i,q,K,Y),Ae=Fn(i,G,J,Q),Pe=S(e.useState(h||!1),2),Fe=Pe[0],je=Pe[1],Me=null!=d?d:Fe,$e=at((function(e){void 0===d&&je(e)}));Z((function(){je(d||!1)}),[d]);var _e=e.useRef(Me);_e.current=Me;var Re=e.useRef([]);Re.current=[];var Ne=at((function(e){var t;$e(e),(null!==(t=Re.current[Re.current.length-1])&&void 0!==t?t:Me)!==e&&(Re.current.push(e),null==p||p(e))})),Te=e.useRef(),Ie=function(){clearTimeout(Te.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ie(),0===t?Ne(e):Te.current=setTimeout((function(){Ne(e)}),1e3*t)};e.useEffect((function(){return Ie}),[]);var ze=S(e.useState(!1),2),He=ze[0],De=ze[1];Z((function(e){e&&!Me||De(!0)}),[Me]);var Be=S(e.useState(null),2),Ve=Be[0],We=Be[1],Ue=S(e.useState(null),2),qe=Ue[0],Xe=Ue[1],Ge=function(e){Xe([e.clientX,e.clientY])},Ye=S(function(t,n,r,o,i,a,s){var c=S(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),l=c[0],u=c[1],f=e.useRef(0),d=e.useMemo((function(){return n?Mn(n):[]}),[n]),h=e.useRef({});t||(h.current={});var p=at((function(){if(n&&r&&t){var e,c,l,f,p,g=n,m=g.ownerDocument,y=jn(g).getComputedStyle(g),b=y.width,w=y.height,x=y.position,C=g.style.left,E=g.style.top,k=g.style.right,O=g.style.bottom,A=g.style.overflow,P=v(v({},i[o]),a),F=m.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild(F),F.style.left="".concat(g.offsetLeft,"px"),F.style.top="".concat(g.offsetTop,"px"),F.style.position=x,F.style.height="".concat(g.offsetHeight,"px"),F.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(r))p={x:r[0],y:r[1],width:0,height:0};else{var j,M,$=r.getBoundingClientRect();$.x=null!==(j=$.x)&&void 0!==j?j:$.left,$.y=null!==(M=$.y)&&void 0!==M?M:$.top,p={x:$.x,y:$.y,width:$.width,height:$.height}}var _=g.getBoundingClientRect();_.x=null!==(c=_.x)&&void 0!==c?c:_.left,_.y=null!==(l=_.y)&&void 0!==l?l:_.top;var R=m.documentElement,N=R.clientWidth,T=R.clientHeight,I=R.scrollWidth,L=R.scrollHeight,z=R.scrollTop,H=R.scrollLeft,D=_.height,B=_.width,V=p.height,W=p.width,U={left:0,top:0,right:N,bottom:T},q={left:-H,top:-z,right:I-H,bottom:L-z},X=P.htmlRegion,G="visible",Y="visibleFirst";"scroll"!==X&&X!==Y&&(X=G);var K=X===Y,Z=Nn(q,d),Q=Nn(U,d),J=X===G?Q:Z,ee=K?Q:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=C,g.style.top=E,g.style.right=k,g.style.bottom=O,g.style.overflow=A,null===(f=g.parentElement)||void 0===f||f.removeChild(F);var ne=$n(Math.round(B/parseFloat(b)*1e3)/1e3),re=$n(Math.round(D/parseFloat(w)*1e3)/1e3);if(0===ne||0===re||me(r)&&!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(r))return;var oe=P.offset,ie=P.targetOffset,ae=S(In(_,oe),2),se=ae[0],ce=ae[1],le=S(In(p,ie),2),ue=le[0],fe=le[1];p.x-=ue,p.y-=fe;var de=S(P.points||[],2),he=de[0],pe=Ln(de[1]),ge=Ln(he),ve=zn(p,pe),ye=zn(_,ge),be=v({},P),we=ve.x-ye.x+se,xe=ve.y-ye.y+ce;function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=_.x+e,o=_.y+t,i=r+B,a=o+D,s=Math.max(r,n.left),c=Math.max(o,n.top),l=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-s)*(u-c))}var Se,Ce,Ee,ke,Oe=pt(we,xe),Ae=pt(we,xe,Q),Pe=zn(p,["t","l"]),Fe=zn(_,["t","l"]),je=zn(p,["b","r"]),Me=zn(_,["b","r"]),$e=P.overflow||{},_e=$e.adjustX,Re=$e.adjustY,Ne=$e.shiftX,Te=$e.shiftY,Ie=function(e){return"boolean"==typeof e?e:e>=0};function gt(){Se=_.y+xe,Ce=Se+D,Ee=_.x+we,ke=Ee+B}gt();var Le=Ie(Re),ze=ge[0]===pe[0];if(Le&&"t"===ge[0]&&(Ce>ee.bottom||h.current.bt)){var He=xe;ze?He-=D-V:He=Pe.y-Me.y-ce;var De=pt(we,He),Be=pt(we,He,Q);De>Oe||De===Oe&&(!K||Be>=Ae)?(h.current.bt=!0,xe=He,ce=-ce,be.points=[Hn(ge,0),Hn(pe,0)]):h.current.bt=!1}if(Le&&"b"===ge[0]&&(SeOe||We===Oe&&(!K||Ue>=Ae)?(h.current.tb=!0,xe=Ve,ce=-ce,be.points=[Hn(ge,0),Hn(pe,0)]):h.current.tb=!1}var qe=Ie(_e),Xe=ge[1]===pe[1];if(qe&&"l"===ge[1]&&(ke>ee.right||h.current.rl)){var Ge=we;Xe?Ge-=B-W:Ge=Pe.x-Me.x-se;var Ye=pt(Ge,xe),Ke=pt(Ge,xe,Q);Ye>Oe||Ye===Oe&&(!K||Ke>=Ae)?(h.current.rl=!0,we=Ge,se=-se,be.points=[Hn(ge,1),Hn(pe,1)]):h.current.rl=!1}if(qe&&"r"===ge[1]&&(EeOe||Qe===Oe&&(!K||Je>=Ae)?(h.current.lr=!0,we=Ze,se=-se,be.points=[Hn(ge,1),Hn(pe,1)]):h.current.lr=!1}gt();var et=!0===Ne?0:Ne;"number"==typeof et&&(EeQ.right&&(we-=ke-Q.right-se,p.x>Q.right-et&&(we+=p.x-Q.right+et)));var tt=!0===Te?0:Te;"number"==typeof tt&&(SeQ.bottom&&(xe-=Ce-Q.bottom-ce,p.y>Q.bottom-tt&&(xe+=p.y-Q.bottom+tt)));var nt=_.x+we,rt=nt+B,ot=_.y+xe,it=ot+D,at=p.x,st=at+W,ct=p.y,lt=ct+V,ut=(Math.max(nt,at)+Math.min(rt,st))/2-nt,ft=(Math.max(ot,ct)+Math.min(it,lt))/2-ot;null==s||s(n,be);var dt=te.right-_.x-(we+_.width),ht=te.bottom-_.y-(xe+_.height);1===ne&&(we=Math.round(we),dt=Math.round(dt)),1===re&&(xe=Math.round(xe),ht=Math.round(ht)),u({ready:!0,offsetX:we/ne,offsetY:xe/re,offsetR:dt/ne,offsetB:ht/re,arrowX:ut/ne,arrowY:ft/re,scaleX:ne,scaleY:re,align:be})}})),g=function(){u((function(e){return v(v({},e),{},{ready:!1})}))};return Z(g,[o]),Z((function(){t||g()}),[t]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&p()}))}]}(Me,de,B&&null!==qe?qe:ye,R,T,I,W),11),Ke=Ye[0],Ze=Ye[1],Qe=Ye[2],Je=Ye[3],et=Ye[4],tt=Ye[5],nt=Ye[6],ot=Ye[7],st=Ye[8],ct=Ye[9],ut=Ye[10],ft=function(t,n,r,o){return e.useMemo((function(){var e=An(null!=r?r:n),i=An(null!=o?o:n),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,n,r,o])}(ie,c,u,f),dt=S(ft,2),ht=dt[0],pt=dt[1],gt=ht.has("click"),vt=pt.has("click")||pt.has("contextMenu"),mt=at((function(){He||ut()}));!function(e,t,n,r){Z((function(){if(e&&t&&n){var o=n,i=Mn(t),a=Mn(o),s=jn(o),c=new Set([s].concat(X(i),X(a)));function l(){r(),_e.current&&B&&vt&&Le(!1)}return c.forEach((function(e){e.addEventListener("scroll",l,{passive:!0})})),s.addEventListener("resize",l,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",l),s.removeEventListener("resize",l)}))}}}),[e,t,n])}(Me,ye,de,mt),Z((function(){mt()}),[qe,R]),Z((function(){!Me||null!=T&&T[R]||mt()}),[JSON.stringify(I)]);var yt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:$(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function Zn(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Qn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Zn(i,r,o,a,s,"next",e)}function s(e){Zn(i,r,o,a,s,"throw",e)}a(void 0)}))}}const Jn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if($(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return e}function fr(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function dr(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,wr=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,xr={integer:function(e){return xr.number(e)&&parseInt(e,10)===e},float:function(e){return xr.number(e)&&!xr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===d(e)&&!xr.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(br)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(yr)return yr;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),l=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};l.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},l.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=l.v4().source,f=l.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return yr=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(wr)}};const Sr=mr,Cr=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ur(o.messages.whitespace,e.fullField))},Er=function(e,t,n,r,o){if(e.required&&void 0===t)mr(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?xr[i](t)||r.push(ur(o.messages.types[i],e.fullField,e.type)):i&&d(t)!==e.type&&r.push(ur(o.messages.types[i],e.fullField,e.type))}},kr=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,c=t,l=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(ur(o.messages[l].len,e.fullField,e.len)):a&&!s&&ce.max?r.push(ur(o.messages[l].max,e.fullField,e.max)):a&&s&&(ce.max)&&r.push(ur(o.messages[l].range,e.fullField,e.min,e.max))},Or=function(e,t,n,r,o){e[vr]=Array.isArray(e[vr])?e[vr]:[],-1===e[vr].indexOf(t)&&r.push(ur(o.messages[vr],e.fullField,e[vr].join(", ")))},Ar=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ur(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(ur(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Pr=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t,i)&&!e.required)return n();Sr(e,t,r,a,o,i),fr(t,i)||Er(e,t,r,a,o)}n(a)},Fr={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t,"string")&&!e.required)return n();Sr(e,t,r,i,o,"string"),fr(t,"string")||(Er(e,t,r,i,o),kr(e,t,r,i,o),Ar(e,t,r,i,o),!0===e.whitespace&&Cr(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&Er(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&(Er(e,t,r,i,o),kr(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&Er(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),fr(t)||Er(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&(Er(e,t,r,i,o),kr(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&(Er(e,t,r,i,o),kr(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Sr(e,t,r,i,o,"array"),null!=t&&(Er(e,t,r,i,o),kr(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&Er(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o),void 0!==t&&Or(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t,"string")&&!e.required)return n();Sr(e,t,r,i,o),fr(t,"string")||Ar(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t,"date")&&!e.required)return n();var a;Sr(e,t,r,i,o),fr(t,"date")||(a=t instanceof Date?t:new Date(t),Er(e,a,r,i,o),a&&kr(e,a.getTime(),r,i,o))}n(i)},url:Pr,hex:Pr,email:Pr,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":d(t);Sr(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(fr(t)&&!e.required)return n();Sr(e,t,r,i,o)}n(i)}};var jr=function(){function e(t){Ve(this,e),p(this,"rules",null),p(this,"_messages",ar),this.define(t)}return Ue(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==d(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=gr(ir(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===ar&&(a=ir()),gr(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=v({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":d(i)))),(a="function"==typeof a?{validator:a}:v({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return function(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,X(e[n]||[]))})),t}(e);dr(a,n,(function(e){return r(e),e.length?i(new hr(e,lr(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],f=new Promise((function(t,i){var f=function(e){if(u.push.apply(u,e),++l===c)return r(u),u.length?i(new hr(u,lr(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?dr(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,X(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,f)}))}));return f.catch((function(e){return e})),f}(s,o,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==d(a.fields)&&"object"!==d(a.defaultField));function l(e,t){return v(v({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(X(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var f=u.map(pr(a,r));if(o.first&&f.length)return c[a.field]=1,n(f);if(s){if(a.required&&!t.value)return void 0!==a.message?f=[].concat(a.message).map(pr(a,r)):o.error&&(f=[o.error(a,ur(o.messages.required,a.field))]),n(f);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=v(v({},d),t.rule.fields);var h={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];h[e]=n.map(l.bind(null,e))}));var p=new e(h);p.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),p.validate(t.value,t.rule.options||o,(function(e){var t=[];f&&f.length&&t.push.apply(t,X(f)),e&&e.length&&t.push.apply(t,X(e)),n(t.length?t:null)}))}else n(f)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var f,h;null===(f=(h=console).error)||void 0===f||f.call(h,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},s=0;s2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Wr(t,e,n)}))}function Wr(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Ur(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===d(t.target)&&e in t.target?t.target[e]:t}function qr(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(X(e.slice(0,n)),[o],X(e.slice(n,t)),X(e.slice(t+1,r))):i<0?[].concat(X(e.slice(0,t)),X(e.slice(t+1,n+1)),[o],X(e.slice(n+1,r))):e}var Xr=["name"],Gr=[];function Yr(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Kr=function(t){Xe(r,t);var n=Ze(r);function r(t){var o;return Ve(this,r),p(Ke(o=n.call(this,t)),"state",{resetCount:0}),p(Ke(o),"cancelRegisterFunc",null),p(Ke(o),"mounted",!1),p(Ke(o),"touched",!1),p(Ke(o),"dirty",!1),p(Ke(o),"validatePromise",void 0),p(Ke(o),"prevValidating",void 0),p(Ke(o),"errors",Gr),p(Ke(o),"warnings",Gr),p(Ke(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Dr(r)),o.cancelRegisterFunc=null})),p(Ke(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(X(void 0===n?[]:n),X(t)):[]})),p(Ke(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),p(Ke(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),p(Ke(o),"metaCache",null),p(Ke(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=v(v({},o.getMeta()),{},{destroy:e});Jn(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),p(Ke(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,c=r.onReset,l=n.store,u=o.getNamePath(),f=o.getValue(e),d=o.getValue(l),h=t&&Vr(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Jn(f,d)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Gr,o.warnings=Gr,o.triggerMetaEvent()),n.type){case"reset":if(!t||h)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Gr,o.warnings=Gr,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&Yr(i,e,l,f,d,n))return void o.reRender();break;case"setField":var p=n.data;if(h)return"touched"in p&&(o.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(o.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(o.errors=p.errors||Gr),"warnings"in p&&(o.warnings=p.warnings||Gr),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in p&&Vr(t,u,!0))return void o.reRender();if(i&&!u.length&&Yr(i,e,l,f,d,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(Dr).some((function(e){return Vr(n.relatedFields,e)})))return void o.reRender();break;default:if(h||(!s.length||u.length||i)&&Yr(i,e,l,f,d,n))return void o.reRender()}!0===i&&o.reRender()})),p(Ke(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,c=Promise.resolve().then(Qn(Kn().mark((function r(){var a,s,l,u,f,d,h;return Kn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,s=a.validateFirst,l=void 0!==s&&s,u=a.messageVariables,f=a.validateDebounce,d=o.getRules(),i&&(d=d.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||or(t).includes(i)}))),!f||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,f)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(h=Lr(t,n,d,e,l,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Gr:o;t?r.push.apply(r,X(i)):n.push.apply(n,X(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",h);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=c,o.dirty=!0,o.errors=Gr,o.warnings=Gr,o.triggerMetaEvent(),o.reRender()),c})),p(Ke(o),"isFieldValidating",(function(){return!!o.validatePromise})),p(Ke(o),"isFieldTouched",(function(){return o.touched})),p(Ke(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(er).getInitialValue)(o.getNamePath())})),p(Ke(o),"getErrors",(function(){return o.errors})),p(Ke(o),"getWarnings",(function(){return o.warnings})),p(Ke(o),"isListField",(function(){return o.props.isListField})),p(Ke(o),"isList",(function(){return o.props.isList})),p(Ke(o),"isPreserve",(function(){return o.props.preserve})),p(Ke(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),p(Ke(o),"getOnlyChild",(function(t){if("function"==typeof t){var n=o.getMeta();return v(v({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=ve(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),p(Ke(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return vt(e||t(!0),n)})),p(Ke(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,c=t.valuePropName,l=t.getValueProps,u=t.fieldContext,f=void 0!==i?i:u.validateTrigger,d=o.getNamePath(),h=u.getInternalHooks,g=u.getFieldsValue,m=h(er).dispatch,y=o.getValue(),b=l||function(e){return p({},c,e)},w=e[r],x=void 0!==n?b(y):{},S=v(v({},e),x);return S[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),p(this,"timeoutId",null),p(this,"warningUnhooked",(function(){})),p(this,"updateStore",(function(e){n.store=e})),p(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),p(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new to;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),p(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Dr(e);return t.get(n)||{INVALIDATE_NAME_PATH:Dr(e)}}))})),p(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===d(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,c,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(l)}else s.push(l)})),Br(n.store,s.map(Dr))})),p(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Dr(e);return vt(n.store,t)})),p(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Dr(e[n]),errors:[],warnings:[]}}))})),p(this,"getFieldError",(function(e){n.warningUnhooked();var t=Dr(e);return n.getFieldsError([t])[0].errors})),p(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Dr(e);return n.getFieldsError([t])[0].warnings})),p(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new to,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,X(X(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))$(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)$(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(yt(n.store,o,X(i)[0].value))}}}}))})),p(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(xt(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Dr);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(yt(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),p(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=m(e,no),a=Dr(o);r.push(a),"value"in i&&n.updateStore(yt(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),p(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=v(v({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),p(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===vt(n.store,r)&&n.updateStore(yt(n.store,r,t))}})),p(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),p(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Wr(e.getNamePath(),t)}))){var s=n.store;n.updateStore(yt(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),p(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),p(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=v(v({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),p(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(X(r))}),r})),p(this,"updateValue",(function(e,t){var r=Dr(e),o=n.store;n.updateStore(yt(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Br(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(X(i)))})),p(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=xt(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),p(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),p(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new to;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Dr(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),p(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new to;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Vr(e,n)}));a.length&&r(a,o)}})),p(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Dr):[],s=[],c=String(Date.now()),l=new Set,u=o||{},f=u.recursive,d=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(l.add(t.join(c)),!i||Vr(a,t,f)){var r=e.validateRules(v({validateMessages:v(v({},$r),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,X(n)):r.push.apply(r,X(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var h=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=h,h.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var p=h.then((function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==h})}));p.catch((function(e){return e}));var g=a.filter((function(e){return l.has(e.join(c))}));return n.triggerOnFieldsChange(g),p})),p(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const oo=function(t){var n=e.useRef(),r=S(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new ro((function(){r({})}));n.current=o.getForm()}return[n.current]};var io=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const ao=io;var so=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const co=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,c=t.children,l=t.component,u=void 0===l?"form":l,h=t.validateMessages,p=t.validateTrigger,g=void 0===p?"onChange":p,y=t.onValuesChange,b=t.onFieldsChange,w=t.onFinish,x=t.onFinishFailed,C=t.clearOnDestroy,E=m(t,so),k=e.useRef(null),O=e.useContext(ao),A=S(oo(a),1)[0],P=A.getInternalHooks(er),F=P.useSubscribe,j=P.setInitialValues,M=P.setCallbacks,$=P.setValidateMessages,_=P.setPreserve,R=P.destroyForm;e.useImperativeHandle(n,(function(){return v(v({},A),{},{nativeElement:k.current})})),e.useEffect((function(){return O.registerForm(r,A),function(){O.unregisterForm(r)}}),[O,A,r]),$(v(v({},O.validateMessages),h)),M({onValuesChange:y,onFieldsChange:function(e){if(O.triggerFormChange(r,e),b){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=0&&t<=n.length?(u.keys=[].concat(X(u.keys.slice(0,t)),[u.id],X(u.keys.slice(t))),i([].concat(X(n.slice(0,t)),[e],X(n.slice(t))))):(u.keys=[].concat(X(u.keys),[u.id]),i([].concat(X(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=qr(u.keys,e,t),i(qr(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),o(d.map((function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}})),l,t)}))))},uo.useForm=oo,uo.useWatch=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let{children:n,status:r,override:o}=t;const i=e.useContext(fo),a=e.useMemo((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,i]);return e.createElement(fo.Provider,{value:a},n)},po=e.createContext(null),go=t=>{const{children:n}=t;return e.createElement(po.Provider,{value:null},n)},vo=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t().createElement(ho,{override:!0,status:!0},i)),n&&(i=t().createElement(go,null,i)),i},mo=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function yo(e){return e.join("%")}var bo=function(){function e(t){Ve(this,e),p(this,"instanceId",void 0),p(this,"cache",new Map),this.instanceId=t}return Ue(e,[{key:"get",value:function(e){return this.opGet(yo(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(yo(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const wo=bo;var xo="data-token-hash",So="data-css-hash",Co="__cssinjs_instance__";var Eo=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(So,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Co]=t[Co]||e,t[Co]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(So,"]"))).forEach((function(t){var n,o=t.getAttribute(So);r[o]?t[Co]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new wo(e)}(),defaultCache:!0});const ko=Eo;new RegExp("CALC_UNIT","g");var Oo=function(){function e(){Ve(this,e),p(this,"cache",void 0),p(this,"keys",void 0),p(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ue(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=S(e,2)[1];return r.internalGet(t)[1]4&&void 0!==arguments[4]&&arguments[4])return e;var o=v(v({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(p(r={},xo,t),p(r,So,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var Lo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},zo=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=S(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ho=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=S(e,2),s=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var l,u=Lo(s,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[s]?String(c):"".concat(c,"px"),o[s]="var(".concat(u,")")}})),[o,zo(r,t,{scope:null==n?void 0:n.scope})]},Do=v({},e).useInsertionEffect;const Bo=Do?function(e,t,n){return Do((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),Z((function(){return n(!0)}),r)},Vo=void 0!==v({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r||n.push(e)}}:function(){return function(e){e()}};function Wo(t,n,r,o,i){var a=e.useContext(ko).cache,s=yo([t].concat(X(n))),c=Vo([s]),l=function(e){a.opUpdate(s,(function(t){var n=S(t||[void 0,void 0],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))};e.useMemo((function(){l()}),[s]);var u=a.opGet(s)[1];return Bo((function(){null==i||i(u)}),(function(e){return l((function(t){var n=S(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(s,(function(t){var n=S(t||[],2),r=n[0],i=void 0===r?0:r,l=n[1];return 0==i-1?(c((function(){!e&&a.opGet(s)||null==o||o(l,!1)})),null):[i-1,l]}))}}),[s]),u}var Uo={},qo=new Map;var Xo="token";function Go(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(ko),i=o.cache.instanceId,a=o.container,s=r.salt,c=void 0===s?"":s,l=r.override,u=void 0===l?Uo:l,f=r.formatToken,d=r.getComputedToken,h=r.cssVar,p=function(e,t){for(var r=jo,o=0;o0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(xo,'="').concat(e,'"]')).forEach((function(e){var n;e[Co]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),qo.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=S(e,4),n=t[0],r=t[3];if(h&&r){var o=ce(r,mo("css-variables-".concat(n._themeKey)),{mark:So,prepend:"queue",attachTo:a,priority:-999});o[Co]=i,o.setAttribute(xo,n._themeKey)}}));return b}const Yo={animationIterationCount: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,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};var Ko="comm",Zo="rule",Qo="decl",Jo=Math.abs,ei=String.fromCharCode;function ti(e){return e.trim()}function ni(e,t,n){return e.replace(t,n)}function ri(e,t,n){return e.indexOf(t,n)}function oi(e,t){return 0|e.charCodeAt(t)}function ii(e,t,n){return e.slice(t,n)}function ai(e){return e.length}function si(e,t){return t.push(e),e}function ci(e,t){for(var n="",r=0;r0?oi(gi,--hi):0,fi--,10===pi&&(fi=1,ui--),pi}function yi(){return pi=hi2||Si(pi)>3?"":" "}function ki(e,t){for(;--t&&yi()&&!(pi<48||pi>102||pi>57&&pi<65||pi>70&&pi<97););return xi(e,wi()+(t<6&&32==bi()&&32==yi()))}function Oi(e){for(;yi();)switch(pi){case e:return hi;case 34:case 39:34!==e&&39!==e&&Oi(pi);break;case 40:41===e&&Oi(e);break;case 92:yi()}return hi}function Ai(e,t){for(;yi()&&e+pi!==57&&(e+pi!==84||47!==bi()););return"/*"+xi(t,hi-1)+"*"+ei(47===e?e:yi())}function Pi(e){for(;!Si(bi());)yi();return xi(e,hi)}function Fi(e){return function(e){return gi="",e}(ji("",null,null,null,[""],e=function(e){return ui=fi=1,di=ai(gi=e),hi=0,[]}(e),0,[0],e))}function ji(e,t,n,r,o,i,a,s,c){for(var l=0,u=0,f=a,d=0,h=0,p=0,g=1,v=1,m=1,y=0,b="",w=o,x=i,S=r,C=b;v;)switch(p=y,y=yi()){case 40:if(108!=p&&58==oi(C,f-1)){-1!=ri(C+=ni(Ci(y),"&","&\f"),"&\f",Jo(l?s[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:C+=Ci(y);break;case 9:case 10:case 13:case 32:C+=Ei(p);break;case 92:C+=ki(wi()-1,7);continue;case 47:switch(bi()){case 42:case 47:si($i(Ai(yi(),wi()),t,n,c),c),5!=Si(p||1)&&5!=Si(bi()||1)||!ai(C)||" "===ii(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*g:s[l++]=ai(C)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==m&&(C=ni(C,/\f/g,"")),h>0&&(ai(C)-f||0===g&&47===p)&&si(h>32?_i(C+";",r,n,f-1,c):_i(ni(C," ","")+";",r,n,f-2,c),c);break;case 59:C+=";";default:if(si(S=Mi(C,t,n,l,u,o,s,b,w=[],x=[],f,i),i),123===y)if(0===u)ji(C,t,S,S,w,i,f,s,x);else{switch(d){case 99:if(110===oi(C,3))break;case 108:if(97===oi(C,2))break;default:u=0;case 100:case 109:case 115:}u?ji(e,S,S,r&&si(Mi(e,S,S,0,0,o,s,b,o,w=[],f,x),x),o,x,f,s,r?w:x):ji(C,S,S,S,[""],x,0,s,x)}}l=u=h=0,g=m=1,b=C="",f=a;break;case 58:f=1+ai(C),h=p;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==mi())continue;switch(C+=ei(y),y*g){case 38:m=u>0?1:(C+="\f",-1);break;case 44:s[l++]=(ai(C)-1)*m,m=1;break;case 64:45===bi()&&(C+=Ci(yi())),d=bi(),u=f=ai(b=C+=Pi(wi())),y++;break;case 45:45===p&&2==ai(C)&&(g=0)}}return i}function Mi(e,t,n,r,o,i,a,s,c,l,u,f){for(var d=o-1,h=0===o?i:[""],p=function(e){return e.length}(h),g=0,v=0,m=0;g0?h[y]+" "+b:ni(b,/&\f/g,h[y])))&&(c[m++]=w);return vi(e,t,n,0===o?Zo:s,c,l,u,f)}function $i(e,t,n,r){return vi(e,t,n,Ko,ei(pi),ii(e,2,-2),0,r)}function _i(e,t,n,r,o){return vi(e,t,n,Qo,ii(e,0,r),ii(e,r+1,-1),r,o)}var Ri,Ni="data-ant-cssinjs-cache-path",Ti="_FILE_STYLE__",Ii=!0;var Li="_multi_value_";function zi(e){return ci(Fi(e),li).replace(/\{%%%\:[^;];}/g,";")}var Hi=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer,l=(n.path,n.hashPriority),u=n.transformers,f=void 0===u?[]:u,h=(n.linters,""),p={};function g(t){var r=t.getName(s);if(!p[r]){var o=S(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return m.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)g(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==d(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===d(e)&&e&&("_skip_check_"in e||Li in e)}(r)){var u;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Yo[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(s)),h+="".concat(n,":").concat(r,";")}var f=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===d(r)&&null!=r&&r[Li]&&Array.isArray(f)?f.forEach((function(e){E(t,e)})):E(t,f)}else{var m=!1,y=t.trim(),b=!1;(o||i)&&s?y.startsWith("@")?m=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(X(n.slice(1))).join(" ")}));return i.join(",")}("&"===y?"":t,s,l):!o||s||"&"!==y&&""!==y||(y="",b=!0);var w=S(e(r,n,{root:b,injectHash:m,parentSelectors:[].concat(X(a),[y])}),2),x=w[0],C=w[1];p=v(v({},p),C),h+="".concat(y).concat(x)}}))}})),o?c&&(h&&(h="@layer ".concat(c.name," {").concat(h,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):h="{".concat(h,"}"),[h,p]};function Di(e,t){return mo("".concat(e.join("%")).concat(t))}function Bi(){return null}var Vi="style";function Wi(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,s=t.nonce,c=t.clientOnly,l=t.order,u=void 0===l?0:l,d=e.useContext(ko),h=d.autoClear,g=(d.mock,d.defaultCache),m=d.hashPriority,y=d.container,b=d.ssrInline,w=d.transformers,x=d.linters,C=d.cache,E=d.layer,O=r._tokenKey,A=[O];E&&A.push("layer"),A.push.apply(A,X(o));var P=No,F=Wo(Vi,A,(function(){var e=A.join("|");if(function(e){return function(){if(!Ri&&(Ri={},k())){var e=document.createElement("div");e.className=Ni,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=S(e.split(":"),2),n=t[0],r=t[1];Ri[n]=r}));var n,r=document.querySelector("style[".concat(Ni,"]"));r&&(Ii=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ri[e]}(e)){var t=function(e){var t=Ri[e],n=null;if(t&&k())if(Ii)n=Ti;else{var r=document.querySelector("style[".concat(So,'="').concat(Ri[e],'"]'));r?n=r.innerHTML:delete Ri[e]}return[n,t]}(e),r=S(t,2),s=r[0],l=r[1];if(s)return[s,O,l,{},c,u]}var f=n(),d=S(Hi(f,{hashId:i,hashPriority:m,layer:E?a:void 0,path:o.join("-"),transformers:w,linters:x}),2),h=d[0],p=d[1],g=zi(h),v=Di(A,g);return[g,O,v,p,c,u]}),(function(e,t){var n=S(e,3)[2];(t||h)&&No&&se(n,{mark:So})}),(function(e){var t=S(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(P&&n!==Ti){var i={mark:So,prepend:!E&&"queue",attachTo:y,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var c=[],l=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):l.push(e)})),c.forEach((function(e){ce(zi(o[e]),"_layer-".concat(e),v(v({},i),{},{prepend:!0}))}));var f=ce(n,r,i);f[Co]=C.instanceId,f.setAttribute(xo,O),l.forEach((function(e){ce(zi(o[e]),"_effect-".concat(e),i)}))}})),j=S(F,3),M=j[0],$=j[1],_=j[2];return function(t){var n,r;return n=b&&!P&&g?e.createElement("style",f({},(p(r={},xo,$),p(r,So,_),r),{dangerouslySetInnerHTML:{__html:M}})):e.createElement(Bi,null),e.createElement(e.Fragment,null,n,t)}}var Ui="cssVar";var qi;p(qi={},Vi,(function(e,t,n){var r=S(e,6),o=r[0],i=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=(n||{}).plain;if(c)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return f=Io(o,i,a,d,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Io(zi(s[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[l,a,f]})),p(qi,Xo,(function(e,t,n){var r=S(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Io(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),p(qi,Ui,(function(e,t,n){var r=S(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;return o?[-999,i,Io(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var Xi=function(){function e(t,n){Ve(this,e),p(this,"name",void 0),p(this,"style",void 0),p(this,"_keyframe",!0),this.name=t,this.style=n}return Ue(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const Gi=Xi;function Yi(e){return e.notSplit=!0,e}Yi(["borderTop","borderBottom"]),Yi(["borderTop"]),Yi(["borderBottom"]),Yi(["borderLeft","borderRight"]),Yi(["borderLeft"]),Yi(["borderRight"]);const Ki={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Zi=Object.assign(Object.assign({},Ki),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Qi={token:Zi,override:{override:Zi},hashed:!0},Ji=t().createContext(Qi),ea=Math.round;function ta(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const na=(e,t,n)=>0===n?e:e/100;function ra(e,t){const n=t||255;return e>n?n:e<0?0:e}class oa{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(p(this,"isValid",!0),p(this,"r",0),p(this,"g",0),p(this,"b",0),p(this,"a",1),p(this,"_h",void 0),p(this,"_s",void 0),p(this,"_l",void 0),p(this,"_v",void 0),p(this,"_max",void 0),p(this,"_min",void 0),p(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof oa)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=ra(e.r),this.g=ra(e.g),this.b=ra(e.b),this.a="number"==typeof e.a?ra(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:ea(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:ea(o("r")),g:ea(o("g")),b:ea(o("b")),a:ea(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>ea((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=ea(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ea(100*this.getSaturation()),n=ea(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=ra(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=ea(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const s=e/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(s%2-1));s>=0&&s<1?(o=c,i=l):s>=1&&s<2?(o=l,i=c):s>=2&&s<3?(i=c,a=l):s>=3&&s<4?(i=l,a=c):s>=4&&s<5?(o=l,a=c):s>=5&&s<6&&(o=c,a=l);const u=n-c/2;this.r=ea(255*(o+u)),this.g=ea(255*(i+u)),this.b=ea(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=ea(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,c=ea(n*(1-t)*255),l=ea(n*(1-t*s)*255),u=ea(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=l;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=l}}fromHsvString(e){const t=ta(e,na);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ta(e,na);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ta(e,((e,t)=>t.includes("%")?ea(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var ia=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function aa(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function sa(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function ca(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function la(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new oa(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new oa({h:aa(o,i,!0),s:sa(o,i,!0),v:ca(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var c=new oa({h:aa(o,s),s:sa(o,s),v:ca(o,s)});n.push(c)}return"dark"===t.theme?ia.map((function(e){var r=e.index,o=e.amount;return new oa(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var ua={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},fa=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];fa.primary=fa[5];var da=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];da.primary=da[5];var ha=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ha.primary=ha[5];var pa=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];pa.primary=pa[5];var ga=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ga.primary=ga[5];var va=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];va.primary=va[5];var ma=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ma.primary=ma[5];var ya=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ya.primary=ya[5];var ba=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ba.primary=ba[5];var wa=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];wa.primary=wa[5];var xa=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xa.primary=xa[5];var Sa=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Sa.primary=Sa[5];var Ca=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ca.primary=Ca[5];var Ea={red:fa,volcano:da,orange:ha,gold:pa,yellow:ga,lime:va,green:ma,cyan:ya,blue:ba,geekblue:wa,purple:xa,magenta:Sa,grey:Ca},ka=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];ka.primary=ka[5];var Oa=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Oa.primary=Oa[5];var Aa=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Aa.primary=Aa[5];var Pa=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Pa.primary=Pa[5];var Fa=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Fa.primary=Fa[5];var ja=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ja.primary=ja[5];var Ma=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ma.primary=Ma[5];var $a=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];$a.primary=$a[5];var _a=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];_a.primary=_a[5];var Ra=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ra.primary=Ra[5];var Na=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Na.primary=Na[5];var Ta=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ta.primary=Ta[5];var Ia=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Ia.primary=Ia[5];const La=(e,t)=>new oa(e).setA(t).toRgbString(),za=(e,t)=>new oa(e).darken(t).toHexString(),Ha=e=>{const t=la(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Da=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:La(r,.88),colorTextSecondary:La(r,.65),colorTextTertiary:La(r,.45),colorTextQuaternary:La(r,.25),colorFill:La(r,.15),colorFillSecondary:La(r,.06),colorFillTertiary:La(r,.04),colorFillQuaternary:La(r,.02),colorBgSolid:La(r,1),colorBgSolidHover:La(r,.75),colorBgSolidActive:La(r,.95),colorBgLayout:za(n,4),colorBgContainer:za(n,0),colorBgElevated:za(n,0),colorBgSpotlight:La(r,.85),colorBgBlur:"transparent",colorBorder:za(n,15),colorBorderSecondary:za(n,6)}},Ba=(Va=function(e){ua.pink=ua.magenta,Ea.pink=Ea.magenta;const t=Object.keys(Ki).map((t=>{const n=e[t]===ua[t]?Ea[t]:la(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,f=n(c),d=n(o),h=n(i),p=n(a),g=n(s),v=r(l,u),m=n(e.colorLink||e.colorInfo),y=new oa(p[1]).mix(new oa(p[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:y,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new oa("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Ha,generateNeutralColorPalettes:Da})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))},Wa=Array.isArray(Va)?Va:[Va],Fo.has(Wa)||Fo.set(Wa,new Po(Wa)),Fo.get(Wa));var Va,Wa;const Ua=Ba;function qa(e){return e>=0&&e<=255}const Xa=function(e,t){const{r:n,g:r,b:o,a:i}=new oa(e).toRgb();if(i<1)return e;const{r:a,g:s,b:c}=new oa(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),l=Math.round((o-c*(1-e))/e);if(qa(t)&&qa(i)&&qa(l))return new oa({r:t,g:i,b:l,a:Math.round(100*e)/100}).toRgbString()}return new oa({r:n,g:r,b:o,a:1}).toRgbString()};function Ga(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Xa(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Xa(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xa(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Xa(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new oa("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new oa("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new oa("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ya=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Ya(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ga(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ya(n,["theme"]);let i=o;r&&(i=Ja(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function es(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(Ji),a=`5.23.4-${n||""}`,s=r||Ua,[c,l,u]=Go(s,[Zi,e],{salt:a,override:o,getComputedToken:Ja,formatToken:Ga,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ka,ignore:Za,preserve:Qa}});return[s,u,n?l:"",c,i]}const ts=t().createContext(void 0),ns=100,rs={Modal:ns,Drawer:ns,Popover:ns,Popconfirm:ns,Tooltip:ns,Tour:ns,FloatButton:ns},os={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},is=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function as(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),l=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,f=l,d=2*o-a,h=s,p=2*o-0,g=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${f} L ${d} ${h} A ${r} ${r} 0 0 0 ${p} ${g} Z')`,arrowPolygon:`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`}}const ss=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${To(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function cs(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function ls(e,t){return e?t:{}}function us(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},ss(e,t,o)),{"&:before":{background:t}})]},ls(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${To(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ls(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${To(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ls(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),ls(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const fs={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ds={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},hs=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ps(e,n){return((e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}function gs(){}const vs="anticon",ms=e.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:vs}),{Consumer:ys}=ms,bs=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ws=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),xs=e=>({animationDuration:e,animationFillMode:"both"}),Ss=e=>({animationDuration:e,animationFillMode:"both"}),Cs=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},xs(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ss(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Es=new Gi("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ks=new Gi("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Os=new Gi("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),As=new Gi("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ps=new Gi("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Fs=new Gi("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),js={zoom:{inKeyframes:Es,outKeyframes:ks},"zoom-big":{inKeyframes:Os,outKeyframes:As},"zoom-big-fast":{inKeyframes:Os,outKeyframes:As},"zoom-left":{inKeyframes:new Gi("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Gi("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Gi("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Gi("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Ps,outKeyframes:Fs},"zoom-down":{inKeyframes:new Gi("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Gi("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Ms=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=js[t];return[Cs(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$s=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function _s(e,t){return $s.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Rs=Ue((function e(){Ve(this,e)}));var Ns="CALC_UNIT",Ts=new RegExp(Ns,"g");function Is(e){return"number"==typeof e?"".concat(e).concat(Ns):e}var Ls=function(e){Xe(n,e);var t=Ze(n);function n(e,r){var o;Ve(this,n),p(Ke(o=t.call(this)),"result",""),p(Ke(o),"unitlessCssVar",void 0),p(Ke(o),"lowPriority",void 0);var i=d(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Is(e):"string"===i&&(o.result=e),o}return Ue(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Is(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Is(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Ts,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Rs);const zs=function(e){Xe(n,e);var t=Ze(n);function n(e){var r;return Ve(this,n),p(Ke(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Ue(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Rs),Hs=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},Ds=function(e,t,n,r){var o=v({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=S(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var i=v(v({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var Bs="undefined"!=typeof CSSINJS_STATISTIC,Vs=!0;function Ws(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Ys=new Gs;const Ks=function(){return{}},{genStyleHooks:Zs,genComponentStyleHook:Qs,genSubStyleComponent:Js}=function(n){var r=n.useCSP,o=void 0===r?Ks:r,i=n.useToken,a=n.usePrefix,s=n.getResetStyles,c=n.getCommonStyle,l=n.getCompUnitless;function u(e,r,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(e)?e:[e,e],h=S(f,1)[0],p=f.join("-"),g=n.layer||{name:"antd"};return function(e){var n,f,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,y=i(),b=y.theme,w=y.realToken,x=y.hashId,S=y.token,C=y.cssVar,E=a(),k=E.rootPrefixCls,O=E.iconPrefixCls,A=o(),P=C?"css":"js",F=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Lo(t,C.prefix)),e.add(Lo(t,Hs(h,C.prefix)))})),function(e,t){var n="css"===e?Ls:zs;return function(e){return new n(e,t)}}(P,e)},f=[P,h,null==C?void 0:C.prefix],t().useMemo((function(){var e=Ys.get(f);if(e)return e;var t=n();return Ys.set(f,t),t}),f)),j=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:e,n=S(g(e,t),2)[1],r=S(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,v({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=(0,e.useContext)(ms);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=es();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t}=(0,e.useContext)(ms);return null!=t?t:{}},getResetStyles:(e,t)=>{var n,r;return[{"&":ws(e)},(r=null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:vs,{[`.${r}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${r} .${r}-icon`]:{display:"block"}})})]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>Ka}),ec=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:h}=e,p=t(a).add(h).add(d).equal(),g=t(a).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},bs(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${To(e.calc(u).div(2).equal())} ${To(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),_s(e,((e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},us(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},tc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},cs({contentRadius:e.borderRadius,limitVerticalRadius:!0})),as(Ws(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),nc=function(e){const t=Zs("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=Ws(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[ec(o),Ms(e,"zoom-big-fast")]}),tc,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},rc=$s.map((e=>`${e}-inverse`));function oc(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?$s.includes(e):[].concat(X(rc),X($s)).includes(e)}function ic(e,t){const n=oc(t),r=l()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const ac=e.forwardRef(((n,r)=>{var o,i,a,s,c,u;const{prefixCls:f,openClassName:d,getTooltipContainer:h,color:p,overlayInnerStyle:g,children:v,afterOpenChange:m,afterVisibleChange:y,destroyTooltipOnHide:b,arrow:w=!0,title:x,overlay:S,builtinPlacements:C,arrowPointAtCenter:E=!1,autoAdjustOverflow:k=!0,motion:O,getPopupContainer:A,placement:P="top",mouseEnterDelay:F=.1,mouseLeaveDelay:j=.1,overlayStyle:M,rootClassName:$,overlayClassName:_,styles:R,classNames:N}=n,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const e=()=>{};return e.deprecated=gs,e})(),W=e.useRef(null),U=()=>{var e;null===(e=W.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(r,(()=>{var e;return{forceAlign:U,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:null===(e=W.current)||void 0===e?void 0:e.nativeElement}}));const[q,X]=gt(!1,{value:null!==(o=n.open)&&void 0!==o?o:n.visible,defaultValue:null!==(i=n.defaultOpen)&&void 0!==i?i:n.defaultVisible}),G=!x&&!S&&0!==x,Y=e.useMemo((()=>{var e,t;let n=E;return"object"==typeof w&&(n=null!==(t=null!==(e=w.pointAtCenter)&&void 0!==e?e:w.arrowPointAtCenter)&&void 0!==t?t:E),C||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,c={};return Object.keys(fs).forEach((e=>{const l=r&&ds[e]||fs[e],u=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,hs.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const f=cs({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-f.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*f.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,f,t,n),a&&(u.htmlRegion="visibleFirst")})),c}({arrowPointAtCenter:n,autoAdjustOverflow:k,arrowWidth:I?L.sizePopupArrow:0,borderRadius:L.borderRadius,offset:L.marginXXS,visibleFirst:!0})}),[E,w,C,L]),K=e.useMemo((()=>0===x?x:S||x||""),[S,x]),Z=e.createElement(vo,{space:!0},"function"==typeof K?K():K),Q=H("tooltip",f),J=H(),ee=n["data-popover-inject"];let te=q;"open"in n||"visible"in n||!G||(te=!1);const ne=e.isValidElement(v)&&!function(e){return e&&t().isValidElement(e)&&e.type===t().Fragment}(v)?v:e.createElement("span",null,v),re=ne.props,oe=re.className&&"string"!=typeof re.className?re.className:l()(re.className,d||`${Q}-open`),[ie,ae,se]=nc(Q,!ee),ce=ic(Q,p),le=ce.arrowStyle,ue=l()(_,{[`${Q}-rtl`]:"rtl"===D},ce.className,$,ae,se,null==B?void 0:B.className,null===(a=null==B?void 0:B.classNames)||void 0===a?void 0:a.root,null==N?void 0:N.root),fe=l()(null===(s=null==B?void 0:B.classNames)||void 0===s?void 0:s.body,null==N?void 0:N.body),[de,he]=((e,n)=>{const[,r]=es(),o=t().useContext(ts),i=e in rs;let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+rs[e]:os[e],a=[void 0===o?n:t,t]}return a})("Tooltip",T.zIndex),pe=e.createElement(Yn,Object.assign({},T,{zIndex:de,showArrow:I,placement:P,mouseEnterDelay:F,mouseLeaveDelay:j,prefixCls:Q,classNames:{root:ue,body:fe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},le),null===(c=null==B?void 0:B.styles)||void 0===c?void 0:c.root),null==B?void 0:B.style),M),null==R?void 0:R.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},null===(u=null==B?void 0:B.styles)||void 0===u?void 0:u.body),g),null==R?void 0:R.body),ce.overlayStyle)},getTooltipContainer:A||h||z,ref:W,builtinPlacements:Y,overlay:Z,visible:te,onVisibleChange:e=>{var t,r;X(!G&&e),G||(null===(t=n.onOpenChange)||void 0===t||t.call(n,e),null===(r=n.onVisibleChange)||void 0===r||r.call(n,e))},afterVisibleChange:null!=m?m:y,arrowContent:e.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:is(J,"zoom-big-fast",n.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),te?ps(ne,{className:oe}):ne);return ie(e.createElement(ts.Provider,{value:he},pe))})),sc=ac;sc._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:c}=e.useContext(ms),f=c("tooltip",n),[d,h,p]=nc(f),g=ic(f,a),v=g.arrowStyle,m=Object.assign(Object.assign({},s),g.overlayStyle),y=l()(h,p,f,`${f}-pure`,`${f}-placement-${o}`,r,g.className);return d(e.createElement("div",{className:y,style:v},e.createElement("div",{className:`${f}-arrow`}),e.createElement(u,Object.assign({},t,{className:h,prefixCls:f,overlayInnerStyle:m}),i)))};const cc=sc,lc=new Gi("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),uc=new Gi("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),fc=new Gi("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),dc=new Gi("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),hc=new Gi("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),pc=new Gi("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),gc=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return Ws(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},vc=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},mc=Zs("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:c,textFontWeight:l,indicatorHeight:u,indicatorHeightSM:f,marginXS:d,calc:h}=e,p=`${r}-scroll-number`,g=_s(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r},"a:hover &":{background:r}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},bs(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:l,fontSize:i,lineHeight:To(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(u).div(2).equal(),boxShadow:`0 0 0 ${To(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:To(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${To(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${To(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${p}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:pc,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:lc,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uc,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:fc,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:dc,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:hc,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${p}-custom-component, ${t}-count`]:{transform:"none"},[`${p}-custom-component, ${p}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[p]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${p}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${p}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${p}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${p}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(gc(e))),vc),yc=Zs(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=_s(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},bs(e)),{position:"absolute",top:r,padding:`0 ${To(e.paddingXS)}`,color:e.colorPrimary,lineHeight:To(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${To(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(gc(e))),vc),bc=t=>{const{prefixCls:n,value:r,current:o,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:l()(`${n}-only-unit`,{current:o})},r)};function wc(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const xc=t=>{const{prefixCls:n,count:r,value:o}=t,i=Number(o),a=Math.abs(r),[s,c]=e.useState(i),[l,u]=e.useState(a),f=()=>{c(i),u(a)};let d,h;if(e.useEffect((()=>{const e=setTimeout(f,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))d=[e.createElement(bc,Object.assign({},t,{key:i,current:!0}))],h={transition:"none"};else{d=[];const n=i+10,r=[];for(let e=i;e<=n;e+=1)r.push(e);const o=le%10===s));d=(o<0?r.slice(0,c+1):r.slice(c)).map(((n,r)=>{const i=n%10;return e.createElement(bc,Object.assign({},t,{key:n,value:i,offset:o<0?r-c:r,current:r===c}))})),h={transform:`translateY(${-wc(s,i,o)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:h,onTransitionEnd:f},d)};const Sc=e.forwardRef(((t,n)=>{const{prefixCls:r,count:o,className:i,motionClassName:a,style:s,title:c,show:u,component:f="sup",children:d}=t,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.createElement(xc,{prefixCls:g,count:Number(o),value:n,key:t.length-r}))))}return(null==s?void 0:s.borderColor)&&(v.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?ps(d,(e=>({className:l()(`${g}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(f,Object.assign({},v,{ref:n}),m)})),Cc=Sc;const Ec=e.forwardRef(((t,n)=>{var r,o,i,a,s;const{prefixCls:c,scrollNumberPrefixCls:u,children:f,status:d,text:h,color:p,count:g=null,overflowCount:v=99,dot:m=!1,size:y="default",title:b,offset:w,style:x,className:S,rootClassName:C,classNames:E,styles:k,showZero:O=!1}=t,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ov?`${v}+`:g,T="0"===N||0===N,I=(null!=d||null!=p)&&(null===g||T&&!O),L=m&&!T,z=L?"":N,H=(0,e.useMemo)((()=>(null==z||""===z||T&&!O)&&!L),[z,T,O,L]),D=(0,e.useRef)(g);H||(D.current=g);const B=D.current,V=(0,e.useRef)(z);H||(V.current=z);const W=V.current,U=(0,e.useRef)(L);H||(U.current=L);const q=(0,e.useMemo)((()=>{if(!w)return Object.assign(Object.assign({},null==j?void 0:j.style),x);const e={marginTop:w[1]};return"rtl"===F?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==j?void 0:j.style),x)}),[F,w,x,null==j?void 0:j.style]),X=null!=b?b:"string"==typeof B||"number"==typeof B?B:void 0,G=H||!h?null:e.createElement("span",{className:`${M}-status-text`},h),Y=B&&"object"==typeof B?ps(B,(e=>({style:Object.assign(Object.assign({},q),e.style)}))):void 0,K=oc(p,!1),Z=l()(null==E?void 0:E.indicator,null===(r=null==j?void 0:j.classNames)||void 0===r?void 0:r.indicator,{[`${M}-status-dot`]:I,[`${M}-status-${d}`]:!!d,[`${M}-color-${p}`]:K}),Q={};p&&!K&&(Q.color=p,Q.background=p);const J=l()(M,{[`${M}-status`]:I,[`${M}-not-a-wrapper`]:!f,[`${M}-rtl`]:"rtl"===F},S,C,null==j?void 0:j.className,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.root,null==E?void 0:E.root,_,R);if(!f&&I){const t=q.color;return $(e.createElement("span",Object.assign({},A,{className:J,style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.root),null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.root),q)}),e.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.indicator),null===(a=null==j?void 0:j.styles)||void 0===a?void 0:a.indicator),Q)}),h&&e.createElement("span",{style:{color:t},className:`${M}-status-text`},h)))}return $(e.createElement("span",Object.assign({ref:n},A,{className:J,style:Object.assign(Object.assign({},null===(s=null==j?void 0:j.styles)||void 0===s?void 0:s.root),null==k?void 0:k.root)}),f,e.createElement(mn,{visible:!H,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var r,o;const i=P("scroll-number",u),a=U.current,s=l()(null==E?void 0:E.indicator,null===(r=null==j?void 0:j.classNames)||void 0===r?void 0:r.indicator,{[`${M}-dot`]:a,[`${M}-count`]:!a,[`${M}-count-sm`]:"small"===y,[`${M}-multiple-words`]:!a&&W&&W.toString().length>1,[`${M}-status-${d}`]:!!d,[`${M}-color-${p}`]:K});let c=Object.assign(Object.assign(Object.assign({},null==k?void 0:k.indicator),null===(o=null==j?void 0:j.styles)||void 0===o?void 0:o.indicator),q);return p&&!K&&(c=c||{},c.background=p),e.createElement(Cc,{prefixCls:i,show:!H,motionClassName:n,className:s,count:W,title:X,style:c,key:"scrollNumber"},Y)})),G))})),kc=Ec;kc.Ribbon=t=>{const{className:n,prefixCls:r,style:o,color:i,children:a,text:s,placement:c="end",rootClassName:u}=t,{getPrefixCls:f,direction:d}=e.useContext(ms),h=f("ribbon",r),p=`${h}-wrapper`,[g,v,m]=yc(h,p),y=oc(i,!1),b=l()(h,`${h}-placement-${c}`,{[`${h}-rtl`]:"rtl"===d,[`${h}-color-${i}`]:y},n),w={},x={};return i&&!y&&(w.background=i,x.color=i),g(e.createElement("div",{className:l()(p,u,v,m)},a,e.createElement("div",{className:l()(b,v),style:Object.assign(Object.assign({},w),o)},e.createElement("span",{className:`${h}-text`},s),e.createElement("div",{className:`${h}-corner`,style:x}))))};const Oc=kc,Ac=["xxl","xl","lg","md","sm","xs"];const Pc=e=>{const[,,,,t]=es();return t?`${e}-css-var`:""},Fc=e.createContext(void 0),jc=function(){let n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const r=(0,e.useRef)({}),o=function(){const[,t]=e.useReducer((e=>e+1),0);return t}(),i=function(){const[,e]=es(),n=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Ac).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)}))},responsiveMap:n}}),[e])}();return Z((()=>{const e=i.subscribe((e=>{r.current=e,n&&o()}));return()=>i.unsubscribe(e)}),[]),r.current},Mc=e.createContext({}),$c=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:f,borderRadius:d,borderRadiusLG:h,borderRadiusSM:p,lineWidth:g,lineType:v}=e,m=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},bs(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${To(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),m(a,l,d)),{"&-lg":Object.assign({},m(s,u,h)),"&-sm":Object.assign({},m(c,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},_c=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Rc=Zs("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Ws(e,{avatarBg:n,avatarColor:t});return[$c(r),_c(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}));const Nc=(n,r)=>{const[o,i]=e.useState(1),[a,s]=e.useState(!1),[c,u]=e.useState(!0),f=e.useRef(null),d=e.useRef(null),h=H(r,f),{getPrefixCls:p,avatar:g}=e.useContext(ms),v=e.useContext(Mc),m=()=>{if(!d.current||!f.current)return;const e=d.current.offsetWidth,t=f.current.offsetWidth;if(0!==e&&0!==t){const{gap:r=4}=n;2*r{s(!0)}),[]),e.useEffect((()=>{u(!0),i(1)}),[n.src]),e.useEffect(m,[n.gap]);const{prefixCls:y,shape:b,size:w,src:x,srcSet:S,icon:C,className:E,rootClassName:k,alt:O,draggable:A,children:P,crossOrigin:F}=n,j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=t().useContext(Fc);return t().useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])})((e=>{var t,n;return null!==(n=null!==(t=null!=w?w:null==v?void 0:v.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),$=Object.keys("object"==typeof M&&M||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),_=jc($),R=e.useMemo((()=>{if("object"!=typeof M)return{};const e=Ac.find((e=>_[e])),t=M[e];return t?{width:t,height:t,fontSize:t&&(C||P)?t/2:18}:{}}),[_,M]),N=p("avatar",y),T=Pc(N),[I,L,z]=Rc(N,T),D=l()({[`${N}-lg`]:"large"===M,[`${N}-sm`]:"small"===M}),B=e.isValidElement(x),V=b||(null==v?void 0:v.shape)||"circle",W=l()(N,D,null==g?void 0:g.className,`${N}-${V}`,{[`${N}-image`]:B||x&&c,[`${N}-icon`]:!!C},z,T,E,k,L),U="number"==typeof M?{width:M,height:M,fontSize:C?M/2:18}:{};let q;if("string"==typeof x&&c)q=e.createElement("img",{src:x,draggable:A,srcSet:S,onError:()=>{const{onError:e}=n;!1!==(null==e?void 0:e())&&u(!1)},alt:O,crossOrigin:F});else if(B)q=x;else if(C)q=C;else if(a||1!==o){const t=`scale(${o})`,n={msTransform:t,WebkitTransform:t,transform:t};q=e.createElement(rt,{onResize:m},e.createElement("span",{className:`${N}-string`,ref:d,style:Object.assign({},n)},P))}else q=e.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:d},P);return delete j.onError,delete j.gap,I(e.createElement("span",Object.assign({},j,{style:Object.assign(Object.assign(Object.assign(Object.assign({},U),R),null==g?void 0:g.style),j.style),className:W,ref:h}),q))},Tc=e.forwardRef(Nc);var Ic={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Ic.F1&&t<=Ic.F12)return!1;switch(t){case Ic.ALT:case Ic.CAPS_LOCK:case Ic.CONTEXT_MENU:case Ic.CTRL:case Ic.DOWN:case Ic.END:case Ic.ESC:case Ic.HOME:case Ic.INSERT:case Ic.LEFT:case Ic.MAC_FF_META:case Ic.META:case Ic.NUMLOCK:case Ic.NUM_CENTER:case Ic.PAGE_DOWN:case Ic.PAGE_UP:case Ic.PAUSE:case Ic.PRINT_SCREEN:case Ic.RIGHT:case Ic.SHIFT:case Ic.UP:case Ic.WIN_KEY:case Ic.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ic.ZERO&&e<=Ic.NINE)return!0;if(e>=Ic.NUM_ZERO&&e<=Ic.NUM_MULTIPLY)return!0;if(e>=Ic.A&&e<=Ic.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ic.SPACE:case Ic.QUESTION_MARK:case Ic.NUM_PLUS:case Ic.NUM_MINUS:case Ic.NUM_PERIOD:case Ic.NUM_DIVISION:case Ic.SEMICOLON:case Ic.DASH:case Ic.EQUALS:case Ic.COMMA:case Ic.PERIOD:case Ic.SLASH:case Ic.APOSTROPHE:case Ic.SINGLE_QUOTE:case Ic.OPEN_SQUARE_BRACKET:case Ic.BACKSLASH:case Ic.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Lc=Ic,zc=e=>e?"function"==typeof e?e():e:null,Hc=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:h,innerContentPadding:p,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},bs(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:n,padding:p}})},us(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Dc=e=>{const{componentCls:t}=e;return{[t]:$s.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Bc=Zs("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=Ws(e,{popoverBg:t,popoverColor:n});return[Hc(r),Dc(r),Ms(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:f}=e,d=n-r,h=d/2,p=d/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},as(e)),cs({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${h}px ${g}px ${p}px`:0,titleBorderBottom:i?`${t}px ${l} ${u}`:"none",innerContentPadding:i?`${f}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const Vc=t=>{let{title:n,content:r,prefixCls:o}=t;return n||r?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},n),r&&e.createElement("div",{className:`${o}-inner-content`},r)):null},Wc=t=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:s,content:c,children:f}=t,d=zc(s),h=zc(c),p=l()(n,r,`${r}-pure`,`${r}-placement-${a}`,o);return e.createElement("div",{className:p,style:i},e.createElement("div",{className:`${r}-arrow`}),e.createElement(u,Object.assign({},t,{className:n,prefixCls:r}),f||e.createElement(Vc,{prefixCls:r,title:d,content:h})))};const Uc=e.forwardRef(((t,n)=>{var r,o,i,a,s,c;const{prefixCls:u,title:f,content:d,overlayClassName:h,placement:p="top",trigger:g="hover",children:v,mouseEnterDelay:m=.1,mouseLeaveDelay:y=.1,onOpenChange:b,overlayStyle:w={},styles:x,classNames:S}=t,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{R(e,!0),null==b||b(e,t)},T=zc(f),I=zc(d);return A(e.createElement(cc,Object.assign({placement:p,trigger:g,mouseEnterDelay:m,mouseLeaveDelay:y},C,{prefixCls:O,classNames:{root:M,body:$},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},null===(s=null==E?void 0:E.styles)||void 0===s?void 0:s.root),null==E?void 0:E.style),w),null==x?void 0:x.root),body:Object.assign(Object.assign({},null===(c=null==E?void 0:E.styles)||void 0===c?void 0:c.body),null==x?void 0:x.body)},ref:n,open:_,onOpenChange:e=>{N(e)},overlay:T||I?e.createElement(Vc,{prefixCls:O,title:T,content:I}):null,transitionName:is(j,"zoom-big",C.transitionName),"data-popover-inject":!0}),ps(v,{onKeyDown:t=>{var n,r;e.isValidElement(v)&&(null===(r=null==v?void 0:(n=v.props).onKeyDown)||void 0===r||r.call(n,t)),(e=>{e.keyCode===Lc.ESC&&N(!1,e)})(t)}})))})),qc=Uc;qc._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{size:n,shape:r}=e.useContext(Mc),o=e.useMemo((()=>({size:t.size||n,shape:t.shape||r})),[t.size,t.shape,n,r]);return e.createElement(Mc.Provider,{value:o},t.children)},Yc=Tc;Yc.Group=t=>{var n,r,o,i;const{getPrefixCls:a,direction:s}=e.useContext(ms),{prefixCls:c,className:u,rootClassName:f,style:d,maxCount:h,maxStyle:p,size:g,shape:v,maxPopoverPlacement:m,maxPopoverTrigger:y,children:b,max:w}=t,x=a("avatar",c),S=`${x}-group`,C=Pc(x),[E,k,O]=Rc(x,C),A=l()(S,{[`${S}-rtl`]:"rtl"===s},O,C,u,f,k),P=ve(b).map(((e,t)=>ps(e,{key:`avatar-key-${t}`}))),F=(null==w?void 0:w.count)||h,j=P.length;if(F&&F0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function tl(e,n,r){return r?t().createElement(e.tag,v(v({key:n},el(e.attrs)),r),(e.children||[]).map((function(t,r){return tl(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t().createElement(e.tag,v({key:n},el(e.attrs)),(e.children||[]).map((function(t,r){return tl(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function nl(e){return la(e)[0]}function rl(e){return e?Array.isArray(e)?e:[e]:[]}var ol=["icon","className","onClick","style","primaryColor","secondaryColor"],il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},al=function(t){var n,r,o,i,a,s,c,l,u=t.icon,f=t.className,d=t.onClick,h=t.style,p=t.primaryColor,g=t.secondaryColor,y=m(t,ol),b=e.useRef(),w=il;if(p&&(w={primaryColor:p,secondaryColor:g||nl(p)}),n=b,r=(0,e.useContext)(Qc),o=r.csp,i=r.prefixCls,a=r.layer,s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(s=s.replace(/anticon/g,i)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),(0,e.useEffect)((function(){var e=it(n.current);ce(s,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})}),[]),c=Jc(u),l="icon should be icon definiton, but got ".concat(u),$(c,"[@ant-design/icons] ".concat(l)),!Jc(u))return null;var x=u;return x&&"function"==typeof x.icon&&(x=v(v({},x),{},{icon:x.icon(w.primaryColor,w.secondaryColor)})),tl(x.icon,"svg-".concat(x.name),v(v({className:f,onClick:d,style:h,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},y),{},{ref:b}))};al.displayName="IconReact",al.getTwoToneColors=function(){return v({},il)},al.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;il.primaryColor=t,il.secondaryColor=n||nl(t),il.calculated=!!n};const sl=al;function cl(e){var t=S(rl(e),2),n=t[0],r=t[1];return sl.setTwoToneColors({primaryColor:n,secondaryColor:r})}var ll=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];cl(ba.primary);var ul=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,s=t.tabIndex,c=t.onClick,u=t.twoToneColor,d=m(t,ll),h=e.useContext(Qc),g=h.prefixCls,v=void 0===g?"anticon":g,y=h.rootClassName,b=l()(y,v,p(p({},"".concat(v,"-").concat(o.name),!!o.name),"".concat(v,"-spin"),!!i||"loading"===o.name),r),w=s;void 0===w&&c&&(w=-1);var x=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,C=S(rl(u),2),E=C[0],k=C[1];return e.createElement("span",f({role:"img","aria-label":o.name},d,{ref:n,tabIndex:w,onClick:c,className:b}),e.createElement(sl,{icon:o,primaryColor:E,secondaryColor:k,style:x}))}));ul.displayName="AntdIcon",ul.getTwoToneColor=function(){var e=sl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ul.setTwoToneColor=cl;const fl=ul;var dl=function(t,n){return e.createElement(fl,f({},t,{ref:n,icon:Zc}))};const hl=e.forwardRef(dl);var pl=n(2833),gl=n.n(pl);const vl=function(e){function t(e,r,c,l,d){for(var h,p,g,v,w,S=0,C=0,E=0,k=0,O=0,$=0,R=g=h=0,T=0,I=0,L=0,z=0,H=c.length,D=H-1,B="",V="",W="",U="";Th)&&(z=(B=B.replace(" ",":")).length),0<_&&void 0!==(w=s(1,B,r,e,P,A,V.length,l,d,l))&&0===(z=(B=w.trim()).length)&&(B="\0\0"),h=B.charCodeAt(0),p=B.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){U+=B+c.charAt(T);break}default:58!==B.charCodeAt(z-1)&&(V+=o(B,h,p,B.charCodeAt(2)))}L=I=R=h=0,B="",p=c.charCodeAt(++T)}}switch(p){case 13:case 10:47===C?C=0:0===1+h&&107!==l&&0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0<_){var o=s(-1,n,r,r,P,A,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(M,r,n,0,0);return 0<_&&void 0!==(o=s(-2,i,r,r,P,A,i.length,0,0,0))&&(i=o),F=0,A=P=1,i}var u=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,A=1,P=1,F=0,j=1,M=[],$=[],_=0,R=null,N=0;return l.use=function e(t){switch(t){case void 0:case null:_=$.length=0;break;default:if("function"==typeof t)$[_++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Nl=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&Rl(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=Ll&&(Ll=t+1),Tl.set(e,t),Il.set(t,e)},Bl="style["+Ml+'][data-styled-version="5.3.11"]',Vl=new RegExp("^"+Ml+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Wl=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ml))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ml,"active"),r.setAttribute("data-styled-version","5.3.11");var a=ql();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Gl=function(){function e(e){var t=this.element=Xl(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),eu=/(a)(d)/gi,tu=function(e){return String.fromCharCode(e+(e>25?39:97))};function nu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tu(t%52)+n;return(tu(t%52)+n).replace(eu,"$1-$2")}var ru=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ou=function(e){return ru(5381,e)};function iu(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=ru(this.baseHash,n.hash),u="",f=0;f>>0);if(!t.hasNameForId(r,g)){var v=n(u,"."+g,void 0,r);t.insertRules(r,g,v)}o.push(g)}}return o.join(" ")},e}(),cu=/^\s*\/\/.*$/gm,lu=[":","[",".","#"];function uu(e){var t,n,r,o,i=void 0===e?Al:e,a=i.options,s=void 0===a?Al:a,c=i.plugins,l=void 0===c?Ol:c,u=new vl(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,i){return 0===r&&-1!==lu.indexOf(i[n.length])||i.match(o)?e:"."+t};function p(e,i,a,s){void 0===s&&(s="&");var c=e.replace(cu,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,l)}return u.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),p.hash=l.length?l.reduce((function(e,t){return t.name||Rl(15),ru(e,t.name)}),5381).toString():"",p}var fu=t().createContext(),du=(fu.Consumer,t().createContext()),hu=(du.Consumer,new Jl),pu=uu();function gu(){return(0,e.useContext)(fu)||hu}function vu(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=gu(),s=(0,e.useMemo)((function(){var e=a;return n.sheet?e=n.sheet:n.target&&(e=e.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[n.disableCSSOMInjection,n.sheet,n.target]),c=(0,e.useMemo)((function(){return uu({options:{prefix:!n.disableVendorPrefixes},plugins:o})}),[n.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){gl()(o,n.stylisPlugins)||i(n.stylisPlugins)}),[n.stylisPlugins]),t().createElement(fu.Provider,{value:s},t().createElement(du.Provider,{value:c},n.children))}var mu=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pu);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Rl(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=pu),this.name+e.hash},e}(),yu=/([A-Z])/,bu=/([A-Z])/g,wu=/^ms-/,xu=function(e){return"-"+e.toLowerCase()};function Su(e){return yu.test(e)?e.replace(bu,xu).replace(wu,"-ms-"):e}var Cu=function(e){return null==e||!1===e||""===e};function Eu(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Pu=/(^-|-$)/g;function Fu(e){return e.replace(Au,"-").replace(Pu,"")}function ju(e){return"string"==typeof e&&!0}var Mu=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},$u=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function _u(e,t,n){var r=e[n];Mu(t)&&Mu(r)?Ru(r,t):e[n]=t}function Ru(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.11"+n+Tu[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):l,f=r.displayName,d=void 0===f?function(e){return ju(e)?"styled."+e:"Styled("+Fl(e)+")"}(n):f,h=r.displayName&&r.componentId?Fu(r.displayName)+"-"+r.componentId:r.componentId||u,p=i&&n.attrs?Array.prototype.concat(n.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;i&&n.shouldForwardProp&&(g=r.shouldForwardProp?function(e,t,o){return n.shouldForwardProp(e,t,o)&&r.shouldForwardProp(e,t,o)}:n.shouldForwardProp);var v,m=new su(o,h,i?n.componentStyle:void 0),y=m.isStatic&&0===c.length,b=function(t,n){return function(t,n,r,o){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,c=t.foldedComponentIds,l=t.shouldForwardProp,u=t.styledComponentId,f=t.target,d=function(e,t,n){void 0===e&&(e=Al);var r=Cl({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Pl(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=Al),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,e.useContext)(Nu),s)||Al,n,i),h=d[0],p=d[1],g=function(t,n,r){var o=gu(),i=(0,e.useContext)(du)||pu;return n?t.generateAndInjectStyles(Al,o,i):t.generateAndInjectStyles(r,o,i)}(a,o,h),v=r,m=p.$as||n.$as||p.as||n.as||f,y=ju(m),b=p!==n?Cl({},n,{},p):n,w={};for(var x in b)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=b[x]:(l?l(x,wl,m):!y||wl(x))&&(w[x]=b[x]));return n.style&&p.style!==n.style&&(w.style=Cl({},n.style,{},p.style)),w.className=Array.prototype.concat(c,u,g!==u?g:null,n.className,p.className).filter(Boolean).join(" "),w.ref=v,(0,e.createElement)(m,w)}(v,t,n,y)};return b.displayName=d,(v=t().forwardRef(b)).attrs=p,v.componentStyle=m,v.displayName=d,v.shouldForwardProp=g,v.foldedComponentIds=i?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):Ol,v.styledComponentId=h,v.target=i?n.target:n,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(ju(e)?e:Fu(Fl(e)));return Iu(e,Cl({},n,{attrs:p,componentId:i}),o)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Ru({},n.defaultProps,e):e}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),a&&Sl()(v,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Lu,zu=function(e){return function e(t,n,r){if(void 0===r&&(r=Al),!(0,_.isValidElementType)(n))return Rl(1,String(n));var o=function(){return t(n,r,Ou.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Cl({},r,{},o))},o.attrs=function(o){return e(t,n,Cl({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Iu,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){zu[e]=zu(e)})),(Lu=function(e,t){this.rules=e,this.componentId=t,this.isStatic=iu(e),Jl.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var o=r(Eu(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},Lu.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Lu.renderStyles=function(e,t,n,r){e>2&&Jl.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ql();return""},this.getStyleTags=function(){return e.sealed?Rl(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return Rl(2);var r=((n={})[Ml]="",n["data-styled-version"]="5.3.11",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=ql();return o&&(r.nonce=o),[t().createElement("style",Cl({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Jl({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Rl(2):t().createElement(vu,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Rl(3)}}();const Hu=zu.div` .ant-avatar > img { filter: grayscale(${e=>e?.usePublicFetcher?100:0}); } -`,sl=()=>{var t;const n=a(),{usePublicFetcher:r,toggleUsePublicFetcher:o}=n,i=r?"Switch to execute as the logged-in user":"Switch to execute as a public user";return(0,e.createElement)(al,{usePublicFetcher:r,className:"antd-app graphiql-auth-toggle","data-testid":"auth-switch"},(0,e.createElement)("span",{style:{margin:"0 5px"}},(0,e.createElement)(Ra,{getPopupContainer:()=>window.document.getElementsByClassName("graphiql-auth-toggle")[0],placement:"bottom",title:i},(0,e.createElement)("button",{"aria-label":i,type:"button",onClick:o,className:"toolbar-button"},(0,e.createElement)(Za,{dot:!r,status:"success"},(0,e.createElement)(vs,{shape:"circle",size:"small",title:i,src:null!==(t=window?.wpGraphiQLSettings?.avatarUrl)&&void 0!==t?t:null,icon:window?.wpGraphiQLSettings?.avatarUrl?null:(0,e.createElement)(zs,null)}))))))},{hooks:cl,useAppContext:ll}=window.wpGraphiQL;cl.addFilter("graphiql_fetcher","graphiql-auth-switch",((e,t)=>{const{usePublicFetcher:n}=a(),{endpoint:r}=ll();return n?(e=>t=>{const n={method:"POST",headers:{Accept:"application/json","content-type":"application/json"},body:JSON.stringify(t),credentials:"omit"};return fetch(e,n).then((e=>e.json()))})(r):e})),cl.addFilter("graphiql_app","graphiql-auth",(t=>(0,e.createElement)(s,null,t))),cl.addFilter("graphiql_toolbar_before_buttons","graphiql-auth-switch",(t=>(t.push((0,e.createElement)(sl,{key:"auth-switch"})),t)),1)})()})(); \ No newline at end of file +`,Du=()=>{var t;const n=a(),{usePublicFetcher:r,toggleUsePublicFetcher:o}=n,i=r?"Switch to execute as the logged-in user":"Switch to execute as a public user";return(0,e.createElement)(Hu,{usePublicFetcher:r,className:"antd-app graphiql-auth-toggle","data-testid":"auth-switch"},(0,e.createElement)("span",{style:{margin:"0 5px"}},(0,e.createElement)(cc,{getPopupContainer:()=>window.document.getElementsByClassName("graphiql-auth-toggle")[0],placement:"bottom",title:i},(0,e.createElement)("button",{"aria-label":i,type:"button",onClick:o,className:"toolbar-button"},(0,e.createElement)(Oc,{dot:!r,status:"success"},(0,e.createElement)(Kc,{shape:"circle",size:"small",title:i,src:null!==(t=window?.wpGraphiQLSettings?.avatarUrl)&&void 0!==t?t:null,icon:window?.wpGraphiQLSettings?.avatarUrl?null:(0,e.createElement)(hl,null)}))))))},{hooks:Bu,useAppContext:Vu}=window.wpGraphiQL;Bu.addFilter("graphiql_fetcher","graphiql-auth-switch",((e,t)=>{const{usePublicFetcher:n}=a(),{endpoint:r}=Vu();return n?(e=>t=>{const n={method:"POST",headers:{Accept:"application/json","content-type":"application/json"},body:JSON.stringify(t),credentials:"omit"};return fetch(e,n).then((e=>e.json()))})(r):e})),Bu.addFilter("graphiql_app","graphiql-auth",(t=>(0,e.createElement)(s,null,t))),Bu.addFilter("graphiql_toolbar_before_buttons","graphiql-auth-switch",(t=>(t.push((0,e.createElement)(Du,{key:"auth-switch"})),t)),1)})()})(); \ No newline at end of file diff --git a/lib/wp-graphql/build/graphiqlFullscreenToggle-rtl.css b/lib/wp-graphql/build/graphiqlFullscreenToggle-rtl.css new file mode 100644 index 000000000..d9317adff --- /dev/null +++ b/lib/wp-graphql/build/graphiqlFullscreenToggle-rtl.css @@ -0,0 +1 @@ +.graphiql-fullscreen #wp-graphiql-wrapper{inset:0;padding:0;position:fixed;z-index:99999}#graphiql-fullscreen-toggle{align-items:center;display:flex;height:30px;justify-content:center;padding:8px}#wp-graphiql-wrapper .contract-icon,.graphiql-fullscreen #wp-graphiql-wrapper .expand-icon{display:none}.graphiql-fullscreen #wp-graphiql-wrapper .contract-icon{display:block} diff --git a/lib/wp-graphql/build/graphiqlFullscreenToggle.asset.php b/lib/wp-graphql/build/graphiqlFullscreenToggle.asset.php index 19975ad07..4aa1b4431 100644 --- a/lib/wp-graphql/build/graphiqlFullscreenToggle.asset.php +++ b/lib/wp-graphql/build/graphiqlFullscreenToggle.asset.php @@ -1 +1 @@ - array('react'), 'version' => '6b693373109e52efe166'); + array('react'), 'version' => '0f61bf40b34560ea7c28'); diff --git a/lib/wp-graphql/build/graphiqlQueryComposer-rtl.css b/lib/wp-graphql/build/graphiqlQueryComposer-rtl.css new file mode 100644 index 000000000..03a515c70 --- /dev/null +++ b/lib/wp-graphql/build/graphiqlQueryComposer-rtl.css @@ -0,0 +1 @@ +#wp-graphiql-wrapper .docExplorerWrap{background:#fff;box-shadow:0 0 8px rgba(0,0,0,.15);position:relative;z-index:4}#wp-graphiql-wrapper .docExplorerWrap .doc-explorer-title-bar{cursor:default;display:flex;height:34px;line-height:14px;padding:8px 8px 5px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}#wp-graphiql-wrapper .docExplorerWrap .doc-explorer-title{flex:1 1;font-weight:700;overflow-x:hidden;overflow-y:hidden;padding:5px 10px 10px 0;text-align:center;text-overflow:ellipsis;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:nowrap}#wp-graphiql-wrapper .docExplorerWrap .doc-explorer-rhs{position:relative} diff --git a/lib/wp-graphql/build/graphiqlQueryComposer.asset.php b/lib/wp-graphql/build/graphiqlQueryComposer.asset.php index bee2f181d..05c049a8b 100644 --- a/lib/wp-graphql/build/graphiqlQueryComposer.asset.php +++ b/lib/wp-graphql/build/graphiqlQueryComposer.asset.php @@ -1 +1 @@ - array('react', 'react-dom'), 'version' => '04f793b3da3bc9f36cbc'); + array('react', 'react-dom'), 'version' => 'd5c457c0b433569aaefd'); diff --git a/lib/wp-graphql/build/graphiqlQueryComposer.js b/lib/wp-graphql/build/graphiqlQueryComposer.js index 121e80854..763c876a8 100644 --- a/lib/wp-graphql/build/graphiqlQueryComposer.js +++ b/lib/wp-graphql/build/graphiqlQueryComposer.js @@ -1,4 +1,4 @@ -(()=>{var e={454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),g=s(n),h=0;h{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case h:case g:case s:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},6663:(e,t,n)=>{"use strict";const r=n(4280),o=n(454),i=n(528),a=n(3055),l=Symbol("encodeFragmentIdentifier");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",o,"]"].join("")]:[...n,[c(t,e),"[",c(o,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[c(n,e),t,c(o,e)].join("")]:[[r,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?c(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":o.reduce(r(n),[]).join("&"):c(n,t)+"="+c(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[l]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[l]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${s}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[l]:!1},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},2799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return v(e)===i},t.isMemo=function(e){return v(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===l||e===a||e===f||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},4280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=n.n(e);const{useContext:r,useState:o,createContext:i,useEffect:a}=wp.element,{hooks:l,useAppContext:s}=window.wpGraphiQL,c=i(),u=()=>r(c),d=({children:t})=>{const n=s(),{queryParams:r,setQueryParams:i}=n,[a,u]=o((()=>{var e,t;const n=null!==(e=window?.localStorage.getItem("graphiql:isQueryComposerOpen"))&&void 0!==e?e:null,o="true"===r?.explorerIsOpen,i=null!==(t=r?.isQueryComposerOpen)&&void 0!==t?t:o;return null!==i?i:null!==n&&n})()),d=l.applyFilters("graphiql_explorer_context_default_value",{isQueryComposerOpen:a,toggleExplorer:()=>{(e=>{a!==e&&u(e);const t={...r,isQueryComposerOpen:e,explorerIsOpen:void 0};JSON.stringify(t)!==JSON.stringify(r)&&i(t),window?.localStorage.setItem("graphiql:isQueryComposerOpen",`${e}`)})(!a)}});return(0,e.createElement)(c.Provider,{value:d},t)},{useEffect:f}=wp.element,p=t=>{const{isQueryComposerOpen:n,toggleExplorer:r}=u(),{children:o}=t,i="400px";return n?(0,e.createElement)("div",{className:"docExplorerWrap doc-explorer-app query-composer-wrap",style:{height:"100%",width:i,minWidth:i,zIndex:8,display:n?"flex":"none",flexDirection:"column",overflow:"hidden"}},(0,e.createElement)("div",{className:"doc-explorer"},(0,e.createElement)("div",{className:"doc-explorer-title-bar"},(0,e.createElement)("div",{className:"doc-explorer-title"},"Query Composer"),(0,e.createElement)("div",{className:"doc-explorer-rhs"},(0,e.createElement)("div",{className:"docExplorerHide",style:{cursor:"pointer",fontSize:"18px",margin:"-7px -8px -6px 0",padding:"18px 16px 15px 12px",background:0,border:0,lineHeight:"14px"},onClick:r},"✕"))),(0,e.createElement)("div",{className:"doc-explorer-contents",style:{backgroundColor:"#ffffff",borderTop:"1px solid #d6d6d6",bottom:0,left:0,overflowY:"hidden",padding:"0",right:0,top:"47px",position:"absolute"}},o))):null},m=wpGraphiQL.GraphQL;let g=null;const h=e=>{const t=e.getFields();if(t.id){const e=["id"];return t.email?e.push("email"):t.name&&e.push("name"),e}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];const n=[];return Object.keys(t).forEach((e=>{(0,m.isLeafType)(t[e].type)&&n.push(e)})),n.length?n.slice(0,2):["__typename"]},v={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},b=(0,e.createElement)("svg",{width:"12",height:"9"},(0,e.createElement)("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),y=(0,e.createElement)("svg",{width:"12",height:"9"},(0,e.createElement)("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),w=(0,e.createElement)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),x=(0,e.createElement)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"})),C={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"NewQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},E=e=>{if(g&&g[0]===e)return g[1];{const n=(e=>{try{return e.trim()?(0,m.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}})(e);var t;return n?n instanceof Error?g?null!==(t=g[1])&&void 0!==t?t:"":S:(g=[e,n],n):S}},$=e=>e.charAt(0).toUpperCase()+e.slice(1),k=e=>(0,m.isNonNullType)(e.type)&&void 0===e.defaultValue,O=e=>{let t=e;for(;(0,m.isWrappingType)(t);)t=t.ofType;return t},I=e=>{let t=e;for(;(0,m.isWrappingType)(t);)t=t.ofType;return t},P=(e,t)=>{if("string"!=typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,m.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{const e=JSON.parse(t);return"boolean"==typeof e?{kind:"BooleanValue",value:e}:{kind:"BooleanValue",value:!1}}catch(e){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(e){return console.error("error coercing arg value",e,t),{kind:"StringValue",value:t}}else try{const n=e.parseValue(t);return n?{kind:"EnumValue",value:String(n)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(t){return{kind:"EnumValue",value:e.getValues()[0].name}}},j=(e,t,n,r)=>{const o=[];for(const i of r)if((0,m.isRequiredInputField)(i)||t&&t(n,i)){const r=I(i.type);if((0,m.isInputObjectType)(r)){const a=r.getFields();o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:{kind:"ObjectValue",fields:j(e,t,n,Object.keys(a).map((e=>a[e])))}})}else(0,m.isLeafType)(r)&&o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:e(n,i,r)})}return o},M=(e,t,n)=>{const r=[];for(const o of n.args)if(k(o)||t&&t(n,o)){const i=I(o.type);if((0,m.isInputObjectType)(i)){const a=i.getFields();r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:{kind:"ObjectValue",fields:j(e,t,n,Object.keys(a).map((e=>a[e])))}})}else(0,m.isLeafType)(i)&&r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:e(n,o,i)})}return r},R=(e,t,n)=>(e=>{if((0,m.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}})(n);var N=n(6942),A=n.n(N);function F(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,l=t.style;return e.createElement("div",{className:A()("".concat(r,"-content"),a),style:l},e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e){if(Array.isArray(e))return e}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):we}function Se(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ee(e){return Array.from((xe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Y())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(be,a),l&&i&&s.setAttribute(ye,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=Se(t),u=c.firstChild;if(r){if(l){var d=(t.styles||Ee(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(be)))return!1;var t=Number(e.getAttribute(ye)||0);return i>=t}));if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Se(t);return(t.styles||Ee(n)).find((function(n){return n.getAttribute(Ce(t))===e}))}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ke(e,t);n&&Se(t).removeChild(n)}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Se(n),o=Ee(r),i=H(H({},n),{},{styles:o});!function(e,t){var n=xe.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=$e("",t),o=r.parentNode;xe.set(e,o),e.removeChild(r)}}(r,i);var a,l,s,c=ke(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(c.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=$e(e,i);return u.setAttribute(Ce(i),t),u}var Pe="rc-util-locker-".concat(Date.now()),je=0;function Me(t){var n=!!t,r=X(e.useState((function(){return je+=1,"".concat(Pe,"_").concat(je)})),1)[0];he((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";Ie("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=s,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Oe(t),{width:f,height:p}}(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ie("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else Oe(r);var o;return function(){Oe(r)}}),[n,r])}var Re=!1,Ne=function(e){return!1!==e&&(Y()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ae=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=(t.debug,t.autoDestroy),l=void 0===a||a,s=t.children,c=X(e.useState(r),2),u=c[0],d=c[1],f=u||r;e.useEffect((function(){(l||r)&&d(r)}),[r,l]);var p=X(e.useState((function(){return Ne(i)})),2),m=p[0],g=p[1];e.useEffect((function(){var e=Ne(i);g(null!=e?e:null)}));var h=function(t,n){var r=X(e.useState((function(){return Y()?document.createElement("div"):null})),1)[0],o=e.useRef(!1),i=e.useContext(ue),a=X(e.useState(ve),2),l=a[0],s=a[1],c=i||(o.current?void 0:function(e){s((function(t){return[e].concat(fe(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function d(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return he((function(){return t?i?i(u):u():d(),d}),[t]),he((function(){l.length&&(l.forEach((function(e){return e()})),s(ve))}),[l]),[r,c]}(f&&!m),v=X(h,2),b=v[0],y=v[1],w=null!=m?m:b;Me(o&&r&&Y()&&(w===b||w===document.body));var x=null;s&&ce(s)&&n&&(x=s.ref);var C=se(x,n);if(!f||!Y()||void 0===m)return null;var S=!1===w||Re,E=s;return n&&(E=e.cloneElement(s,{ref:C})),e.createElement(ue.Provider,{value:y},S?E:(0,K.createPortal)(E,w))}));const Fe=Ae;function Te(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Te(e)):(0,oe.isFragment)(e)&&e.props?r=r.concat(Te(e.props.children,n)):r.push(e))})),r}function ze(e){return e instanceof HTMLElement||e instanceof SVGElement}function Le(e){return ze(e)?e:e instanceof t().Component?U().findDOMNode(e):null}var Be=e.createContext(null),De=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){He&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){He&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;We.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Xe=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),ot="undefined"!=typeof WeakMap?new WeakMap:new De,it=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ge.getInstance(),r=new rt(t,n,this);ot.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){it.prototype[e]=function(){var t;return(t=ot.get(this))[e].apply(t,arguments)}}));const at=void 0!==_e.ResizeObserver?_e.ResizeObserver:it;var lt=new Map,st=new at((function(e){e.forEach((function(e){var t,n=e.target;null===(t=lt.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};hn.cancel=function(e){var t=mn.get(e);return gn(e),fn(t)};const vn=hn;var bn=[Vt,Wt,qt,Gt],yn=[Vt,Xt],wn=!1;function xn(e){return e===qt||e===Gt}const Cn=function(t){var n=t;"object"===z(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,l=void 0===a||a,s=t.forceRender,c=t.children,u=t.motionName,d=t.leavedClassName,f=t.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Nt).motion),m=(0,e.useRef)(),g=(0,e.useRef)(),h=function(t,n,r,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,s=void 0===l||l,c=o.motionLeave,u=void 0===c||c,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,m=o.onEnterPrepare,g=o.onLeavePrepare,h=o.onAppearStart,v=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,w=o.onEnterActive,x=o.onLeaveActive,C=o.onAppearEnd,S=o.onEnterEnd,E=o.onLeaveEnd,$=o.onVisibleChanged,k=X(zt(),2),O=k[0],I=k[1],P=X(zt(Lt),2),j=P[0],M=P[1],R=X(zt(null),2),N=R[0],A=R[1],F=(0,e.useRef)(!1),T=(0,e.useRef)(null);function z(){return r()}var L=(0,e.useRef)(!1);function D(){M(Lt,!0),A(null,!0)}function _(e){var t=z();if(!e||e.deadline||e.target===t){var n,r=L.current;j===Bt&&r?n=null==C?void 0:C(t,e):j===Dt&&r?n=null==S?void 0:S(t,e):j===Ht&&r&&(n=null==E?void 0:E(t,e)),j!==Lt&&r&&!1!==n&&D()}}var V=X(function(t){var n=(0,e.useRef)(),r=(0,e.useRef)(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(sn,o),e.removeEventListener(ln,o))}return e.useEffect((function(){return function(){i(n.current)}}),[]),[function(e){n.current&&n.current!==e&&i(n.current),e&&e!==n.current&&(e.addEventListener(sn,o),e.addEventListener(ln,o),n.current=e)},i]}(_),1)[0],W=function(e){var t,n,r;switch(e){case Bt:return B(t={},Vt,p),B(t,Wt,h),B(t,qt,y),t;case Dt:return B(n={},Vt,m),B(n,Wt,v),B(n,qt,w),n;case Ht:return B(r={},Vt,g),B(r,Wt,b),B(r,qt,x),r;default:return{}}},q=e.useMemo((function(){return W(j)}),[j]),G=X(function(t,n,r){var o=X(zt(_t),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){vn.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=vn((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),s=X(l,2),c=s[0],u=s[1],d=n?yn:bn;return un((function(){if(i!==_t&&i!==Gt){var e=d.indexOf(i),t=d[e+1],n=r(i);n===wn?a(t,!0):t&&c((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(Vt,!0)},i]}(j,!t,(function(e){if(e===Vt){var t=q[Vt];return t?t(z()):wn}var n;return U in q&&A((null===(n=q[U])||void 0===n?void 0:n.call(q,z(),null))||null),U===qt&&(V(z()),d>0&&(clearTimeout(T.current),T.current=setTimeout((function(){_({deadline:!0})}),d))),U===Xt&&D(),true})),2),K=G[0],U=G[1],Y=xn(U);L.current=Y,un((function(){I(n);var e,r=F.current;F.current=!0,!r&&n&&s&&(e=Bt),r&&n&&a&&(e=Dt),(r&&!n&&u||!r&&f&&!n&&u)&&(e=Ht);var o=W(e);e&&(t||o[Vt])?(M(e),K()):M(Lt)}),[n]),(0,e.useEffect)((function(){(j===Bt&&!s||j===Dt&&!a||j===Ht&&!u)&&M(Lt)}),[s,a,u]),(0,e.useEffect)((function(){return function(){F.current=!1,clearTimeout(T.current)}}),[]);var Q=e.useRef(!1);(0,e.useEffect)((function(){O&&(Q.current=!0),void 0!==O&&j===Lt&&((Q.current||O)&&(null==$||$(O)),Q.current=!0)}),[O,j]);var Z=N;return q[Vt]&&U===Wt&&(Z=H({transition:"none"},Z)),[j,U,Z,null!=O?O:n]}(p,i,(function(){try{return m.current instanceof HTMLElement?m.current:Le(g.current)}catch(e){return null}}),t),v=X(h,4),b=v[0],y=v[1],w=v[2],x=v[3],C=e.useRef(x);x&&(C.current=!0);var S,E=e.useCallback((function(e){m.current=e,ae(r,e)}),[r]),$=H(H({},f),{},{visible:i});if(c)if(b===Lt)S=x?c(H({},$),E):!l&&C.current&&d?c(H(H({},$),{},{className:d}),E):s||!l&&!d?c(H(H({},$),{},{style:{display:"none"}}),E):null;else{var k,O;y===Vt?O="prepare":xn(y)?O="active":y===Wt&&(O="start");var I=cn(u,"".concat(b,"-").concat(O));S=c(H(H({},$),{},{className:A()(cn(u,b),(k={},B(k,I,I&&O),B(k,u,"string"==typeof u),k)),style:w}),E)}else S=null;return e.isValidElement(S)&&ce(S)&&(S.ref||(S=e.cloneElement(S,{ref:E}))),e.createElement(Tt,{ref:g},S)}));return r.displayName="CSSMotion",r}(an);var Sn="add",En="keep",$n="remove",kn="removed";function On(e){var t;return H(H({},t=e&&"object"===z(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function In(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(On)}var Pn=["component","children","onVisibleChanged","onAllRemoved"],jn=["status"],Mn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Rn=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn,r=function(t){pt(o,t);var r=bt(o);function o(){var e;ct(this,o);for(var t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=In(e),a=In(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==$n}))).forEach((function(t){t.key===e&&(t.status=En)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==kn||e.status!==$n}))}}}]),o}(e.Component);return B(r,"defaultProps",{component:"div"}),r}(an),Nn=Cn;function An(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,s=a.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],h=r.points[1],v=g[0],b=g[1],y=h[0],w=h[1];v!==y&&["t","b"].includes(v)?"t"===v?m.top=0:m.bottom=0:m.top=f,b!==w&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:A()("".concat(n,"-arrow"),l),style:m},s)}function Fn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Nn,T({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:A()("".concat(n,"-mask"),r)})})):null}var Tn=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const zn=Tn;var Ln=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,s=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,p=t.mask,m=t.arrow,g=t.arrowPos,h=t.align,v=t.motion,b=t.maskMotion,y=t.forceRender,w=t.getPopupContainer,x=t.autoDestroy,C=t.portal,S=t.zIndex,E=t.onMouseEnter,$=t.onMouseLeave,k=t.onPointerEnter,O=t.ready,I=t.offsetX,P=t.offsetY,j=t.offsetR,M=t.offsetB,R=t.onAlign,N=t.onPrepare,F=t.stretch,z=t.targetWidth,L=t.targetHeight,B="function"==typeof r?r():r,D=c||u,_=(null==w?void 0:w.length)>0,V=X(e.useState(!w||!_),2),W=V[0],q=V[1];if(he((function(){!W&&_&&l&&q(!0)}),[W,_,l]),!W)return null;var G="auto",K={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(O||!c){var U,Y=h.points,Q=h.dynamicInset||(null===(U=h._experimental)||void 0===U?void 0:U.dynamicInset),Z=Q&&"r"===Y[0][1],J=Q&&"b"===Y[0][0];Z?(K.right=j,K.left=G):(K.left=I,K.right=G),J?(K.bottom=M,K.top=G):(K.top=P,K.bottom=G)}var ee={};return F&&(F.includes("height")&&L?ee.height=L:F.includes("minHeight")&&L&&(ee.minHeight=L),F.includes("width")&&z?ee.width=z:F.includes("minWidth")&&z&&(ee.minWidth=z)),c||(ee.pointerEvents="none"),e.createElement(C,{open:y||D,getContainer:w&&function(){return w(l)},autoDestroy:x},e.createElement(Fn,{prefixCls:i,open:c,zIndex:S,mask:p,motion:b}),e.createElement(Et,{onResize:R,disabled:!c},(function(t){return e.createElement(Nn,T({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),(function(r,l){var s=r.className,u=r.style,p=A()(i,s,o);return e.createElement("div",{ref:le(t,n,l),className:p,style:H(H(H(H({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},K),ee),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:E,onMouseLeave:$,onPointerEnter:k,onClick:f},m&&e.createElement(An,{prefixCls:i,arrow:m,arrowPos:g,align:h}),e.createElement(zn,{cache:!c&&!d},B))}))})))}));const Bn=Ln;var Dn=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=ce(r),a=e.useCallback((function(e){ae(n,o?o(e):e)}),[o]),l=se(a,r.ref);return i?e.cloneElement(r,{ref:l}):r}));const Hn=Dn,Vn=e.createContext(null);function Wn(e){return e?Array.isArray(e)?e:[e]:[]}const qn=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Xn(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Kn(e){return e.ownerDocument.defaultView}function Un(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Kn(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Qn(e){return Yn(parseFloat(e),0)}function Zn(e,t){var n=H({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Kn(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=Qn(i),g=Qn(a),h=Qn(l),v=Qn(s),b=Yn(Math.round(c.width/f*1e3)/1e3),y=Yn(Math.round(c.height/u*1e3)/1e3),w=(f-p-h-v)*b,x=(u-d-m-g)*y,C=m*y,S=g*y,E=h*b,$=v*b,k=0,O=0;if("clip"===r){var I=Qn(o);k=I*b,O=I*y}var P=c.x+E-k,j=c.y+C-O,M=P+c.width+2*k-E-$-w,R=j+c.height+2*O-C-S-x;n.left=Math.max(n.left,P),n.top=Math.max(n.top,j),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,R)}})),n}function Jn(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function er(e,t){var n=X(t||[],2),r=n[0],o=n[1];return[Jn(e.width,r),Jn(e.height,o)]}function tr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function nr(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function rr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var or=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const ir=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,s=void 0===l?"hover":l,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,h=n.mouseLeaveDelay,v=void 0===h?.1:h,b=n.focusDelay,y=n.blurDelay,w=n.mask,x=n.maskClosable,C=void 0===x||x,S=n.getPopupContainer,E=n.forceRender,$=n.autoDestroy,k=n.destroyPopupOnHide,O=n.popup,I=n.popupClassName,P=n.popupStyle,j=n.popupPlacement,M=n.builtinPlacements,R=void 0===M?{}:M,N=n.popupAlign,F=n.zIndex,T=n.stretch,z=n.getPopupClassNameFromAlign,L=n.fresh,B=n.alignPoint,D=n.onPopupClick,V=n.onPopupAlign,W=n.arrow,q=n.popupMotion,G=n.maskMotion,K=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,Q=n.maskAnimation,Z=n.className,J=n.getTriggerDOMNode,ee=_(n,or),te=$||k||!1,ne=X(e.useState(!1),2),re=ne[0],oe=ne[1];he((function(){oe(Mt())}),[]);var ie=e.useRef({}),ae=e.useContext(Vn),le=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),se=jt(),ce=X(e.useState(null),2),ue=ce[0],de=ce[1],pe=Ot((function(e){ze(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(se,e)})),me=X(e.useState(null),2),ge=me[0],ve=me[1],be=e.useRef(null),ye=Ot((function(e){ze(e)&&ge!==e&&(ve(e),be.current=e)})),we=e.Children.only(a),xe=(null==we?void 0:we.props)||{},Ce={},Se=Ot((function(e){var t,n,r=ge;return(null==r?void 0:r.contains(e))||(null===(t=kt(r))||void 0===t?void 0:t.host)===e||e===r||(null==ue?void 0:ue.contains(e))||(null===(n=kt(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ee=Xn(i,q,U,K),$e=Xn(i,G,Q,Y),ke=X(e.useState(f||!1),2),Oe=ke[0],Ie=ke[1],Pe=null!=d?d:Oe,je=Ot((function(e){void 0===d&&Ie(e)}));he((function(){Ie(d||!1)}),[d]);var Me=e.useRef(Pe);Me.current=Pe;var Re=e.useRef([]);Re.current=[];var Ne=Ot((function(e){var t;je(e),(null!==(t=Re.current[Re.current.length-1])&&void 0!==t?t:Pe)!==e&&(Re.current.push(e),null==p||p(e))})),Ae=e.useRef(),Fe=function(){clearTimeout(Ae.current)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Ne(e):Ae.current=setTimeout((function(){Ne(e)}),1e3*t)};e.useEffect((function(){return Fe}),[]);var Le=X(e.useState(!1),2),Be=Le[0],De=Le[1];he((function(e){e&&!Pe||De(!0)}),[Pe]);var He=X(e.useState(null),2),_e=He[0],Ve=He[1],We=X(e.useState([0,0]),2),qe=We[0],Ge=We[1],Xe=function(e){Ge([e.clientX,e.clientY])},Ke=function(t,n,r,o,i,a,l){var s=X(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=s[0],u=s[1],d=e.useRef(0),f=e.useMemo((function(){return n?Un(n):[]}),[n]),p=e.useRef({});t||(p.current={});var m=Ot((function(){if(n&&r&&t){var e,s,c,d=n,m=d.ownerDocument,g=Kn(d).getComputedStyle(d),h=g.width,v=g.height,b=g.position,y=d.style.left,w=d.style.top,x=d.style.right,C=d.style.bottom,S=d.style.overflow,E=H(H({},i[o]),a),$=m.createElement("div");if(null===(e=d.parentElement)||void 0===e||e.appendChild($),$.style.left="".concat(d.offsetLeft,"px"),$.style.top="".concat(d.offsetTop,"px"),$.style.position=b,$.style.height="".concat(d.offsetHeight,"px"),$.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(r))c={x:r[0],y:r[1],width:0,height:0};else{var k=r.getBoundingClientRect();c={x:k.x,y:k.y,width:k.width,height:k.height}}var O=d.getBoundingClientRect(),I=m.documentElement,P=I.clientWidth,j=I.clientHeight,M=I.scrollWidth,R=I.scrollHeight,N=I.scrollTop,A=I.scrollLeft,F=O.height,T=O.width,z=c.height,L=c.width,B={left:0,top:0,right:P,bottom:j},D={left:-A,top:-N,right:M-A,bottom:R-N},_=E.htmlRegion,V="visible",W="visibleFirst";"scroll"!==_&&_!==W&&(_=V);var q=_===W,G=Zn(D,f),K=Zn(B,f),U=_===V?K:G,Y=q?K:U;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var Q=d.getBoundingClientRect();d.style.left=y,d.style.top=w,d.style.right=x,d.style.bottom=C,d.style.overflow=S,null===(s=d.parentElement)||void 0===s||s.removeChild($);var Z=Yn(Math.round(T/parseFloat(h)*1e3)/1e3),J=Yn(Math.round(F/parseFloat(v)*1e3)/1e3);if(0===Z||0===J||ze(r)&&!qn(r))return;var ee=E.offset,te=E.targetOffset,ne=X(er(O,ee),2),re=ne[0],oe=ne[1],ie=X(er(c,te),2),ae=ie[0],le=ie[1];c.x-=ae,c.y-=le;var se=X(E.points||[],2),ce=se[0],ue=tr(se[1]),de=tr(ce),fe=nr(c,ue),pe=nr(O,de),me=H({},E),ge=fe.x-pe.x+re,he=fe.y-pe.y+oe;function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,r=O.x+e,o=O.y+t,i=r+T,a=o+F,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}var ve,be,ye,we,xe=ut(ge,he),Ce=ut(ge,he,K),Se=nr(c,["t","l"]),Ee=nr(O,["t","l"]),$e=nr(c,["b","r"]),ke=nr(O,["b","r"]),Oe=E.overflow||{},Ie=Oe.adjustX,Pe=Oe.adjustY,je=Oe.shiftX,Me=Oe.shiftY,Re=function(e){return"boolean"==typeof e?e:e>=0};function dt(){ve=O.y+he,be=ve+F,ye=O.x+ge,we=ye+T}dt();var Ne=Re(Pe),Ae=de[0]===ue[0];if(Ne&&"t"===de[0]&&(be>Y.bottom||p.current.bt)){var Fe=he;Ae?Fe-=F-z:Fe=Se.y-ke.y-oe;var Te=ut(ge,Fe),Le=ut(ge,Fe,K);Te>xe||Te===xe&&(!q||Le>=Ce)?(p.current.bt=!0,he=Fe,oe=-oe,me.points=[rr(de,0),rr(ue,0)]):p.current.bt=!1}if(Ne&&"b"===de[0]&&(vexe||De===xe&&(!q||He>=Ce)?(p.current.tb=!0,he=Be,oe=-oe,me.points=[rr(de,0),rr(ue,0)]):p.current.tb=!1}var _e=Re(Ie),Ve=de[1]===ue[1];if(_e&&"l"===de[1]&&(we>Y.right||p.current.rl)){var We=ge;Ve?We-=T-L:We=Se.x-ke.x-re;var qe=ut(We,he),Ge=ut(We,he,K);qe>xe||qe===xe&&(!q||Ge>=Ce)?(p.current.rl=!0,ge=We,re=-re,me.points=[rr(de,1),rr(ue,1)]):p.current.rl=!1}if(_e&&"r"===de[1]&&(yexe||Ke===xe&&(!q||Ue>=Ce)?(p.current.lr=!0,ge=Xe,re=-re,me.points=[rr(de,1),rr(ue,1)]):p.current.lr=!1}dt();var Ye=!0===je?0:je;"number"==typeof Ye&&(yeK.right&&(ge-=we-K.right-re,c.x>K.right-Ye&&(ge+=c.x-K.right+Ye)));var Qe=!0===Me?0:Me;"number"==typeof Qe&&(veK.bottom&&(he-=be-K.bottom-oe,c.y>K.bottom-Qe&&(he+=c.y-K.bottom+Qe)));var Ze=O.x+ge,Je=Ze+T,et=O.y+he,tt=et+F,nt=c.x,rt=nt+L,ot=c.y,it=ot+z,at=(Math.max(Ze,nt)+Math.min(Je,rt))/2-Ze,lt=(Math.max(et,ot)+Math.min(tt,it))/2-et;null==l||l(n,me);var st=Q.right-O.x-(ge+O.width),ct=Q.bottom-O.y-(he+O.height);u({ready:!0,offsetX:ge/Z,offsetY:he/J,offsetR:st/Z,offsetB:ct/J,arrowX:at/Z,arrowY:lt/J,scaleX:Z,scaleY:J,align:me})}})),g=function(){u((function(e){return H(H({},e),{},{ready:!1})}))};return he(g,[o]),he((function(){t||g()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Pe,ue,B?qe:ge,j,R,N,V),Ue=X(Ke,11),Ye=Ue[0],Qe=Ue[1],Ze=Ue[2],Je=Ue[3],et=Ue[4],tt=Ue[5],nt=Ue[6],rt=Ue[7],ot=Ue[8],it=Ue[9],at=Ue[10],lt=function(t,n,r,o){return e.useMemo((function(){var e=Wn(null!=r?r:n),i=Wn(null!=o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[t,n,r,o])}(re,s,c,u),st=X(lt,2),ct=st[0],ut=st[1],dt=ct.has("click"),ft=ut.has("click")||ut.has("contextMenu"),pt=Ot((function(){Be||at()}));!function(e,t,n,r,o){he((function(){if(e&&t&&n){var o=n,i=Un(t),a=Un(o),l=Kn(o),s=new Set([l].concat(fe(i),fe(a)));function c(){r(),Me.current&&B&&ft&&Te(!1)}return s.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[e,t,n])}(Pe,ge,ue,pt),he((function(){pt()}),[qe,j]),he((function(){!Pe||null!=R&&R[j]||pt()}),[JSON.stringify(N)]);var mt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},hr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(re(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=X(e,2)[1];return r.internalGet(t)[1]4&&void 0!==arguments[4]&&arguments[4])return e;var r=H(H({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},B(B({},xr,t),Cr,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var _r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Vr=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=X(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Wr=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=X(e,2),l=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var c,u=_r(l,null==n?void 0:n.prefix);r[u]="number"!=typeof s||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),o[l]="var(".concat(u,")")}})),[o,Vr(r,t,{scope:null==n?void 0:n.scope})]},qr=H({},e).useInsertionEffect;const Gr=qr?function(e,t,n){return qr((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),he((function(){return n(!0)}),r)},Xr=void 0!==H({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r||n.push(e)}}:function(){return function(e){e()}},Kr=function(){return!1};function Ur(t,n,r,o,i){var a=e.useContext($r).cache,l=br([t].concat(fe(n))),s=Xr([l]),c=(Kr(),function(e){a.opUpdate(l,(function(t){var n=X(t||[void 0,void 0],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))});e.useMemo((function(){c()}),[l]);var u=a.opGet(l)[1];return Gr((function(){null==i||i(u)}),(function(e){return c((function(t){var n=X(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=X(t||[],2),r=n[0],i=void 0===r?0:r,c=n[1];return 0==i-1?(s((function(){!e&&a.opGet(l)||null==o||o(c,!1)})),null):[i-1,c]}))}}),[l]),u}var Yr={},Qr="css",Zr=new Map,Jr=0;var eo=function(e,t,n,r){var o=H(H({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},to="token";function no(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)($r),i=o.cache.instanceId,a=o.container,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?Yr:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var r=Mr,o=0;oJr&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(xr,'="').concat(e,'"]')).forEach((function(e){var n;e[Sr]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Zr.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=X(e,4),n=t[0],r=t[3];if(p&&r){var o=Ie(r,gr("css-variables-".concat(n._themeKey)),{mark:Cr,prepend:"queue",attachTo:a,priority:-999});o[Sr]=i,o.setAttribute(xr,n._themeKey)}}));return b}const ro={animationIterationCount: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,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};var oo="comm",io="rule",ao="decl",lo="@import",so="@keyframes",co="@layer",uo=Math.abs,fo=String.fromCharCode;function po(e){return e.trim()}function mo(e,t,n){return e.replace(t,n)}function go(e,t,n){return e.indexOf(t,n)}function ho(e,t){return 0|e.charCodeAt(t)}function vo(e,t,n){return e.slice(t,n)}function bo(e){return e.length}function yo(e,t){return t.push(e),e}function wo(e,t){for(var n="",r=0;r0?ho(Oo,--$o):0,So--,10===ko&&(So=1,Co--),ko}function jo(){return ko=$o2||Ao(ko)>3?"":" "}function zo(e,t){for(;--t&&jo()&&!(ko<48||ko>102||ko>57&&ko<65||ko>70&&ko<97););return No(e,Ro()+(t<6&&32==Mo()&&32==jo()))}function Lo(e){for(;jo();)switch(ko){case e:return $o;case 34:case 39:34!==e&&39!==e&&Lo(ko);break;case 40:41===e&&Lo(e);break;case 92:jo()}return $o}function Bo(e,t){for(;jo()&&e+ko!==57&&(e+ko!==84||47!==Mo()););return"/*"+No(t,$o-1)+"*"+fo(47===e?e:jo())}function Do(e){for(;!Ao(Mo());)jo();return No(e,$o)}function Ho(e){return function(e){return Oo="",e}(_o("",null,null,null,[""],e=function(e){return Co=So=1,Eo=bo(Oo=e),$o=0,[]}(e),0,[0],e))}function _o(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",w=o,x=i,C=r,S=y;h;)switch(m=b,b=jo()){case 40:if(108!=m&&58==ho(S,d-1)){-1!=go(S+=mo(Fo(b),"&","&\f"),"&\f",uo(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Fo(b);break;case 9:case 10:case 13:case 32:S+=To(m);break;case 92:S+=zo(Ro()-1,7);continue;case 47:switch(Mo()){case 42:case 47:yo(Wo(Bo(jo(),Ro()),t,n,s),s);break;default:S+="/"}break;case 123*g:l[c++]=bo(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=mo(S,/\f/g,"")),p>0&&bo(S)-d&&yo(p>32?qo(S+";",r,n,d-1,s):qo(mo(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(yo(C=Vo(S,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)_o(S,t,C,C,w,i,d,l,x);else switch(99===f&&110===ho(S,3)?100:f){case 100:case 108:case 109:case 115:_o(e,C,C,r&&yo(Vo(e,C,C,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:_o(S,C,C,C,[""],x,0,l,x)}}c=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+bo(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Po())continue;switch(S+=fo(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(bo(S)-1)*v,v=1;break;case 64:45===Mo()&&(S+=Fo(jo())),f=Mo(),u=d=bo(y=S+=Do(Ro())),b++;break;case 45:45===m&&2==bo(S)&&(g=0)}}return i}function Vo(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,h=0,v=0;g0?p[b]+" "+y:mo(y,/&\f/g,p[b])))&&(s[v++]=w);return Io(e,t,n,0===o?io:l,s,c,u,d)}function Wo(e,t,n,r){return Io(e,t,n,oo,fo(ko),vo(e,2,-2),0,r)}function qo(e,t,n,r,o){return Io(e,t,n,ao,vo(e,0,r),vo(e,r+1,-1),r,o)}var Go,Xo="data-ant-cssinjs-cache-path",Ko="_FILE_STYLE__",Uo=!0;var Yo="_multi_value_";function Qo(e){return wo(Ho(e),xo).replace(/\{%%%\:[^;];}/g,";")}var Zo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=X(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==z(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===z(e)&&e&&("_skip_check_"in e||Yo in e)}(r)){var u;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ro[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===z(r)&&null!=r&&r[Yo]&&Array.isArray(d)?d.forEach((function(e){x(t,e)})):x(t,d)}else{var g=!1,h=t.trim(),v=!1;(o||i)&&l?h.startsWith("@")?g=!0:h=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(fe(n.slice(1))).join(" ")}));return i.join(",")}(t,l,c):!o||l||"&"!==h&&""!==h||(h="",v=!0);var b=X(e(r,n,{root:v,injectHash:g,parentSelectors:[].concat(fe(a),[h])}),2),y=b[0],w=b[1];p=H(H({},p),w),f+="".concat(h).concat(y)}}))}})),o){if(s&&(void 0===Lr&&(Lr=function(e,t,n){if(Y()){var r,o;Ie(e,Tr);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(zr);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),Oe(Tr),a}return!1}("@layer ".concat(Tr," { .").concat(Tr,' { content: "').concat(zr,'"!important; } }'),(function(e){e.className=Tr}))),Lr)){var h=s.split(","),v=h[h.length-1].trim();f="@layer ".concat(v," {").concat(f,"}"),h.length>1&&(f="@layer ".concat(s,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function Jo(e,t){return gr("".concat(e.join("%")).concat(t))}function ei(){return null}var ti="style";function ni(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,s=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext($r),f=d.autoClear,p=(d.mock,d.defaultCache),m=d.hashPriority,g=d.container,h=d.ssrInline,v=d.transformers,b=d.linters,y=d.cache,w=r._tokenKey,x=[w].concat(fe(o)),C=Br,S=Ur(ti,x,(function(){var e=x.join("|");if(function(e){return function(){if(!Go&&(Go={},Y())){var e=document.createElement("div");e.className=Xo,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=X(e.split(":"),2),n=t[0],r=t[1];Go[n]=r}));var n,r=document.querySelector("style[".concat(Xo,"]"));r&&(Uo=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Go[e]}(e)){var t=function(e){var t=Go[e],n=null;if(t&&Y())if(Uo)n=Ko;else{var r=document.querySelector("style[".concat(Cr,'="').concat(Go[e],'"]'));r?n=r.innerHTML:delete Go[e]}return[n,t]}(e),r=X(t,2),l=r[0],c=r[1];if(l)return[l,w,c,{},s,u]}var d=n(),f=X(Zo(d,{hashId:i,hashPriority:m,layer:a,path:o.join("-"),transformers:v,linters:b}),2),p=f[0],g=f[1],h=Qo(p),y=Jo(x,h);return[h,w,y,g,s,u]}),(function(e,t){var n=X(e,3)[2];(t||f)&&Br&&Oe(n,{mark:Cr})}),(function(e){var t=X(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(C&&n!==Ko){var i={mark:Cr,prepend:"queue",attachTo:g,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var s=Ie(n,r,i);s[Sr]=y.instanceId,s.setAttribute(xr,w),Object.keys(o).forEach((function(e){Ie(Qo(o[e]),"_effect-".concat(e),i)}))}})),E=X(S,3),$=E[0],k=E[1],O=E[2];return function(t){var n;return n=h&&!C&&p?e.createElement("style",T({},B(B({},xr,k),Cr,O),{dangerouslySetInnerHTML:{__html:$}})):e.createElement(ei,null),e.createElement(e.Fragment,null,n,t)}}var ri="cssVar";B(B(B({},ti,(function(e,t,n){var r=X(e,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=(n||{}).plain;if(s)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Hr(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Qo(l[e]);d+=Hr(n,i,"_effect-".concat(e),f,u)}})),[c,a,d]})),to,(function(e,t,n){var r=X(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,Hr(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),ri,(function(e,t,n){var r=X(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;return o?[-999,i,Hr(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));var oi=function(){function e(t,n){ct(this,e),B(this,"name",void 0),B(this,"style",void 0),B(this,"_keyframe",!0),this.name=t,this.style=n}return dt(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const ii=oi;function ai(e){return e.notSplit=!0,e}ai(["borderTop","borderBottom"]),ai(["borderTop"]),ai(["borderBottom"]),ai(["borderLeft","borderRight"]),ai(["borderLeft"]),ai(["borderRight"]);const li="5.15.4";function si(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function ci(e){return Math.min(1,Math.max(0,e))}function ui(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function di(e){return e<=1?"".concat(100*Number(e),"%"):e}function fi(e){return 1===e.length?"0"+e:String(e)}function pi(e,t,n){e=si(e,255),t=si(t,255),n=si(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gi(e,t,n){e=si(e,255),t=si(t,255),n=si(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ki*t:Math.round(e.h)+ki*t:n?Math.round(e.h)+ki*t:Math.round(e.h)-ki*t)<0?r+=360:r>=360&&(r-=360),r}function zi(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Oi*t:t===Ri?e.s+Oi:e.s+Ii*t)>1&&(r=1),n&&t===Mi&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Li(e,t,n){var r;return(r=n?e.v+Pi*t:e.v-ji*t)>1&&(r=1),Number(r.toFixed(2))}function Bi(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=wi(e),o=Mi;o>0;o-=1){var i=Ai(r),a=Fi(wi({h:Ti(i,o,!0),s:zi(i,o,!0),v:Li(i,o,!0)}));n.push(a)}n.push(Fi(r));for(var l=1;l<=Ri;l+=1){var s=Ai(r),c=Fi(wi({h:Ti(s,l),s:zi(s,l),v:Li(s,l)}));n.push(c)}return"dark"===t.theme?Ni.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Fi((r=wi(t.backgroundColor||"#141414"),i=100*l/100,{r:((o=wi(n[a])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var Di={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Hi={},_i={};Object.keys(Di).forEach((function(e){Hi[e]=Bi(Di[e]),Hi[e].primary=Hi[e][5],_i[e]=Bi(Di[e],{theme:"dark",backgroundColor:"#141414"}),_i[e].primary=_i[e][5]})),Hi.red,Hi.volcano,Hi.gold,Hi.orange,Hi.yellow,Hi.lime,Hi.green,Hi.cyan;var Vi=Hi.blue;Hi.geekblue,Hi.purple,Hi.magenta,Hi.grey,Hi.grey;const Wi={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},qi=Object.assign(Object.assign({},Wi),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var Gi=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=wi(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ui(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=gi(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=gi(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=pi(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=pi(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),hi(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[fi(Math.round(e).toString(16)),fi(Math.round(t).toString(16)),fi(Math.round(n).toString(16)),fi((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*si(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*si(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+hi(this.r,this.g,this.b,!1),t=0,n=Object.entries(yi);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ci(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ci(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ci(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ci(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;anew Gi(e).setAlpha(t).toRgbString(),Ki=(e,t)=>new Gi(e).darken(t).toHexString(),Ui=e=>{const t=Bi(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Yi=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Xi(r,.88),colorTextSecondary:Xi(r,.65),colorTextTertiary:Xi(r,.45),colorTextQuaternary:Xi(r,.25),colorFill:Xi(r,.15),colorFillSecondary:Xi(r,.06),colorFillTertiary:Xi(r,.04),colorFillQuaternary:Xi(r,.02),colorBgLayout:Ki(n,4),colorBgContainer:Ki(n,0),colorBgElevated:Ki(n,0),colorBgSpotlight:Xi(r,.85),colorBgBlur:"transparent",colorBorder:Ki(n,15),colorBorderSecondary:Ki(n,6)}};function Qi(e){return(e+8)/e}const Zi=jr((function(e){const t=Object.keys(Wi).map((t=>{const n=Bi(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),p=n(i),m=n(a),g=n(l),h=r(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},h),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Gi("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Ui,generateNeutralColorPalettes:Yi})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Qi(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))})),Ji={token:qi,override:{override:qi},hashed:!0},ea=t().createContext(Ji);function ta(e){return e>=0&&e<=255}const na=function(e,t){const{r:n,g:r,b:o,a:i}=new Gi(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Gi(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),c=Math.round((o-s*(1-e))/e);if(ta(t)&&ta(i)&&ta(c))return new Gi({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Gi({r:n,g:r,b:o,a:1}).toRgbString()};var ra=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:na(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:na(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:na(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:na(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Gi("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Gi("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Gi("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ia=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=ia(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=oa(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ia(n,["theme"]);let i=o;r&&(i=ca(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function ua(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(ea),a=`${li}-${n||""}`,l=r||Zi,[s,c,u]=no(l,[qi,e],{salt:a,override:o,getComputedToken:ca,formatToken:oa,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:aa,ignore:la,preserve:sa}});return[l,u,n?c:"",s,i]}const da=t().createContext(void 0),fa=100,pa={Modal:fa,Drawer:fa,Popover:fa,Popconfirm:fa,Tooltip:fa,Tour:fa},ma={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function ga(e,n){const[,r]=ua(),o=t().useContext(da),i=function(e){return e in pa}(e);if(void 0!==n)return[n,n];let a=null!=o?o:0;return i?(a+=(o?0:r.zIndexPopupBase)+pa[e],a=Math.min(a,r.zIndexPopupBase+1e3)):a+=ma[e],[void 0===o?n:a,a]}const ha=()=>({height:0,opacity:0}),va=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ba=e=>({height:e?e.offsetHeight:0}),ya=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,wa=(e,t,n)=>void 0!==n?n:`${e}-${t}`,xa=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ha,onEnterStart:ha,onAppearActive:va,onEnterActive:va,onLeaveStart:ba,onLeaveActive:ha,onAppearEnd:ya,onEnterEnd:ya,onLeaveEnd:ya,motionDeadline:500}};function Ca(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,f=2*o-a,p=l,m=2*o-0,g=i,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const Sa=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Dr(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ea=8;function $a(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Ea:r}}function ka(e,t){return e?t:{}}function Oa(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Sa(e,t,o)),{"&:before":{background:t}})]},ka(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),ka(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),ka(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),ka(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Ia={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Pa={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ja=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ma(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Ia).forEach((e=>{const c=r&&Pa[e]||Ia[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,ja.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=$a({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),s}function Ra(e){return e&&t().isValidElement(e)&&e.type===t().Fragment}const Na=(e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function Aa(e,t){return Na(e,e,t)}function Fa(){}const Ta=e.createContext({}),za=()=>{const e=()=>{};return e.deprecated=Fa,e},La="anticon",Ba=e.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:La}),{Consumer:Da}=Ba,Ha=e.createContext(void 0),_a=t=>{let{children:n,size:r}=t;const o=e.useContext(Ha);return e.createElement(Ha.Provider,{value:r||o},n)},Va=Ha,Wa=e=>{const n=t().useContext(Va);return t().useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])};function qa(e){return V(e)||de(e)||q(e)||G()}function Ga(e,t){for(var n=e,r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Ga(e,t.slice(0,-1))?e:Xa(e,t,n,r)}function Ua(e){return Array.isArray(e)?[]:{}}var Ya="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Qa(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},el=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),tl=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},nl=e=>({outline:`${Dr(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),rl=e=>({"&:focus-visible":Object.assign({},nl(e))});function ol(e,t,n){return t=mt(t),vt(e,gt()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}const il=dt((function e(){ct(this,e)}));let al=function(e){function t(e){var n;return ct(this,t),(n=ol(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return pt(t,e),dt(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(il);const ll="CALC_UNIT";function sl(e){return"number"==typeof e?`${e}${ll}`:e}let cl=function(e){function t(e){var n;return ct(this,t),(n=ol(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=sl(e):"string"==typeof e&&(n.result=e),n}return pt(t,e),dt(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${sl(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${sl(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${ll}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(il);const ul="undefined"!=typeof CSSINJS_STATISTIC;let dl=!0;function fl(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),dl=!0,r}const pl={};function ml(){}const gl=(e,t)=>{const[n,r]=ua();return ni({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},hl=(e,t,n)=>{var r;return"function"==typeof n?n(fl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},vl=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function bl(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Array.isArray(t)?t:[t,t],[a]=i,l=i.join("-");return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const[s,c,u,d,f]=ua(),{getPrefixCls:p,iconPrefixCls:m,csp:g}=(0,e.useContext)(Ba),h=p(),v=f?"css":"js",b=(e=>{const t="css"===e?cl:al;return e=>new t(e)})(v),{max:y,min:w}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;nDr(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;nDr(e))).join(",")})`}}}(v),x={theme:s,token:d,hashId:u,nonce:()=>null==g?void 0:g.nonce,clientOnly:o.clientOnly,order:o.order||-999};ni(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",h]}),(()=>[{"&":el(d)}])),gl(m,g);const C=ni(Object.assign(Object.assign({},x),{path:[l,t,m]}),(()=>{if(!1===o.injectStyle)return[];const{token:e,flush:l}=(e=>{let t,n=e,r=ml;return ul&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(dl&&t.add(n),e[n])}),r=(e,n)=>{var r;pl[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=pl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(d),s=hl(a,c,r),p=`.${t}`,g=vl(a,c,s,{deprecatedTokens:o.deprecatedTokens});f&&Object.keys(s).forEach((e=>{s[e]=`var(${_r(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(a,f.prefix))})`}));const v=fl(e,{componentCls:p,prefixCls:t,iconCls:`.${m}`,antCls:`.${h}`,calc:b,max:y,min:w},f?s:g),x=n(v,{hashId:u,prefixCls:t,rootPrefixCls:h,iconPrefixCls:m});return l(a,g),[!1===o.resetStyle?null:tl(v,t,i),x]}));return[C,u]}}const yl=(e,t,n,r)=>{const o=bl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},wl=(n,r,o,i)=>{const a=bl(n,r,o,i),l=((n,r,o)=>{function i(e){return`${n}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const{unitless:a={},injectStyle:l=!0}=null!=o?o:{},s={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{s[i(e)]=a[e]}));const c=t=>{let{rootCls:a,cssVar:l}=t;const[,c]=ua();return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=void 0===s?"":s,u=(0,e.useContext)($r),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(fe(t.path),[r,c,p]),g=Ur(ri,m,(function(){var e=n(),t=X(Wr(e,r,{prefix:o,unitless:i,ignore:a,scope:c}),2),l=t[0],s=t[1];return[l,s,Jo(m,s),r]}),(function(e){var t=X(e,3)[2];Br&&Oe(t,{mark:Cr})}),(function(e){var t=X(e,3),n=t[1],o=t[2];if(n){var i=Ie(n,o,{mark:Cr,prepend:"queue",attachTo:f,priority:-999});i[Sr]=d,i.setAttribute(xr,r)}}))}({path:[n],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},aa),s),ignore:la,token:c,scope:a},(()=>{const e=hl(n,c,r),t=vl(n,c,e,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(e).forEach((e=>{t[i(e)]=t[e],delete t[e]})),t})),null};return e=>{const[,,,,r]=ua();return[o=>l&&r?t().createElement(t().Fragment,null,t().createElement(c,{rootCls:e,cssVar:r,component:n}),o):o,null==r?void 0:r.key]}})(Array.isArray(n)?n[0]:n,o,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e,t),[r,o]=l(t);return[r,n,o]}},xl=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Cl=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Sl=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},El=wl("Space",(e=>{const t=fl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Cl(t),Sl(t),xl(t)]}),(()=>({})),{resetStyle:!1});var $l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=e.useContext(kl),o=e.useMemo((()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return A()(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},Il=t=>{let{children:n}=t;return e.createElement(kl.Provider,{value:null},n)},Pl=t=>{var{children:n}=t,r=$l(t,["children"]);return e.createElement(kl.Provider,{value:r},n)},jl=e=>({animationDuration:e,animationFillMode:"both"}),Ml=e=>({animationDuration:e,animationFillMode:"both"}),Rl=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},jl(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ml(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Nl=new ii("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Al=new ii("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Fl=new ii("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tl=new ii("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zl=new ii("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ll=new ii("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bl=new ii("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Dl=new ii("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Hl=new ii("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),_l=new ii("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Vl=new ii("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Wl=new ii("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ql={zoom:{inKeyframes:Nl,outKeyframes:Al},"zoom-big":{inKeyframes:Fl,outKeyframes:Tl},"zoom-big-fast":{inKeyframes:Fl,outKeyframes:Tl},"zoom-left":{inKeyframes:Bl,outKeyframes:Dl},"zoom-right":{inKeyframes:Hl,outKeyframes:_l},"zoom-up":{inKeyframes:zl,outKeyframes:Ll},"zoom-down":{inKeyframes:Vl,outKeyframes:Wl}},Gl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ql[t];return[Rl(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Kl(e,t){return Xl.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Ul=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ja(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${Dr(e.calc(c).div(2).equal())} ${Dr(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Ea)}},[`${t}-content`]:{position:"relative"}}),Kl(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Oa(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Yl=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$a({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ca(fl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ql=function(e){const t=wl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=fl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Ul(o),Gl(e,"zoom-big-fast")]}),Yl,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Zl=Xl.map((e=>`${e}-inverse`));function Jl(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Xl.includes(e):[].concat(fe(Zl),fe(Xl)).includes(e)}(t),r=A()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const es=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:g=!0,title:h,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=t,x=!!g,[,C]=ua(),{getPopupContainer:S,getPrefixCls:E,direction:$}=e.useContext(Ba),k=za(),O=e.useRef(null),I=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>({forceAlign:I,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),I()}})));const[P,j]=mr(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),M=!h&&!v&&0!==h,R=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||Ma({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,g,b,C]),N=e.useMemo((()=>0===h?h:v||h||""),[v,h]),F=e.createElement(Il,null,"function"==typeof N?N():N),{getPopupContainer:T,placement:z="top",mouseEnterDelay:L=.1,mouseLeaveDelay:B=.1,overlayStyle:D,rootClassName:H}=t,_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;j(!M&&e),M||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:wa(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),G?Aa(X,{className:U}):X);return Y(e.createElement(da.Provider,{value:oe},ie))}));es._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:s}=e.useContext(Ba),c=s("tooltip",n),[u,d,f]=Ql(c),p=Jl(c,a),m=p.arrowStyle,g=Object.assign(Object.assign({},l),p.overlayStyle),h=A()(d,f,c,`${c}-pure`,`${c}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:h,style:m},e.createElement("div",{className:`${c}-arrow`}),e.createElement(F,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const ts=es;function ns(e,t){var n=H({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const rs=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},os=bl("Wave",(e=>[rs(e)]));function is(){is=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new j(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",h={};function v(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(M([])));C&&C!==n&&r.call(C,a)&&(w=C);var S=y.prototype=v.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==z(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=O(l,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function as(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ls(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){as(i,r,o,a,l,"next",e)}function l(e){as(i,r,o,a,l,"throw",e)}a(void 0)}))}}var ss,cs=H({},K),us=cs.version,ds=cs.render,fs=cs.unmountComponentAtNode;try{Number((us||"").split(".")[0])>=18&&(ss=cs.createRoot)}catch(AC){}function ps(e){var t=cs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===z(t)&&(t.usingClientEntryPoint=e)}var ms="__rc_react_root__";function gs(e,t){ss?function(e,t){ps(!0);var n=t[ms]||ss(t);ps(!1),n.render(e),t[ms]=n}(e,t):function(e,t){ds(e,t)}(e,t)}function hs(_x){return vs.apply(this,arguments)}function vs(){return(vs=ls(is().mark((function e(t){return is().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ms])||void 0===e||e.unmount(),delete t[ms]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bs(e){fs(e)}function ys(){return(ys=ls(is().mark((function e(t){return is().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ss){e.next=2;break}return e.abrupt("return",hs(t));case 2:bs(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ws(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const xs="ant-wave-target";function Cs(e){return Number.isNaN(e)?0:e}const Ss=t=>{const{className:n,target:r,component:o}=t,i=e.useRef(null),[a,l]=e.useState(null),[s,c]=e.useState([]),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,g]=e.useState(0),[h,v]=e.useState(0),[b,y]=e.useState(!1),w={left:u,top:f,width:m,height:h,borderRadius:s.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ws(t)?t:ws(n)?n:ws(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:Cs(-parseFloat(n))),p(t?r.offsetTop:Cs(-parseFloat(o))),g(r.offsetWidth),v(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:u}=e;c([i,a,u,s].map((e=>Cs(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),e.useEffect((()=>{if(r){const e=vn((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{vn.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(xs));return e.createElement(Nn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return ys.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},(t=>{let{className:r}=t;return e.createElement("div",{ref:i,className:A()(n,{"wave-quick":C},r),style:w})}))},Es=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),gs(e.createElement(Ss,Object.assign({},n,{target:t})),i)},$s=n=>{const{children:r,disabled:o,component:i}=n,{getPrefixCls:a}=(0,e.useContext)(Ba),l=(0,e.useRef)(null),s=a("wave"),[,c]=os(s),u=function(t,n,r){const{wave:o}=e.useContext(Ba),[,i,a]=ua(),l=Ot((e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${xs}`)||l,{showEffect:c}=o||{};(c||Es)(s,{className:n,token:i,component:r,event:e,hashId:a})})),s=e.useRef();return e=>{vn.cancel(s.current),s.current=vn((()=>{l(e)}))}}(l,A()(s,c),i);return t().useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!qn(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),t().isValidElement(r)?Aa(r,{ref:ce(r)?le(r.ref,l):l}):null!=r?r:null},ks=e.createContext(!1),Os=t=>{let{children:n,disabled:r}=t;const o=e.useContext(ks);return e.createElement(ks.Provider,{value:null!=r?r:o},n)},Is=ks;const Ps=e.createContext(void 0),js=/^[\u4e00-\u9fa5]{2}$/,Ms=js.test.bind(js);function Rs(e){return"danger"===e?{danger:!0}:{type:e}}function Ns(e){return"string"==typeof e}function As(e){return"text"===e||"link"===e}const Fs=(0,e.forwardRef)(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=A()(`${a}-icon`,r);return t().createElement("span",{ref:n,className:l,style:o},i)})),Ts=Fs,zs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Ls=(0,e.createContext)({});function Bs(e){return"object"===z(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===z(e.icon)||"function"==typeof e.icon)}function Ds(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function Hs(e,n,r){return r?t().createElement(e.tag,H(H({key:n},Ds(e.attrs)),r),(e.children||[]).map((function(t,r){return Hs(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t().createElement(e.tag,H({key:n},Ds(e.attrs)),(e.children||[]).map((function(t,r){return Hs(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function _s(e){return Bi(e)[0]}function Vs(e){return e?Array.isArray(e)?e:[e]:[]}var Ws=["icon","className","onClick","style","primaryColor","secondaryColor"],qs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Gs=function(t){var n,r,o,i,a,l,s,c=t.icon,u=t.className,d=t.onClick,f=t.style,p=t.primaryColor,m=t.secondaryColor,g=_(t,Ws),h=e.useRef(),v=qs;if(p&&(v={primaryColor:p,secondaryColor:m||_s(p)}),n=h,r=(0,e.useContext)(Ls),o=r.csp,i=r.prefixCls,a="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(a=a.replace(/anticon/g,i)),(0,e.useEffect)((function(){var e=kt(n.current);Ie(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),l=Bs(c),s="icon should be icon definiton, but got ".concat(c),re(l,"[@ant-design/icons] ".concat(s)),!Bs(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=H(H({},b),{},{icon:b.icon(v.primaryColor,v.secondaryColor)})),Hs(b.icon,"svg-".concat(b.name),H(H({className:u,onClick:d,style:f,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:h}))};Gs.displayName="IconReact",Gs.getTwoToneColors=function(){return H({},qs)},Gs.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;qs.primaryColor=t,qs.secondaryColor=n||_s(t),qs.calculated=!!n};const Xs=Gs;function Ks(e){var t=X(Vs(e),2),n=t[0],r=t[1];return Xs.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Us=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ks(Vi.primary);var Ys=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,s=t.onClick,c=t.twoToneColor,u=_(t,Us),d=e.useContext(Ls),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,g=A()(m,p,B(B({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),h=l;void 0===h&&s&&(h=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=X(Vs(c),2),y=b[0],w=b[1];return e.createElement("span",T({role:"img","aria-label":o.name},u,{ref:n,tabIndex:h,onClick:s,className:g}),e.createElement(Xs,{icon:o,primaryColor:y,secondaryColor:w,style:v}))}));Ys.displayName="AntdIcon",Ys.getTwoToneColor=function(){var e=Xs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ys.setTwoToneColor=Ks;const Qs=Ys;var Zs=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:zs}))};const Js=e.forwardRef(Zs),ec=(0,e.forwardRef)(((e,n)=>{let{prefixCls:r,className:o,style:i,iconClassName:a}=e;const l=A()(`${r}-loading-icon`,o);return t().createElement(Ts,{prefixCls:r,className:l,style:i,ref:n},t().createElement(Js,{className:a}))})),tc=()=>({width:0,opacity:0,transform:"scale(0)"}),nc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),rc=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t().createElement(ec,{prefixCls:n,className:i,style:a}):t().createElement(Nn,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:tc,onAppearActive:nc,onEnterStart:tc,onEnterActive:nc,onLeaveStart:nc,onLeaveActive:tc},((e,r)=>{let{className:o,style:l}=e;return t().createElement(ec,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},oc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ic=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},oc(`${t}-primary`,o),oc(`${t}-danger`,i)]}},ac=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return fl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},lc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Qi(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Qi(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Qi(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},sc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Dr(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},rl(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},cc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),uc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),dc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),fc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),pc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},cc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),mc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},fc(e))}),gc=e=>Object.assign({},mc(e)),hc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),vc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),cc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),pc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},cc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),mc(e))}),bc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),cc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),pc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},cc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),pc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mc(e))}),yc=e=>Object.assign(Object.assign({},vc(e)),{borderStyle:"dashed"}),wc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},cc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),hc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},cc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),hc(e))}),xc=e=>Object.assign(Object.assign(Object.assign({},cc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),hc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},hc(e)),cc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Cc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:vc(e),[`${t}-primary`]:bc(e),[`${t}-dashed`]:yc(e),[`${t}-link`]:wc(e),[`${t}-text`]:xc(e),[`${t}-ghost`]:pc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Sc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${Dr(c)} ${Dr(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:uc(e)},{[`${n}${n}-round${t}`]:dc(e)}]},Ec=e=>{const t=fl(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Sc(t,e.componentCls)},$c=e=>{const t=fl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Sc(t,`${e.componentCls}-sm`)},kc=e=>{const t=fl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Sc(t,`${e.componentCls}-lg`)},Oc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ic=wl("Button",(e=>{const t=ac(e);return[sc(t),Ec(t),$c(t),kc(t),Oc(t),Cc(t),ic(t)]}),lc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Pc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function jc(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Mc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Pc(e,r,t)),jc(n,r,t))}}function Rc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Nc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Rc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Ac=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Dr(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Dr(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Fc=yl(["Button","compact"],(e=>{const t=ac(e);return[Mc(t),Nc(t),Ac(t)]}),lc);const Tc=(n,r)=>{var o,i;const{loading:a=!1,prefixCls:l,type:s,danger:c,shape:u="default",size:d,styles:f,disabled:p,className:m,rootClassName:g,children:h,icon:v,ghost:b=!1,block:y=!1,htmlType:w="button",classNames:x,style:C={}}=n,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ofunction(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[L,B]=(0,e.useState)(z.loading),[D,H]=(0,e.useState)(!1),_=le(r,(0,e.createRef)()),V=1===e.Children.count(h)&&!v&&!As(E);(0,e.useEffect)((()=>{let e=null;return z.delay>0?e=setTimeout((()=>{e=null,B(!0)}),z.delay):B(z.loading),function(){e&&(clearTimeout(e),e=null)}}),[z]),(0,e.useEffect)((()=>{if(!_||!_.current||!1===k)return;const e=_.current.textContent;V&&Ms(e)?D||H(!0):D&&H(!1)}),[_]);const W=e=>{const{onClick:t}=n;L||F?e.preventDefault():null==t||t(e)},q=!1!==k,{compactSize:G,compactItemClassnames:X}=Ol(P,O),K=Wa((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:G)&&void 0!==t?t:T)&&void 0!==n?n:e})),U=K&&{large:"lg",small:"sm",middle:void 0}[K]||"",Y=L?"loading":v,Q=ns(S,["navigate"]),Z=A()(P,M,R,{[`${P}-${u}`]:"default"!==u&&u,[`${P}-${E}`]:E,[`${P}-${U}`]:U,[`${P}-icon-only`]:!h&&0!==h&&!!Y,[`${P}-background-ghost`]:b&&!As(E),[`${P}-loading`]:L,[`${P}-two-chinese-chars`]:D&&q&&!L,[`${P}-block`]:y,[`${P}-dangerous`]:!!c,[`${P}-rtl`]:"rtl"===O},X,m,g,null==I?void 0:I.className),J=Object.assign(Object.assign({},null==I?void 0:I.style),C),ee=A()(null==x?void 0:x.icon,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.icon),te=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.icon)||{}),ne=v&&!L?t().createElement(Ts,{prefixCls:P,className:ee,style:te},v):t().createElement(rc,{existIcon:!!v,prefixCls:P,loading:!!L}),re=h||0===h?function(e,n){let r=!1;const o=[];return t().Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t().Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Ns(e.type)&&Ms(e.props.children)?Aa(e,{children:e.props.children.split("").join(r)}):Ns(e)?Ms(e)?t().createElement("span",null,e.split("").join(r)):t().createElement("span",null,e):Ra(e)?t().createElement("span",null,e):e}(e,n)))}(h,V&&q):null;if(void 0!==Q.href)return j(t().createElement("a",Object.assign({},Q,{className:A()(Z,{[`${P}-disabled`]:F}),href:F?void 0:Q.href,style:J,onClick:W,ref:_,tabIndex:F?-1:0}),ne,re));let oe=t().createElement("button",Object.assign({},S,{type:w,className:Z,style:J,onClick:W,disabled:F,ref:_}),ne,re,!!X&&t().createElement(Fc,{key:"compact",prefixCls:P}));return As(E)||(oe=t().createElement($s,{component:"Button",disabled:!!L},oe)),j(oe)},zc=(0,e.forwardRef)(Tc);zc.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Ba),{prefixCls:o,size:i,className:a}=t,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked;var Dc="RC_FORM_INTERNAL_HOOKS",Hc=function(){re(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const _c=e.createContext({getFieldValue:Hc,getFieldsValue:Hc,getFieldError:Hc,getFieldWarning:Hc,getFieldsError:Hc,isFieldsTouched:Hc,isFieldTouched:Hc,isFieldValidating:Hc,isFieldsValidating:Hc,resetFields:Hc,setFields:Hc,setFieldValue:Hc,setFieldsValue:Hc,validateFields:Hc,submit:Hc,getInternalHooks:function(){return Hc(),{dispatch:Hc,initEntityValue:Hc,registerField:Hc,useSubscribe:Hc,setInitialValues:Hc,destroyForm:Hc,setCallbacks:Hc,registerWatch:Hc,getFields:Hc,setValidateMessages:Hc,setPreserve:Hc,getInitialValue:Hc}}}),Vc=e.createContext(null);function Wc(e){return null==e?[]:Array.isArray(e)?e:[e]}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return e}function Jc(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function eu(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,lu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,su={integer:function(e){return su.number(e)&&parseInt(e,10)===e},float:function(e){return su.number(e)&&!su.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!su.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(au)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ou)return ou;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var c=s.v4().source,u=s.v6().source;return ou=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(lu)}},cu="enum",uu=iu,du=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Zc(o.messages.whitespace,e.fullField))},fu=function(e,t,n,r,o){if(e.required&&void 0===t)iu(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?su[i](t)||r.push(Zc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Zc(o.messages.types[i],e.fullField,e.type))}},pu=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(Zc(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?r.push(Zc(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&r.push(Zc(o.messages[c].range,e.fullField,e.min,e.max))},mu=function(e,t,n,r,o){e[cu]=Array.isArray(e[cu])?e[cu]:[],-1===e[cu].indexOf(t)&&r.push(Zc(o.messages[cu],e.fullField,e[cu].join(", ")))},gu=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Zc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Zc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},hu=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,i)&&!e.required)return n();uu(e,t,r,a,o,i),Jc(t,i)||fu(e,t,r,a,o)}n(a)},vu={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,"string")&&!e.required)return n();uu(e,t,r,i,o,"string"),Jc(t,"string")||(fu(e,t,r,i,o),pu(e,t,r,i,o),gu(e,t,r,i,o),!0===e.whitespace&&du(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&fu(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&(fu(e,t,r,i,o),pu(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&fu(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),Jc(t)||fu(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&(fu(e,t,r,i,o),pu(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&(fu(e,t,r,i,o),pu(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();uu(e,t,r,i,o,"array"),null!=t&&(fu(e,t,r,i,o),pu(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&fu(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o),void 0!==t&&mu(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,"string")&&!e.required)return n();uu(e,t,r,i,o),Jc(t,"string")||gu(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,"date")&&!e.required)return n();var a;uu(e,t,r,i,o),Jc(t,"date")||(a=t instanceof Date?t:new Date(t),fu(e,a,r,i,o),a&&pu(e,a.getTime(),r,i,o))}n(i)},url:hu,hex:hu,email:hu,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;uu(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t)&&!e.required)return n();uu(e,t,r,i,o)}n(i)}};function bu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var yu=bu(),wu=function(){function e(e){this.rules=null,this._messages=yu,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=ru(bu(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===yu&&(s=bu()),ru(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=qc({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:qc({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))}))}));var u={};return function(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);eu(a,n,(function(e){return r(e),e.length?i(new tu(e,Qc(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new tu(u,Qc(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?eu(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(c,a,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function s(e,t){return qc({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(nu(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(l){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(nu(o,i)):a.error&&(d=[a.error(o,Zc(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=qc({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),m.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),c(e.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Au(t,e,n)}))}function Au(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Fu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===z(t.target)&&e in t.target?t.target[e]:t}function Tu(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(fe(e.slice(0,n)),[o],fe(e.slice(n,t)),fe(e.slice(t+1,r))):i<0?[].concat(fe(e.slice(0,t)),fe(e.slice(t+1,n+1)),[o],fe(e.slice(n+1,r))):e}var zu=["name"],Lu=[];function Bu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Du=function(t){pt(r,t);var n=bt(r);function r(t){var o;return ct(this,r),B(ht(o=n.call(this,t)),"state",{resetCount:0}),B(ht(o),"cancelRegisterFunc",null),B(ht(o),"mounted",!1),B(ht(o),"touched",!1),B(ht(o),"dirty",!1),B(ht(o),"validatePromise",void 0),B(ht(o),"prevValidating",void 0),B(ht(o),"errors",Lu),B(ht(o),"warnings",Lu),B(ht(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Mu(r)),o.cancelRegisterFunc=null})),B(ht(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(fe(void 0===n?[]:n),fe(t)):[]})),B(ht(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),B(ht(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),B(ht(o),"metaCache",null),B(ht(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=H(H({},o.getMeta()),{},{destroy:e});hr(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),B(ht(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,s=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&Nu(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Lu,o.warnings=Lu,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Lu,o.warnings=Lu,o.triggerMetaEvent(),null==s||s(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Lu),"warnings"in m&&(o.warnings=m.warnings||Lu),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Nu(t,u,!0))return void o.reRender();if(i&&!u.length&&Bu(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Mu).some((function(e){return Nu(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Bu(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),B(ht(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(ls(is().mark((function r(){var a,l,c,u,d,f,p;return is().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Wc(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===s){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Iu(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lu;if(o.validatePromise===s){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Lu:o;t?r.push.apply(r,fe(i)):n.push.apply(n,fe(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=s,o.dirty=!0,o.errors=Lu,o.warnings=Lu,o.triggerMetaEvent(),o.reRender()),s})),B(ht(o),"isFieldValidating",(function(){return!!o.validatePromise})),B(ht(o),"isFieldTouched",(function(){return o.touched})),B(ht(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Dc).getInitialValue)(o.getNamePath())})),B(ht(o),"getErrors",(function(){return o.errors})),B(ht(o),"getWarnings",(function(){return o.warnings})),B(ht(o),"isListField",(function(){return o.props.isListField})),B(ht(o),"isList",(function(){return o.props.isList})),B(ht(o),"isPreserve",(function(){return o.props.preserve})),B(ht(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),B(ht(o),"getOnlyChild",(function(t){if("function"==typeof t){var n=o.getMeta();return H(H({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=Te(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),B(ht(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Ga(e||t(!0),n)})),B(ht(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,s=t.getValueProps,c=t.fieldContext,u=void 0!==r?r:c.validateTrigger,d=o.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,m=f(Dc).dispatch,g=o.getValue(),h=s||function(e){return B({},l,e)},v=e[n],b=h(g),y=H(H({},e),b);return y[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(u.keys=[].concat(fe(u.keys.slice(0,t)),[u.id],fe(u.keys.slice(t))),i([].concat(fe(n.slice(0,t)),[e],fe(n.slice(t))))):(u.keys=[].concat(fe(u.keys),[u.id]),i([].concat(fe(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Tu(u.keys,e,t),i(Tu(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}})),c,t)}))))};var Vu="__@field_split__";function Wu(e){return e.map((function(e){return"".concat(z(e),":").concat(e)})).join(Vu)}var qu=function(){function e(){ct(this,e),B(this,"kvs",new Map)}return dt(e,[{key:"set",value:function(e,t){this.kvs.set(Wu(e),t)}},{key:"get",value:function(e){return this.kvs.get(Wu(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Wu(e))}},{key:"map",value:function(e){return fe(this.kvs.entries()).map((function(t){var n=X(t,2),r=n[0],o=n[1],i=r.split(Vu);return e({key:i.map((function(e){var t=X(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const Gu=qu;var Xu=["name"],Ku=dt((function e(t){var n=this;ct(this,e),B(this,"formHooked",!1),B(this,"forceRootUpdate",void 0),B(this,"subscribable",!0),B(this,"store",{}),B(this,"fieldEntities",[]),B(this,"initialValues",{}),B(this,"callbacks",{}),B(this,"validateMessages",null),B(this,"preserve",null),B(this,"lastValidatePromise",null),B(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),B(this,"getInternalHooks",(function(e){return e===Dc?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(re(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),B(this,"useSubscribe",(function(e){n.subscribable=e})),B(this,"prevWithoutPreserves",null),B(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Qa(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Ka(o,n,Ga(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),B(this,"destroyForm",(function(){var e=new Gu;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),B(this,"getInitialValue",(function(e){var t=Ga(n.initialValues,e);return e.length?Qa(t):t})),B(this,"setCallbacks",(function(e){n.callbacks=e})),B(this,"setValidateMessages",(function(e){n.validateMessages=e})),B(this,"setPreserve",(function(e){n.preserve=e})),B(this,"watchList",[]),B(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),B(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),B(this,"timeoutId",null),B(this,"warningUnhooked",(function(){})),B(this,"updateStore",(function(e){n.store=e})),B(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),B(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Gu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),B(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Mu(e);return t.get(n)||{INVALIDATE_NAME_PATH:Mu(e)}}))})),B(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===z(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)})),Ru(n.store,l.map(Mu))})),B(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Mu(e);return Ga(n.store,t)})),B(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Mu(e[n]),errors:[],warnings:[]}}))})),B(this,"getFieldError",(function(e){n.warningUnhooked();var t=Mu(e);return n.getFieldsError([t])[0].errors})),B(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Mu(e);return n.getFieldsError([t])[0].warnings})),B(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new Gu,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,fe(fe(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))re(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)re(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Ka(n.store,o,fe(i)[0].value))}}}}))})),B(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Qa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Mu);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Ka(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),B(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=_(e,Xu),a=Mu(o);r.push(a),"value"in i&&n.updateStore(Ka(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),B(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=H(H({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),B(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Ga(n.store,r)&&n.updateStore(Ka(n.store,r,t))}})),B(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),B(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Au(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Ka(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),B(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),B(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=H(H({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),B(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(fe(r))}),r})),B(this,"updateValue",(function(e,t){var r=Mu(e),o=n.store;n.updateStore(Ka(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Ru(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(fe(i)))})),B(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Qa(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),B(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),B(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Gu;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Mu(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),B(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Gu;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Nu(e,n)}));a.length&&r(a,o)}})),B(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Mu):[],l=[],s=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||Nu(a,t,d)){var r=e.validateRules(H({validateMessages:H(H({},Cu),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,fe(n)):r.push.apply(r,fe(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(s))}));return n.triggerOnFieldsChange(g),m})),B(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const Uu=function(t){var n=e.useRef(),r=X(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new Ku((function(){r({})}));n.current=o.getForm()}return[n.current]};var Yu=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Qu=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(Yu),l=e.useRef({});return e.createElement(Yu.Provider,{value:H(H({},a),{},{validateMessages:H(H({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=H(H({},l.current),{},B({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=H({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const Zu=Yu;var Ju=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const ed=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,f=t.validateTrigger,p=void 0===f?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,h=t.onFinish,v=t.onFinishFailed,b=_(t,Ju),y=e.useContext(Zu),w=X(Uu(a),1)[0],x=w.getInternalHooks(Dc),C=x.useSubscribe,S=x.setInitialValues,E=x.setCallbacks,$=x.setValidateMessages,k=x.setPreserve,O=x.destroyForm;e.useImperativeHandle(n,(function(){return w})),e.useEffect((function(){return y.registerForm(r,w),function(){y.unregisterForm(r)}}),[y,w,r]),$(H(H({},y.validateMessages),d)),E({onValuesChange:m,onFieldsChange:function(e){if(y.triggerFormChange(r,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{}}),ad=e.createContext(null),ld=t=>{const n=ns(t,["prefixCls"]);return e.createElement(Qu,Object.assign({},n))},sd=e.createContext({prefixCls:""}),cd=e.createContext({}),ud=t=>{let{children:n,status:r,override:o}=t;const i=(0,e.useContext)(cd),a=(0,e.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,i]);return e.createElement(cd.Provider,{value:a},n)},dd=(0,e.createContext)(void 0),fd=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),pd=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fd(fl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),md=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),gd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},md(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),hd=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},md(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},pd(e))}),gd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),gd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),vd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),bd=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},vd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),vd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},pd(e))}})}),yd=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),wd=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),xd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Cd=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},pd(e))}),xd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),xd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Sd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Ed=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Sd(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Sd(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$d=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Dr(t)} ${Dr(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},kd=e=>({padding:`${Dr(e.paddingBlockSM)} ${Dr(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Od=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Dr(e.paddingBlock)} ${Dr(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},$d(e)),"&-sm":Object.assign({},kd(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Id=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},$d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},kd(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Dr(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Dr(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Dr(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Dr(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Dr(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Pd=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ja(e)),Od(e)),hd(e)),Cd(e)),yd(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},jd=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Dr(e.inputAffixPadding)}`}}}},Md=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Od(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),jd(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Rd=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ja(e)),Id(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},bd(e)),Ed(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Nd=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Ad=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Fd=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Td=wl("Input",(e=>{const t=fl(e,function(e){return fl(e,{inputAffixPadding:e.paddingXXS})}(e));return[Pd(t),Ad(t),Md(t),Rd(t),Nd(t),Fd(t),Mc(t)]}),(e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}}));function zd(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function Ld(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=zd(t,e,r)):n(o=zd(t,e,""))}}const Bd=function(n){var r,o,i=n.inputElement,a=n.children,l=n.prefixCls,s=n.prefix,c=n.suffix,u=n.addonBefore,d=n.addonAfter,f=n.className,p=n.style,m=n.disabled,g=n.readOnly,h=n.focused,v=n.triggerFocus,b=n.allowClear,y=n.value,w=n.handleReset,x=n.hidden,C=n.classes,S=n.classNames,E=n.dataAttrs,$=n.styles,k=n.components,O=null!=a?a:i,I=(null==k?void 0:k.affixWrapper)||"span",P=(null==k?void 0:k.groupWrapper)||"span",j=(null==k?void 0:k.wrapper)||"span",M=(null==k?void 0:k.groupAddon)||"span",R=(0,e.useRef)(null),N=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(n),F=(0,e.cloneElement)(O,{value:y,className:A()(O.props.className,!N&&(null==S?void 0:S.variant))||null});if(N){var L,D=null;if(b){var _,V=!m&&!g&&y,W="".concat(l,"-clear-icon"),q="object"===z(b)&&null!=b&&b.clearIcon?b.clearIcon:"✖";D=t().createElement("span",{onClick:w,onMouseDown:function(e){return e.preventDefault()},className:A()(W,(_={},B(_,"".concat(W,"-hidden"),!V),B(_,"".concat(W,"-has-suffix"),!!c),_)),role:"button",tabIndex:-1},q)}var G="".concat(l,"-affix-wrapper"),X=A()(G,(B(L={},"".concat(l,"-disabled"),m),B(L,"".concat(G,"-disabled"),m),B(L,"".concat(G,"-focused"),h),B(L,"".concat(G,"-readonly"),g),B(L,"".concat(G,"-input-with-clear-btn"),c&&b&&y),L),null==C?void 0:C.affixWrapper,null==S?void 0:S.affixWrapper,null==S?void 0:S.variant),K=(c||b)&&t().createElement("span",{className:A()("".concat(l,"-suffix"),null==S?void 0:S.suffix),style:null==$?void 0:$.suffix},D,c);F=t().createElement(I,T({className:X,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=R.current)&&void 0!==t&&t.contains(e.target)&&(null==v||v())}},null==E?void 0:E.affixWrapper,{ref:R}),s&&t().createElement("span",{className:A()("".concat(l,"-prefix"),null==S?void 0:S.prefix),style:null==$?void 0:$.prefix},s),F,K)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(n)){var U="".concat(l,"-group"),Y="".concat(U,"-addon"),Q="".concat(U,"-wrapper"),Z=A()("".concat(l,"-wrapper"),U,null==C?void 0:C.wrapper,null==S?void 0:S.wrapper),J=A()(Q,B({},"".concat(Q,"-disabled"),m),null==C?void 0:C.group,null==S?void 0:S.groupWrapper);F=t().createElement(P,{className:J},t().createElement(j,{className:Z},u&&t().createElement(M,{className:Y},u),F,d&&t().createElement(M,{className:Y},d)))}return t().cloneElement(F,{className:A()(null===(r=F.props)||void 0===r?void 0:r.className,f)||null,style:H(H({},null===(o=F.props)||void 0===o?void 0:o.style),p),hidden:x})};var Dd=["show"];function Hd(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===z(n)&&n.formatter?n.formatter:!!n);var r=e=H(H({},e),t),o=r.show,i=_(r,Dd);return H(H({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var _d=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Vd=(0,e.forwardRef)((function(n,r){var o=n.autoComplete,i=n.onChange,a=n.onFocus,l=n.onBlur,s=n.onPressEnter,c=n.onKeyDown,u=n.prefixCls,d=void 0===u?"rc-input":u,f=n.disabled,p=n.htmlSize,m=n.className,g=n.maxLength,h=n.suffix,v=n.showCount,b=n.count,y=n.type,w=void 0===y?"text":y,x=n.classes,C=n.classNames,S=n.styles,E=n.onCompositionStart,$=n.onCompositionEnd,k=_(n,_d),O=X((0,e.useState)(!1),2),I=O[0],P=O[1],j=(0,e.useRef)(!1),M=(0,e.useRef)(null),R=function(e){M.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(M.current,e)},N=X(mr(n.defaultValue,{value:n.value}),2),F=N[0],z=N[1],L=null==F?"":String(F),D=X((0,e.useState)(null),2),V=D[0],W=D[1],q=Hd(b,v),G=q.max||g,K=q.strategy(L),U=!!G&&K>G;(0,e.useImperativeHandle)(r,(function(){return{focus:R,blur:function(){var e;null===(e=M.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=M.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=M.current)||void 0===e||e.select()},input:M.current}})),(0,e.useEffect)((function(){P((function(e){return(!e||!f)&&e}))}),[f]);var Y=function(e,t,n){var r,o,a=t;if(!j.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max)t!==(a=q.exceedFormatter(t,{max:q.max}))&&W([(null===(r=M.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=M.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;z(a),M.current&&Ld(M.current,e,i,a)};(0,e.useEffect)((function(){var e;V&&(null===(e=M.current)||void 0===e||e.setSelectionRange.apply(e,fe(V)))}),[V]);var Q,Z=U&&"".concat(d,"-out-of-range");return t().createElement(Bd,T({},k,{prefixCls:d,className:A()(m,Z),handleReset:function(e){z(""),R(),M.current&&Ld(M.current,e,i)},value:L,focused:I,triggerFocus:R,suffix:function(){var e=Number(G)>0;if(h||q.show){var n=q.showFormatter?q.showFormatter({value:L,count:K,maxLength:G}):"".concat(K).concat(e?" / ".concat(G):"");return t().createElement(t().Fragment,null,q.show&&t().createElement("span",{className:A()("".concat(d,"-show-count-suffix"),B({},"".concat(d,"-show-count-has-suffix"),!!h),null==C?void 0:C.count),style:H({},null==S?void 0:S.count)},n),h)}return null}(),disabled:f,classes:x,classNames:C,styles:S}),(Q=ns(n,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),t().createElement("input",T({autoComplete:o},Q,{onChange:function(e){Y(e,e.target.value,{source:"change"})},onFocus:function(e){P(!0),null==a||a(e)},onBlur:function(e){P(!1),null==l||l(e)},onKeyDown:function(e){s&&"Enter"===e.key&&s(e),null==c||c(e)},className:A()(d,B({},"".concat(d,"-disabled"),f),null==C?void 0:C.input),style:null==S?void 0:S.input,ref:M,size:p,type:w,onCompositionStart:function(e){j.current=!0,null==E||E(e)},onCompositionEnd:function(e){j.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==$||$(e)}}))))}));const Wd=Vd,qd={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Gd=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:qd}))};const Xd=e.forwardRef(Gd),Kd=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t().createElement(Xd,null)}),n};function Ud(e,t,n){return A()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Yd=(e,t)=>t||e,Qd=e=>{const[,,,,t]=ua();return t?`${e}-css-var`:""},Zd=["outlined","borderless","filled"],Jd=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const r=(0,e.useContext)(dd);let o;return o=void 0!==t?t:!1===n?"borderless":null!=r?r:"outlined",[o,Zd.includes(o)]};function ef(t,n){const r=(0,e.useRef)([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,e.useEffect)((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}const tf=(0,e.forwardRef)(((n,r)=>{var o;const{prefixCls:i,bordered:a=!0,status:l,size:s,disabled:c,onBlur:u,onFocus:d,suffix:f,allowClear:p,addonAfter:m,addonBefore:g,className:h,style:v,styles:b,rootClassName:y,onChange:w,classNames:x,variant:C}=n,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=s?s:N)&&void 0!==t?t:e})),z=t().useContext(Is),L=null!=c?c:z,{status:B,hasFeedback:D,feedbackIcon:H}=(0,e.useContext)(cd),_=Yd(B,l),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(n)||!!D;(0,e.useRef)(V);const W=ef(I,!0),q=(D||f)&&t().createElement(t().Fragment,null,f,D&&H),G=Kd(null!=p?p:null==k?void 0:k.allowClear),[X,K]=Jd(C,a);return j(t().createElement(Wd,Object.assign({ref:le(r,I),prefixCls:O,autoComplete:null==k?void 0:k.autoComplete},S,{disabled:L,onBlur:e=>{W(),null==u||u(e)},onFocus:e=>{W(),null==d||d(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),v),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),b),suffix:q,allowClear:G,className:A()(h,y,R,P,F,null==k?void 0:k.className),onChange:e=>{W(),null==w||w(e)},addonAfter:m&&t().createElement(Il,null,t().createElement(ud,{override:!0,status:!0},m)),addonBefore:g&&t().createElement(Il,null,t().createElement(ud,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},x),null==k?void 0:k.classNames),{input:A()({[`${O}-sm`]:"small"===T,[`${O}-lg`]:"large"===T,[`${O}-rtl`]:"rtl"===$},null==x?void 0:x.input,null===(o=null==k?void 0:k.classNames)||void 0===o?void 0:o.input,M),variant:A()({[`${O}-${X}`]:K},Ud(O,_)),affixWrapper:A()({[`${O}-affix-wrapper-sm`]:"small"===T,[`${O}-affix-wrapper-lg`]:"large"===T,[`${O}-affix-wrapper-rtl`]:"rtl"===$},M),wrapper:A()({[`${O}-group-rtl`]:"rtl"===$},M),groupWrapper:A()({[`${O}-group-wrapper-sm`]:"small"===T,[`${O}-group-wrapper-lg`]:"large"===T,[`${O}-group-wrapper-rtl`]:"rtl"===$,[`${O}-group-wrapper-${X}`]:K},Ud(`${O}-group-wrapper`,_,D),M)})})))})),nf=tf,rf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var of=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:rf}))};const af=e.forwardRef(of),lf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var sf=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:lf}))};const cf=e.forwardRef(sf);const uf=t=>t?e.createElement(cf,null):e.createElement(af,null),df={click:"onClick",hover:"onMouseOver"},ff=e.forwardRef(((t,n)=>{const{visibilityToggle:r=!0}=t,o="object"==typeof r&&void 0!==r.visible,[i,a]=(0,e.useState)((()=>!!o&&r.visible)),l=(0,e.useRef)(null);e.useEffect((()=>{o&&a(r.visible)}),[o,r]);const s=ef(l),c=()=>{const{disabled:e}=t;e||(i&&s(),a((e=>{var t;const n=!e;return"object"==typeof r&&(null===(t=r.onVisibleChange)||void 0===t||t.call(r,n)),n})))},{className:u,prefixCls:d,inputPrefixCls:f,size:p}=t,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{action:r="click",iconRender:o=uf}=t,a=df[r]||"",l=o(i),s={[a]:c,className:`${n}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(l)?l:e.createElement("span",null,l),s)})(v),y=A()(v,u,{[`${v}-${p}`]:!!p}),w=Object.assign(Object.assign({},ns(m,["suffix","iconRender","visibilityToggle"])),{type:i?"text":"password",className:y,prefixCls:h,suffix:b});return p&&(w.size=p),e.createElement(nf,Object.assign({ref:le(n,l)},w))})),pf=ff,mf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var gf=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:mf}))};const hf=e.forwardRef(gf);const vf=e.forwardRef(((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g}=t,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),E=e.useRef(null),$=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;f&&f(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof s?e.createElement(hf,null):null,I=`${w}-button`;let P;const j=s||{},M=j.type&&!0===j.type.__ANT_BUTTON;P=M||"button"===j.type?Aa(j,Object.assign({onMouseDown:$,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},M?{className:I,size:S}:{})):e.createElement(Lc,{className:I,type:s?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:$,onClick:k,loading:u,icon:O},s),c&&(P=[P,Aa(c,{key:"addonAfter"})]);const R=A()(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!s},i);return e.createElement(nf,Object.assign({ref:le(E,n),onPressEnter:e=>{y.current||u||k(e)}},h,{size:S,onCompositionStart:e=>{y.current=!0,null==m||m(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:x,addonAfter:P,suffix:l,onChange:e=>{e&&e.target&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),p&&p(e)},className:R,disabled:d}))})),bf=vf;var yf,wf=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],xf={};var Cf=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Sf=e.forwardRef((function(t,n){var r=t,o=r.prefixCls,i=(r.onPressEnter,r.defaultValue),a=r.value,l=r.autoSize,s=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange,p=(r.onInternalAutoSize,_(r,Cf)),m=X(mr(i,{value:a,postState:function(e){return null!=e?e:""}}),2),g=m[0],h=m[1],v=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:v.current}}));var b=X(e.useMemo((function(){return l&&"object"===z(l)?[l.minRows,l.maxRows]:[]}),[l]),2),y=b[0],w=b[1],x=!!l,C=X(e.useState(2),2),S=C[0],E=C[1],$=X(e.useState(),2),k=$[0],O=$[1],I=function(){E(0)};he((function(){x&&I()}),[a,y,w,x]),he((function(){if(0===S)E(1);else if(1===S){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;yf||((yf=document.createElement("textarea")).setAttribute("tab-index","-1"),yf.setAttribute("aria-hidden","true"),document.body.appendChild(yf)),e.getAttribute("wrap")?yf.setAttribute("wrap",e.getAttribute("wrap")):yf.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&xf[n])return xf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:wf.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(xf[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;yf.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),yf.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=yf.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){yf.value=" ";var p=yf.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:c,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(v.current,!1,y,w);E(2),O(e)}else!function(){try{if(document.activeElement===v.current){var e=v.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;v.current.setSelectionRange(t,n),v.current.scrollTop=r}}catch(e){}}()}),[S]);var P=e.useRef(),j=function(){vn.cancel(P.current)};e.useEffect((function(){return j}),[]);var M=x?k:null,R=H(H({},u),M);return 0!==S&&1!==S||(R.overflowY="hidden",R.overflowX="hidden"),e.createElement(Et,{onResize:function(e){2===S&&(null==s||s(e),l&&(j(),P.current=vn((function(){I()}))))},disabled:!(l||s)},e.createElement("textarea",T({},p,{ref:v,style:R,className:A()(o,c,B({},"".concat(o,"-disabled"),d)),disabled:d,value:g,onChange:function(e){h(e.target.value),null==f||f(e)}})))}));const Ef=Sf;var $f=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],kf=t().forwardRef((function(n,r){var o,i,a=n.defaultValue,l=n.value,s=n.onFocus,c=n.onBlur,u=n.onChange,d=n.allowClear,f=n.maxLength,p=n.onCompositionStart,m=n.onCompositionEnd,g=n.suffix,h=n.prefixCls,v=void 0===h?"rc-textarea":h,b=n.showCount,y=n.count,w=n.className,x=n.style,C=n.disabled,S=n.hidden,E=n.classNames,$=n.styles,k=n.onResize,O=_(n,$f),I=X(mr(a,{value:l,defaultValue:a}),2),P=I[0],j=I[1],M=null==P?"":String(P),R=X(t().useState(!1),2),N=R[0],F=R[1],z=t().useRef(!1),L=X(t().useState(null),2),D=L[0],V=L[1],W=(0,e.useRef)(null),q=function(){var e;return null===(e=W.current)||void 0===e?void 0:e.textArea},G=function(){q().focus()};(0,e.useImperativeHandle)(r,(function(){return{resizableTextArea:W.current,focus:G,blur:function(){q().blur()}}})),(0,e.useEffect)((function(){F((function(e){return!C&&e}))}),[C]);var K=X(t().useState(null),2),U=K[0],Y=K[1];t().useEffect((function(){var e;U&&(e=q()).setSelectionRange.apply(e,fe(U))}),[U]);var Q,Z=Hd(y,b),J=null!==(o=Z.max)&&void 0!==o?o:f,ee=Number(J)>0,te=Z.strategy(M),ne=!!J&&te>J,re=function(e,t){var n=t;!z.current&&Z.exceedFormatter&&Z.max&&Z.strategy(t)>Z.max&&t!==(n=Z.exceedFormatter(t,{max:Z.max}))&&Y([q().selectionStart||0,q().selectionEnd||0]),j(n),Ld(e.currentTarget,e,u,n)},oe=g;Z.show&&(Q=Z.showFormatter?Z.showFormatter({value:M,count:te,maxLength:J}):"".concat(te).concat(ee?" / ".concat(J):""),oe=t().createElement(t().Fragment,null,oe,t().createElement("span",{className:A()("".concat(v,"-data-count"),null==E?void 0:E.count),style:null==$?void 0:$.count},Q)));var ie=!O.autoSize&&!b&&!d;return t().createElement(Bd,{value:M,allowClear:d,handleReset:function(e){j(""),G(),Ld(q(),e,u)},suffix:oe,prefixCls:v,classNames:H(H({},E),{},{affixWrapper:A()(null==E?void 0:E.affixWrapper,(i={},B(i,"".concat(v,"-show-count"),b),B(i,"".concat(v,"-textarea-allow-clear"),d),i))}),disabled:C,focused:N,className:A()(w,ne&&"".concat(v,"-out-of-range")),style:H(H({},x),D&&!ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof Q?Q:void 0}},hidden:S},t().createElement(Ef,T({},O,{maxLength:f,onKeyDown:function(e){var t=O.onPressEnter,n=O.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){re(e,e.target.value)},onFocus:function(e){F(!0),null==s||s(e)},onBlur:function(e){F(!1),null==c||c(e)},onCompositionStart:function(e){z.current=!0,null==p||p(e)},onCompositionEnd:function(e){z.current=!1,re(e,e.currentTarget.value),null==m||m(e)},className:A()(null==E?void 0:E.textarea),style:H(H({},null==$?void 0:$.textarea),{},{resize:null==x?void 0:x.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==k||k(e),null!==(t=q())&&void 0!==t&&t.style.height&&V(!0)},ref:W})))}));const Of=kf;const If=(0,e.forwardRef)(((t,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:m,styles:g,variant:h}=t,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;return{resizableTextArea:null===(e=I.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=I.current)||void 0===e?void 0:e.blur()}}}));const P=b("input",i),j=Qd(P),[M,R,N]=Td(P,j),[F,T]=Jd(h,a),z=Kd(null!=u?u:null==w?void 0:w.allowClear);return M(e.createElement(Of,Object.assign({autoComplete:null==w?void 0:w.autoComplete},v,{style:Object.assign(Object.assign({},null==w?void 0:w.style),m),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),g),disabled:S,allowClear:z,className:A()(N,j,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:A()({[`${P}-sm`]:"small"===x,[`${P}-lg`]:"large"===x},R,null==d?void 0:d.textarea,null===(r=null==w?void 0:w.classNames)||void 0===r?void 0:r.textarea),variant:A()({[`${P}-${F}`]:T},Ud(P,O)),affixWrapper:A()(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===y,[`${P}-affix-wrapper-sm`]:"small"===x,[`${P}-affix-wrapper-lg`]:"large"===x,[`${P}-textarea-show-count`]:t.showCount||(null===(o=t.count)||void 0===o?void 0:o.show)},R)}),prefixCls:P,suffix:$&&e.createElement("span",{className:`${P}-textarea-suffix`},k),ref:I})))})),Pf=If,jf=nf;jf.Group=t=>{const{getPrefixCls:n,direction:r}=(0,e.useContext)(Ba),{prefixCls:o,className:i}=t,a=n("input-group",o),l=n("input"),[s,c]=Td(l),u=A()(a,{[`${a}-lg`]:"large"===t.size,[`${a}-sm`]:"small"===t.size,[`${a}-compact`]:t.compact,[`${a}-rtl`]:"rtl"===r},c,i),d=(0,e.useContext)(cd),f=(0,e.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return s(e.createElement("span",{className:u,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(cd.Provider,{value:f},t.children)))},jf.Search=bf,jf.TextArea=Pf,jf.Password=pf;const Mf=jf,{useRef:Rf,useEffect:Nf}=wp.element,Af=t=>{let n=Rf(null);const{arg:r,argValue:o,styleConfig:i}=t,a=I(r.type),l="string"==typeof o.value?o.value:"",s="StringValue"===t.argValue.kind?i.colors.string:i.colors.number;return(0,e.createElement)("span",{style:{color:s}},"String"===a.name?'"':"",(0,e.createElement)(Mf,{name:r.name,style:{width:"15ch",color:s,minHeight:"16px"},size:"small",ref:e=>{n=e},type:"text",onChange:e=>{var n;n=e,t.setArgValue(n,!0)},value:l}),"String"===a.name?'"':"")},{isInputObjectType:Ff,isLeafType:Tf}=wpGraphiQL.GraphQL,{useState:zf}=wp.element,Lf=t=>{let n;const r=()=>t.selection.fields.find((e=>e.name.value===t.arg.name)),{arg:o,parentField:i}=t,a=r();return(0,e.createElement)(mh,{argValue:a?a.value:null,arg:o,parentField:i,addArg:()=>{const{selection:e,arg:r,getDefaultScalarArgValue:o,parentField:i,makeDefaultArg:a}=t,l=I(r.type);let s=null;if(n)s=n;else if(Ff(l)){const e=l.getFields();s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:{kind:"ObjectValue",fields:j(o,a,i,Object.keys(e).map((t=>e[t])))}}}else Tf(l)&&(s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:o(i,r,l)});if(s)return t.modifyFields([...e.fields||[],s],!0);console.error("Unable to add arg for argType",l)},removeArg:()=>{const{selection:e}=t,o=r();n=o,t.modifyFields(e.fields.filter((e=>e!==o)),!0)},setArgFields:e=>t.modifyFields(t.selection.fields.map((n=>n.name.value===t.arg.name?{...n,value:{kind:"ObjectValue",fields:e}}:n)),!0),setArgValue:(e,n)=>{let o=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?o=!0:"string"==typeof e.kind&&(a=!0)}catch(e){}const{selection:l}=t,s=r();if(!s)return void console.error("missing arg selection when setting arg value");const c=I(t.arg.type);if(!(Tf(c)||i||o||a))return void console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e);let u,d;return null==e?d=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?(u=e,d=u.variable):"string"==typeof e.kind?d=e:e.target&&"string"==typeof e.target.value&&(u=e.target.value,d=P(c,u)),t.modifyFields((l.fields||[]).map((e=>e===s?{...e,value:d}:e)),n)},getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})};var Bf={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Bf.F1&&t<=Bf.F12)return!1;switch(t){case Bf.ALT:case Bf.CAPS_LOCK:case Bf.CONTEXT_MENU:case Bf.CTRL:case Bf.DOWN:case Bf.END:case Bf.ESC:case Bf.HOME:case Bf.INSERT:case Bf.LEFT:case Bf.MAC_FF_META:case Bf.META:case Bf.NUMLOCK:case Bf.NUM_CENTER:case Bf.PAGE_DOWN:case Bf.PAGE_UP:case Bf.PAUSE:case Bf.PRINT_SCREEN:case Bf.RIGHT:case Bf.SHIFT:case Bf.UP:case Bf.WIN_KEY:case Bf.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Bf.ZERO&&e<=Bf.NINE)return!0;if(e>=Bf.NUM_ZERO&&e<=Bf.NUM_MULTIPLY)return!0;if(e>=Bf.A&&e<=Bf.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Bf.SPACE:case Bf.QUESTION_MARK:case Bf.NUM_PLUS:case Bf.NUM_MINUS:case Bf.NUM_PERIOD:case Bf.NUM_DIVISION:case Bf.SEMICOLON:case Bf.DASH:case Bf.EQUALS:case Bf.COMMA:case Bf.PERIOD:case Bf.SLASH:case Bf.APOSTROPHE:case Bf.SINGLE_QUOTE:case Bf.OPEN_SQUARE_BRACKET:case Bf.BACKSLASH:case Bf.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Df=Bf,Hf=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,s="function"==typeof r?r(o):r;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:e.createElement("span",{className:A()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var _f=e.createContext(null);function Vf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),r=e.useRef(null);return e.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}var Wf="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function qf(e,t){return 0===e.indexOf(t)}function Gf(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:H({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||qf(n,"aria-"))||t.data&&qf(n,"data-")||t.attr&&Wf.includes(n))&&(r[n]=e[n])})),r}var Xf=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Kf=void 0;function Uf(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,s=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,f=t.style,p=t.children,m=t.display,g=t.order,h=t.component,v=void 0===h?"div":h,b=_(t,Xf),y=l&&!m;function w(e){c(u,e)}e.useEffect((function(){return function(){w(null)}}),[]);var x,C=a&&i!==Kf?a(i):p;o||(x={opacity:y?0:1,height:y?0:Kf,overflowY:y?"hidden":Kf,order:l?g:Kf,pointerEvents:y?"none":Kf,position:y?"absolute":Kf});var S={};y&&(S["aria-hidden"]=!0);var E=e.createElement(v,T({className:A()(!o&&r,d),style:H(H({},x),f)},S,b,{ref:n}),C);return l&&(E=e.createElement(Et,{onResize:function(e){w(e.offsetWidth)},disabled:s},E)),E}var Yf=e.forwardRef(Uf);Yf.displayName="Item";const Qf=Yf;function Zf(t,n){var r=X(e.useState(n),2),o=r[0],i=r[1];return[o,Ot((function(e){t((function(){i(e)}))}))]}var Jf=t().createContext(null),ep=["component"],tp=["className"],np=["className"],rp=function(t,n){var r=e.useContext(Jf);if(!r){var o=t.component,i=void 0===o?"div":o,a=_(t,ep);return e.createElement(i,T({},a,{ref:n}))}var l=r.className,s=_(r,tp),c=t.className,u=_(t,np);return e.createElement(Jf.Provider,{value:null},e.createElement(Qf,T({ref:n,className:A()(l,c)},s,u)))},op=e.forwardRef(rp);op.displayName="RawItem";const ip=op;var ap=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lp="responsive",sp="invalidate";function cp(e){return"+ ".concat(e.length," ...")}function up(t,n){var r,o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,s=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,p=t.ssr,m=t.style,g=t.className,h=t.maxCount,v=t.renderRest,b=t.renderRawRest,y=t.suffix,w=t.component,x=void 0===w?"div":w,C=t.itemComponent,S=t.onVisibleChange,E=_(t,ap),$="full"===p,k=(r=e.useRef(null),function(e){r.current||(r.current=[],function(e){if("undefined"==typeof MessageChannel)vn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,K.unstable_batchedUpdates)((function(){r.current.forEach((function(e){e()})),r.current=null}))}))),r.current.push(e)}),O=X(Zf(k,null),2),I=O[0],P=O[1],j=I||0,M=X(Zf(k,new Map),2),R=M[0],N=M[1],F=X(Zf(k,0),2),z=F[0],L=F[1],B=X(Zf(k,0),2),D=B[0],V=B[1],W=X(Zf(k,0),2),q=W[0],G=W[1],U=X((0,e.useState)(null),2),Y=U[0],Q=U[1],Z=X((0,e.useState)(null),2),J=Z[0],ee=Z[1],te=e.useMemo((function(){return null===J&&$?Number.MAX_SAFE_INTEGER:J||0}),[J,I]),ne=X((0,e.useState)(!1),2),re=ne[0],oe=ne[1],ie="".concat(i,"-item"),ae=Math.max(z,D),le=h===lp,se=l.length&&le,ce=h===sp,ue=se||"number"==typeof h&&l.length>h,de=(0,e.useMemo)((function(){var e=l;return se?e=null===I&&$?l:l.slice(0,Math.min(l.length,j/f)):"number"==typeof h&&(e=l.slice(0,h)),e}),[l,f,I,h,se]),fe=(0,e.useMemo)((function(){return se?l.slice(te+1):l.slice(de.length)}),[l,de,se,te]),pe=(0,e.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),me=(0,e.useCallback)(s||function(e){return e},[s]);function ge(e,t,n){(J!==e||void 0!==t&&t!==Y)&&(ee(e),n||(oe(ej){ge(r-1,e-o-q+D);break}}y&&be(0)+q>j&&Q(null)}}),[j,R,D,q,pe,de]);var ye=re&&!!fe.length,we={};null!==Y&&se&&(we={position:"absolute",left:Y,top:0});var xe,Ce={prefixCls:ie,responsive:se,component:C,invalidate:ce},Se=c?function(t,n){var r=pe(t,n);return e.createElement(Jf.Provider,{key:r,value:H(H({},Ce),{},{order:n,item:t,itemKey:r,registerSize:ve,display:n<=te})},c(t,n))}:function(t,n){var r=pe(t,n);return e.createElement(Qf,T({},Ce,{order:n,key:r,item:t,renderItem:me,itemKey:r,registerSize:ve,display:n<=te}))},Ee={order:ye?te:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:function(e,t){V(t),L(D)},display:ye};if(b)b&&(xe=e.createElement(Jf.Provider,{value:H(H({},Ce),Ee)},b(fe)));else{var $e=v||cp;xe=e.createElement(Qf,T({},Ce,Ee),"function"==typeof $e?$e(fe):$e)}var ke=e.createElement(x,T({className:A()(!ce&&i,g),style:m,ref:n},E),de.map(Se),ue?xe:null,y&&e.createElement(Qf,T({},Ce,{responsive:le,responsiveDisabled:!se,order:te,className:"".concat(ie,"-suffix"),registerSize:function(e,t){G(t)},display:!0,style:we}),y));return le&&(ke=e.createElement(Et,{onResize:function(e,t){P(t.clientWidth)},disabled:!se},ke)),ke}var dp=e.forwardRef(up);dp.displayName="Overflow",dp.Item=ip,dp.RESPONSIVE=lp,dp.INVALIDATE=sp;const fp=dp;var pp=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,h=t.onMouseDown,v=t.onChange,b=t.onPaste,y=t.onCompositionStart,w=t.onCompositionEnd,x=t.open,C=t.attrs,S=a||e.createElement("input",null),E=S,$=E.ref,k=E.props,O=k.onKeyDown,I=k.onChange,P=k.onMouseDown,j=k.onCompositionStart,M=k.onCompositionEnd,R=k.style;return S.props,e.cloneElement(S,H(H(H({type:"search"},k),{},{id:i,ref:le(n,$),disabled:l,tabIndex:s,autoComplete:u||"off",autoFocus:c,className:A()("".concat(o,"-selection-search-input"),null===(r=S)||void 0===r||null===(r=r.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?f:void 0},C),{},{value:d?p:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:H(H({},R),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),O&&O(e)},onMouseDown:function(e){h(e),P&&P(e)},onChange:function(e){v(e),I&&I(e)},onCompositionStart:function(e){y(e),j&&j(e)},onCompositionEnd:function(e){w(e),M&&M(e)},onPaste:b}))};const mp=e.forwardRef(pp);function gp(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var hp="undefined"!=typeof window&&window.document&&window.document.documentElement;function vp(e){return["string","number"].includes(z(e))}function bp(e){var t=void 0;return e&&(vp(e.title)?t=e.title.toString():vp(e.label)&&(t=e.label.toString())),t}function yp(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var xp=function(e){e.preventDefault(),e.stopPropagation()};const Cp=function(t){var n,r,o=t.id,i=t.prefixCls,a=t.values,l=t.open,s=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,d=t.placeholder,f=t.disabled,p=t.mode,m=t.showSearch,g=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,b=t.tabIndex,y=t.removeIcon,w=t.maxTagCount,x=t.maxTagTextLength,C=t.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,E=t.tagRender,$=t.onToggleOpen,k=t.onRemove,O=t.onInputChange,I=t.onInputPaste,P=t.onInputKeyDown,j=t.onInputMouseDown,M=t.onInputCompositionStart,R=t.onInputCompositionEnd,N=e.useRef(null),F=X((0,e.useState)(0),2),T=F[0],z=F[1],L=X((0,e.useState)(!1),2),D=L[0],H=L[1],_="".concat(i,"-selection"),V=l||"multiple"===p&&!1===c||"tags"===p?s:"",W="tags"===p||"multiple"===p&&!1===c||m&&(l||D);n=function(){z(N.current.scrollWidth)},r=[V],hp?e.useLayoutEffect(n,r):e.useEffect(n,r);var q=function(t,n,r,o,i){return e.createElement("span",{title:bp(t),className:A()("".concat(_,"-item"),B({},"".concat(_,"-item-disabled"),r))},e.createElement("span",{className:"".concat(_,"-item-content")},n),o&&e.createElement(Hf,{className:"".concat(_,"-item-remove"),onMouseDown:xp,onClick:i,customizeIcon:y},"×"))},G=e.createElement("div",{className:"".concat(_,"-search"),style:{width:T},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},e.createElement(mp,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:f,autoFocus:g,autoComplete:h,editable:W,activeDescendantId:v,value:V,onKeyDown:P,onMouseDown:j,onChange:O,onPaste:I,onCompositionStart:M,onCompositionEnd:R,tabIndex:b,attrs:Gf(t,!0)}),e.createElement("span",{ref:N,className:"".concat(_,"-search-mirror"),"aria-hidden":!0},V," ")),K=e.createElement(fp,{prefixCls:"".concat(_,"-overflow"),data:a,renderItem:function(t){var n=t.disabled,r=t.label,o=t.value,i=!f&&!n,a=r;if("number"==typeof x&&("string"==typeof r||"number"==typeof r)){var s=String(a);s.length>x&&(a="".concat(s.slice(0,x),"..."))}var c=function(e){e&&e.stopPropagation(),k(t)};return"function"==typeof E?function(t,n,r,o,i){return e.createElement("span",{onMouseDown:function(e){xp(e),$(!l)}},E({label:n,value:t,disabled:r,closable:o,onClose:i}))}(o,a,n,i,c):q(t,a,n,i,c)},renderRest:function(e){var t="function"==typeof S?S(e):S;return q({title:t},t,!1)},suffix:G,itemKey:yp,maxCount:w});return e.createElement(e.Fragment,null,K,!a.length&&!V&&e.createElement("span",{className:"".concat(_,"-placeholder")},d))},Sp=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,h=t.searchValue,v=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,w=t.onInputMouseDown,x=t.onInputChange,C=t.onInputPaste,S=t.onInputCompositionStart,E=t.onInputCompositionEnd,$=t.title,k=X(e.useState(!1),2),O=k[0],I=k[1],P="combobox"===u,j=P||g,M=f[0],R=h||"";P&&v&&!O&&(R=v),e.useEffect((function(){P&&I(!1)}),[P,v]);var N=!("combobox"!==u&&!d&&!g||!R),A=void 0===$?bp(M):$,F=e.useMemo((function(){return M?null:e.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},p)}),[M,N,p,r]);return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(r,"-selection-search")},e.createElement(mp,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:j,activeDescendantId:c,value:R,onKeyDown:y,onMouseDown:w,onChange:function(e){I(!0),x(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:E,tabIndex:m,attrs:Gf(t,!0),maxLength:P?b:void 0})),!P&&M?e.createElement("span",{className:"".concat(r,"-selection-item"),title:A,style:N?{visibility:"hidden"}:void 0},M.label):null,F)};var Ep=function(t,n){var r=(0,e.useRef)(null),o=(0,e.useRef)(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,p=t.onToggleOpen,m=t.onInputKeyDown,g=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var h=X(Vf(0),2),v=h[0],b=h[1],y=(0,e.useRef)(null),w=function(e){!1!==d(e,!0,o.current)&&p(!0)},x={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==Df.UP&&n!==Df.DOWN||e.preventDefault(),m&&m(e),n!==Df.ENTER||"tags"!==l||o.current||a||null==f||f(e.target.value),t=n,[Df.ESC,Df.SHIFT,Df.BACKSPACE,Df.TAB,Df.WIN_KEY,Df.ALT,Df.META,Df.WIN_KEY_RIGHT,Df.CTRL,Df.SEMICOLON,Df.EQUALS,Df.CAPS_LOCK,Df.CONTEXT_MENU,Df.F1,Df.F2,Df.F3,Df.F4,Df.F5,Df.F6,Df.F7,Df.F8,Df.F9,Df.F10,Df.F11,Df.F12].includes(t)||p(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(c&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");y.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&w(e.target.value)}},C="multiple"===l||"tags"===l?e.createElement(Cp,T({},t,x)):e.createElement(Sp,T({},t,x));return e.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=v();e.target===r.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||s&&t)&&a||(a&&!1!==u&&d("",!0,!1),p())}},C)};const $p=e.forwardRef(Ep);var kp=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Op=function(t,n){var r=t.prefixCls,o=(t.disabled,t.visible),i=t.children,a=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=void 0===d?"ltr":d,p=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,h=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,w=t.getTriggerDOMNode,x=t.onPopupVisibleChange,C=t.onPopupMouseEnter,S=_(t,kp),E="".concat(r,"-dropdown"),$=a;h&&($=h(a));var k=e.useMemo((function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[m,g]),O=l?"".concat(E,"-").concat(l):s,I="number"==typeof g,P=e.useMemo((function(){return I?null:!1===g?"minWidth":"width"}),[g,I]),j=c;I&&(j=H(H({},j),{},{width:g}));var M=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){return M.current}}})),e.createElement(ir,T({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:E,popupTransitionName:O,popup:e.createElement("div",{ref:M,onMouseEnter:C},$),stretch:P,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:A()(u,B({},"".concat(E,"-empty"),y)),popupStyle:j,getTriggerDOMNode:w,onPopupVisibleChange:x}),i)};const Ip=e.forwardRef(Op);function Pp(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function jp(e){return void 0!==e&&!Number.isNaN(e)}function Mp(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Rp(e){var t=H({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return re(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Np=e.createContext(null);var Ap=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Fp=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Tp=function(e){return"tags"===e||"multiple"===e},zp=e.forwardRef((function(n,r){var o,i=n.id,a=n.prefixCls,l=n.className,s=n.showSearch,c=n.tagRender,u=n.direction,d=n.omitDomProps,f=n.displayValues,p=n.onDisplayValuesChange,m=n.emptyOptions,g=n.notFoundContent,h=void 0===g?"Not Found":g,v=n.onClear,b=n.mode,y=n.disabled,w=n.loading,x=n.getInputElement,C=n.getRawInputElement,S=n.open,E=n.defaultOpen,$=n.onDropdownVisibleChange,k=n.activeValue,O=n.onActiveValueChange,I=n.activeDescendantId,P=n.searchValue,j=n.autoClearSearchValue,M=n.onSearch,R=n.onSearchSplit,N=n.tokenSeparators,F=n.allowClear,L=n.suffixIcon,D=n.clearIcon,V=n.OptionList,W=n.animation,q=n.transitionName,G=n.dropdownStyle,K=n.dropdownClassName,U=n.dropdownMatchSelectWidth,Y=n.dropdownRender,Q=n.dropdownAlign,Z=n.placement,J=n.builtinPlacements,ee=n.getPopupContainer,te=n.showAction,ne=void 0===te?[]:te,re=n.onFocus,oe=n.onBlur,ie=n.onKeyUp,ae=n.onKeyDown,le=n.onMouseDown,ce=_(n,Ap),ue=Tp(b),de=(void 0!==s?s:ue)||"combobox"===b,pe=H({},ce);Fp.forEach((function(e){delete pe[e]})),null==d||d.forEach((function(e){delete pe[e]}));var me=X(e.useState(!1),2),ge=me[0],ve=me[1];e.useEffect((function(){ve(Mt())}),[]);var be=e.useRef(null),ye=e.useRef(null),we=e.useRef(null),xe=e.useRef(null),Ce=e.useRef(null),Se=e.useRef(!1),Ee=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=X(e.useState(!1),2),r=n[0],o=n[1],i=e.useRef(null),a=function(){window.clearTimeout(i.current)};return e.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),$e=X(Ee,3),ke=$e[0],Oe=$e[1],Ie=$e[2];e.useImperativeHandle(r,(function(){var e,t;return{focus:null===(e=xe.current)||void 0===e?void 0:e.focus,blur:null===(t=xe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ce.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Pe=e.useMemo((function(){var e;if("combobox"!==b)return P;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[P,b,f]),je="combobox"===b&&"function"==typeof x&&x()||null,Me="function"==typeof C&&C(),Re=se(ye,null==Me||null===(o=Me.props)||void 0===o?void 0:o.ref),Ne=X(e.useState(!1),2),Ae=Ne[0],Fe=Ne[1];he((function(){Fe(!0)}),[]);var Te=X(mr(!1,{defaultValue:E,value:S}),2),ze=Te[0],Le=Te[1],Be=!!Ae&&ze,De=!h&&m;(y||De&&Be&&"combobox"===b)&&(Be=!1);var He=!De&&Be,_e=e.useCallback((function(e){var t=void 0!==e?e:!Be;y||(Le(t),Be!==t&&(null==$||$(t)))}),[y,Be,Le,$]),Ve=e.useMemo((function(){return(N||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[N]),We=e.useContext(Np)||{},qe=We.maxCount,Ge=We.rawValues,Xe=function(e,t,n){if(!(ue&&jp(qe)&&(null==Ge?void 0:Ge.size)>=qe)){var r=!0,o=e;null==O||O(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=qa(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(fe(t),fe(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,N,jp(qe)?qe-Ge.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==R||R(a),_e(!1),r=!1),M&&Pe!==o&&M(o,{source:t?"typing":"effect"}),r}};e.useEffect((function(){Be||ue||"combobox"===b||Xe("",!1,!1)}),[Be]),e.useEffect((function(){ze&&y&&Le(!1),y&&!Se.current&&Oe(!1)}),[y]);var Ke=X(Vf(),2),Ue=Ke[0],Ye=Ke[1],Qe=e.useRef(!1),Ze=[];e.useEffect((function(){return function(){Ze.forEach((function(e){return clearTimeout(e)})),Ze.splice(0,Ze.length)}}),[]);var Je,et=X(e.useState({}),2)[1];Me&&(Je=function(e){_e(e)}),function(t,n,r,o){var i=e.useRef(null);i.current={open:n,triggerOpen:r,customizedTrigger:o},e.useEffect((function(){function e(e){var t,n;if(null===(t=i.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&[be.current,null===(n=we.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,He,_e,!!Me);var tt,nt=e.useMemo((function(){return H(H({},n),{},{notFoundContent:h,open:Be,triggerOpen:He,id:i,showSearch:de,multiple:ue,toggleOpen:_e})}),[n,h,He,Be,i,de,ue,_e]),rt=!!L||w;rt&&(tt=e.createElement(Hf,{className:A()("".concat(a,"-arrow"),B({},"".concat(a,"-arrow-loading"),w)),customizeIcon:L,customizeIconProps:{loading:w,searchValue:Pe,open:Be,focused:ke,showSearch:de}}));var ot,it=function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=t().useMemo((function(){return"object"===z(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:t().useMemo((function(){return!(a||!o||!r.length&&!l||"combobox"===s&&""===l)}),[o,a,r.length,l,s]),clearIcon:t().createElement(Hf,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,(function(){var e;null==v||v(),null===(e=xe.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),Xe("",!1,!1)}),f,F,D,y,Pe,b),at=it.allowClear,lt=it.clearIcon,st=e.createElement(V,{ref:Ce}),ct=A()(a,l,B(B(B(B(B(B(B(B(B(B({},"".concat(a,"-focused"),ke),"".concat(a,"-multiple"),ue),"".concat(a,"-single"),!ue),"".concat(a,"-allow-clear"),F),"".concat(a,"-show-arrow"),rt),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),w),"".concat(a,"-open"),Be),"".concat(a,"-customize-input"),je),"".concat(a,"-show-search"),de)),ut=e.createElement(Ip,{ref:we,disabled:y,prefixCls:a,visible:He,popupElement:st,animation:W,transitionName:q,dropdownStyle:G,dropdownClassName:K,direction:u,dropdownMatchSelectWidth:U,dropdownRender:Y,dropdownAlign:Q,placement:Z,builtinPlacements:J,getPopupContainer:ee,empty:m,getTriggerDOMNode:function(){return ye.current},onPopupVisibleChange:Je,onPopupMouseEnter:function(){et({})}},Me?e.cloneElement(Me,{ref:Re}):e.createElement($p,T({},n,{domRef:ye,prefixCls:a,inputElement:je,ref:xe,id:i,showSearch:de,autoClearSearchValue:j,mode:b,activeDescendantId:I,tagRender:c,values:f,open:Be,onToggleOpen:_e,activeValue:k,searchValue:Pe,onSearch:Xe,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){var t=f.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:Ve})));return ot=Me?ut:e.createElement("div",T({className:ct},pe,{ref:be,onMouseDown:function(e){var t,n=e.target,r=null===(t=we.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Ze.indexOf(o);-1!==t&&Ze.splice(t,1),Ie(),ge||r.contains(document.activeElement)||null===(e=xe.current)||void 0===e||e.focus()}));Ze.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&p(o,{type:"remove",values:[i]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1],n=e<0&&i.current.top||e>0&&i.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};var Zp=14/15,Jp=20;function em(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Jp),Math.floor(t)}var tm=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],nm=[],rm={overflowY:"auto",overflowAnchor:"none"};function om(t,n){var r=t.prefixCls,o=void 0===r?"rc-virtual-list":r,i=t.className,a=t.height,l=t.itemHeight,s=t.fullHeight,c=void 0===s||s,u=t.style,d=t.data,f=t.children,p=t.itemKey,m=t.virtual,g=t.direction,h=t.scrollWidth,v=t.component,b=void 0===v?"div":v,y=t.onScroll,w=t.onVirtualScroll,x=t.onVisibleChange,C=t.innerProps,S=t.extraRender,E=t.styles,$=_(t,tm),k=!(!1===m||!a||!l),O=k&&d&&(l*d.length>a||!!h),I="rtl"===g,P=A()(o,B({},"".concat(o,"-rtl"),I),i),j=d||nm,M=(0,e.useRef)(),R=(0,e.useRef)(),N=X((0,e.useState)(0),2),F=N[0],L=N[1],D=X((0,e.useState)(0),2),V=D[0],W=D[1],q=X((0,e.useState)(!1),2),G=q[0],U=q[1],Y=function(){U(!0)},Q=function(){U(!1)},Z=e.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),J={getKey:Z};function ee(e){L((function(t){var n=function(e){var t=e;return Number.isNaN(Ee.current)||(t=Math.min(t,Ee.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return M.current.scrollTop=n,n}))}var te=(0,e.useRef)({start:0,end:j.length}),ne=(0,e.useRef)(),re=X(function(t,n,r){var o=X(e.useState(t),2),i=o[0],a=o[1],l=X(e.useState(null),2),s=l[0],c=l[1];return e.useEffect((function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Le(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():c.current=vn(t)}return(0,e.useEffect)((function(){return u}),[]),[function(e,n){var r=t(e);l.current.get(r);n?(l.current.set(r,n),d()):l.current.delete(r)},d,s.current,i]}(Z),ie=X(oe,4),ae=ie[0],le=ie[1],se=ie[2],ce=ie[3],ue=e.useMemo((function(){if(!k)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};var e;if(!O)return{scrollHeight:(null===(e=R.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:j.length-1,offset:void 0};for(var t,n,r,o=0,i=j.length,s=0;s=F&&void 0===t&&(t=s,n=o),f>F+a&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=j.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,j.length-1),offset:n}}),[O,k,F,j,ce,a]),de=ue.scrollHeight,fe=ue.start,pe=ue.end,me=ue.offset;te.current.start=fe,te.current.end=pe;var ge=X(e.useState({width:0,height:a}),2),ve=ge[0],be=ge[1],ye=(0,e.useRef)(),we=(0,e.useRef)(),xe=e.useMemo((function(){return em(ve.width,h)}),[ve.width,h]),Ce=e.useMemo((function(){return em(ve.height,de)}),[ve.height,de]),Se=de-a,Ee=(0,e.useRef)(Se);Ee.current=Se;var $e=F<=0,ke=F>=Se,Oe=Qp($e,ke),Ie=function(){return{x:I?-V:V,y:F}},Pe=(0,e.useRef)(Ie()),je=Ot((function(){if(w){var e=Ie();Pe.current.x===e.x&&Pe.current.y===e.y||(w(e),Pe.current=e)}}));function Me(e,t){var n=e;t?((0,K.flushSync)((function(){W(n)})),je()):ee(n)}var Re=function(e){var t=e,n=h-ve.width;return t=Math.max(t,0),Math.min(t,n)},Ne=Ot((function(e,t){t?((0,K.flushSync)((function(){W((function(t){return Re(t+(I?-e:e))}))})),je()):ee((function(t){return t+e}))})),Ae=X(function(t,n,r,o,i){var a=(0,e.useRef)(0),l=(0,e.useRef)(null),s=(0,e.useRef)(null),c=(0,e.useRef)(!1),u=Qp(n,r),d=(0,e.useRef)(null),f=(0,e.useRef)(null);return[function(e){if(t){vn.cancel(f.current),f.current=vn((function(){d.current=null}),2);var n=e.deltaX,r=e.deltaY,p=e.shiftKey,m=n,g=r;("sx"===d.current||!d.current&&p&&r&&!n)&&(m=r,g=0,d.current="sx");var h=Math.abs(m),v=Math.abs(g);null===d.current&&(d.current=o&&h>v?"x":"y"),"y"===d.current?function(e,t){vn.cancel(l.current),a.current+=t,s.current=t,u(t)||(Yp||e.preventDefault(),l.current=vn((function(){var e=c.current?10:1;i(a.current*e),a.current=0})))}(e,g):function(e,t){i(t,!0),Yp||e.preventDefault()}(e,m)}},function(e){t&&(c.current=e.detail===s.current)}]}(k,$e,ke,!!h,Ne),2),Fe=Ae[0],Te=Ae[1];!function(t,n,r){var o,i=(0,e.useRef)(!1),a=(0,e.useRef)(0),l=(0,e.useRef)(null),s=(0,e.useRef)(null),c=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),n=a.current-t;a.current=t,r(n)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!r(n*=Zp,!0)||Math.abs(n)<=.1)&&clearInterval(s.current)}),16)}},u=function(){i.current=!1,o()},d=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c),l.current.addEventListener("touchend",u))};o=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",u))},he((function(){return t&&n.current.addEventListener("touchstart",d),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(s.current)}}),[t])}(k,M,(function(e,t){return!Oe(e,t)&&(Fe({preventDefault:function(){},deltaY:e}),!0)})),he((function(){function e(e){k&&e.preventDefault()}var t=M.current;return t.addEventListener("wheel",Fe),t.addEventListener("DOMMouseScroll",Te),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Fe),t.removeEventListener("DOMMouseScroll",Te),t.removeEventListener("MozMousePixelScroll",e)}}),[k]),he((function(){h&&W((function(e){return Re(e)}))}),[ve.width,h]);var ze=function(){var e,t;null===(e=ye.current)||void 0===e||e.delayHidden(),null===(t=we.current)||void 0===t||t.delayHidden()},Be=function(t,n,r,o,i,a,l,s){var c=e.useRef(),u=X(e.useState(null),2),d=u[0],f=u[1];return he((function(){if(d&&d.times<10){if(!t.current)return void f((function(e){return H({},e)}));a();var e=d.targetAlign,s=d.originAlign,c=d.index,u=d.offset,p=t.current.clientHeight,m=!1,g=e,h=null;if(p){for(var v=e||s,b=0,y=0,w=0,x=Math.min(n.length-1,c),C=0;C<=x;C+=1){var S=i(n[C]);y=b;var E=r.get(S);b=w=y+(void 0===E?o:E)}for(var $="top"===v?u:p-u,k=x;k>=0;k-=1){var O=i(n[k]),I=r.get(O);if(void 0===I){m=!0;break}if(($-=I)<=0)break}switch(v){case"top":h=y-u;break;case"bottom":h=w-p+u;break;default:var P=t.current.scrollTop;yP+p&&(g="bottom")}null!==h&&l(h),h!==d.lastTop&&(m=!0)}m&&f(H(H({},d),{},{times:d.times+1,targetAlign:g,lastTop:h}))}}),[d,t.current]),function(e){if(null!=e){if(vn.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===z(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else s()}}(M,j,se,l,Z,(function(){return le(!0)}),ee,ze);e.useImperativeHandle(n,(function(){return{getScrollInfo:Ie,scrollTo:function(e){var t;(t=e)&&"object"===z(t)&&("left"in t||"top"in t)?(void 0!==e.left&&W(Re(e.left)),Be(e.top)):Be(e)}}})),he((function(){if(x){var e=j.slice(fe,pe+1);x(e,j)}}),[fe,pe,j]);var De=function(t,n,r,o){var i=X(e.useMemo((function(){return[new Map,[]]}),[t,r.id,o]),2),a=i[0],l=i[1];return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,s=a.get(e),c=a.get(i);if(void 0===s||void 0===c)for(var u=t.length,d=l.length;da&&e.createElement(Xp,{ref:ye,prefixCls:o,scrollOffset:F,scrollRange:de,rtl:I,onScroll:Me,onStartMove:Y,onStopMove:Q,spinSize:Ce,containerSize:ve.height,style:null==E?void 0:E.verticalScrollBar,thumbStyle:null==E?void 0:E.verticalScrollBarThumb}),O&&h>ve.width&&e.createElement(Xp,{ref:we,prefixCls:o,scrollOffset:V,scrollRange:h,rtl:I,onScroll:Me,onStartMove:Y,onStopMove:Q,spinSize:xe,containerSize:ve.width,horizontal:!0,style:null==E?void 0:E.horizontalScrollBar,thumbStyle:null==E?void 0:E.horizontalScrollBarThumb}))}var im=e.forwardRef(om);im.displayName="List";const am=im;var lm=["disabled","title","children","style","className"];function sm(e){return"string"==typeof e||"number"==typeof e}var cm=function(t,n){var r=e.useContext(_f),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=e.useContext(Np),m=p.maxCount,g=p.flattenOptions,h=p.onActiveValue,v=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,w=p.rawValues,x=p.fieldNames,C=p.virtual,S=p.direction,E=p.listHeight,$=p.listItemHeight,k=p.optionRender,O="".concat(o,"-item"),I=ie((function(){return g}),[a,g],(function(e,t){return t[0]&&e[1]!==t[1]})),P=e.useRef(null),j=e.useMemo((function(){return l&&jp(m)&&(null==w?void 0:w.size)>=m}),[l,m,null==w?void 0:w.size]),M=function(e){e.preventDefault()},R=function(e){var t;null===(t=P.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=I[e];r?h(r.value,e,n):h(null,-1,n)};(0,e.useEffect)((function(){D(!1!==v?N(0):-1)}),[I.length,c]);var H=e.useCallback((function(e){return w.has(e)&&"combobox"!==s}),[s,fe(w).toString(),w.size]);(0,e.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===w.size){var e=Array.from(w)[0],t=I.findIndex((function(t){return t.data.value===e}));-1!==t&&(D(t),R(t))}}));return a&&(null===(e=P.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[a,c]);var V=function(e){void 0!==e&&b(e,{selected:!w.has(e)}),l||u(!1)};if(e.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Df.N:case Df.P:case Df.UP:case Df.DOWN:var r=0;if(t===Df.UP?r=-1:t===Df.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Df.N?r=1:t===Df.P&&(r=-1)),0!==r){var o=N(z+r,r);R(o),D(o,!0)}break;case Df.ENTER:var i,l=I[z];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||j?V(void 0):V(l.value),a&&e.preventDefault();break;case Df.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===I.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:M},d);var W=Object.keys(x).map((function(e){return x[e]})),q=function(e){return e.label};function G(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var K=function(t){var n=I[t];if(!n)return null;var r=n.data||{},o=r.value,i=n.group,a=Gf(r,!0),l=q(n);return n?e.createElement("div",T({"aria-label":"string"!=typeof l||i?null:l},a,{key:t},G(n,t),{"aria-selected":H(o)}),o):null},U={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,C&&e.createElement("div",T({},U,{style:{height:0,width:0,overflow:"hidden"}}),K(z-1),K(z),K(z+1)),e.createElement(am,{itemKey:"key",ref:P,data:I,height:E,itemHeight:$,fullHeight:!1,onMouseDown:M,onScroll:f,virtual:C,direction:S,innerProps:C?null:U},(function(t,n){var r=t.group,o=t.groupOption,i=t.data,a=t.label,l=t.value,s=i.key;if(r){var c,u=null!==(c=i.title)&&void 0!==c?c:sm(a)?a.toString():void 0;return e.createElement("div",{className:A()(O,"".concat(O,"-group"),i.className),title:u},void 0!==a?a:s)}var d=i.disabled,f=i.title,p=(i.children,i.style),m=i.className,g=ns(_(i,lm),W),h=H(l),v=d||!h&&j,b="".concat(O,"-option"),w=A()(O,b,m,B(B(B(B({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),z===n&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),h)),x=q(t),S=!y||"function"==typeof y||h,E="number"==typeof x?x:x||l,$=sm(E)?E.toString():void 0;return void 0!==f&&($=f),e.createElement("div",T({},Gf(g),C?{}:G(t,n),{"aria-selected":h,className:w,title:$,onMouseMove:function(){z===n||v||D(n)},onClick:function(){v||V(l)},style:p}),e.createElement("div",{className:"".concat(b,"-content")},"function"==typeof k?k(t,{index:n}):E),e.isValidElement(y)||h,S&&e.createElement(Hf,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:v,isSelected:h}},h?"✓":null))})))};const um=e.forwardRef(cm);function dm(e,t){return gp(e).join("").toUpperCase().includes(t)}var fm=0,pm=Y();var mm=["children","value"],gm=["children"];function hm(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Te(t).map((function(t,r){if(!e.isValidElement(t)||!t.type)return null;var o=t,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,c=_(l,gm);return n||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return H({key:n,value:void 0!==i?i:n,children:o},_(r,mm))}(t):H(H({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},c),{},{options:hm(s)})})).filter((function(e){return e}))}const vm=function(t,n,r,o,i){return e.useMemo((function(){var e=t;!t&&(e=hm(n));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Mp(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(s in t)){var i=t[l];o.push({key:Pp(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:Pp(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(we,{fieldNames:Y,childrenAsData:K})}),[we,Y,K]),Ce=function(e){var t=oe(e);if(le(t),D&&(t.length!==de.length||t.some((function(e,t){var n;return(null===(n=de[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=L?t:t.map((function(e){return e.value})),r=t.map((function(e){return Rp(pe(e.value))}));D(G?n:n[0],G?r:r[0])}},Se=X(e.useState(null),2),Ee=Se[0],$e=Se[1],ke=X(e.useState(0),2),Oe=ke[0],Ie=ke[1],Pe=void 0!==$?$:"combobox"!==o,je=e.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Ie(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&$e(String(e))}),[l,o]),Me=function(e,t,n){var r=function(){var t,n=pe(e);return[L?{label:null==n?void 0:n[Y.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Rp(n)]};if(t&&m){var o=X(r(),2),i=o[0],a=o[1];m(i,a)}else if(!t&&g&&"clear"!==n){var l=X(r(),2),s=l[0],c=l[1];g(s,c)}},Re=bm((function(e,t){var n,r=!G||t.selected;n=r?G?[].concat(fe(de),[e]):[e]:de.filter((function(t){return t.value!==e})),Ce(n),Me(e,r),"combobox"===o?$e(""):Tp&&!p||(J(""),$e(""))})),Ne=e.useMemo((function(){var e=!1!==O&&!1!==v;return H(H({},ee),{},{flattenOptions:xe,onActiveValue:je,defaultActiveFirstOption:Pe,onSelect:Re,menuItemSelectedIcon:k,rawValues:ge,fieldNames:Y,virtual:e,direction:I,listHeight:j,listItemHeight:R,childrenAsData:K,maxCount:V,optionRender:S})}),[V,ee,xe,je,Pe,Re,k,ge,Y,O,v,I,j,R,K,S]);return e.createElement(Np.Provider,{value:Ne},e.createElement(Lp,T({},W,{id:q,prefixCls:a,ref:n,omitDomProps:wm,mode:o,displayValues:me,onDisplayValuesChange:function(e,t){Ce(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Me(e.value,!1,n)}))},direction:I,searchValue:Z,onSearch:function(e,t){if(J(e),$e(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&Ce(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(fe(ge),[n])));Ce(r),Me(n,!0),J("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=ne.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(fe(ge),fe(t))));Ce(n),n.forEach((function(e){Me(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:um,emptyOptions:!xe.length,activeValue:Ee,activeDescendantId:"".concat(q,"_list_").concat(Oe)})))})),Cm=xm;Cm.Option=_p,Cm.OptGroup=Dp;const Sm=Cm,Em=(0,e.createContext)(void 0),$m={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},km={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},$m)},Om="${label} is not a valid ${type}",Im={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:km,TimePicker:$m,Calendar:km,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Om,method:Om,array:Om,object:Om,number:Om,date:Om,boolean:Om,integer:Om,float:Om,regexp:Om,email:Om,url:Om,hex:Om},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let Pm=Object.assign({},Im.Modal),jm=[];const Mm=()=>jm.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Im.Modal),Rm=(0,e.createContext)(void 0),Nm=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return jm.push(t),Pm=Mm(),()=>{jm=jm.filter((e=>e!==t)),Pm=Mm()}}Pm=Object.assign({},Im.Modal)}(n&&n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Rm.Provider,{value:i},r)},Am=`-ant-${Date.now()}-${Math.random()}`;const Fm=Object.assign({},e),{useId:Tm}=Fm,zm=void 0===Tm?()=>"":Tm;function Lm(t){const{children:n}=t,[,r]=ua(),{motion:o}=r,i=e.useRef(!1);return i.current=i.current||!1===o,i.current?e.createElement(At,{motion:o},n):n}const Bm=()=>null;const Dm=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Hm,_m,Vm,Wm;function qm(){return Hm||"ant"}function Gm(){return _m||La}const Xm=()=>({getPrefixCls:(e,t)=>t||(e?`${qm()}-${e}`:qm()),getIconPrefixCls:Gm,getRootPrefixCls:()=>Hm||qm(),getTheme:()=>Vm,holderRender:Wm}),Km=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:h,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:C,spin:S,calendar:E,carousel:$,cascader:k,collapse:O,typography:I,checkbox:P,descriptions:j,divider:M,drawer:R,skeleton:N,steps:A,image:F,layout:T,list:z,mentions:L,modal:B,progress:D,result:H,slider:_,breadcrumb:V,menu:W,pagination:q,input:G,textArea:X,empty:K,badge:U,radio:Y,rate:Q,switch:Z,transfer:J,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ae,timeline:le,timePicker:se,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ge,wave:he,dropdown:ve,warning:be,tour:ye}=t,we=e.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||v.getPrefixCls("");return e?`${o}-${e}`:o}),[v.getPrefixCls,t.prefixCls]),xe=b||v.iconPrefixCls||La,Ce=r||v.csp;gl(xe,Ce);const Se=function(e,t,n){var r;za();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Ji),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Ji.hashed,cssVar:null==t?void 0:t.cssVar}),a=zm();return ie((()=>{var r,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!hr(e,r,!0)}))))}(y,v.theme,{prefixCls:we("")}),Ee={csp:Ce,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:s||h,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:g,getPrefixCls:we,iconPrefixCls:xe,theme:Se,segmented:x,statistic:C,spin:S,calendar:E,carousel:$,cascader:k,collapse:O,typography:I,checkbox:P,descriptions:j,divider:M,drawer:R,skeleton:N,steps:A,image:F,input:G,textArea:X,layout:T,list:z,mentions:L,modal:B,progress:D,result:H,slider:_,breadcrumb:V,menu:W,pagination:q,empty:K,badge:U,radio:Y,rate:Q,switch:Z,transfer:J,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ae,timeline:le,timePicker:se,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ge,wave:he,dropdown:ve,warning:be,tour:ye},$e=Object.assign({},v);Object.keys(Ee).forEach((e=>{void 0!==Ee[e]&&($e[e]=Ee[e])})),Dm.forEach((e=>{const n=t[e];n&&($e[e]=n)}));const ke=ie((()=>$e),$e,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Oe=e.useMemo((()=>({prefixCls:xe,csp:Ce})),[xe,Ce]);let Ie=e.createElement(e.Fragment,null,e.createElement(Bm,{dropdownMatchSelectWidth:p}),n);const Pe=e.useMemo((()=>{var e,t,n,r;return Qa((null===(e=Im.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ke.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ke.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[ke,null==l?void 0:l.validateMessages]);Object.keys(Pe).length>0&&(Ie=e.createElement(Em.Provider,{value:Pe},Ie)),s&&(Ie=e.createElement(Nm,{locale:s,_ANT_MARK__:"internalMark"},Ie)),(xe||Ce)&&(Ie=e.createElement(Ls.Provider,{value:Oe},Ie)),c&&(Ie=e.createElement(_a,{size:c},Ie)),Ie=e.createElement(Lm,null,Ie);const je=e.useMemo((()=>{const e=Se||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0)?jr(t):Zi,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=jr(r.algorithm)),delete r.algorithm),l[t]=r}));const s=Object.assign(Object.assign({},qi),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})}),[Se]);return y&&(Ie=e.createElement(ea.Provider,{value:je},Ie)),ke.warning&&(Ie=e.createElement(Ta.Provider,{value:ke.warning},Ie)),void 0!==w&&(Ie=e.createElement(Os,{disabled:w},Ie)),e.createElement(Ba.Provider,{value:ke},Ie)},Um=t=>{const n=e.useContext(Ba),r=e.useContext(Rm);return e.createElement(Km,Object.assign({parentContext:n,legacyLocale:r},t))};Um.ConfigContext=Ba,Um.SizeContext=Va,Um.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Hm=t),void 0!==n&&(_m=n),"holderRender"in e&&(Wm=o),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Gi(e),i=Bi(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Gi(t.primaryColor),i=Bi(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Gi(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Y()&&Ie(n,`${Am}-dynamic-theme`)}(qm(),r):Vm=r)},Um.useConfig=function(){return{componentDisabled:(0,e.useContext)(Is),componentSize:(0,e.useContext)(Va)}},Object.defineProperty(Um,"SizeContext",{get:()=>Va});const Ym=Um,Qm=(t,n,r,o)=>function(t){return n=>e.createElement(Ym,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}((i=>{const{prefixCls:a,style:l}=i,s=e.useRef(null),[c,u]=e.useState(0),[d,f]=e.useState(0),[p,m]=mr(!1,{value:i.open}),{getPrefixCls:g}=e.useContext(Ba),h=g(n||"select",a);e.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var n;const o=r?`.${r(h)}`:`.${h}-dropdown`,i=null===(n=s.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>s.current});o&&(v=o(v));const b={paddingBottom:c,position:"relative",minWidth:d};return e.createElement("div",{ref:s,style:b},e.createElement(t,Object.assign({},v)))})),Zm=(t,n)=>{const r=e.useContext(Rm);return[e.useMemo((()=>{var e;const o=n||Im[t],i=null!==(e=null==r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[t,n,r]),e.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?Im.locale:e}),[r])]},Jm=()=>{const[,t]=ua(),n=new Gi(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},eg=()=>{const[,t]=ua(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=t,{borderColor:a,shadowColor:l,contentColor:s}=(0,e.useMemo)((()=>({borderColor:new Gi(n).onBackground(i).toHexShortString(),shadowColor:new Gi(r).onBackground(i).toHexShortString(),contentColor:new Gi(o).onBackground(i).toHexShortString()})),[n,r,o,i]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:a},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},tg=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ng=wl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=fl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[tg(o)]}));const rg=e.createElement(Jm,null),og=e.createElement(eg,null),ig=t=>{var{className:n,rootClassName:r,prefixCls:o,image:i=rg,description:a,children:l,imageStyle:s,style:c}=t,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentName:r}=n,{getPrefixCls:o}=(0,e.useContext)(Ba),i=o("empty");switch(r){case"Table":case"List":return t().createElement(ag,{image:ag.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t().createElement(ag,{image:ag.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});default:return t().createElement(ag,null)}},sg=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},cg=new ii("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ug=new ii("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),dg=new ii("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),fg=new ii("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),pg=new ii("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mg=new ii("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),gg=new ii("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),hg=new ii("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),vg={"slide-up":{inKeyframes:cg,outKeyframes:ug},"slide-down":{inKeyframes:dg,outKeyframes:fg},"slide-left":{inKeyframes:pg,outKeyframes:mg},"slide-right":{inKeyframes:gg,outKeyframes:hg}},bg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=vg[t];return[Rl(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},yg=new ii("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wg=new ii("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xg=new ii("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Cg=new ii("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sg=new ii("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Eg=new ii("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$g={"move-up":{inKeyframes:new ii("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new ii("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:yg,outKeyframes:wg},"move-left":{inKeyframes:xg,outKeyframes:Cg},"move-right":{inKeyframes:Sg,outKeyframes:Eg}},kg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=$g[t];return[Rl(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Og=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Ig=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ja(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:cg},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:dg},[`${a}${l}bottomLeft`]:{animationName:ug},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:fg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Og(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Za),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Og(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},bg(e,"slide-up"),bg(e,"slide-down"),kg(e,"move-up"),kg(e,"move-down")]},Pg=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:2,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},jg=(e,t)=>{const{componentCls:n}=e,r=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),a=t?`${n}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r}=e,o=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:o,containerPadding:e.max(e.calc(o).sub(2).equal(),0),itemHeight:Dr(t),itemLineHeight:Dr(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},Pg(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Dr(2)} 0`,lineHeight:Dr(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Dr(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:Dr(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Mg(e,t){const{componentCls:n}=e,r={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[jg(e,t),r]}const Rg=e=>{const{componentCls:t}=e,n=fl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=fl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Mg(e),Mg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Mg(r,"lg")]};function Ng(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ja(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Dr(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Dr(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Dr(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Dr(r)}`,"&:after":{display:"none"}}}}}}}function Ag(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Ng(e),Ng(fl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Dr(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Ng(fl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Fg=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Dr(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Dr(o)} ${t.activeShadowColor}`,outline:0}}}},Tg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fg(e,t))}),zg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Tg(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Tg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Dr(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Lg=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Dr(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Bg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Lg(e,t))}),Dg=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Lg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Bg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Bg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Hg=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Dr(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),_g=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},zg(e)),Dg(e)),Hg(e))}),Vg=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Wg=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},qg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ja(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Vg(e)),Wg(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Za),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Za),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Gg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},qg(e),Ag(e),Rg(e),Ig(e),{[`${t}-rtl`]:{direction:"rtl"}},Mc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Xg=wl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=fl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Gg(r),_g(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightSM:o,controlHeightLG:i,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:s,colorText:c,fontWeightStrong:u,controlItemBgActive:d,controlItemBgHover:f,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:h}=e;return{zIndexPopup:s+50,optionSelectedColor:c,optionSelectedFontWeight:u,optionSelectedBg:d,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:p,clearBg:p,singleItemHeightLG:i,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:r-2*a,multipleItemHeightSM:o-2*a,multipleItemHeightLG:i-2*a,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Kg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Ug=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:Kg}))};const Yg=e.forwardRef(Ug),Qg={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Zg=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:Qg}))};const Jg=e.forwardRef(Zg),eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var th=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:eh}))};const nh=e.forwardRef(th);const rh="SECRET_COMBOBOX_MODE_DO_NOT_USE",oh=(t,n)=>{var r;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:m,disabled:g,notFoundContent:h,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:C,allowClear:S,variant:E,dropdownStyle:$,transitionName:k,tagRender:O,maxCount:I}=t,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{mode:e}=t;if("combobox"!==e)return e===rh?"combobox":e}),[t.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(t.suffixIcon,t.showArrow),te=null!==(r=null!=w?w:y)&&void 0!==r?r:T,{status:ne,hasFeedback:re,isFormItemInput:oe,feedbackIcon:ie}=e.useContext(cd),ae=Yd(ne,v);let le;le=void 0!==h?h:"combobox"===Z?null:(null==R?void 0:R("Select"))||e.createElement(lg,{componentName:"Select"});const{suffixIcon:se,itemIcon:ce,removeIcon:ue,clearIcon:de}=function(t){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=t;const m=null!=r?r:e.createElement(Xd,null),g=t=>null!==n||s||f?e.createElement(e.Fragment,null,!1!==u&&t,s&&d):null;let h=null;if(void 0!==n)h=g(n);else if(a)h=g(e.createElement(Js,{spin:!0}));else{const t=`${c}-suffix`;h=n=>{let{open:r,showSearch:o}=n;return g(r&&o?e.createElement(hf,{className:t}):e.createElement(nh,{className:t}))}}let v=null;v=void 0!==o?o:l?e.createElement(Yg,null):null;let b=null;return b=void 0!==i?i:e.createElement(Jg,null),{clearIcon:m,suffixIcon:h,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},P),{multiple:J,hasFeedback:re,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),fe=!0===S?{clearIcon:de}:S,pe=ns(P,["suffixIcon","itemIcon"]),me=A()(c||u,{[`${H}-dropdown-${V}`]:"rtl"===V},l,Q,K,Y),ge=Wa((e=>{var t;return null!==(t=null!=m?m:W)&&void 0!==t?t:e})),he=e.useContext(Is),ve=null!=g?g:he,be=A()({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===V,[`${H}-${G}`]:X,[`${H}-in-form-item`]:oe},Ud(H,ae,re),q,null==L?void 0:L.className,a,l,Q,K,Y),ye=e.useMemo((()=>void 0!==f?f:"rtl"===V?"bottomRight":"bottomLeft"),[f,V]),[we]=ga("SelectLike",null==$?void 0:$.zIndex);return U(e.createElement(Sm,Object.assign({ref:n,virtual:F,showSearch:null==L?void 0:L.showSearch},pe,{style:Object.assign(Object.assign({},null==L?void 0:L.style),C),dropdownMatchSelectWidth:te,transitionName:wa(_,"slide-up",k),builtinPlacements:sg(b,z),listHeight:d,listItemHeight:D,mode:Z,prefixCls:H,placement:ye,direction:V,suffixIcon:se,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:fe,notFoundContent:le,className:be,getPopupContainer:s||j,dropdownClassName:me,disabled:ve,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:we}),maxCount:J?I:void 0,tagRender:J?O:void 0})))},ih=e.forwardRef(oh),ah=Qm(ih);ih.SECRET_COMBOBOX_MODE_DO_NOT_USE=rh,ih.Option=_p,ih.OptGroup=Dp,ih._InternalPanelDoNotUseOrYouWillBeFired=ah;const lh=ih,{isEnumType:sh,isInputObjectType:ch,isScalarType:uh,parseType:dh,visit:fh}=wpGraphiQL.GraphQL,{useState:ph}=wp.element,mh=t=>{const[n,r]=ph(!0),{definition:o}=t,{argValue:i,arg:a,styleConfig:l}=t,s=I(a.type);let c=null;if(i)if("Variable"===i.kind)c=(0,e.createElement)("span",{style:{color:l.colors.variable}},"$",i.name.value);else if(uh(s))c="Boolean"===s.name?(0,e.createElement)(lh,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],size:"small",style:{color:l.colors.builtin,minHeight:"16px",minWidth:"16ch"},onChange:e=>{const n={target:{value:e}};t.setArgValue(n)},value:"BooleanValue"===i.kind?i.value:void 0},(0,e.createElement)(lh.Option,{key:"true",value:"true"},"true"),(0,e.createElement)(lh.Option,{key:"false",value:"false"},"false")):(0,e.createElement)(Af,{setArgValue:t.setArgValue,arg:a,argValue:i,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig});else if(sh(s))"EnumValue"===i.kind?c=(0,e.createElement)(lh,{size:"small",getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],style:{backgroundColor:"white",minHeight:"16px",minWidth:"20ch",color:l.colors.string2},onChange:e=>{const n={target:{value:e}};t.setArgValue(n)},value:i.value},s.getValues().map(((t,n)=>(0,e.createElement)(lh.Option,{key:n,value:t.name},t.name)))):console.error("arg mismatch between arg and selection",s,i);else if(ch(s))if("ObjectValue"===i.kind){const n=s.getFields();c=(0,e.createElement)("div",{style:{marginLeft:16}},Object.keys(n).sort().map((r=>(0,e.createElement)(Lf,{key:r,arg:n[r],parentField:t.parentField,selection:i,modifyFields:t.setArgFields,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition}))))}else console.error("arg mismatch between arg and selection",s,i);const u=i&&"Variable"===i.kind,d=void 0!==o.name&&i?(0,e.createElement)(ts,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:u?"Remove the variable":"Extract the current value into a GraphQL variable"},(0,e.createElement)(Lc,{type:u?"danger":"default",size:"small",className:"toolbar-button",title:u?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:e=>{e.preventDefault(),e.stopPropagation(),u?(()=>{if(!i||!i.name||!i.name.value)return;const e=i.name.value,n=(t.definition.variableDefinitions||[]).find((t=>t.variable.name.value===e));if(!n)return;const r=n.defaultValue,o=t.setArgValue(r,{commit:!1});if(o){const n=o.definitions.find((e=>e.name.value===t.definition.name.value));if(!n)return;let r=0;fh(n,{Variable(t){t.name.value===e&&(r+=1)}});let i=n.variableDefinitions||[];r<2&&(i=i.filter((t=>t.variable.name.value!==e)));const a={...n,variableDefinitions:i},l=o.definitions.map((e=>n===e?a:e)),s={...o,definitions:l};t.onCommit(s)}})():(()=>{const e=a.name,n=(t.definition.variableDefinitions||[]).filter((t=>t.variable.name.value.startsWith(e))).length;let r;r=n>0?`${e}${n}`:e;const o=a.type.toString(),l={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:r}},type:dh(o),directives:[]};let s,c={};if(null!=i){const e=fh(i,{Variable(e){const n=e.name.value,r=(o=n,(t.definition.variableDefinitions||[]).find((e=>e.variable.name.value===o)));var o;if(c[n]=c[n]+1||1,r)return r.defaultValue}});s={..."NonNullType"===l.type.kind?{...l,type:l.type.type}:l,defaultValue:e}}else s=l;const u=Object.entries(c).filter((([e,t])=>t<2)).map((([e,t])=>e));if(s){const e=t.setArgValue(s,!1);if(e){const n=e.definitions.find((e=>!!(e.operation&&e.name&&e.name.value&&t.definition.name&&t.definition.name.value)&&e.name.value===t.definition.name.value)),r=[...n?.variableDefinitions||[],s].filter((e=>-1===u.indexOf(e.variable.name.value))),o={...n,variableDefinitions:r},i=e.definitions.map((e=>n===e?o:e)),a={...e,definitions:i};t.onCommit(a)}}})()}},(0,e.createElement)("span",{style:{color:u?"inherit":l.colors.variable}},"$"))):null;return(0,e.createElement)("div",{style:{cursor:"pointer",minHeight:"20px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":a.name,"data-arg-type":s.name,className:`graphiql-explorer-${a.name}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:e=>{const n=!i;n?t.addArg(!0):t.removeArg(!0),r(n)}},ch(s)?(0,e.createElement)("span",null,i?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):(0,e.createElement)(Bc,{checked:!!i,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:l.colors.attribute},title:a.description,onMouseEnter:()=>{null!=i&&r(!0)},onMouseLeave:()=>r(!0)},a.name,k(a)?"*":"",": ",d," ")," "),c||(0,e.createElement)("span",null)," ")},{isInputObjectType:gh,isLeafType:hh}=wpGraphiQL.GraphQL,vh=t=>{let n;const r=()=>{const{selection:e}=t;return(e.arguments||[]).find((e=>e.name.value===t.arg.name))},{arg:o,parentField:i}=t,a=r();return(0,e.createElement)(mh,{argValue:a?a.value:null,arg:o,parentField:i,addArg:e=>{const{selection:r,getDefaultScalarArgValue:o,makeDefaultArg:i,parentField:a,arg:l}=t,s=I(l.type);let c=null;if(n)c=n;else if(gh(s)){const e=s.getFields();c={kind:"Argument",name:{kind:"Name",value:l.name},value:{kind:"ObjectValue",fields:j(o,i,a,Object.keys(e).map((t=>e[t])))}}}else hh(s)&&(c={kind:"Argument",name:{kind:"Name",value:l.name},value:o(a,l,s)});return c?t.modifyArguments([...r.arguments||[],c],e):(console.error("Unable to add arg for argType",s),null)},removeArg:e=>{const{selection:o}=t,i=r();return n=r(),t.modifyArguments((o.arguments||[]).filter((e=>e!==i)),e)},setArgFields:(e,n)=>{const{selection:o}=t,i=r();if(i)return t.modifyArguments((o.arguments||[]).map((t=>t===i?{...t,value:{kind:"ObjectValue",fields:e}}:t)),n);console.error("missing arg selection when setting arg value")},setArgValue:(e,n)=>{let o=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?o=!0:"string"==typeof e.kind&&(a=!0)}catch(e){}const{selection:l}=t,s=r();if(!s&&!i)return void console.error("missing arg selection when setting arg value");const c=I(t.arg.type);if(!(hh(c)||i||o||a))return void console.warn("Unable to handle non leaf types in ArgView._setArgValue");let u,d;return null==e?d=null:e.target&&"string"==typeof e.target.value?(u=e.target.value,d=P(c,u)):e.target||"VariableDefinition"!==e.kind?"string"==typeof e.kind&&(d=e):(u=e,d=u.variable),t.modifyArguments((l.arguments||[]).map((e=>e===s?{...e,value:d}:e)),n)},getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})},bh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};var yh=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:bh}))};const wh=e.forwardRef(yh),xh=t=>{let n;const r=()=>t.selections.find((e=>"FragmentSpread"===e.kind&&e.name.value===t.fragment.name.value)),{styleConfig:o}=t,i=r();return(0,e.createElement)("div",{className:`graphiql-explorer-${t.fragment.name.value}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:i?()=>{const e=r();n=e,t.modifySelections(t.selections.filter((e=>!("FragmentSpread"===e.kind&&e.name.value===t.fragment.name.value))))}:()=>{t.modifySelections([...t.selections,n||{kind:"FragmentSpread",name:t.fragment.name}])}},(0,e.createElement)(Bc,{checked:!!i,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:o.colors.def},className:`graphiql-explorer-${t.fragment.name.value}`},t.fragment.name.value),(0,e.createElement)(ts,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Edit the ${t.fragment.name.value} Fragment`},(0,e.createElement)(Lc,{style:{height:"18px",margin:"0px 5px"},title:`Edit the ${t.fragment.name.value} Fragment`,type:"primary",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation();const n=window.document.getElementById(`collapse-wrap-fragment-${t.fragment.name.value}`);n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},icon:(0,e.createElement)(wh,null)}))))},Ch=t=>{let n;const r=()=>{const e=t.selections.find((e=>"InlineFragment"===e.kind&&e.typeCondition&&t.implementingType.name===e.typeCondition.name.value));return e?"InlineFragment"===e.kind?e:void 0:null},o=(e,n)=>{const o=r();return t.modifySelections(t.selections.map((n=>n===o?{directives:n.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:n)),n)},{implementingType:i,schema:a,getDefaultFieldNames:l,styleConfig:s}=t,c=r(),u=i.getFields(),d=c&&c.selectionSet?c.selectionSet.selections:[];return(0,e.createElement)("div",{className:`graphiql-explorer-${i.name}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:c?()=>{const e=r();n=e,t.modifySelections(t.selections.filter((t=>t!==e)))}:()=>{t.modifySelections([...t.selections,n||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:t.getDefaultFieldNames(t.implementingType).map((e=>({kind:"Field",name:{kind:"Name",value:e}})))}}])}},(0,e.createElement)(Bc,{checked:!!c,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:s.colors.atom}},t.implementingType.name)),c?(0,e.createElement)("div",{style:{marginLeft:16}},Object.keys(u).sort().map((n=>(0,e.createElement)(Rh,{key:n,field:u[n],selections:d,modifySelections:o,schema:a,getDefaultFieldNames:l,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,onCommit:t.onCommit,styleConfig:t.styleConfig,definition:t.definition,availableFragments:t.availableFragments})))):null)},Sh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Eh=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:Sh}))};const $h=e.forwardRef(Eh),{getNamedType:kh,isInterfaceType:Oh,isObjectType:Ih,isUnionType:Ph}=wpGraphiQL.GraphQL,{useState:jh}=wp.element,Mh=t=>{const[n,r]=jh(!1);let o;const i=()=>{const e=t.selections.find((e=>"Field"===e.kind&&t.field.name===e.name.value));return e?"Field"===e.kind?e:void 0:null},a=(e,n)=>{const r=i();if(r)return t.modifySelections(t.selections.map((t=>t===r?{alias:r.alias,arguments:e,directives:r.directives,kind:"Field",name:r.name,selectionSet:r.selectionSet}:t)),n);console.error("Missing selection when setting arguments",e)},l=(e,n)=>t.modifySelections(t.selections.map((n=>{if("Field"===n.kind&&t.field.name===n.name.value){if("Field"!==n.kind)throw new Error("invalid selection");return{alias:n.alias,arguments:n.arguments,directives:n.directives,kind:"Field",name:n.name,selectionSet:{kind:"SelectionSet",selections:e}}}return n})),n),{field:s,schema:c,getDefaultFieldNames:u,styleConfig:d}=t,f=i(),p=O(s.type),m=s.args.sort(((e,t)=>e.name.localeCompare(t.name)));let g=`graphiql-explorer-node graphiql-explorer-${s.name}`;s.isDeprecated&&(g+=" graphiql-explorer-deprecated");const h=Ih(p)||Oh(p)||Ph(p)?t.availableFragments&&t.availableFragments[p.name]:null,v=f&&f.selectionSet?f.selectionSet.selections:[],b=(0,e.createElement)("div",{className:g},(0,e.createElement)("span",{title:s.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":s.name,"data-field-type":p.name,onClick:e=>{if(i()&&!e.altKey)(()=>{const e=i();o=e,t.modifySelections(t.selections.filter((t=>t!==e)))})();else{const n=kh(t.field.type),r=Ih(n)&&n.getFields();r&&e.altKey?(e=>{const n={kind:"SelectionSet",selections:e?Object.keys(e).map((e=>({kind:"Field",name:{kind:"Name",value:e},arguments:[]}))):[]},r=[...t.selections.filter((e=>"InlineFragment"===e.kind||e.name.value!==t.field.name)),{kind:"Field",name:{kind:"Name",value:t.field.name},arguments:M(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field),selectionSet:n}];t.modifySelections(r)})(r):(e=>{const n=[...t.selections,o||{kind:"Field",name:{kind:"Name",value:t.field.name},arguments:M(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field)}];t.modifySelections(n)})()}},onMouseEnter:()=>{Ih(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter((e=>"FragmentSpread"!==e.kind)).length>0&&r(!0)},onMouseLeave:()=>r(!1)},Ih(p)?(0,e.createElement)("span",null,f?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):null,Ih(p)?null:(0,e.createElement)(Bc,{checked:!!f,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view"},s.name),n?(0,e.createElement)(ts,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:"Extract selections into a new reusable fragment"},(0,e.createElement)(Lc,{size:"small",type:"primary",title:"Extract selections into a new reusable fragment",onClick:e=>{e.preventDefault(),e.stopPropagation();let n=`${p.name}Fragment`;const o=(h||[]).filter((e=>e.name.value.startsWith(n))).length;o>0&&(n=`${n}${o}`);const i=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:p.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:v}},s=l(i,!1);if(s){const e={...s,definitions:[...s.definitions,a]};t.onCommit(e)}else console.warn("Unable to complete extractFragment operation");r(!1)},icon:(0,e.createElement)($h,null),style:{height:"18px",margin:"0px 5px"}})):null),f&&m.length?(0,e.createElement)("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},m.map((n=>(0,e.createElement)(vh,{key:n.name,parentField:s,arg:n,selection:f,modifyArguments:a,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})))):null);if(f){const n=O(p),r=n&&"getFields"in n?n.getFields():null;if(r)return(0,e.createElement)("div",{className:`graphiql-explorer-${s.name}`},b,(0,e.createElement)("div",{style:{marginLeft:16}},h?h.map((n=>{const r=c.getType(n.typeCondition.name.value),o=n.name.value;return r?(0,e.createElement)(xh,{key:o,fragment:n,selections:v,modifySelections:l,schema:c,styleConfig:t.styleConfig,onCommit:t.onCommit}):null})):null,Object.keys(r).sort().map((n=>(0,e.createElement)(Mh,{key:n,field:r[n],selections:v,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition,availableFragments:t.availableFragments}))),Oh(p)||Ph(p)?c.getPossibleTypes(p).map((n=>(0,e.createElement)(Ch,{key:n.name,implementingType:n,selections:v,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition}))):null));if(Ph(p))return(0,e.createElement)("div",{className:`graphiql-explorer-${s.name}`},b,(0,e.createElement)("div",{style:{marginLeft:16}},c.getPossibleTypes(p).map((n=>(0,e.createElement)(Ch,{key:n.name,implementingType:n,selections:v,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})))))}return b},Rh=Mh;var Nh=n(2833),Ah=n.n(Nh);const Fh=function(e){function t(e,r,s,c,f){for(var p,m,g,h,w,C=0,S=0,E=0,$=0,k=0,R=0,A=g=p=0,T=0,z=0,L=0,B=0,D=s.length,H=D-1,_="",V="",W="",q="";Tp)&&(B=(_=_.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Jh=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&Zh(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=nv&&(nv=t+1),ev.set(e,t),tv.set(t,e)},av="style["+Uh+'][data-styled-version="5.3.5"]',lv=new RegExp("^"+Uh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),sv=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Uh))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Uh,"active"),r.setAttribute("data-styled-version","5.3.5");var a=uv();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},fv=function(){function e(e){var t=this.element=dv(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),bv=/(a)(d)/gi,yv=function(e){return String.fromCharCode(e+(e>25?39:97))};function wv(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=yv(t%52)+n;return(yv(t%52)+n).replace(bv,"$1-$2")}var xv=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Cv=function(e){return xv(5381,e)};function Sv(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,c=xv(this.baseHash,n.hash),u="",d=0;d>>0);if(!t.hasNameForId(r,g)){var h=n(u,"."+g,void 0,r);t.insertRules(r,g,h)}o.push(g)}}return o.join(" ")},e}(),kv=/^\s*\/\/.*$/gm,Ov=[":","[",".","#"];function Iv(e){var t,n,r,o,i=void 0===e?qh:e,a=i.options,l=void 0===a?qh:a,s=i.plugins,c=void 0===s?Wh:s,u=new Fh(l),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==Ov.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(kv,""),c=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||Zh(15),xv(e,t.name)}),5381).toString():"",m}var Pv=t().createContext(),jv=(Pv.Consumer,t().createContext()),Mv=(jv.Consumer,new vv),Rv=Iv();function Nv(){return(0,e.useContext)(Pv)||Mv}function Av(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=Nv(),l=(0,e.useMemo)((function(){var e=a;return n.sheet?e=n.sheet:n.target&&(e=e.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[n.disableCSSOMInjection,n.sheet,n.target]),s=(0,e.useMemo)((function(){return Iv({options:{prefix:!n.disableVendorPrefixes},plugins:o})}),[n.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){Ah()(o,n.stylisPlugins)||i(n.stylisPlugins)}),[n.stylisPlugins]),t().createElement(Pv.Provider,{value:l},t().createElement(jv.Provider,{value:s},n.children))}var Fv=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Rv);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Zh(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Rv),this.name+e.hash},e}(),Tv=/([A-Z])/,zv=/([A-Z])/g,Lv=/^ms-/,Bv=function(e){return"-"+e.toLowerCase()};function Dv(e){return Tv.test(e)?e.replace(zv,Bv).replace(Lv,"-ms-"):e}var Hv=function(e){return null==e||!1===e||""===e};function _v(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Gv=/(^-|-$)/g;function Xv(e){return e.replace(qv,"-").replace(Gv,"")}function Kv(e){return"string"==typeof e&&!0}var Uv=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Yv=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Qv(e,t,n){var r=e[n];Uv(t)&&Uv(r)?Zv(r,t):e[n]=t}function Zv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.5"+n+eb[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):c,d=r.displayName,f=void 0===d?function(e){return Kv(e)?"styled."+e:"Styled("+Xh(e)+")"}(n):d,p=r.displayName&&r.componentId?Xv(r.displayName)+"-"+r.componentId:r.componentId||u,m=i&&n.attrs?Array.prototype.concat(n.attrs,s).filter(Boolean):s,g=r.shouldForwardProp;i&&n.shouldForwardProp&&(g=r.shouldForwardProp?function(e,t,o){return n.shouldForwardProp(e,t,o)&&r.shouldForwardProp(e,t,o)}:n.shouldForwardProp);var h,v=new $v(o,p,i?n.componentStyle:void 0),b=v.isStatic&&0===s.length,y=function(t,n){return function(t,n,r,o){var i=t.attrs,a=t.componentStyle,l=t.defaultProps,s=t.foldedComponentIds,c=t.shouldForwardProp,u=t.styledComponentId,d=t.target,f=function(e,t,n){void 0===e&&(e=qh);var r=Hh({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Gh(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=qh),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,e.useContext)(Jv),l)||qh,n,i),p=f[0],m=f[1],g=function(t,n,r,o){var i=Nv(),a=(0,e.useContext)(jv)||Rv;return n?t.generateAndInjectStyles(qh,i,a):t.generateAndInjectStyles(r,i,a)}(a,o,p),h=r,v=m.$as||n.$as||m.as||n.as||d,b=Kv(v),y=m!==n?Hh({},n,{},m):n,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(c?c(x,Lh,v):!b||Lh(x))&&(w[x]=y[x]));return n.style&&m.style!==n.style&&(w.style=Hh({},n.style,{},m.style)),w.className=Array.prototype.concat(s,u,g!==u?g:null,n.className,m.className).filter(Boolean).join(" "),w.ref=h,(0,e.createElement)(v,w)}(h,t,n,b)};return y.displayName=f,(h=t().forwardRef(y)).attrs=m,h.componentStyle=v,h.displayName=f,h.shouldForwardProp=g,h.foldedComponentIds=i?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):Wh,h.styledComponentId=p,h.target=i?n.target:n,h.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(Kv(e)?e:Xv(Xh(e)));return tb(e,Hh({},n,{attrs:m,componentId:i}),o)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Zv({},n.defaultProps,e):e}}),h.toString=function(){return"."+h.styledComponentId},a&&Dh()(h,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var nb=function(e){return function e(t,n,r){if(void 0===r&&(r=qh),!(0,oe.isValidElementType)(n))return Zh(1,String(n));var o=function(){return t(n,r,Wv.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Hh({},r,{},o))},o.attrs=function(o){return e(t,n,Hh({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(tb,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){nb[e]=nb(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Sv(e),vv.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,n,r){var o=r(_v(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,n,r){e>2&&vv.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=uv();return""},this.getStyleTags=function(){return e.sealed?Zh(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return Zh(2);var r=((n={})[Uh]="",n["data-styled-version"]="5.3.5",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=uv();return o&&(r.nonce=o),[t().createElement("style",Hh({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new vv({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Zh(2):t().createElement(Av,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Zh(3)}}();const rb=nb,ob=t().createContext({}),ib={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var ab=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:ib}))};const lb=e.forwardRef(ab),sb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var cb=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:sb}))};const ub=e.forwardRef(cb),db={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var fb=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:db}))};const pb=e.forwardRef(fb);var mb=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.style,i=t.className,a=t.duration,l=void 0===a?4.5:a,s=t.eventKey,c=t.content,u=t.closable,d=t.closeIcon,f=void 0===d?"x":d,p=t.props,m=t.onClick,g=t.onNoticeClose,h=t.times,v=t.hovering,b=X(e.useState(!1),2),y=b[0],w=b[1],x=v||y,C=function(){g(s)};e.useEffect((function(){if(!x&&l>0){var e=setTimeout((function(){C()}),1e3*l);return function(){clearTimeout(e)}}}),[l,x,h]);var S="".concat(r,"-notice");return e.createElement("div",T({},p,{ref:n,className:A()(S,i,B({},"".concat(S,"-closable"),u)),style:o,onMouseEnter:function(e){var t;w(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;w(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:m}),e.createElement("div",{className:"".concat(S,"-content")},c),u&&e.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Df.ENTER||C()},onClick:function(e){e.preventDefault(),e.stopPropagation(),C()}},f))}));const gb=mb;var hb=t().createContext({});const vb=function(e){var n=e.children,r=e.classNames;return t().createElement(hb.Provider,{value:{classNames:r}},n)};var bb=["className","style","classNames","styles"];const yb=function(n){var r,o,i,a,l,s,c=n.configList,u=n.placement,d=n.prefixCls,f=n.className,p=n.style,m=n.motion,g=n.onAllNoticeRemoved,h=n.onNoticeClose,v=n.stack,b=(0,e.useContext)(hb).classNames,y=(0,e.useRef)({}),w=X((0,e.useState)(null),2),x=w[0],C=w[1],S=X((0,e.useState)([]),2),E=S[0],$=S[1],k=c.map((function(e){return{config:e,key:String(e.key)}})),O=X((s={offset:8,threshold:3,gap:16},(o=v)&&"object"===z(o)&&(s.offset=null!==(i=o.offset)&&void 0!==i?i:8,s.threshold=null!==(a=o.threshold)&&void 0!==a?a:3,s.gap=null!==(l=o.gap)&&void 0!==l?l:16),[!!o,s]),2),I=O[0],P=O[1],j=P.offset,M=P.threshold,R=P.gap,N=I&&(E.length>0||k.length<=M),F="function"==typeof m?m(u):m;return(0,e.useEffect)((function(){I&&E.length>1&&$((function(e){return e.filter((function(e){return k.some((function(t){var n=t.key;return e===n}))}))}))}),[E,k,I]),(0,e.useEffect)((function(){var e,t;I&&y.current[null===(e=k[k.length-1])||void 0===e?void 0:e.key]&&C(y.current[null===(t=k[k.length-1])||void 0===t?void 0:t.key])}),[k,I]),t().createElement(Rn,T({key:u,className:A()(d,"".concat(d,"-").concat(u),null==b?void 0:b.list,f,(r={},B(r,"".concat(d,"-stack"),!!I),B(r,"".concat(d,"-stack-expanded"),N),r)),style:p,keys:k,motionAppear:!0},F,{onAllRemoved:function(){g(u)}}),(function(e,n){var r=e.config,o=e.className,i=e.style,a=e.index,l=r,s=l.key,c=l.times,f=String(s),p=r,m=p.className,g=p.style,v=p.classNames,w=p.styles,C=_(p,bb),S=k.findIndex((function(e){return e.key===f})),O={};if(I){var P=k.length-1-(S>-1?S:a-1),M="top"===u||"bottom"===u?"-50%":"0";if(P>0){var F,z,L;O.height=N?null===(F=y.current[f])||void 0===F?void 0:F.offsetHeight:null==x?void 0:x.offsetHeight;for(var B=0,D=0;D-1?y.current[f]=e:delete y.current[f]},prefixCls:d,classNames:v,styles:w,className:A()(m,null==b?void 0:b.notice),style:g,times:c,key:s,eventKey:s,onNoticeClose:h,hovering:I&&E.length>0})))}))};var wb=e.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-notification":r,i=t.container,a=t.motion,l=t.maxCount,s=t.className,c=t.style,u=t.onAllRemoved,d=t.stack,f=t.renderNotifications,p=X(e.useState([]),2),m=p[0],g=p[1],h=function(e){var t,n=m.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),g((function(t){return t.filter((function(t){return t.key!==e}))}))};e.useImperativeHandle(n,(function(){return{open:function(e){g((function(t){var n,r=fe(t),o=r.findIndex((function(t){return t.key===e.key})),i=H({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){h(e)},destroy:function(){g([])}}}));var v=X(e.useState({}),2),b=v[0],y=v[1];e.useEffect((function(){var e={};m.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[m]);var w=function(e){y((function(t){var n=H({},t);return(n[e]||[]).length||delete n[e],n}))},x=e.useRef(!1);if(e.useEffect((function(){Object.keys(b).length>0?x.current=!0:x.current&&(null==u||u(),x.current=!1)}),[b]),!i)return null;var C=Object.keys(b);return(0,K.createPortal)(e.createElement(e.Fragment,null,C.map((function(t){var n=b[t],r=e.createElement(yb,{key:t,configList:n,placement:t,prefixCls:o,className:null==s?void 0:s(t),style:null==c?void 0:c(t),motion:a,onNoticeClose:h,onAllNoticeRemoved:w,stack:d});return f?f(r,{prefixCls:o,key:t}):r}))),i)}));const xb=wb;var Cb=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Sb=function(){return document.body},Eb=0;const $b=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new ii("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new ii("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new ii("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new ii("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},kb=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Ob={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Ib=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Pb=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Ib(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Pb(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},kb.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Ob[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},Mb=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,fontSize:g,lineHeight:h,width:v,notificationIconSize:b,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[w]:{padding:p,width:v,maxWidth:`calc(100vw - ${Dr(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:h,wordWrap:"break-word"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:g,color:y},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:g},[`${w}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},rl(e)),[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},Rb=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new ii("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ja(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Mb(e))}}]},Nb=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384}),Ab=e=>{const t=e.paddingMD,n=e.paddingLG;return fl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Dr(e.paddingMD)} ${Dr(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Fb=wl("Notification",(e=>{const t=Ab(e);return[Rb(t),$b(t),jb(t)]}),Nb),Tb=yl(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=Ab(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Mb(n)),{width:n.width,maxWidth:`calc(100vw - ${Dr(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Nb);function zb(t,n){return null===n||!1===n?null:n||e.createElement(Jg,{className:`${t}-close-icon`})}const Lb={success:lb,info:pb,error:Xd,warning:ub},Bb=t=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,btn:l,role:s="alert"}=t;let c=null;return r?c=e.createElement("span",{className:`${n}-icon`},r):o&&(c=e.createElement(Lb[o]||null,{className:A()(`${n}-icon`,`${n}-icon-${o}`)})),e.createElement("div",{className:A()({[`${n}-with-icon`]:c}),role:s},c,e.createElement("div",{className:`${n}-message`},i),e.createElement("div",{className:`${n}-description`},a),l&&e.createElement("div",{className:`${n}-btn`},l))};const Db=e=>{let{children:n,prefixCls:r}=e;const o=Qd(r),[i,a,l]=Fb(r,o);return i(t().createElement(vb,{classNames:{list:A()(a,l,o)}},n))},Hb=(e,n)=>{let{prefixCls:r,key:o}=n;return t().createElement(Db,{prefixCls:r,key:o},e)},_b=t().forwardRef(((n,r)=>{const{top:o,bottom:i,prefixCls:a,getContainer:l,maxCount:s,rtl:c,onAllRemoved:u,stack:d,duration:f}=n,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:h}=(0,e.useContext)(Ba),[,v]=ua(),b=a||p("notification"),[y,w]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getContainer,r=void 0===n?Sb:n,o=t.motion,i=t.prefixCls,a=t.maxCount,l=t.className,s=t.style,c=t.onAllRemoved,u=t.stack,d=t.renderNotifications,f=_(t,Cb),p=X(e.useState(),2),m=p[0],g=p[1],h=e.useRef(),v=e.createElement(xb,{container:m,ref:h,prefixCls:i,motion:o,maxCount:a,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),b=X(e.useState([]),2),y=b[0],w=b[1],x=e.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;rfunction(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=o?o:24,null!=i?i:24),className:()=>A()({[`${b}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e){return{motionName:`${e}-fade`}}(b),closable:!0,closeIcon:zb(b),duration:null!=f?f:4.5,getContainer:()=>(null==l?void 0:l())||(null==m?void 0:m())||document.body,maxCount:s,onAllRemoved:u,renderNotifications:Hb,stack:!1!==d&&{threshold:"object"==typeof d?null==d?void 0:d.threshold:void 0,offset:8,gap:v.margin}});return t().useImperativeHandle(r,(()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:g}))),w}));function Vb(e){const n=t().useRef(null),r=(za(),t().useMemo((()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,s=`${a}-notice`,{message:c,description:u,icon:d,type:f,btn:p,className:m,style:g,role:h="alert",closeIcon:v}=r,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[r,t().createElement(_b,Object.assign({key:"notification-holder"},e,{ref:n}))]}let Wb=null,qb=e=>e(),Gb=[],Xb={};function Kb(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Xb,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Ub=t().forwardRef(((n,r)=>{const{notificationConfig:o,sync:i}=n,{getPrefixCls:a}=(0,e.useContext)(Ba),l=Xb.prefixCls||a("notification"),s=(0,e.useContext)(ob),[c,u]=Vb(Object.assign(Object.assign(Object.assign({},o),{prefixCls:l}),s.notification));return t().useEffect(i,[]),t().useImperativeHandle(r,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return i(),c[t].apply(c,arguments)}})),{instance:e,sync:i}})),u})),Yb=t().forwardRef(((e,n)=>{const[r,o]=t().useState(Kb),i=()=>{o(Kb)};t().useEffect(i,[]);const a=Xm(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=t().createElement(Ub,{ref:n,sync:i,notificationConfig:r});return t().createElement(Ym,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}));function Qb(){if(!Wb){const e=document.createDocumentFragment(),n={fragment:e};return Wb=n,void qb((()=>{gs(t().createElement(Yb,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,Qb())}))}}),e)}))}Wb.instance&&(Gb.forEach((e=>{switch(e.type){case"open":qb((()=>{Wb.instance.open(Object.assign(Object.assign({},Xb),e.config))}));break;case"destroy":qb((()=>{null==Wb||Wb.instance.destroy(e.key)}))}})),Gb=[])}function Zb(e){Xm(),Gb.push({type:"open",config:e}),Qb()}const Jb={open:Zb,destroy:function(e){Gb.push({type:"destroy",key:e}),Qb()},config:function(e){Xb=Object.assign(Object.assign({},Xb),e),qb((()=>{var e;null===(e=null==Wb?void 0:Wb.sync)||void 0===e||e.call(Wb)}))},useNotification:function(e){return Vb(e)},_InternalPanelDoNotUseOrYouWillBeFired:t=>{const{prefixCls:n,className:r,icon:o,type:i,message:a,description:l,btn:s,closable:c=!0,closeIcon:u,className:d}=t,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{Jb[e]=t=>Zb(Object.assign(Object.assign({},t),{type:e}))}));const ey=Jb;var ty=e.createContext(null);function ny(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ry(t){return ny(e.useContext(ty),t)}var oy=["children","locked"],iy=e.createContext(null);function ay(t){var n=t.children,r=t.locked,o=_(t,oy),i=e.useContext(iy),a=ie((function(){return e=o,t=H({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&hr(e[1],t[1],!0))}));return e.createElement(iy.Provider,{value:a},n)}var ly=[],sy=e.createContext(null);function cy(){return e.useContext(sy)}var uy=e.createContext(ly);function dy(t){var n=e.useContext(uy);return e.useMemo((function(){return void 0!==t?[].concat(fe(n),[t]):n}),[n,t])}var fy=e.createContext(null);const py=e.createContext({});function my(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(qn(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var gy=Df.LEFT,hy=Df.RIGHT,vy=Df.UP,by=Df.DOWN,yy=Df.ENTER,wy=Df.ESC,xy=Df.HOME,Cy=Df.END,Sy=[vy,by,gy,hy];function Ey(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fe(e.querySelectorAll("*")).filter((function(e){return my(e,t)}));return my(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function $y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Ey(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var ky=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(ny(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var Oy="__RC_UTIL_PATH_SPLIT__",Iy=function(e){return e.join(Oy)},Py="rc-menu-more";function jy(t){var n=e.useRef(t);n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||h(!0),null==y?void 0:y(e)},g?null:e.createElement(ay,{mode:a,locked:!p.current},e.createElement(Nn,T({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(Ky,{id:n,className:r,style:o},i)})))}var rw=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ow=["active"],iw=function(t){var n=t.style,r=t.className,o=t.title,i=t.eventKey,a=(t.warnKey,t.disabled),l=t.internalPopupClose,s=t.children,c=t.itemIcon,u=t.expandIcon,d=t.popupClassName,f=t.popupOffset,p=t.popupStyle,m=t.onClick,g=t.onMouseEnter,h=t.onMouseLeave,v=t.onTitleClick,b=t.onTitleMouseEnter,y=t.onTitleMouseLeave,w=_(t,rw),x=ry(i),C=e.useContext(iy),S=C.prefixCls,E=C.mode,$=C.openKeys,k=C.disabled,O=C.overflowDisabled,I=C.activeKey,P=C.selectedKeys,j=C.itemIcon,M=C.expandIcon,R=C.onItemClick,N=C.onOpenChange,F=C.onActive,z=e.useContext(py)._internalRenderSubMenuItem,L=e.useContext(fy).isSubPathKey,D=dy(),V="".concat(S,"-submenu"),W=k||a,q=e.useRef(),G=e.useRef(),K=null!=c?c:j,U=null!=u?u:M,Y=$.includes(i),Q=!O&&Y,Z=L(P,i),J=Ny(i,W,b,y),ee=J.active,te=_(J,ow),ne=X(e.useState(!1),2),re=ne[0],oe=ne[1],ie=function(e){W||oe(e)},ae=e.useMemo((function(){return ee||"inline"!==E&&(re||L([I],i))}),[E,ee,I,re,i,L]),le=Ay(D.length),se=jy((function(e){null==m||m(zy(e)),R(e)})),ce=x&&"".concat(x,"-popup"),ue=e.createElement("div",T({role:"menuitem",style:le,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:q,title:"string"==typeof o?o:null,"data-menu-id":O&&x?null:x,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":W,onClick:function(e){W||(null==v||v({key:i,domEvent:e}),"inline"===E&&N(i,!Y))},onFocus:function(){F(i)}},te),o,e.createElement(Fy,{icon:"horizontal"!==E?U:void 0,props:H(H({},t),{},{isOpen:Q,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))),de=e.useRef(E);if("inline"!==E&&D.length>1?de.current="vertical":de.current=E,!O){var fe=de.current;ue=e.createElement(tw,{mode:fe,prefixCls:V,visible:!l&&Q&&"inline"!==E,popupClassName:d,popupOffset:f,popupStyle:p,popup:e.createElement(ay,{mode:"horizontal"===fe?"vertical":fe},e.createElement(Ky,{id:ce,ref:G},s)),disabled:W,onVisibleChange:function(e){"inline"!==E&&N(i,e)}},ue)}var pe=e.createElement(fp.Item,T({role:"none"},w,{component:"li",style:n,className:A()(V,"".concat(V,"-").concat(E),r,B(B(B(B({},"".concat(V,"-open"),Q),"".concat(V,"-active"),ae),"".concat(V,"-selected"),Z),"".concat(V,"-disabled"),W)),onMouseEnter:function(e){ie(!0),null==g||g({key:i,domEvent:e})},onMouseLeave:function(e){ie(!1),null==h||h({key:i,domEvent:e})}}),ue,!O&&e.createElement(nw,{id:ce,open:Q,keyPath:D},s));return z&&(pe=z(pe,t,{selected:Z,active:ae,open:Q,disabled:W})),e.createElement(ay,{onItemClick:se,mode:"horizontal"===E?"vertical":E,itemIcon:K,expandIcon:U},pe)};function aw(t){var n,r=t.eventKey,o=t.children,i=dy(r),a=Uy(o,i),l=cy();return e.useEffect((function(){if(l)return l.registerPath(r,i),function(){l.unregisterPath(r,i)}}),[i]),n=l?a:e.createElement(iw,t,a),e.createElement(uy.Provider,{value:i},n)}var lw=["className","title","eventKey","children"],sw=["children"],cw=function(t){var n=t.className,r=t.title,o=(t.eventKey,t.children),i=_(t,lw),a=e.useContext(iy).prefixCls,l="".concat(a,"-item-group");return e.createElement("li",T({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:A()(l,n)}),e.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),e.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function uw(t){var n=t.children,r=_(t,sw),o=Uy(n,dy(r.eventKey));return cy()?o:e.createElement(cw,ns(r,["warnKey"]),o)}function dw(t){var n=t.className,r=t.style,o=e.useContext(iy).prefixCls;return cy()?null:e.createElement("li",{role:"separator",className:A()("".concat(o,"-item-divider"),n),style:r})}var fw=["label","children","key","type"];function pw(t){return(t||[]).map((function(t,n){if(t&&"object"===z(t)){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,s=_(r,fw),c=null!=a?a:"tmp-".concat(n);return i||"group"===l?"group"===l?e.createElement(uw,T({key:c},s,{title:o}),pw(i)):e.createElement(aw,T({key:c},s,{title:o}),pw(i)):"divider"===l?e.createElement(dw,T({key:c},s)):e.createElement(Wy,T({key:c},s),o)}return null})).filter((function(e){return e}))}function mw(e,t,n){var r=e;return t&&(r=pw(t)),Uy(r,n)}var gw=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],hw=[],vw=e.forwardRef((function(t,n){var r,o=t,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,m=o.direction,g=o.id,h=o.mode,v=void 0===h?"vertical":h,b=o.inlineCollapsed,y=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,C=void 0===x?.1:x,S=o.subMenuCloseDelay,E=void 0===S?.1:S,$=o.forceSubMenuRender,k=o.defaultOpenKeys,O=o.openKeys,I=o.activeKey,P=o.defaultActiveFirst,j=o.selectable,M=void 0===j||j,R=o.multiple,N=void 0!==R&&R,F=o.defaultSelectedKeys,z=o.selectedKeys,L=o.onSelect,D=o.onDeselect,V=o.inlineIndent,W=void 0===V?24:V,q=o.motion,G=o.defaultMotions,U=o.triggerSubMenuAction,Y=void 0===U?"hover":U,Q=o.builtinPlacements,Z=o.itemIcon,J=o.expandIcon,ee=o.overflowedIndicator,te=void 0===ee?"...":ee,ne=o.overflowedIndicatorPopupClassName,re=o.getPopupContainer,oe=o.onClick,ie=o.onOpenChange,ae=o.onKeyDown,le=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ce=_(o,gw),ue=e.useMemo((function(){return mw(p,f,hw)}),[p,f]),de=X(e.useState(!1),2),pe=de[0],me=de[1],ge=e.useRef(),he=function(t){var n=X(mr(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){Ry+=1;var e="".concat(My,"-").concat(Ry);o("rc-menu-uuid-".concat(e))}),[]),r}(g),ve="rtl"===m,be=mr(k,{value:O,postState:function(e){return e||hw}}),ye=X(be,2),we=ye[0],xe=ye[1],Ce=function(e){function t(){xe(e),null==ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,K.flushSync)(t):t()},Se=X(e.useState(we),2),Ee=Se[0],$e=Se[1],ke=e.useRef(!1),Oe=X(e.useMemo((function(){return"inline"!==v&&"vertical"!==v||!b?[v,!1]:["vertical",b]}),[v,b]),2),Ie=Oe[0],Pe=Oe[1],je="inline"===Ie,Me=X(e.useState(Ie),2),Re=Me[0],Ne=Me[1],Ae=X(e.useState(Pe),2),Fe=Ae[0],Te=Ae[1];e.useEffect((function(){Ne(Ie),Te(Pe),ke.current&&(je?xe(Ee):Ce(hw))}),[Ie,Pe]);var ze=X(e.useState(0),2),Le=ze[0],Be=ze[1],De=Le>=ue.length-1||"horizontal"!==Re||w;e.useEffect((function(){je&&$e(we)}),[we]),e.useEffect((function(){return ke.current=!0,function(){ke.current=!1}}),[]);var He=function(){var t=X(e.useState({}),2)[1],n=(0,e.useRef)(new Map),r=(0,e.useRef)(new Map),o=X(e.useState([]),2),i=o[0],a=o[1],l=(0,e.useRef)(0),s=(0,e.useRef)(!1),c=(0,e.useCallback)((function(e,o){var i=Iy(o);r.current.set(i,e),n.current.set(e,i),l.current+=1;var a,c=l.current;a=function(){c===l.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),u=(0,e.useCallback)((function(e,t){var o=Iy(t);r.current.delete(o),n.current.delete(e)}),[]),d=(0,e.useCallback)((function(e){a(e)}),[]),f=(0,e.useCallback)((function(e,t){var r=(n.current.get(e)||"").split(Oy);return t&&i.includes(r[0])&&r.unshift(Py),r}),[i]),p=(0,e.useCallback)((function(e,t){return e.some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,e.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Oy),o=new Set;return fe(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return e.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:c,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=fe(n.current.keys());return i.length&&e.push(Py),e},getSubPathKeys:m}}(),_e=He.registerPath,Ve=He.unregisterPath,We=He.refreshOverflowKeys,qe=He.isSubPathKey,Ge=He.getKeyPath,Xe=He.getKeys,Ke=He.getSubPathKeys,Ue=e.useMemo((function(){return{registerPath:_e,unregisterPath:Ve}}),[_e,Ve]),Ye=e.useMemo((function(){return{isSubPathKey:qe}}),[qe]);e.useEffect((function(){We(De?hw:ue.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var Qe=X(mr(I||P&&(null===(r=ue[0])||void 0===r?void 0:r.key),{value:I}),2),Ze=Qe[0],Je=Qe[1],et=jy((function(e){Je(e)})),tt=jy((function(){Je(void 0)}));(0,e.useImperativeHandle)(n,(function(){return{list:ge.current,focus:function(e){var t,n,r=Xe(),o=ky(r,he),i=o.elements,a=o.key2element,l=o.element2key,s=Ey(ge.current,i),c=null!=Ze?Ze:s[0]?l.get(s[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var nt=mr(F||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?hw:[e]}}),rt=X(nt,2),ot=rt[0],it=rt[1],at=jy((function(e){null==oe||oe(zy(e)),function(e){if(M){var t,n=e.key,r=ot.includes(n);t=N?r?ot.filter((function(e){return e!==n})):[].concat(fe(ot),[n]):[n],it(t);var o=H(H({},e),{},{selectedKeys:t});r?null==D||D(o):null==L||L(o)}!N&&we.length&&"inline"!==Re&&Ce(hw)}(e)})),lt=jy((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=Ke(e);n=n.filter((function(e){return!r.has(e)}))}hr(we,n,!0)||Ce(n,!0)})),st=function(t,n,r,o,i,a,l,s,c,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){vn.cancel(d.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(Sy,[yy,wy,xy,Cy]).includes(m)){var g=a(),h=ky(g,o),v=h,b=v.elements,y=v.key2element,w=v.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),C=w.get(x),S=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===yy)return{inlineTrigger:!0};var c=B(B({},vy,i),by,a),u=B(B(B(B({},gy,n?a:i),hy,n?i:a),by,l),yy,l),d=B(B(B(B(B(B({},vy,i),by,a),yy,l),wy,s),gy,n?l:s),hy,n?s:l);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(t,1===l(C,!0).length,r,m);if(!S&&m!==xy&&m!==Cy)return;(Sy.includes(m)||[xy,Cy].includes(m))&&e.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);s(r),p(),d.current=vn((function(){f.current===r&&t.focus()}))}};if([xy,Cy].includes(m)||S.sibling||!x){var $,k,O=Ey($=x&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);k=m===xy?O[0]:m===Cy?O[O.length-1]:$y($,b,x,S.offset),E(k)}else if(S.inlineTrigger)c(C);else if(S.offset>0)c(C,!0),p(),d.current=vn((function(){h=ky(g,o);var e=x.getAttribute("aria-controls"),t=$y(document.getElementById(e),h.elements);E(t)}),5);else if(S.offset<0){var I=l(C,!0),P=I[I.length-2],j=y.get(P);c(P,!1),E(j)}}null==u||u(e)}}(Re,Ze,ve,he,ge,Xe,Ge,Je,(function(e,t){var n=null!=t?t:!we.includes(e);lt(e,n)}),ae);e.useEffect((function(){me(!0)}),[]);var ct=e.useMemo((function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:se}}),[le,se]),ut="horizontal"!==Re||w?ue:ue.map((function(t,n){return e.createElement(ay,{key:t.key,overflowDisabled:n>Le},t)})),dt=e.createElement(fp,T({id:g,ref:ge,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Wy,className:A()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Re),c,B(B({},"".concat(a,"-inline-collapsed"),Fe),"".concat(a,"-rtl"),ve),l),dir:m,style:s,role:"menu",tabIndex:d,data:ut,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?ue.slice(-n):null;return e.createElement(aw,{eventKey:Py,title:te,disabled:De,internalPopupClose:0===n,popupClassName:ne},r)},maxCount:"horizontal"!==Re||w?fp.INVALIDATE:fp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:st},ce));return e.createElement(py.Provider,{value:ct},e.createElement(ty.Provider,{value:he},e.createElement(ay,{prefixCls:a,rootClassName:l,mode:Re,openKeys:we,rtl:ve,disabled:y,motion:pe?q:null,defaultMotions:pe?G:null,activeKey:Ze,onActive:et,onInactive:tt,selectedKeys:ot,inlineIndent:W,subMenuOpenDelay:C,subMenuCloseDelay:E,forceSubMenuRender:$,builtinPlacements:Q,triggerSubMenuAction:Y,getPopupContainer:re,itemIcon:Z,expandIcon:J,onItemClick:at,onOpenChange:lt},e.createElement(fy.Provider,{value:Ye},dt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(sy.Provider,{value:Ue},ue)))))})),bw=vw;bw.Item=Wy,bw.SubMenu=aw,bw.ItemGroup=uw,bw.Divider=dw;const yw=bw,ww=e.createContext({});const xw=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{className:r,children:o,icon:i,title:a,danger:l}=t,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=e.useContext(Cw),{siderCollapsed:p}=e.useContext(ww);let m=a;void 0===a?m=c?o:"":!1===a&&(m="");const g={title:m};p||f||(g.title=null,g.open=!1);const h=Te(o).length;let v=e.createElement(Wy,Object.assign({},ns(t,["title","icon","danger"]),{className:A()({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:1===(i?h+1:h)},r),title:"string"==typeof a?a:void 0}),Aa(i,{className:A()(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${s}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${s}-title-content`},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&c&&"string"==typeof o?e.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):n})(f));return d||(v=e.createElement(ts,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),v)),v},Ew=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext(Cw),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=dy();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,Aa(o,{className:A()(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:"",`${s}-item-icon`)}),t?i:e.createElement("span",{className:`${s}-title-content`},i))}else f=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${s}-title-content`},i);const p=e.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=ga("Menu");return e.createElement(Cw.Provider,{value:p},e.createElement(aw,Object.assign({},ns(t,["icon"]),{title:f,popupClassName:A()(s,r,`${s}-${a||u}`),popupStyle:{zIndex:m}})))};var $w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(t&&"object"==typeof t){const r=t,{label:o,children:i,key:a,type:l}=r,s=$w(r,["label","children","key","type"]),c=null!=a?a:`tmp-${n}`;return i||"group"===l?"group"===l?e.createElement(uw,Object.assign({key:c},s,{title:o}),kw(i)):e.createElement(Ew,Object.assign({key:c},s,{title:o}),kw(i)):"divider"===l?e.createElement(xw,Object.assign({key:c},s)):e.createElement(Sw,Object.assign({key:c},s),o)}return null})).filter((e=>e))}function Ow(t){return e.useMemo((()=>t?kw(t):t),[t])}const Iw=e.createContext(null),Pw=e.forwardRef(((t,n)=>{const{children:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign({},i),o)),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(t){return!!(0,e.isValidElement)(t)&&!(0,oe.isFragment)(t)&&ce(t)}(r),s=se(n,l?r.ref:null);return e.createElement(Iw.Provider,{value:a},e.createElement(Il,null,l?e.cloneElement(r,{ref:s}):r))})),jw=Iw,Mw=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Rw=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Dr(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Nw=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Dr(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Dr(n)})`}}}}},Aw=e=>Object.assign({},nl(e)),Fw=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:O,itemActiveBg:I,menuSubMenuBg:P,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:R,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Aw(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Aw(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Dr(c)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Dr(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Dr(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${p}`,`opacity ${h} ${p}`].join(",")}}}}}},Tw=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Dr(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Dr(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:c}}},zw=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:Dr(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Tw(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Tw(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Dr(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Dr(e.calc(d).div(2).equal())} - ${Dr(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:Dr(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Za),{paddingInline:p})}}]},Lw=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Bw=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Dr(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Dr(a)})`}}}}},Dw=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ja(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Dr(l)} ${Dr(s)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lw(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Dr(e.calc(r).mul(2).equal())} ${Dr(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Lw(e)),Bw(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Bw(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dr(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Dr(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Dr(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Dr(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Dr(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Hw=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:C,controlHeightSM:S,fontSizeLG:E,colorTextLightSolid:$,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,j=new Gi($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:E,groupTitleFontSize:C,darkItemDisabledColor:new Gi($).setAlpha(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*P}px)`}},_w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=wl("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=fl(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=fl(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[Dw(x),Rw(x),zw(x),Fw(x,"light"),Fw(C,"dark"),Nw(x),Mw(x),bg(x,"slide-up"),bg(x,"slide-down"),Gl(x,"zoom-big")]}),Hw,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)};function Vw(e){return null===e||!1===e}const Ww=(0,e.forwardRef)(((t,n)=>{var r;const o=e.useContext(jw),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=e.useContext(Ba),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:b,items:y,children:w,rootClassName:x,mode:C,selectable:S,onClick:E,overflowedIndicatorPopupClassName:$}=t,k=ns(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==b?b:v),[v,b]),R={horizontal:{motionName:`${u}-slide-up`},inline:xa(u),other:{motionName:`${u}-zoom-big`}},N=a("menu",d||i.prefixCls),F=Qd(N),[T,z,L]=_w(N,F,!o),B=A()(`${N}-${m}`,null==c?void 0:c.className,f),D=e.useMemo((()=>{var t,n;if("function"==typeof g||Vw(g))return g||null;if("function"==typeof i.expandIcon||Vw(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Vw(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const r=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return Aa(r,{className:A()(`${N}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,N]),H=e.useMemo((()=>({prefixCls:N,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:m,mode:P,disableMenuItemTitleTooltip:h})),[N,M,s,h,m]);return T(e.createElement(jw.Provider,{value:null},e.createElement(Cw.Provider,{value:H},e.createElement(yw,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement($h,null),overflowedIndicatorPopupClassName:A()(N,`${N}-${m}`,$),mode:P,selectable:j,onClick:I},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:B,prefixCls:N,direction:s,defaultMotions:R,expandIcon:D,ref:n,rootClassName:A()(x,z,i.rootClassName,L,F)}),O))))})),qw=Ww,Gw=(0,e.forwardRef)(((t,n)=>{const r=(0,e.useRef)(null),o=e.useContext(ww);return(0,e.useImperativeHandle)(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(qw,Object.assign({ref:r},t,o))}));Gw.Item=Sw,Gw.SubMenu=Ew,Gw.Divider=xw,Gw.ItemGroup=uw;const Xw=Gw,Kw=e=>e?"function"==typeof e?e():e:null,Uw=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Ja(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},Oa(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Yw=e=>{const{componentCls:t}=e;return{[t]:Xl.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Qw=wl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=fl(e,{popoverBg:t,popoverColor:n});return[Uw(r),Yw(r),Gl(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Ca(e)),$a({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const Zw=t=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:s,children:c}=t;return e.createElement("div",{className:A()(n,r,`${r}-pure`,`${r}-placement-${a}`,o),style:i},e.createElement("div",{className:`${r}-arrow`}),e.createElement(F,Object.assign({},t,{className:n,prefixCls:r}),c||((t,n,r)=>n||r?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${t}-title`},Kw(n)),e.createElement("div",{className:`${t}-inner-content`},Kw(r))):null)(r,l,s)))},Jw=t=>{const{prefixCls:n,className:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:n,content:r,prefixCls:o}=t;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},Kw(n)),e.createElement("div",{className:`${o}-inner-content`},Kw(r)))},tx=e.forwardRef(((t,n)=>{const{prefixCls:r,title:o,content:i,overlayClassName:a,placement:l="top",trigger:s="hover",mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,overlayStyle:d={}}=t,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,f=e.useRef(!1),p=e.useRef(null),[m,g]=zt(!1),h=function(){null==a||a.apply(void 0,arguments)};return e.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),e.createElement(Lc,Object.assign({},Rs(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void h();let t;if(s){if(t=d(e),u&&!rx(t))return f.current=!1,void h(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!t)return void h();(e=>{rx(e)&&(g(!0),e.then((function(){g(!1,!0),h.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:m,prefixCls:o},i,{ref:p}),r)},ix=wl("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const ax=t=>{const{prefixCls:n,okButtonProps:r,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:s,okType:c="primary",icon:u=e.createElement(ub,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=t,{getPrefixCls:h}=e.useContext(Ba),[v]=Zm("Popconfirm",Im.Popconfirm),b=Kw(i),y=Kw(a);return e.createElement("div",{className:`${n}-inner-content`,onClick:g},e.createElement("div",{className:`${n}-message`},u&&e.createElement("span",{className:`${n}-message-icon`},u),e.createElement("div",{className:`${n}-message-text`},b&&e.createElement("div",{className:A()(`${n}-title`)},b),y&&e.createElement("div",{className:`${n}-description`},y))),e.createElement("div",{className:`${n}-buttons`},d&&e.createElement(Lc,Object.assign({onClick:m,size:"small"},o),l||(null==v?void 0:v.cancelText)),e.createElement(ox,{buttonProps:Object.assign(Object.assign({size:"small"},Rs(c)),r),actionFn:p,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==v?void 0:v.okText))))};const lx=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:i,placement:a="top",trigger:l="click",okType:s="primary",icon:c=e.createElement(ub,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:p}=t,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{v(e,!0),null==p||p(e),null==f||f(e,t)},y=g("popconfirm",i),w=A()(y,d),[x]=ix(y);return x(e.createElement(nx,Object.assign({},ns(m,["title"]),{trigger:l,placement:a,onOpenChange:e=>{const{disabled:n=!1}=t;n||b(e)},open:h,ref:n,overlayClassName:w,content:e.createElement(ax,Object.assign({okType:s,icon:c},t,{prefixCls:y,close:e=>{b(!1,e)},onConfirm:e=>{var n;return null===(n=t.onConfirm)||void 0===n?void 0:n.call(void 0,e)},onCancel:e=>{var n;b(!1,e),null===(n=t.onCancel)||void 0===n||n.call(void 0,e)}})),"data-popover-inject":!0}),Aa(u,{onKeyDown:t=>{var n,r;e.isValidElement(u)&&(null===(r=null==u?void 0:(n=u.props).onKeyDown)||void 0===r||r.call(n,t)),(e=>{e.keyCode===Df.ESC&&h&&b(!1,e)})(t)}})))}));lx._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,placement:r,className:o,style:i}=t,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Cx=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},Ja(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:cg},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:dg},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ug},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:fg}})},Oa(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},rl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Dr(c)} ${Dr(m)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Dr(c)} ${Dr(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},rl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Dr(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Dr(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[bg(e,"slide-up"),bg(e,"slide-down"),kg(e,"move-up"),kg(e,"move-down"),Gl(e,"zoom-big")]]},Sx=wl("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=fl(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Cx(i),xx(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},$a({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ca(e)))),Ex=t=>{const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:s,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,visible:g,onVisibleChange:h,mouseEnterDelay:v=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:w="",overlay:x,transitionName:C}=t,{getPopupContainer:S,getPrefixCls:E,direction:$,dropdown:k}=e.useContext(Ba);za();const O=e.useMemo((()=>{const e=E();return void 0!==C?C:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[E,w,C]),I=e.useMemo((()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===$?"bottomRight":"bottomLeft"),[w,$]),P=E("dropdown",o),j=Qd(P),[M,R,N]=Sx(P,j),[,F]=ua(),T=e.Children.only(i),z=Aa(T,{className:A()(`${P}-trigger`,{[`${P}-rtl`]:"rtl"===$},T.props.className),disabled:l}),L=l?[]:a;let B;L&&L.includes("contextMenu")&&(B=!0);const[D,H]=mr(!1,{value:null!=p?p:g}),_=Ot((e=>{null==m||m(e,{source:"trigger"}),null==h||h(e),H(e)})),V=A()(u,d,R,N,j,null==k?void 0:k.className,{[`${P}-rtl`]:"rtl"===$}),W=Ma({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:y,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),q=e.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==m||m(!1,{source:"menu"}),H(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[G,X]=ga("Dropdown",null==f?void 0:f.zIndex);let K=e.createElement(wx,Object.assign({alignPoint:B},ns(t,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:b,visible:D,builtinPlacements:W,arrow:!!r,overlayClassName:V,prefixCls:P,getPopupContainer:c||S,transitionName:O,trigger:L,overlay:()=>{let t;return t=(null==n?void 0:n.items)?e.createElement(Xw,Object.assign({},n)):"function"==typeof x?x():x,s&&(t=s(t)),t=e.Children.only("string"==typeof t?e.createElement("span",null,t):t),e.createElement(Pw,{prefixCls:`${P}-menu`,rootClassName:A()(N,j),expandIcon:e.createElement("span",{className:`${P}-menu-submenu-arrow`},e.createElement(dx,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:q,validator:e=>{let{mode:t}=e}},t)},placement:I,onVisibleChange:_,overlayStyle:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.style),f),{zIndex:G})}),z);return G&&(K=e.createElement(da.Provider,{value:X},K)),M(K)},$x=Qm(Ex,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Ex._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement($x,Object.assign({},t),e.createElement("span",null));const kx=Ex;function Ox(e){return["small","middle","large"].includes(e)}function Ix(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Px=t().createContext({latestIndex:0}),jx=Px.Provider,Mx=t=>{let{className:n,index:r,children:o,split:i,style:a}=t;const{latestIndex:l}=e.useContext(Px);return null==o?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:a},o),r{var r,o;const{getPrefixCls:i,space:a,direction:l}=e.useContext(Ba),{size:s=(null==a?void 0:a.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:m,split:g,style:h,wrap:v=!1,classNames:b,styles:y}=t,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var r,o;null!=t&&(T=n);const i=t&&t.key||`${F}-${n}`;return e.createElement(Mx,{className:F,key:i,index:n,split:g,style:null!==(r=null==y?void 0:y.item)&&void 0!==r?r:null===(o=null==a?void 0:a.styles)||void 0===o?void 0:o.item},t)})),L=e.useMemo((()=>({latestIndex:T})),[T]);if(0===O.length)return null;const B={};return v&&(B.flexWrap="wrap"),!E&&k&&(B.columnGap=x),!S&&$&&(B.rowGap=C),j(e.createElement("div",Object.assign({ref:n,className:N,style:Object.assign(Object.assign(Object.assign({},B),null==a?void 0:a.style),h)},w),e.createElement(jx,{value:L},z)))})),Nx=Rx;Nx.Compact=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Ba),{size:o,direction:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=t,d=$l(t,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Wa((e=>null!=o?o:e)),p=n("space-compact",l),[m,g]=El(p),h=A()(p,g,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},s,c),v=e.useContext(kl),b=Te(u),y=e.useMemo((()=>b.map(((t,n)=>{const r=t&&t.key||`${p}-item-${n}`;return e.createElement(Pl,{key:r,compactSize:f,compactDirection:i,isFirstItem:0===n&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:n===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},t)}))),[o,b,v]);return 0===b.length?null:m(e.createElement("div",Object.assign({className:h},d),y))};const Ax=Nx;const Fx=t=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=e.useContext(Ba),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:g,autoFocus:h,overlay:v,trigger:b,align:y,open:w,onOpenChange:x,placement:C,getPopupContainer:S,href:E,icon:$=e.createElement($h,null),title:k,buttonsRender:O=(e=>e),mouseEnterDelay:I,mouseLeaveDelay:P,overlayClassName:j,overlayStyle:M,destroyPopupOnHide:R,dropdownRender:N}=t,F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1,t().createElement(Wx,T({},b,{prefixCls:r,key:y,panelKey:y,isActive:d,accordion:o,openMotion:c,expandIcon:u,header:p,collapsible:w,onItemClick:function(e){"disabled"!==w&&(l(e),null==h||h(e))},destroyInactivePanel:x}),f)}))}(e,r):Te(n).map((function(e,n){return function(e,n,r){if(!e)return null;var o,i=r.prefixCls,a=r.accordion,l=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=e.key||String(n),m=e.props,g=m.header,h=m.headerClass,v=m.destroyInactivePanel,b=m.collapsible,y=m.onItemClick;o=a?u[0]===p:u.indexOf(p)>-1;var w=null!=b?b:l,x={key:p,panelKey:p,header:g,headerClass:h,isActive:o,prefixCls:i,destroyInactivePanel:null!=v?v:s,openMotion:d,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(c(e),null==y||y(e))},expandIcon:f,collapsible:w};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),t().cloneElement(e,x))}(e,n,r)}))}(v,u,{prefixCls:o,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return C((function(){return s?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter((function(t){return t!==e})):[].concat(fe(x),[e])}))},activeKey:x});return t().createElement("div",T({ref:n,className:b,style:l,role:s?"tablist":void 0},Gf(e,{aria:!0,data:!0})),S)}));const Kx=Object.assign(Xx,{Panel:Wx}),Ux=Kx;Kx.Panel;const Yx=e.forwardRef(((t,n)=>{const{getPrefixCls:r}=e.useContext(Ba),{prefixCls:o,className:i,showArrow:a=!0}=t,l=r("collapse",o),s=A()({[`${l}-no-arrow`]:!a},i);return e.createElement(Ux.Panel,Object.assign({ref:n},t,{prefixCls:l,className:s}))})),Qx=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:C,fontSizeIcon:S,contentPadding:E,fontHeight:$,fontHeightLG:k}=e,O=`${Dr(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Ja(e)),{backgroundColor:o,border:O,borderBottom:0,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Dr(s)} ${Dr(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:h,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:S,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${Dr(s)} ${Dr(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Zx=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},Jx=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},eC=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},tC=wl("Collapse",(e=>{const t=fl(e,{collapseHeaderPaddingSM:`${Dr(e.paddingXS)} ${Dr(e.paddingSM)}`,collapseHeaderPaddingLG:`${Dr(e.padding)} ${Dr(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Qx(t),Jx(t),eC(t),Zx(t),Mw(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),nC=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o,collapse:i}=e.useContext(Ba),{prefixCls:a,className:l,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:m,expandIcon:g}=t,h=Wa((e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"})),v=r("collapse",a),b=r(),[y,w,x]=tC(v),C=e.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),S=null!=g?g:null==i?void 0:i.expandIcon,E=e.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof S?S(t):e.createElement(dx,{rotate:t.isActive?90:void 0});return Aa(n,(()=>{var e;return{className:A()(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${v}-arrow`)}}))}),[S,v]),$=A()(`${v}-icon-position-${C}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===o,[`${v}-ghost`]:!!d,[`${v}-${h}`]:"middle"!==h},null==i?void 0:i.className,l,s,w,x),k=Object.assign(Object.assign({},xa(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=e.useMemo((()=>m?Te(m).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return Aa(e,Object.assign(Object.assign({},ns(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[m]);return y(e.createElement(Ux,Object.assign({ref:n,openMotion:k},ns(t,["rootClassName"]),{expandIcon:E,prefixCls:v,className:$,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),O))})),rC=Object.assign(nC,{Panel:Yx}),oC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var iC=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:oC}))};const aC=e.forwardRef(iC),lC={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var sC=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:lC}))};const cC=e.forwardRef(sC),uC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};var dC=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:uC}))};const fC=e.forwardRef(dC),{hooks:pC}=wpGraphiQL,{useEffect:mC}=wp.element,gC=rb.div` +(()=>{var e={454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),g=s(n),v=0;v{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case g:case s:return e;default:return t}}case o:return t}}}function w(e){return C(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||C(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===f},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===g},t.isPortal=function(e){return C(e)===o},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===h)},t.typeOf=C},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},6663:(e,t,n)=>{"use strict";const r=n(4280),o=n(454),i=n(528),a=n(3055),l=Symbol("encodeFragmentIdentifier");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",o,"]"].join("")]:[...n,[c(t,e),"[",c(o,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[c(n,e),t,c(o,e)].join("")]:[[r,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?c(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":o.reduce(r(n),[]).join("&"):c(n,t)+"="+c(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[l]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[l]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${s}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[l]:!1},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},2799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return h(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===l||e===a||e===f||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=h},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},4280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";const e=window.React;var t=n.n(e);const{useContext:r,useState:o,createContext:i,useEffect:a}=wp.element,{hooks:l,useAppContext:s}=window.wpGraphiQL,c=i(),u=()=>r(c),d=({children:t})=>{const n=s(),{queryParams:r,setQueryParams:i}=n,[a,u]=o((()=>{var e,t;const n=null!==(e=window?.localStorage.getItem("graphiql:isQueryComposerOpen"))&&void 0!==e?e:null,o="true"===r?.explorerIsOpen,i=null!==(t=r?.isQueryComposerOpen)&&void 0!==t?t:o;return null!==i?i:null!==n&&n})()),d=l.applyFilters("graphiql_explorer_context_default_value",{isQueryComposerOpen:a,toggleExplorer:()=>{(e=>{a!==e&&u(e);const t={...r,isQueryComposerOpen:e,explorerIsOpen:void 0};JSON.stringify(t)!==JSON.stringify(r)&&i(t),window?.localStorage.setItem("graphiql:isQueryComposerOpen",`${e}`)})(!a)}});return(0,e.createElement)(c.Provider,{value:d},t)},{useEffect:f}=wp.element,p=t=>{const{isQueryComposerOpen:n,toggleExplorer:r}=u(),{children:o}=t,i="400px";return n?(0,e.createElement)("div",{className:"docExplorerWrap doc-explorer-app query-composer-wrap",style:{height:"100%",width:i,minWidth:i,zIndex:8,display:n?"flex":"none",flexDirection:"column",overflow:"hidden"}},(0,e.createElement)("div",{className:"doc-explorer"},(0,e.createElement)("div",{className:"doc-explorer-title-bar"},(0,e.createElement)("div",{className:"doc-explorer-title"},"Query Composer"),(0,e.createElement)("div",{className:"doc-explorer-rhs"},(0,e.createElement)("div",{className:"docExplorerHide",style:{cursor:"pointer",fontSize:"18px",margin:"-7px -8px -6px 0",padding:"18px 16px 15px 12px",background:0,border:0,lineHeight:"14px"},onClick:r},"✕"))),(0,e.createElement)("div",{className:"doc-explorer-contents",style:{backgroundColor:"#ffffff",borderTop:"1px solid #d6d6d6",bottom:0,left:0,overflowY:"hidden",padding:"0",right:0,top:"47px",position:"absolute"}},o))):null},m=wpGraphiQL.GraphQL;let g=null;const v=e=>{const t=e.getFields();if(t.id){const e=["id"];return t.email?e.push("email"):t.name&&e.push("name"),e}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];const n=[];return Object.keys(t).forEach((e=>{(0,m.isLeafType)(t[e].type)&&n.push(e)})),n.length?n.slice(0,2):["__typename"]},h={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},b=(0,e.createElement)("svg",{width:"12",height:"9"},(0,e.createElement)("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),y=(0,e.createElement)("svg",{width:"12",height:"9"},(0,e.createElement)("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),x=(0,e.createElement)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),C=(0,e.createElement)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"})),w={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"NewQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},E=e=>{if(g&&g[0]===e)return g[1];{const n=(e=>{try{return e.trim()?(0,m.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}})(e);var t;return n?n instanceof Error?g?null!==(t=g[1])&&void 0!==t?t:"":S:(g=[e,n],n):S}},$=e=>e.charAt(0).toUpperCase()+e.slice(1),k=e=>(0,m.isNonNullType)(e.type)&&void 0===e.defaultValue,O=e=>{let t=e;for(;(0,m.isWrappingType)(t);)t=t.ofType;return t},I=e=>{let t=e;for(;(0,m.isWrappingType)(t);)t=t.ofType;return t},j=(e,t)=>{if("string"!=typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,m.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{const e=JSON.parse(t);return"boolean"==typeof e?{kind:"BooleanValue",value:e}:{kind:"BooleanValue",value:!1}}catch(e){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(e){return console.error("error coercing arg value",e,t),{kind:"StringValue",value:t}}else try{const n=e.parseValue(t);return n?{kind:"EnumValue",value:String(n)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(t){return{kind:"EnumValue",value:e.getValues()[0].name}}},P=(e,t,n,r)=>{const o=[];for(const i of r)if((0,m.isRequiredInputField)(i)||t&&t(n,i)){const r=I(i.type);if((0,m.isInputObjectType)(r)){const a=r.getFields();o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:{kind:"ObjectValue",fields:P(e,t,n,Object.keys(a).map((e=>a[e])))}})}else(0,m.isLeafType)(r)&&o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:e(n,i,r)})}return o},M=(e,t,n)=>{const r=[];for(const o of n.args)if(k(o)||t&&t(n,o)){const i=I(o.type);if((0,m.isInputObjectType)(i)){const a=i.getFields();r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:{kind:"ObjectValue",fields:P(e,t,n,Object.keys(a).map((e=>a[e])))}})}else(0,m.isLeafType)(i)&&r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:e(n,o,i)})}return r},R=(e,t,n)=>(e=>{if((0,m.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}})(n);var N=n(6942),A=n.n(N);function F(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,l=t.className,s=t.style;return e.createElement("div",{className:A()("".concat(r,"-content"),l),style:s},e.createElement("div",{className:A()("".concat(r,"-inner"),a),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=19)return!0;var r=(0,oe.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===oe.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===oe.ForwardRef)};function ge(t){return(0,e.isValidElement)(t)&&!ce(t)}var ve=function(e){if(e&&ge(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};const he=e.createContext(null);function be(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ye(e){return function(e){if(Array.isArray(e))return W(e)}(e)||be(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xe=Y()?e.useLayoutEffect:e.useEffect,Ce=function(t,n){var r=e.useRef(!0);xe((function(){return t(r.current)}),n),xe((function(){return r.current=!1,function(){r.current=!0}}),[])},we=function(e,t){Ce((function(t){if(!t)return e()}),t)};const Se=Ce;var Ee=[],$e="data-rc-order",ke="data-rc-priority",Oe=new Map;function Ie(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function je(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Pe(e){return Array.from((Oe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Y())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute($e,a),l&&i&&s.setAttribute(ke,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=je(t),u=c.firstChild;if(r){if(l){var d=(t.styles||Pe(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute($e)))return!1;var t=Number(e.getAttribute(ke)||0);return i>=t}));if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=je(t);return(t.styles||Pe(n)).find((function(n){return n.getAttribute(Ie(t))===e}))}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Re(e,t);n&&je(t).removeChild(n)}function Ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=je(n),o=Pe(r),i=D(D({},n),{},{styles:o});!function(e,t){var n=Oe.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Me("",t),o=r.parentNode;Oe.set(e,o),e.removeChild(r)}}(r,i);var a,l,s,c=Re(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(c.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=Me(e,i);return u.setAttribute(Ie(i),t),u}var Fe="rc-util-locker-".concat(Date.now()),Te=0;function ze(t){var n=!!t,r=X(e.useState((function(){return Te+=1,"".concat(Fe,"_").concat(Te)})),1)[0];Se((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";Ae("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=s,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ne(t),{width:f,height:p}}(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ae("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else Ne(r);var o;return function(){Ne(r)}}),[n,r])}var Be=!1,Le=function(e){return!1!==e&&(Y()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},He=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=(t.debug,t.autoDestroy),l=void 0===a||a,s=t.children,c=X(e.useState(r),2),u=c[0],d=c[1],f=u||r;e.useEffect((function(){(l||r)&&d(r)}),[r,l]);var p=X(e.useState((function(){return Le(i)})),2),m=p[0],g=p[1];e.useEffect((function(){var e=Le(i);g(null!=e?e:null)}));var v=function(t){var n=X(e.useState((function(){return Y()?document.createElement("div"):null})),1)[0],r=e.useRef(!1),o=e.useContext(he),i=X(e.useState(Ee),2),a=i[0],l=i[1],s=o||(r.current?void 0:function(e){l((function(t){return[e].concat(ye(t))}))});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Se((function(){return t?o?o(c):c():u(),u}),[t]),Se((function(){a.length&&(a.forEach((function(e){return e()})),l(Ee))}),[a]),[n,s]}(f&&!m),h=X(v,2),b=h[0],y=h[1],x=null!=m?m:b;ze(o&&r&&Y()&&(x===b||x===document.body));var C=null;s&&me(s)&&n&&(C=s.ref);var w=pe(C,n);if(!f||!Y()||void 0===m)return null;var S=!1===x||Be,E=s;return n&&(E=e.cloneElement(s,{ref:w})),e.createElement(he.Provider,{value:y},S?E:(0,K.createPortal)(E,x))}));const De=He;function _e(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(_e(e)):ce(e)&&e.props?r=r.concat(_e(e.props.children,n)):r.push(e))})),r}function Ve(e){return e instanceof HTMLElement||e instanceof SVGElement}function We(e){return e&&"object"===z(e)&&Ve(e.nativeElement)?e.nativeElement:Ve(e)?e:null}function qe(e){var n;return We(e)||(e instanceof t().Component?null===(n=U().findDOMNode)||void 0===n?void 0:n.call(U(),e):null)}var Ge=e.createContext(null),Xe=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){Ke&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ze?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ke&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Qe.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),et=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),dt="undefined"!=typeof WeakMap?new WeakMap:new Xe,ft=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Je.getInstance(),r=new ut(t,n,this);dt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ft.prototype[e]=function(){var t;return(t=dt.get(this))[e].apply(t,arguments)}}));const pt=void 0!==Ue.ResizeObserver?Ue.ResizeObserver:ft;var mt=new Map,gt=new pt((function(e){e.forEach((function(e){var t,n=e.target;null===(t=mt.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Gt(e,t.slice(0,-1))?e:Kt(e,t,n,r)}function Yt(e){return Array.isArray(e)?[]:{}}var Qt="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Zt(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};Mn.cancel=function(e){var t=jn.get(e);return Pn(e),On(t)};const Rn=Mn;var Nn=[on,an,ln,sn],An=[on,cn],Fn=!1;function Tn(e){return e===ln||e===sn}function zn(t,n,r,o){var i,a,l,s,c=o.motionEnter,u=void 0===c||c,d=o.motionAppear,f=void 0===d||d,p=o.motionLeave,m=void 0===p||p,g=o.motionDeadline,v=o.motionLeaveImmediately,h=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,x=o.onAppearStart,C=o.onEnterStart,w=o.onLeaveStart,S=o.onAppearActive,E=o.onEnterActive,$=o.onLeaveActive,k=o.onAppearEnd,O=o.onEnterEnd,I=o.onLeaveEnd,j=o.onVisibleChanged,P=X(Vt(),2),M=P[0],R=P[1],N=(i=Jt,a=e.useReducer((function(e){return e+1}),0),l=X(a,2)[1],s=e.useRef(i),[Nt((function(){return s.current})),Nt((function(e){s.current="function"==typeof e?e(s.current):e,l()}))]),A=X(N,2),F=A[0],T=A[1],z=X(Vt(null),2),B=z[0],H=z[1],_=F(),V=(0,e.useRef)(!1),W=(0,e.useRef)(null);function q(){return r()}var G=(0,e.useRef)(!1);function K(){T(Jt),H(null,!0)}var U=Nt((function(e){var t=F();if(t!==Jt){var n=q();if(!e||e.deadline||e.target===n){var r,o=G.current;t===en&&o?r=null==k?void 0:k(n,e):t===tn&&o?r=null==O?void 0:O(n,e):t===nn&&o&&(r=null==I?void 0:I(n,e)),o&&!1!==r&&K()}}})),Y=function(t){var n=(0,e.useRef)();function r(e){e&&(e.removeEventListener(Sn,t),e.removeEventListener(wn,t))}return e.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(Sn,t),e.addEventListener(wn,t),n.current=e)},r]}(U),Q=X(Y,1)[0],Z=function(e){switch(e){case en:return L(L(L({},on,h),an,x),ln,S);case tn:return L(L(L({},on,b),an,C),ln,E);case nn:return L(L(L({},on,y),an,w),ln,$);default:return{}}},J=e.useMemo((function(){return Z(_)}),[_]),ee=X(function(t,n,r){var o=X(Vt(rn),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){Rn.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Rn((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),s=X(l,2),c=s[0],u=s[1],d=n?An:Nn;return $n((function(){if(i!==rn&&i!==sn){var e=d.indexOf(i),t=d[e+1],n=r(i);n===Fn?a(t,!0):t&&c((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(on,!0)},i]}(_,!t,(function(e){if(e===on){var t=J[on];return t?t(q()):Fn}var n;return ne in J&&H((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===ln&&_!==Jt&&(Q(q()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){U({deadline:!0})}),g))),ne===cn&&K(),!0})),2),te=ee[0],ne=ee[1],re=Tn(ne);G.current=re;var oe=(0,e.useRef)(null);$n((function(){if(!V.current||oe.current!==n){R(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=en),r&&n&&u&&(e=tn),(r&&!n&&m||!r&&v&&!n&&m)&&(e=nn);var o=Z(e);e&&(t||o[on])?(T(e),te()):T(Jt),oe.current=n}}),[n]),(0,e.useEffect)((function(){(_===en&&!f||_===tn&&!u||_===nn&&!m)&&T(Jt)}),[f,u,m]),(0,e.useEffect)((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ie=e.useRef(!1);(0,e.useEffect)((function(){M&&(ie.current=!0),void 0!==M&&_===Jt&&((ie.current||M)&&(null==j||j(M)),ie.current=!0)}),[M,_]);var ae=B;return J[on]&&ne===an&&(ae=D({transition:"none"},ae)),[_,ne,ae,null!=M?M:n]}const Bn=function(t){var n=t;"object"===z(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,l=void 0===a||a,s=t.forceRender,c=t.children,u=t.motionName,d=t.leavedClassName,f=t.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Lt).motion),m=(0,e.useRef)(),g=(0,e.useRef)(),v=X(zn(p,i,(function(){try{return m.current instanceof HTMLElement?m.current:qe(g.current)}catch(e){return null}}),t),4),h=v[0],b=v[1],y=v[2],x=v[3],C=e.useRef(x);x&&(C.current=!0);var w,S=e.useCallback((function(e){m.current=e,de(r,e)}),[r]),E=D(D({},f),{},{visible:i});if(c)if(h===Jt)w=x?c(D({},E),S):!l&&C.current&&d?c(D(D({},E),{},{className:d}),S):s||!l&&!d?c(D(D({},E),{},{style:{display:"none"}}),S):null;else{var $;b===on?$="prepare":Tn(b)?$="active":b===an&&($="start");var k=En(u,"".concat(h,"-").concat($));w=c(D(D({},E),{},{className:A()(En(u,h),L(L({},k,k&&$),u,"string"==typeof u)),style:y}),S)}else w=null;return e.isValidElement(w)&&me(w)&&(ve(w)||(w=e.cloneElement(w,{ref:S}))),e.createElement(_t,{ref:g},w)}));return r.displayName="CSSMotion",r}(Cn);var Ln="add",Hn="keep",Dn="remove",Vn="removed";function Wn(e){var t;return D(D({},t=e&&"object"===z(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function qn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Wn)}var Gn=["component","children","onVisibleChanged","onAllRemoved"],Xn=["status"],Kn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Un=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bn,n=function(n){xt(o,n);var r=Et(o);function o(){var e;vt(this,o);for(var t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=qn(e),a=qn(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Dn}))).forEach((function(t){t.key===e&&(t.status=Hn)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Vn||e.status!==Dn}))}}}]),o}(e.Component);return L(n,"defaultProps",{component:"div"}),n}(Cn),Yn=Bn;function Qn(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,s=a.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],v=r.points[1],h=g[0],b=g[1],y=v[0],x=v[1];h!==y&&["t","b"].includes(h)?"t"===h?m.top=0:m.bottom=0:m.top=f,b!==x&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:A()("".concat(n,"-arrow"),l),style:m},s)}function Zn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Yn,T({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:A()("".concat(n,"-mask"),r)})})):null}var Jn=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const er=Jn;var tr=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,s=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,p=t.mask,m=t.arrow,g=t.arrowPos,v=t.align,h=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,C=t.autoDestroy,w=t.portal,S=t.zIndex,E=t.onMouseEnter,$=t.onMouseLeave,k=t.onPointerEnter,O=t.onPointerDownCapture,I=t.ready,j=t.offsetX,P=t.offsetY,M=t.offsetR,R=t.offsetB,N=t.onAlign,F=t.onPrepare,z=t.stretch,B=t.targetWidth,L=t.targetHeight,H="function"==typeof r?r():r,_=c||u,V=(null==x?void 0:x.length)>0,W=X(e.useState(!x||!V),2),q=W[0],G=W[1];if(Se((function(){!q&&V&&l&&G(!0)}),[q,V,l]),!q)return null;var K="auto",U={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(I||!c){var Y,Q=v.points,Z=v.dynamicInset||(null===(Y=v._experimental)||void 0===Y?void 0:Y.dynamicInset),J=Z&&"r"===Q[0][1],ee=Z&&"b"===Q[0][0];J?(U.right=M,U.left=K):(U.left=j,U.right=K),ee?(U.bottom=R,U.top=K):(U.top=P,U.bottom=K)}var te={};return z&&(z.includes("height")&&L?te.height=L:z.includes("minHeight")&&L&&(te.minHeight=L),z.includes("width")&&B?te.width=B:z.includes("minWidth")&&B&&(te.minWidth=B)),c||(te.pointerEvents="none"),e.createElement(w,{open:y||_,getContainer:x&&function(){return x(l)},autoDestroy:C},e.createElement(Zn,{prefixCls:i,open:c,zIndex:S,mask:p,motion:b}),e.createElement(Pt,{onResize:N,disabled:!c},(function(t){return e.createElement(Yn,T({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},h,{onAppearPrepare:F,onEnterPrepare:F,visible:c,onVisibleChanged:function(e){var t;null==h||null===(t=h.onVisibleChanged)||void 0===t||t.call(h,e),s(e)}}),(function(r,l){var s=r.className,u=r.style,p=A()(i,s,o);return e.createElement("div",{ref:fe(t,n,l),className:p,style:D(D(D(D({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},U),te),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:E,onMouseLeave:$,onPointerEnter:k,onClick:f,onPointerDownCapture:O},m&&e.createElement(Qn,{prefixCls:i,arrow:m,arrowPos:g,align:v}),e.createElement(er,{cache:!c&&!d},H))}))})))}));const nr=tr;var rr=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=me(r),a=e.useCallback((function(e){de(n,o?o(e):e)}),[o]),l=pe(a,ve(r));return i?e.cloneElement(r,{ref:l}):r}));const or=rr,ir=e.createContext(null);function ar(e){return e?Array.isArray(e)?e:[e]:[]}const lr=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function cr(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ur(e){return e.ownerDocument.defaultView}function dr(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ur(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function pr(e){return fr(parseFloat(e),0)}function mr(e,t){var n=D({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=ur(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=pr(i),g=pr(a),v=pr(l),h=pr(s),b=fr(Math.round(c.width/f*1e3)/1e3),y=fr(Math.round(c.height/u*1e3)/1e3),x=(f-p-v-h)*b,C=(u-d-m-g)*y,w=m*y,S=g*y,E=v*b,$=h*b,k=0,O=0;if("clip"===r){var I=pr(o);k=I*b,O=I*y}var j=c.x+E-k,P=c.y+w-O,M=j+c.width+2*k-E-$-x,R=P+c.height+2*O-w-S-C;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,R)}})),n}function gr(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function vr(e,t){var n=X(t||[],2),r=n[0],o=n[1];return[gr(e.width,r),gr(e.height,o)]}function hr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function br(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function yr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var xr=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Cr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,s=void 0===l?"hover":l,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,h=void 0===v?.1:v,b=n.focusDelay,y=n.blurDelay,x=n.mask,C=n.maskClosable,w=void 0===C||C,S=n.getPopupContainer,E=n.forceRender,$=n.autoDestroy,k=n.destroyPopupOnHide,O=n.popup,I=n.popupClassName,j=n.popupStyle,P=n.popupPlacement,M=n.builtinPlacements,R=void 0===M?{}:M,N=n.popupAlign,F=n.zIndex,T=n.stretch,z=n.getPopupClassNameFromAlign,B=n.fresh,L=n.alignPoint,H=n.onPopupClick,V=n.onPopupAlign,W=n.arrow,q=n.popupMotion,G=n.maskMotion,K=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,Q=n.maskAnimation,Z=n.className,J=n.getTriggerDOMNode,ee=_(n,xr),te=$||k||!1,ne=X(e.useState(!1),2),re=ne[0],oe=ne[1];Se((function(){oe(zt())}),[]);var ie=e.useRef({}),ae=e.useContext(ir),le=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),se=Tt(),ce=X(e.useState(null),2),ue=ce[0],de=ce[1],fe=e.useRef(null),pe=Nt((function(e){fe.current=e,Ve(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(se,e)})),me=X(e.useState(null),2),ge=me[0],ve=me[1],he=e.useRef(null),be=Nt((function(e){Ve(e)&&ge!==e&&(ve(e),he.current=e)})),xe=e.Children.only(a),Ce=(null==xe?void 0:xe.props)||{},we={},Ee=Nt((function(e){var t,n,r=ge;return(null==r?void 0:r.contains(e))||(null===(t=Rt(r))||void 0===t?void 0:t.host)===e||e===r||(null==ue?void 0:ue.contains(e))||(null===(n=Rt(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),$e=cr(i,q,U,K),ke=cr(i,G,Q,Y),Oe=X(e.useState(f||!1),2),Ie=Oe[0],je=Oe[1],Pe=null!=d?d:Ie,Me=Nt((function(e){void 0===d&&je(e)}));Se((function(){je(d||!1)}),[d]);var Re=e.useRef(Pe);Re.current=Pe;var Ne=e.useRef([]);Ne.current=[];var Ae=Nt((function(e){var t;Me(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:Pe)!==e&&(Ne.current.push(e),null==p||p(e))})),Fe=e.useRef(),Te=function(){clearTimeout(Fe.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Ae(e):Fe.current=setTimeout((function(){Ae(e)}),1e3*t)};e.useEffect((function(){return Te}),[]);var Be=X(e.useState(!1),2),Le=Be[0],He=Be[1];Se((function(e){e&&!Pe||He(!0)}),[Pe]);var De=X(e.useState(null),2),_e=De[0],We=De[1],qe=X(e.useState(null),2),Ge=qe[0],Xe=qe[1],Ke=function(e){Xe([e.clientX,e.clientY])},Ue=function(t,n,r,o,i,a,l){var s=X(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=s[0],u=s[1],d=e.useRef(0),f=e.useMemo((function(){return n?dr(n):[]}),[n]),p=e.useRef({});t||(p.current={});var m=Nt((function(){if(n&&r&&t){var e,s,c,d,m,g=n,v=g.ownerDocument,h=ur(g).getComputedStyle(g),b=h.width,y=h.height,x=h.position,C=g.style.left,w=g.style.top,S=g.style.right,E=g.style.bottom,$=g.style.overflow,k=D(D({},i[o]),a),O=v.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild(O),O.style.left="".concat(g.offsetLeft,"px"),O.style.top="".concat(g.offsetTop,"px"),O.style.position=x,O.style.height="".concat(g.offsetHeight,"px"),O.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(r))m={x:r[0],y:r[1],width:0,height:0};else{var I,j,P=r.getBoundingClientRect();P.x=null!==(I=P.x)&&void 0!==I?I:P.left,P.y=null!==(j=P.y)&&void 0!==j?j:P.top,m={x:P.x,y:P.y,width:P.width,height:P.height}}var M=g.getBoundingClientRect();M.x=null!==(s=M.x)&&void 0!==s?s:M.left,M.y=null!==(c=M.y)&&void 0!==c?c:M.top;var R=v.documentElement,N=R.clientWidth,A=R.clientHeight,F=R.scrollWidth,T=R.scrollHeight,z=R.scrollTop,B=R.scrollLeft,L=M.height,H=M.width,_=m.height,V=m.width,W={left:0,top:0,right:N,bottom:A},q={left:-B,top:-z,right:F-B,bottom:T-z},G=k.htmlRegion,K="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=K);var Y=G===U,Q=mr(q,f),Z=mr(W,f),J=G===K?Z:Q,ee=Y?Z:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=C,g.style.top=w,g.style.right=S,g.style.bottom=E,g.style.overflow=$,null===(d=g.parentElement)||void 0===d||d.removeChild(O);var ne=fr(Math.round(H/parseFloat(b)*1e3)/1e3),re=fr(Math.round(L/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||Ve(r)&&!lr(r))return;var oe=k.offset,ie=k.targetOffset,ae=X(vr(M,oe),2),le=ae[0],se=ae[1],ce=X(vr(m,ie),2),ue=ce[0],de=ce[1];m.x-=ue,m.y-=de;var fe=X(k.points||[],2),pe=fe[0],me=hr(fe[1]),ge=hr(pe),ve=br(m,me),he=br(M,ge),be=D({},k),ye=ve.x-he.x+le,xe=ve.y-he.y+se;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=M.x+e,o=M.y+t,i=r+H,a=o+L,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}var Ce,we,Se,Ee,$e=mt(ye,xe),ke=mt(ye,xe,Z),Oe=br(m,["t","l"]),Ie=br(M,["t","l"]),je=br(m,["b","r"]),Pe=br(M,["b","r"]),Me=k.overflow||{},Re=Me.adjustX,Ne=Me.adjustY,Ae=Me.shiftX,Fe=Me.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function gt(){Ce=M.y+xe,we=Ce+L,Se=M.x+ye,Ee=Se+H}gt();var ze=Te(Ne),Be=ge[0]===me[0];if(ze&&"t"===ge[0]&&(we>ee.bottom||p.current.bt)){var Le=xe;Be?Le-=L-_:Le=Oe.y-Pe.y-se;var He=mt(ye,Le),De=mt(ye,Le,Z);He>$e||He===$e&&(!Y||De>=ke)?(p.current.bt=!0,xe=Le,se=-se,be.points=[yr(ge,0),yr(me,0)]):p.current.bt=!1}if(ze&&"b"===ge[0]&&(Ce$e||We===$e&&(!Y||qe>=ke)?(p.current.tb=!0,xe=_e,se=-se,be.points=[yr(ge,0),yr(me,0)]):p.current.tb=!1}var Ge=Te(Re),Xe=ge[1]===me[1];if(Ge&&"l"===ge[1]&&(Ee>ee.right||p.current.rl)){var Ke=ye;Xe?Ke-=H-V:Ke=Oe.x-Pe.x-le;var Ue=mt(Ke,xe),Ye=mt(Ke,xe,Z);Ue>$e||Ue===$e&&(!Y||Ye>=ke)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[yr(ge,1),yr(me,1)]):p.current.rl=!1}if(Ge&&"r"===ge[1]&&(Se$e||Ze===$e&&(!Y||Je>=ke)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[yr(ge,1),yr(me,1)]):p.current.lr=!1}gt();var et=!0===Ae?0:Ae;"number"==typeof et&&(SeZ.right&&(ye-=Ee-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Fe?0:Fe;"number"==typeof tt&&(CeZ.bottom&&(xe-=we-Z.bottom-se,m.y>Z.bottom-tt&&(xe+=m.y-Z.bottom+tt)));var nt=M.x+ye,rt=nt+H,ot=M.y+xe,it=ot+L,at=m.x,lt=at+V,st=m.y,ct=st+_,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,st)+Math.min(it,ct))/2-ot;null==l||l(n,be);var ft=te.right-M.x-(ye+M.width),pt=te.bottom-M.y-(xe+M.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),g=function(){u((function(e){return D(D({},e),{},{ready:!1})}))};return Se(g,[o]),Se((function(){t||g()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Pe,ue,L&&null!==Ge?Ge:ge,P,R,N,V),Ye=X(Ue,11),Qe=Ye[0],Ze=Ye[1],Je=Ye[2],et=Ye[3],tt=Ye[4],nt=Ye[5],rt=Ye[6],ot=Ye[7],it=Ye[8],at=Ye[9],lt=Ye[10],st=function(t,n,r,o){return e.useMemo((function(){var e=ar(null!=r?r:n),i=ar(null!=o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[t,n,r,o])}(re,s,c,u),ct=X(st,2),ut=ct[0],dt=ct[1],ft=ut.has("click"),pt=dt.has("click")||dt.has("contextMenu"),mt=Nt((function(){Le||lt()}));!function(e,t,n,r){Se((function(){if(e&&t&&n){var o=n,i=dr(t),a=dr(o),l=ur(o),s=new Set([l].concat(ye(i),ye(a)));function c(){r(),Re.current&&L&&pt&&ze(!1)}return s.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[e,t,n])}(Pe,ge,ue,mt),Se((function(){mt()}),[Ge,P]),Se((function(){!Pe||null!=R&&R[P]||mt()}),[JSON.stringify(N)]);var gt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Pr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pr(i,r,o,a,l,"next",e)}function l(e){Pr(i,r,o,a,l,"throw",e)}a(void 0)}))}}const Rr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(re(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return e}function Wr(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function qr(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Jr=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,eo={integer:function(e){return eo.number(e)&&parseInt(e,10)===e},float:function(e){return eo.number(e)&&!eo.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===z(e)&&!eo.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Zr)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Qr)return Qr;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Qr=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Jr)}};const to=Yr,no=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Vr(o.messages.whitespace,e.fullField))},ro=function(e,t,n,r,o){if(e.required&&void 0===t)Yr(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?eo[i](t)||r.push(Vr(o.messages.types[i],e.fullField,e.type)):i&&z(t)!==e.type&&r.push(Vr(o.messages.types[i],e.fullField,e.type))}},oo=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(Vr(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?r.push(Vr(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&r.push(Vr(o.messages[c].range,e.fullField,e.min,e.max))},io=function(e,t,n,r,o){e[Ur]=Array.isArray(e[Ur])?e[Ur]:[],-1===e[Ur].indexOf(t)&&r.push(Vr(o.messages[Ur],e.fullField,e[Ur].join(", ")))},ao=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Vr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Vr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},lo=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t,i)&&!e.required)return n();to(e,t,r,a,o,i),Wr(t,i)||ro(e,t,r,a,o)}n(a)},so={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t,"string")&&!e.required)return n();to(e,t,r,i,o,"string"),Wr(t,"string")||(ro(e,t,r,i,o),oo(e,t,r,i,o),ao(e,t,r,i,o),!0===e.whitespace&&no(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&ro(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&(ro(e,t,r,i,o),oo(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&ro(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),Wr(t)||ro(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&(ro(e,t,r,i,o),oo(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&(ro(e,t,r,i,o),oo(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();to(e,t,r,i,o,"array"),null!=t&&(ro(e,t,r,i,o),oo(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&ro(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o),void 0!==t&&io(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t,"string")&&!e.required)return n();to(e,t,r,i,o),Wr(t,"string")||ao(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t,"date")&&!e.required)return n();var a;to(e,t,r,i,o),Wr(t,"date")||(a=t instanceof Date?t:new Date(t),ro(e,a,r,i,o),a&&oo(e,a.getTime(),r,i,o))}n(i)},url:lo,hex:lo,email:lo,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":z(t);to(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Wr(t)&&!e.required)return n();to(e,t,r,i,o)}n(i)}};var co=function(){function e(t){vt(this,e),L(this,"rules",null),L(this,"_messages",Lr),this.define(t)}return bt(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==z(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=Kr(Br(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Lr&&(a=Br()),Kr(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=D({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":z(i)))),(a="function"==typeof a?{validator:a}:D({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var s={};return function(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,ye(e[n]||[]))})),t}(e);qr(a,n,(function(e){return r(e),e.length?i(new Gr(e,_r(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new Gr(u,_r(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?qr(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,ye(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==z(a.fields)&&"object"!==z(a.defaultField));function c(e,t){return D(D({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(ye(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Xr(a,r));if(o.first&&d.length)return s[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Xr(a,r)):o.error&&(d=[o.error(a,Vr(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=D(D({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,ye(d)),e&&e.length&&t.push.apply(t,ye(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,ye(e)):t.push(e)}for(var a=0;a2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Eo(t,e,n)}))}function Eo(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function $o(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===z(t.target)&&e in t.target?t.target[e]:t}function ko(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ye(e.slice(0,n)),[o],ye(e.slice(n,t)),ye(e.slice(t+1,r))):i<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,n+1)),[o],ye(e.slice(n+1,r))):e}var Oo=["name"],Io=[];function jo(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Po=function(t){xt(r,t);var n=Et(r);function r(t){var o;return vt(this,r),L(St(o=n.call(this,t)),"state",{resetCount:0}),L(St(o),"cancelRegisterFunc",null),L(St(o),"mounted",!1),L(St(o),"touched",!1),L(St(o),"dirty",!1),L(St(o),"validatePromise",void 0),L(St(o),"prevValidating",void 0),L(St(o),"errors",Io),L(St(o),"warnings",Io),L(St(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Co(r)),o.cancelRegisterFunc=null})),L(St(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(ye(void 0===n?[]:n),ye(t)):[]})),L(St(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),L(St(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),L(St(o),"metaCache",null),L(St(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=D(D({},o.getMeta()),{},{destroy:e});Rr(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),L(St(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,s=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&So(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Rr(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Io,o.warnings=Io,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Io,o.warnings=Io,o.triggerMetaEvent(),null==s||s(),void o.refresh();break;case"remove":if(i&&jo(i,e,c,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Io),"warnings"in m&&(o.warnings=m.warnings||Io),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&So(t,u,!0))return void o.reRender();if(i&&!u.length&&jo(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Co).some((function(e){return So(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&jo(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),L(St(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(Mr(jr().mark((function r(){var a,l,c,u,d,f,p;return jr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||zr(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===s){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=bo(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io;if(o.validatePromise===s){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Io:o;t?r.push.apply(r,ye(i)):n.push.apply(n,ye(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=s,o.dirty=!0,o.errors=Io,o.warnings=Io,o.triggerMetaEvent(),o.reRender()),s})),L(St(o),"isFieldValidating",(function(){return!!o.validatePromise})),L(St(o),"isFieldTouched",(function(){return o.touched})),L(St(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Nr).getInitialValue)(o.getNamePath())})),L(St(o),"getErrors",(function(){return o.errors})),L(St(o),"getWarnings",(function(){return o.warnings})),L(St(o),"isListField",(function(){return o.props.isListField})),L(St(o),"isList",(function(){return o.props.isList})),L(St(o),"isPreserve",(function(){return o.props.preserve})),L(St(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),L(St(o),"getOnlyChild",(function(t){if("function"==typeof t){var n=o.getMeta();return D(D({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=_e(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),L(St(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Gt(e||t(!0),n)})),L(St(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(Nr).dispatch,v=o.getValue(),h=c||function(e){return L({},s,e)},b=e[r],y=void 0!==n?h(v):{},x=D(D({},e),y);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(u.keys=[].concat(ye(u.keys.slice(0,t)),[u.id],ye(u.keys.slice(t))),i([].concat(ye(n.slice(0,t)),[e],ye(n.slice(t))))):(u.keys=[].concat(ye(u.keys),[u.id]),i([].concat(ye(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=ko(u.keys,e,t),i(ko(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}})),c,t)}))))};var No="__@field_split__";function Ao(e){return e.map((function(e){return"".concat(z(e),":").concat(e)})).join(No)}var Fo=function(){function e(){vt(this,e),L(this,"kvs",new Map)}return bt(e,[{key:"set",value:function(e,t){this.kvs.set(Ao(e),t)}},{key:"get",value:function(e){return this.kvs.get(Ao(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Ao(e))}},{key:"map",value:function(e){return ye(this.kvs.entries()).map((function(t){var n=X(t,2),r=n[0],o=n[1],i=r.split(No);return e({key:i.map((function(e){var t=X(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const To=Fo;var zo=["name"],Bo=bt((function e(t){var n=this;vt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),L(this,"getInternalHooks",(function(e){return e===Nr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(re(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),L(this,"useSubscribe",(function(e){n.subscribable=e})),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Zt(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Ut(o,n,Gt(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),L(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new To;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),L(this,"getInitialValue",(function(e){var t=Gt(n.initialValues,e);return e.length?Zt(t):t})),L(this,"setCallbacks",(function(e){n.callbacks=e})),L(this,"setValidateMessages",(function(e){n.validateMessages=e})),L(this,"setPreserve",(function(e){n.preserve=e})),L(this,"watchList",[]),L(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),L(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),L(this,"timeoutId",null),L(this,"warningUnhooked",(function(){})),L(this,"updateStore",(function(e){n.store=e})),L(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),L(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new To;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),L(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Co(e);return t.get(n)||{INVALIDATE_NAME_PATH:Co(e)}}))})),L(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===z(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)})),wo(n.store,l.map(Co))})),L(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Co(e);return Gt(n.store,t)})),L(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Co(e[n]),errors:[],warnings:[]}}))})),L(this,"getFieldError",(function(e){n.warningUnhooked();var t=Co(e);return n.getFieldsError([t])[0].errors})),L(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Co(e);return n.getFieldsError([t])[0].warnings})),L(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new To,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,ye(ye(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))re(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)re(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Ut(n.store,o,ye(i)[0].value))}}}}))})),L(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Zt(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Co);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Ut(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),L(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=_(e,zo),a=Co(o);r.push(a),"value"in i&&n.updateStore(Ut(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),L(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=D(D({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),L(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Gt(n.store,r)&&n.updateStore(Ut(n.store,r,t))}})),L(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),L(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Eo(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Ut(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),L(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),L(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=D(D({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),L(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ye(r))}),r})),L(this,"updateValue",(function(e,t){var r=Co(e),o=n.store;n.updateStore(Ut(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(wo(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(ye(i)))})),L(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Zt(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),L(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])})),L(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new To;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Co(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),L(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new To;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return So(e,n)}));a.length&&r(a,o)}})),L(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Co):[],l=[],s=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||So(a,t,d)){var r=e.validateRules(D({validateMessages:D(D({},fo),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,ye(n)):r.push.apply(r,ye(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(s))}));return n.triggerOnFieldsChange(g),m})),L(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const Lo=function(t){var n=e.useRef(),r=X(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new Bo((function(){r({})}));n.current=o.getForm()}return[n.current]};var Ho=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Do=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(Ho),l=e.useRef({});return e.createElement(Ho.Provider,{value:D(D({},a),{},{validateMessages:D(D({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=D(D({},l.current),{},L({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=D({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const _o=Ho;var Vo=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Wo=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,f=t.validateTrigger,p=void 0===f?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,h=t.onFinishFailed,b=t.clearOnDestroy,y=_(t,Vo),x=e.useRef(null),C=e.useContext(_o),w=X(Lo(a),1)[0],S=w.getInternalHooks(Nr),E=S.useSubscribe,$=S.setInitialValues,k=S.setCallbacks,O=S.setValidateMessages,I=S.setPreserve,j=S.destroyForm;e.useImperativeHandle(n,(function(){return D(D({},w),{},{nativeElement:x.current})})),e.useEffect((function(){return C.registerForm(r,w),function(){C.unregisterForm(r)}}),[C,w,r]),O(D(D({},C.validateMessages),d)),k({onValuesChange:m,onFieldsChange:function(e){if(C.triggerFormChange(r,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{}}),Qo=e.createContext(null),Zo=t=>{const n=Uo(t,["prefixCls"]);return e.createElement(Do,Object.assign({},n))},Jo=e.createContext({prefixCls:""}),ei=e.createContext({}),ti=t=>{let{children:n,status:r,override:o}=t;const i=e.useContext(ei),a=e.useMemo((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,i]);return e.createElement(ei.Provider,{value:a},n)},ni=e.createContext(void 0),ri="ant",oi="anticon",ii=["outlined","borderless","filled"],ai=e.createContext({getPrefixCls:(e,t)=>t||(e?`${ri}-${e}`:ri),iconPrefixCls:oi}),{Consumer:li}=ai,si=e.createContext(void 0),ci=t=>{let{children:n,size:r}=t;const o=e.useContext(si);return e.createElement(si.Provider,{value:r||o},n)},ui=si,di=e=>{const n=t().useContext(ui);return t().useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},fi=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function pi(e){return e.join("%")}var mi=function(){function e(t){vt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return bt(e,[{key:"get",value:function(e){return this.opGet(pi(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(pi(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const gi=mi;var vi="data-token-hash",hi="data-css-hash",bi="__cssinjs_instance__";var yi=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(hi,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[bi]=t[bi]||e,t[bi]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(hi,"]"))).forEach((function(t){var n,o=t.getAttribute(hi);r[o]?t[bi]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new gi(e)}(),defaultCache:!0});const xi=yi;new RegExp("CALC_UNIT","g");var Ci=function(){function e(){vt(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=X(e,2)[1];return r.internalGet(t)[1]4&&void 0!==arguments[4]&&arguments[4])return e;var o=D(D({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(L(r={},vi,t),L(r,hi,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var Ai=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Fi=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=X(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ti=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=X(e,2),l=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var c,u=Ai(l,null==n?void 0:n.prefix);r[u]="number"!=typeof s||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),o[l]="var(".concat(u,")")}})),[o,Fi(r,t,{scope:null==n?void 0:n.scope})]},zi=D({},e).useInsertionEffect;const Bi=zi?function(e,t,n){return zi((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),Se((function(){return n(!0)}),r)},Li=void 0!==D({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r||n.push(e)}}:function(){return function(e){e()}};function Hi(t,n,r,o,i){var a=e.useContext(xi).cache,l=pi([t].concat(ye(n))),s=Li([l]),c=function(e){a.opUpdate(l,(function(t){var n=X(t||[void 0,void 0],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))};e.useMemo((function(){c()}),[l]);var u=a.opGet(l)[1];return Bi((function(){null==i||i(u)}),(function(e){return c((function(t){var n=X(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=X(t||[],2),r=n[0],i=void 0===r?0:r,c=n[1];return 0==i-1?(s((function(){!e&&a.opGet(l)||null==o||o(c,!1)})),null):[i-1,c]}))}}),[l]),u}var Di={},_i=new Map;var Vi="token";function Wi(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(xi),i=o.cache.instanceId,a=o.container,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?Di:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var r=ki,o=0;o0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(vi,'="').concat(e,'"]')).forEach((function(e){var n;e[bi]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),_i.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=X(e,4),n=t[0],r=t[3];if(p&&r){var o=Ae(r,fi("css-variables-".concat(n._themeKey)),{mark:hi,prepend:"queue",attachTo:a,priority:-999});o[bi]=i,o.setAttribute(vi,n._themeKey)}}));return b}const qi={animationIterationCount: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,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};var Gi="comm",Xi="rule",Ki="decl",Ui=Math.abs,Yi=String.fromCharCode;function Qi(e){return e.trim()}function Zi(e,t,n){return e.replace(t,n)}function Ji(e,t,n){return e.indexOf(t,n)}function ea(e,t){return 0|e.charCodeAt(t)}function ta(e,t,n){return e.slice(t,n)}function na(e){return e.length}function ra(e,t){return t.push(e),e}function oa(e,t){for(var n="",r=0;r0?ea(da,--ca):0,la--,10===ua&&(la=1,aa--),ua}function ma(){return ua=ca2||ba(ua)>3?"":" "}function Ca(e,t){for(;--t&&ma()&&!(ua<48||ua>102||ua>57&&ua<65||ua>70&&ua<97););return ha(e,va()+(t<6&&32==ga()&&32==ma()))}function wa(e){for(;ma();)switch(ua){case e:return ca;case 34:case 39:34!==e&&39!==e&&wa(ua);break;case 40:41===e&&wa(e);break;case 92:ma()}return ca}function Sa(e,t){for(;ma()&&e+ua!==57&&(e+ua!==84||47!==ga()););return"/*"+ha(t,ca-1)+"*"+Yi(47===e?e:ma())}function Ea(e){for(;!ba(ga());)ma();return ha(e,ca)}function $a(e){return function(e){return da="",e}(ka("",null,null,null,[""],e=function(e){return aa=la=1,sa=na(da=e),ca=0,[]}(e),0,[0],e))}function ka(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,h=1,b=0,y="",x=o,C=i,w=r,S=y;v;)switch(m=b,b=ma()){case 40:if(108!=m&&58==ea(S,d-1)){-1!=Ji(S+=Zi(ya(b),"&","&\f"),"&\f",Ui(c?l[c-1]:0))&&(h=-1);break}case 34:case 39:case 91:S+=ya(b);break;case 9:case 10:case 13:case 32:S+=xa(m);break;case 92:S+=Ca(va()-1,7);continue;case 47:switch(ga()){case 42:case 47:ra(Ia(Sa(ma(),va()),t,n,s),s),5!=ba(m||1)&&5!=ba(ga()||1)||!na(S)||" "===ta(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=na(S)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(S=Zi(S,/\f/g,"")),p>0&&(na(S)-d||0===g&&47===m)&&ra(p>32?ja(S+";",r,n,d-1,s):ja(Zi(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(ra(w=Oa(S,t,n,c,u,o,l,y,x=[],C=[],d,i),i),123===b)if(0===u)ka(S,t,w,w,x,i,d,l,C);else{switch(f){case 99:if(110===ea(S,3))break;case 108:if(97===ea(S,2))break;default:u=0;case 100:case 109:case 115:}u?ka(e,w,w,r&&ra(Oa(e,w,w,0,0,o,l,y,o,x=[],d,C),C),o,C,d,l,r?x:C):ka(S,w,w,w,[""],C,0,l,C)}}c=u=p=0,g=h=1,y=S="",d=a;break;case 58:d=1+na(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==pa())continue;switch(S+=Yi(b),b*g){case 38:h=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(na(S)-1)*h,h=1;break;case 64:45===ga()&&(S+=ya(ma())),f=ga(),u=d=na(y=S+=Ea(va())),b++;break;case 45:45===m&&2==na(S)&&(g=0)}}return i}function Oa(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,v=0,h=0;g0?p[b]+" "+y:Zi(y,/&\f/g,p[b])))&&(s[h++]=x);return fa(e,t,n,0===o?Xi:l,s,c,u,d)}function Ia(e,t,n,r){return fa(e,t,n,Gi,Yi(ua),ta(e,2,-2),0,r)}function ja(e,t,n,r,o){return fa(e,t,n,Ki,ta(e,0,r),ta(e,r+1,-1),r,o)}var Pa,Ma="data-ant-cssinjs-cache-path",Ra="_FILE_STYLE__",Na=!0;var Aa="_multi_value_";function Fa(e){return oa($a(e),ia).replace(/\{%%%\:[^;];}/g,";")}var Ta=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=X(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==z(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===z(e)&&e&&("_skip_check_"in e||Aa in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;qi[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===z(r)&&null!=r&&r[Aa]&&Array.isArray(d)?d.forEach((function(e){C(t,e)})):C(t,d)}else{var g=!1,v=t.trim(),h=!1;(o||i)&&l?v.startsWith("@")?g=!0:v=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ye(n.slice(1))).join(" ")}));return i.join(",")}("&"===v?"":t,l,c):!o||l||"&"!==v&&""!==v||(v="",h=!0);var b=X(e(r,n,{root:h,injectHash:g,parentSelectors:[].concat(ye(a),[v])}),2),y=b[0],x=b[1];p=D(D({},p),x),f+="".concat(v).concat(y)}}))}})),o?s&&(f&&(f="@layer ".concat(s.name," {").concat(f,"}")),s.dependencies&&(p["@layer ".concat(s.name)]=s.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(s.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function za(e,t){return fi("".concat(e.join("%")).concat(t))}function Ba(){return null}var La="style";function Ha(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,s=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext(xi),f=d.autoClear,p=(d.mock,d.defaultCache),m=d.hashPriority,g=d.container,v=d.ssrInline,h=d.transformers,b=d.linters,y=d.cache,x=d.layer,C=r._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,ye(o));var S=Mi,E=Hi(La,w,(function(){var e=w.join("|");if(function(e){return function(){if(!Pa&&(Pa={},Y())){var e=document.createElement("div");e.className=Ma,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=X(e.split(":"),2),n=t[0],r=t[1];Pa[n]=r}));var n,r=document.querySelector("style[".concat(Ma,"]"));r&&(Na=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Pa[e]}(e)){var t=function(e){var t=Pa[e],n=null;if(t&&Y())if(Na)n=Ra;else{var r=document.querySelector("style[".concat(hi,'="').concat(Pa[e],'"]'));r?n=r.innerHTML:delete Pa[e]}return[n,t]}(e),r=X(t,2),l=r[0],c=r[1];if(l)return[l,C,c,{},s,u]}var d=n(),f=X(Ta(d,{hashId:i,hashPriority:m,layer:x?a:void 0,path:o.join("-"),transformers:h,linters:b}),2),p=f[0],g=f[1],v=Fa(p),y=za(w,v);return[v,C,y,g,s,u]}),(function(e,t){var n=X(e,3)[2];(t||f)&&Mi&&Ne(n,{mark:hi})}),(function(e){var t=X(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(S&&n!==Ra){var i={mark:hi,prepend:!x&&"queue",attachTo:g,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var s=[],c=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?s.push(e):c.push(e)})),s.forEach((function(e){Ae(Fa(o[e]),"_layer-".concat(e),D(D({},i),{},{prepend:!0}))}));var d=Ae(n,r,i);d[bi]=y.instanceId,d.setAttribute(vi,C),c.forEach((function(e){Ae(Fa(o[e]),"_effect-".concat(e),i)}))}})),$=X(E,3),k=$[0],O=$[1],I=$[2];return function(t){var n,r;return n=v&&!S&&p?e.createElement("style",T({},(L(r={},vi,O),L(r,hi,I),r),{dangerouslySetInnerHTML:{__html:k}})):e.createElement(Ba,null),e.createElement(e.Fragment,null,n,t)}}var Da="cssVar";var _a;L(_a={},La,(function(e,t,n){var r=X(e,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=(n||{}).plain;if(s)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Ni(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ni(Fa(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),L(_a,Vi,(function(e,t,n){var r=X(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,Ni(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),L(_a,Da,(function(e,t,n){var r=X(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;return o?[-999,i,Ni(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));var Va=function(){function e(t,n){vt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return bt(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const Wa=Va;function qa(e){return e.notSplit=!0,e}qa(["borderTop","borderBottom"]),qa(["borderTop"]),qa(["borderBottom"]),qa(["borderLeft","borderRight"]),qa(["borderLeft"]),qa(["borderRight"]);const Ga=bt((function e(){vt(this,e)}));var Xa="CALC_UNIT",Ka=new RegExp(Xa,"g");function Ua(e){return"number"==typeof e?"".concat(e).concat(Xa):e}var Ya=function(e){xt(n,e);var t=Et(n);function n(e,r){var o;vt(this,n),L(St(o=t.call(this)),"result",""),L(St(o),"unitlessCssVar",void 0),L(St(o),"lowPriority",void 0);var i=z(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Ua(e):"string"===i&&(o.result=e),o}return bt(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Ua(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Ua(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Ka,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Ga);const Qa=function(e){xt(n,e);var t=Et(n);function n(e){var r;return vt(this,n),L(St(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return bt(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Ga),Za=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},Ja=function(e,t,n,r){var o=D({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=X(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var i=D(D({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var el="undefined"!=typeof CSSINJS_STATISTIC,tl=!0;function nl(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ll=new al;const sl=function(){return{}},cl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ul=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},dl=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),fl=(e,t)=>({outline:`${Ri(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),pl=(e,t)=>({"&:focus-visible":Object.assign({},fl(e,t))}),ml=e=>({[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),gl={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},vl=Object.assign(Object.assign({},gl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),hl={token:vl,override:{override:vl},hashed:!0},bl=t().createContext(hl),yl=Math.round;function xl(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Cl=(e,t,n)=>0===n?e:e/100;function wl(e,t){const n=t||255;return e>n?n:e<0?0:e}class Sl{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(L(this,"isValid",!0),L(this,"r",0),L(this,"g",0),L(this,"b",0),L(this,"a",1),L(this,"_h",void 0),L(this,"_s",void 0),L(this,"_l",void 0),L(this,"_v",void 0),L(this,"_max",void 0),L(this,"_min",void 0),L(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Sl)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=wl(e.r),this.g=wl(e.g),this.b=wl(e.b),this.a="number"==typeof e.a?wl(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:yl(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:yl(o("r")),g:yl(o("g")),b:yl(o("b")),a:yl(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>yl((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=yl(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=yl(100*this.getSaturation()),n=yl(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=wl(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=yl(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(l%2-1));l>=0&&l<1?(o=s,i=c):l>=1&&l<2?(o=c,i=s):l>=2&&l<3?(i=s,a=c):l>=3&&l<4?(i=c,a=s):l>=4&&l<5?(o=c,a=s):l>=5&&l<6&&(o=s,a=c);const u=n-s/2;this.r=yl(255*(o+u)),this.g=yl(255*(i+u)),this.b=yl(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=yl(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,s=yl(n*(1-t)*255),c=yl(n*(1-t*l)*255),u=yl(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=c;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=c}}fromHsvString(e){const t=xl(e,Cl);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=xl(e,Cl);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=xl(e,((e,t)=>t.includes("%")?yl(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var El=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function $l(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function kl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Ol(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Il(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Sl(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new Sl({h:$l(o,i,!0),s:kl(o,i,!0),v:Ol(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=4;l+=1){var s=new Sl({h:$l(o,l),s:kl(o,l),v:Ol(o,l)});n.push(s)}return"dark"===t.theme?El.map((function(e){var r=e.index,o=e.amount;return new Sl(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var jl={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Pl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Pl.primary=Pl[5];var Ml=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ml.primary=Ml[5];var Rl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Rl.primary=Rl[5];var Nl=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Nl.primary=Nl[5];var Al=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Al.primary=Al[5];var Fl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fl.primary=Fl[5];var Tl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Tl.primary=Tl[5];var zl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];zl.primary=zl[5];var Bl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Bl.primary=Bl[5];var Ll=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ll.primary=Ll[5];var Hl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Hl.primary=Hl[5];var Dl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Dl.primary=Dl[5];var _l=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_l.primary=_l[5];var Vl={red:Pl,volcano:Ml,orange:Rl,gold:Nl,yellow:Al,lime:Fl,green:Tl,cyan:zl,blue:Bl,geekblue:Ll,purple:Hl,magenta:Dl,grey:_l},Wl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Wl.primary=Wl[5];var ql=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ql.primary=ql[5];var Gl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Gl.primary=Gl[5];var Xl=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Xl.primary=Xl[5];var Kl=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Kl.primary=Kl[5];var Ul=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ul.primary=Ul[5];var Yl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Yl.primary=Yl[5];var Ql=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Ql.primary=Ql[5];var Zl=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Zl.primary=Zl[5];var Jl=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Jl.primary=Jl[5];var es=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];es.primary=es[5];var ts=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ts.primary=ts[5];var ns=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ns.primary=ns[5];function rs(e){return(e+8)/e}const os=(e,t)=>new Sl(e).setA(t).toRgbString(),is=(e,t)=>new Sl(e).darken(t).toHexString(),as=e=>{const t=Il(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ls=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:os(r,.88),colorTextSecondary:os(r,.65),colorTextTertiary:os(r,.45),colorTextQuaternary:os(r,.25),colorFill:os(r,.15),colorFillSecondary:os(r,.06),colorFillTertiary:os(r,.04),colorFillQuaternary:os(r,.02),colorBgSolid:os(r,1),colorBgSolidHover:os(r,.75),colorBgSolidActive:os(r,.95),colorBgLayout:is(n,4),colorBgContainer:is(n,0),colorBgElevated:is(n,0),colorBgSpotlight:os(r,.85),colorBgBlur:"transparent",colorBorder:is(n,15),colorBorderSecondary:is(n,6)}},ss=$i((function(e){jl.pink=jl.magenta,Vl.pink=Vl.magenta;const t=Object.keys(gl).map((t=>{const n=e[t]===jl[t]?Vl[t]:Il(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),p=n(i),m=n(a),g=n(l),v=r(c,u),h=n(e.colorLink||e.colorInfo),b=new Sl(m[1]).mix(new Sl(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Sl("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:as,generateNeutralColorPalettes:ls})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:rs(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))})),cs=ss;function us(e){return e>=0&&e<=255}const ds=function(e,t){const{r:n,g:r,b:o,a:i}=new Sl(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Sl(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),c=Math.round((o-s*(1-e))/e);if(us(t)&&us(i)&&us(c))return new Sl({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Sl({r:n,g:r,b:o,a:1}).toRgbString()};function fs(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ds(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ds(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ds(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ds(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Sl("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Sl("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Sl("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ps=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=ps(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=fs(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ps(n,["theme"]);let i=o;r&&(i=hs(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function bs(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(bl),a=`5.23.4-${n||""}`,l=r||cs,[s,c,u]=Wi(l,[vl,e],{salt:a,override:o,getComputedToken:hs,formatToken:fs,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ms,ignore:gs,preserve:vs}});return[l,u,n?c:"",s,i]}const{genStyleHooks:ys,genComponentStyleHook:xs,genSubStyleComponent:Cs}=function(n){var r=n.useCSP,o=void 0===r?sl:r,i=n.useToken,a=n.usePrefix,l=n.getResetStyles,s=n.getCommonStyle,c=n.getCompUnitless;function u(e,r,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(e)?e:[e,e],f=X(d,1)[0],p=d.join("-"),m=n.layer||{name:"antd"};return function(e){var n,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=i(),h=v.theme,b=v.realToken,y=v.hashId,x=v.token,C=v.cssVar,w=a(),S=w.rootPrefixCls,E=w.iconPrefixCls,$=o(),k=C?"css":"js",O=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Ai(t,C.prefix)),e.add(Ai(t,Za(f,C.prefix)))})),function(e,t){var n="css"===e?Ya:Qa;return function(e){return new n(e,t)}}(k,e)},d=[k,f,null==C?void 0:C.prefix],t().useMemo((function(){var e=ll.get(d);if(e)return e;var t=n();return ll.set(d,t),t}),d)),I=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:e,n=X(m(e,t),2)[1],r=X(g(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,D({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=(0,e.useContext)(ai);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=bs();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t}=(0,e.useContext)(ai);return null!=t?t:{}},getResetStyles:(e,t)=>{var n;return[{"&":dl(e)},ml(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:oi)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>ms}),ws=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ss=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Es=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},$s=ys("Space",(e=>{const t=nl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ss(t),Es(t),ws(t)]}),(()=>({})),{resetStyle:!1});var ks=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=e.useContext(Os),o=e.useMemo((()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return A()(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},js=t=>{const{children:n}=t;return e.createElement(Os.Provider,{value:null},n)},Ps=t=>{const{children:n}=t,r=ks(t,["children"]);return e.createElement(Os.Provider,{value:e.useMemo((()=>r),[r])},n)},Ms=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t().createElement(ti,{override:!0,status:!0},i)),n&&(i=t().createElement(js,null,i)),i},Rs=t().createContext(void 0),Ns=100,As={Modal:Ns,Drawer:Ns,Popover:Ns,Popconfirm:Ns,Tooltip:Ns,Tour:Ns,FloatButton:Ns},Fs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Ts=(e,n)=>{const[,r]=bs(),o=t().useContext(Rs),i=e in As;let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+As[e]:Fs[e],a=[void 0===o?n:t,t]}return a},zs=()=>({height:0,opacity:0}),Bs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ls=e=>({height:e?e.offsetHeight:0}),Hs=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ds=(e,t,n)=>void 0!==n?n:`${e}-${t}`,_s=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:ri}-motion-collapse`,onAppearStart:zs,onEnterStart:zs,onAppearActive:Bs,onEnterActive:Bs,onLeaveStart:Ls,onLeaveActive:zs,onAppearEnd:Hs,onEnterEnd:Hs,onLeaveEnd:Hs,motionDeadline:500}};function Vs(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,f=2*o-a,p=l,m=2*o-0,g=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}const Ws=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ri(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function qs(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Gs(e,t){return e?t:{}}function Xs(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ws(e,t,o)),{"&:before":{background:t}})]},Gs(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ri(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Gs(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ri(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Gs(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Gs(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Ks={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Us={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Ys=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Qs(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Ks).forEach((e=>{const c=r&&Us[e]||Ks[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,Ys.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=qs({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),s}function Zs(e){return e&&t().isValidElement(e)&&e.type===t().Fragment}function Js(e,n){return((e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}function ec(){}const tc=e.createContext({}),nc=()=>{const e=()=>{};return e.deprecated=ec,e},rc=e=>({animationDuration:e,animationFillMode:"both"}),oc=e=>({animationDuration:e,animationFillMode:"both"}),ic=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},rc(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},oc(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ac=new Wa("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),lc=new Wa("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),sc=new Wa("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),cc=new Wa("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),uc=new Wa("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),dc=new Wa("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fc=new Wa("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),pc=new Wa("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),mc=new Wa("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),gc=new Wa("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vc=new Wa("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),hc=new Wa("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),bc={zoom:{inKeyframes:ac,outKeyframes:lc},"zoom-big":{inKeyframes:sc,outKeyframes:cc},"zoom-big-fast":{inKeyframes:sc,outKeyframes:cc},"zoom-left":{inKeyframes:fc,outKeyframes:pc},"zoom-right":{inKeyframes:mc,outKeyframes:gc},"zoom-up":{inKeyframes:uc,outKeyframes:dc},"zoom-down":{inKeyframes:vc,outKeyframes:hc}},yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=bc[t];return[ic(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Cc(e,t){return xc.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const wc=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ul(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:s,padding:`${Ri(e.calc(u).div(2).equal())} ${Ri(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),Cc(e,((e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Xs(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Sc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},qs({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Vs(nl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ec=function(e){const t=ys("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=nl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[wc(o),yc(e,"zoom-big-fast")]}),Sc,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},$c=xc.map((e=>`${e}-inverse`));function kc(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?xc.includes(e):[].concat(ye($c),ye(xc)).includes(e)}(t),r=A()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Oc=e.forwardRef(((t,n)=>{var r,o,i,a,l,s;const{prefixCls:c,openClassName:u,getTooltipContainer:d,color:f,overlayInnerStyle:p,children:m,afterOpenChange:g,afterVisibleChange:v,destroyTooltipOnHide:h,arrow:b=!0,title:y,overlay:x,builtinPlacements:C,arrowPointAtCenter:w=!1,autoAdjustOverflow:S=!0,motion:E,getPopupContainer:$,placement:k="top",mouseEnterDelay:O=.1,mouseLeaveDelay:I=.1,overlayStyle:j,rootClassName:P,overlayClassName:M,styles:R,classNames:N}=t,F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;null===(e=V.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:W,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:null===(e=V.current)||void 0===e?void 0:e.nativeElement}}));const[q,G]=qt(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),X=!y&&!x&&0!==y,K=e.useMemo((()=>{var e,t;let n=w;return"object"==typeof b&&(n=null!==(t=null!==(e=b.pointAtCenter)&&void 0!==e?e:b.arrowPointAtCenter)&&void 0!==t?t:w),C||Qs({arrowPointAtCenter:n,autoAdjustOverflow:S,arrowWidth:T?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})}),[w,b,C,z]),U=e.useMemo((()=>0===y?y:x||y||""),[x,y]),Y=e.createElement(Ms,{space:!0},"function"==typeof U?U():U),Q=L("tooltip",c),Z=L(),J=t["data-popover-inject"];let ee=q;"open"in t||"visible"in t||!X||(ee=!1);const te=e.isValidElement(m)&&!Zs(m)?m:e.createElement("span",null,m),ne=te.props,re=ne.className&&"string"!=typeof ne.className?ne.className:A()(ne.className,u||`${Q}-open`),[oe,ie,ae]=Ec(Q,!J),le=kc(Q,f),se=le.arrowStyle,ce=A()(M,{[`${Q}-rtl`]:"rtl"===H},le.className,P,ie,ae,null==D?void 0:D.className,null===(i=null==D?void 0:D.classNames)||void 0===i?void 0:i.root,null==N?void 0:N.root),ue=A()(null===(a=null==D?void 0:D.classNames)||void 0===a?void 0:a.body,null==N?void 0:N.body),[de,fe]=Ts("Tooltip",F.zIndex),pe=e.createElement(Ir,Object.assign({},F,{zIndex:de,showArrow:T,placement:k,mouseEnterDelay:O,mouseLeaveDelay:I,prefixCls:Q,classNames:{root:ce,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),null===(l=null==D?void 0:D.styles)||void 0===l?void 0:l.root),null==D?void 0:D.style),j),null==R?void 0:R.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},null===(s=null==D?void 0:D.styles)||void 0===s?void 0:s.body),p),null==R?void 0:R.body),le.overlayStyle)},getTooltipContainer:$||d||B,ref:V,builtinPlacements:K,overlay:Y,visible:ee,onVisibleChange:e=>{var n,r;G(!X&&e),X||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!=g?g:v,arrowContent:e.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Ds(Z,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),ee?Js(te,{className:re}):te);return oe(e.createElement(Rs.Provider,{value:fe},pe))})),Ic=Oc;Ic._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:s}=e.useContext(ai),c=s("tooltip",n),[u,d,f]=Ec(c),p=kc(c,a),m=p.arrowStyle,g=Object.assign(Object.assign({},l),p.overlayStyle),v=A()(d,f,c,`${c}-pure`,`${c}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:v,style:m},e.createElement("div",{className:`${c}-arrow`}),e.createElement(F,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const jc=Ic,Pc=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Mc=xs("Wave",(e=>[Pc(e)])),Rc=`${ri}-wave-target`;var Nc,Ac=D({},K),Fc=Ac.version,Tc=Ac.render,zc=Ac.unmountComponentAtNode;try{Number((Fc||"").split(".")[0])>=18&&(Nc=Ac.createRoot)}catch(iS){}function Bc(e){var t=Ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===z(t)&&(t.usingClientEntryPoint=e)}var Lc="__rc_react_root__";function Hc(_x){return Dc.apply(this,arguments)}function Dc(){return(Dc=Mr(jr().mark((function e(t){return jr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Lc])||void 0===e||e.unmount(),delete t[Lc]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _c(e){zc(e)}function Vc(){return(Vc=Mr(jr().mark((function e(t){return jr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Nc){e.next=2;break}return e.abrupt("return",Hc(t));case 2:_c(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let Wc=(e,t)=>(function(e,t){Nc?function(e,t){Bc(!0);var n=t[Lc]||Nc(t);Bc(!1),n.render(e),t[Lc]=n}(e,t):function(e,t){null==Tc||Tc(e,t)}(e,t)}(e,t),()=>function(e){return Vc.apply(this,arguments)}(t));function qc(){return Wc}function Gc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Xc(e){return Number.isNaN(e)?0:e}const Kc=t=>{const{className:n,target:r,component:o,registerUnmount:i}=t,a=e.useRef(null),l=e.useRef(null);e.useEffect((()=>{l.current=i()}),[]);const[s,c]=e.useState(null),[u,d]=e.useState([]),[f,p]=e.useState(0),[m,g]=e.useState(0),[v,h]=e.useState(0),[b,y]=e.useState(0),[x,C]=e.useState(!1),w={left:f,top:m,width:v,height:b,borderRadius:u.map((e=>`${e}px`)).join(" ")};function S(){const e=getComputedStyle(r);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Gc(t)?t:Gc(n)?n:Gc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;p(t?r.offsetLeft:Xc(-parseFloat(n))),g(t?r.offsetTop:Xc(-parseFloat(o))),h(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;d([i,a,s,l].map((e=>Xc(parseFloat(e)))))}if(s&&(w["--wave-color"]=s),e.useEffect((()=>{if(r){const e=Rn((()=>{S(),C(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(S),t.observe(r)),()=>{Rn.cancel(e),null==t||t.disconnect()}}}),[]),!x)return null;const E=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(Rc));return e.createElement(Yn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=l.current)||void 0===r||r.call(l).then((()=>{null==e||e.remove()}))}return!1}},((t,r)=>{let{className:o}=t;return e.createElement("div",{ref:fe(a,r),className:A()(n,o,{"wave-quick":E}),style:w})}))},Uc=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild);const a=qc();let l=null;l=a(e.createElement(Kc,Object.assign({},n,{target:t,registerUnmount:function(){return l}})),i)},Yc=(t,n,r)=>{const{wave:o}=e.useContext(ai),[,i,a]=bs(),l=Nt((e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${Rc}`)||l,{showEffect:c}=o||{};(c||Uc)(s,{className:n,token:i,component:r,event:e,hashId:a})})),s=e.useRef(null);return e=>{Rn.cancel(s.current),s.current=Rn((()=>{l(e)}))}},Qc=n=>{const{children:r,disabled:o,component:i}=n,{getPrefixCls:a}=(0,e.useContext)(ai),l=(0,e.useRef)(null),s=a("wave"),[,c]=Mc(s),u=Yc(l,A()(s,c),i);return t().useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!lr(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),t().isValidElement(r)?Js(r,{ref:me(r)?fe(ve(r),l):l}):null!=r?r:null},Zc=e.createContext(!1),Jc=t=>{let{children:n,disabled:r}=t;const o=e.useContext(Zc);return e.createElement(Zc.Provider,{value:null!=r?r:o},n)},eu=Zc;const tu=e.createContext(void 0),nu=/^[\u4E00-\u9FA5]{2}$/,ru=nu.test.bind(nu);function ou(e){return"danger"===e?{danger:!0}:{type:e}}function iu(e){return"string"==typeof e}function au(e){return"text"===e||"link"===e}["default","primary","danger"].concat(ye(xc));const lu=(0,e.forwardRef)(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=A()(`${a}-icon`,r);return t().createElement("span",{ref:n,className:l,style:o},i)})),su=lu,cu={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},uu=(0,e.createContext)({});function du(e){return"object"===z(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===z(e.icon)||"function"==typeof e.icon)}function fu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function pu(e,n,r){return r?t().createElement(e.tag,D(D({key:n},fu(e.attrs)),r),(e.children||[]).map((function(t,r){return pu(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t().createElement(e.tag,D({key:n},fu(e.attrs)),(e.children||[]).map((function(t,r){return pu(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function mu(e){return Il(e)[0]}function gu(e){return e?Array.isArray(e)?e:[e]:[]}var vu=["icon","className","onClick","style","primaryColor","secondaryColor"],hu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},bu=function(t){var n,r,o,i,a,l,s,c,u=t.icon,d=t.className,f=t.onClick,p=t.style,m=t.primaryColor,g=t.secondaryColor,v=_(t,vu),h=e.useRef(),b=hu;if(m&&(b={primaryColor:m,secondaryColor:g||mu(m)}),n=h,r=(0,e.useContext)(uu),o=r.csp,i=r.prefixCls,a=r.layer,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a," {\n").concat(l,"\n}")),(0,e.useEffect)((function(){var e=Rt(n.current);Ae(l,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})}),[]),s=du(u),c="icon should be icon definiton, but got ".concat(u),re(s,"[@ant-design/icons] ".concat(c)),!du(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=D(D({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),pu(y.icon,"svg-".concat(y.name),D(D({className:d,onClick:f,style:p,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:h}))};bu.displayName="IconReact",bu.getTwoToneColors=function(){return D({},hu)},bu.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;hu.primaryColor=t,hu.secondaryColor=n||mu(t),hu.calculated=!!n};const yu=bu;function xu(e){var t=X(gu(e),2),n=t[0],r=t[1];return yu.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Cu=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xu(Bl.primary);var wu=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,s=t.onClick,c=t.twoToneColor,u=_(t,Cu),d=e.useContext(uu),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,g=A()(m,p,L(L({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),v=l;void 0===v&&s&&(v=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=X(gu(c),2),y=b[0],x=b[1];return e.createElement("span",T({role:"img","aria-label":o.name},u,{ref:n,tabIndex:v,onClick:s,className:g}),e.createElement(yu,{icon:o,primaryColor:y,secondaryColor:x,style:h}))}));wu.displayName="AntdIcon",wu.getTwoToneColor=function(){var e=yu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},wu.setTwoToneColor=xu;const Su=wu;var Eu=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:cu}))};const $u=e.forwardRef(Eu),ku=(0,e.forwardRef)(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=A()(`${r}-loading-icon`,o);return t().createElement(su,{prefixCls:r,className:l,style:i,ref:n},t().createElement($u,{className:a}))})),Ou=()=>({width:0,opacity:0,transform:"scale(0)"}),Iu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ju=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,mount:l}=e,s=!!r;return o?t().createElement(ku,{prefixCls:n,className:i,style:a}):t().createElement(Yn,{visible:s,motionName:`${n}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Ou,onAppearActive:Iu,onEnterStart:Ou,onEnterActive:Iu,onLeaveStart:Iu,onLeaveActive:Ou},((e,r)=>{let{className:o,style:l}=e;const s=Object.assign(Object.assign({},a),l);return t().createElement(ku,{prefixCls:n,className:A()(i,o),style:s,ref:r})}))},Pu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Mu=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Pu(`${t}-primary`,o),Pu(`${t}-danger`,i)]}};var Ru,Nu=["b"],Au=["v"],Fu=function(e){return Math.round(Number(e||0))},Tu=function(e){xt(n,e);var t=Et(n);function n(e){return vt(this,n),t.call(this,function(e){if(e instanceof Sl)return e;if(e&&"object"===z(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return D(D({},_(t,Nu)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return bt(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Fu(100*e.s),n=Fu(100*e.b),r=Fu(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return D(D({},_(e,Au)),{},{b:t,a:this.a})}}]),n}(Sl);(Ru="#1677ff")instanceof Tu||new Tu(Ru);let zu=function(){return bt((function e(t){var n;if(vt(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new Tu(this.colors[0].color.metaColor)):this.metaColor=new Tu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const Bu=e=>{const{paddingInline:t,onlyIconSize:n}=e;return nl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Lu=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:rs(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:rs(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:rs(c),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Tu(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new zu(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},Hu=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ri(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":pl(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Du=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),_u=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Vu=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Wu=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),qu=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Du(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Gu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Wu(e))}),Xu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ku=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Xu:Gu;return Object.assign(Object.assign({},o(e)),Du(e.componentCls,t,n))},Uu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ku(e,r,o))}),Yu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ku(e,r,o))}),Qu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Zu=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ku(e,n,r))}),Ju=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ku(e,r,o,n))}),ed=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Uu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Qu(e)),Zu(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ju(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),qu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),td=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Yu(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Qu(e)),Zu(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ju(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),qu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),nd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Uu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Yu(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Qu(e)),Zu(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ju(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ju(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),qu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rd=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:ed(e),[`${t}-color-primary`]:td(e),[`${t}-color-dangerous`]:nd(e)},(e=>{const{componentCls:t}=e;return xc.reduce(((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}7`],u=`0 ${Ri(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:u},Uu(e,e.colorTextLightSolid,o,{background:a},{background:c})),Yu(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Qu(e)),Zu(e,i,{background:l},{background:s})),Ju(e,o,"link",{color:a},{color:c})),Ju(e,o,"text",{color:a,background:i},{color:c,background:s}))})}),{})})(e))},od=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Yu(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ju(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Uu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ju(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),id=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${Ri(s)} ${Ri(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:_u(e)},{[`${n}${n}-round${t}`]:Vu(e)}]},ad=e=>{const t=nl(e,{fontSize:e.contentFontSize});return id(t,e.componentCls)},ld=e=>{const t=nl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return id(t,`${e.componentCls}-sm`)},sd=e=>{const t=nl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return id(t,`${e.componentCls}-lg`)},cd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ud=ys("Button",(e=>{const t=Bu(e);return[Hu(t),ad(t),ld(t),sd(t),cd(t),rd(t),od(t),Mu(t)]}),Lu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function dd(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function fd(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function pd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},dd(e,r,t)),fd(n,r,t))}}function md(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function gd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},md(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const vd=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},hd=Cs(["Button","compact"],(e=>{const t=Bu(e);return[pd(t),gd(t),vd(t)]}),Lu);const bd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},yd=t().forwardRef(((n,r)=>{var o,i,a,l;const{loading:s=!1,prefixCls:c,color:u,variant:d,type:f,danger:p=!1,shape:m="default",size:g,styles:v,disabled:h,className:b,rootClassName:y,children:x,icon:C,iconPosition:w="start",ghost:S=!1,block:E=!1,htmlType:$="button",classNames:k,style:O={},autoInsertSpace:I,autoFocus:j}=n,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(u&&d)return[u,d];const e=bd[M]||[];return p?["danger",e[1]]:e}),[f,u,d,p]),F="danger"===R?"dangerous":R,{getPrefixCls:T,direction:z,button:B}=(0,e.useContext)(ai),L=null===(o=null!=I?I:null==B?void 0:B.autoInsertSpace)||void 0===o||o,H=T("btn",c),[D,_,V]=ud(H),W=(0,e.useContext)(eu),q=null!=h?h:W,G=(0,e.useContext)(tu),X=(0,e.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(s)),[s]),[K,U]=(0,e.useState)(X.loading),[Y,Q]=(0,e.useState)(!1),Z=(0,e.useRef)(null),J=pe(r,Z),ee=1===e.Children.count(x)&&!C&&!au(N),te=(0,e.useRef)(!0);t().useEffect((()=>(te.current=!1,()=>{te.current=!0})),[]),(0,e.useEffect)((()=>{let e=null;return X.delay>0?e=setTimeout((()=>{e=null,U(!0)}),X.delay):U(X.loading),function(){e&&(clearTimeout(e),e=null)}}),[X]),(0,e.useEffect)((()=>{if(!Z.current||!L)return;const e=Z.current.textContent||"";ee&&ru(e)?Y||Q(!0):Y&&Q(!1)})),(0,e.useEffect)((()=>{j&&Z.current&&Z.current.focus()}),[]);const ne=t().useCallback((e=>{var t;K||q?e.preventDefault():null===(t=n.onClick)||void 0===t||t.call(n,e)}),[n.onClick,K,q]),{compactSize:re,compactItemClassnames:oe}=Is(H,z),ie=di((e=>{var t,n;return null!==(n=null!==(t=null!=g?g:re)&&void 0!==t?t:G)&&void 0!==n?n:e})),ae=ie&&null!==(i={large:"lg",small:"sm",middle:void 0}[ie])&&void 0!==i?i:"",le=K?"loading":C,se=Uo(P,["navigate"]),ce=A()(H,_,V,{[`${H}-${m}`]:"default"!==m&&m,[`${H}-${M}`]:M,[`${H}-dangerous`]:p,[`${H}-color-${F}`]:F,[`${H}-variant-${N}`]:N,[`${H}-${ae}`]:ae,[`${H}-icon-only`]:!x&&0!==x&&!!le,[`${H}-background-ghost`]:S&&!au(N),[`${H}-loading`]:K,[`${H}-two-chinese-chars`]:Y&&L&&!K,[`${H}-block`]:E,[`${H}-rtl`]:"rtl"===z,[`${H}-icon-end`]:"end"===w},oe,b,y,null==B?void 0:B.className),ue=Object.assign(Object.assign({},null==B?void 0:B.style),O),de=A()(null==k?void 0:k.icon,null===(a=null==B?void 0:B.classNames)||void 0===a?void 0:a.icon),fe=Object.assign(Object.assign({},(null==v?void 0:v.icon)||{}),(null===(l=null==B?void 0:B.styles)||void 0===l?void 0:l.icon)||{}),me=C&&!K?t().createElement(su,{prefixCls:H,className:de,style:fe},C):s&&"object"==typeof s&&s.icon?t().createElement(su,{prefixCls:H,className:de,style:fe},s.icon):t().createElement(ju,{existIcon:!!C,prefixCls:H,loading:K,mount:te.current}),ge=x||0===x?function(e,n){let r=!1;const o=[];return t().Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t().Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&iu(e.type)&&ru(e.props.children)?Js(e,{children:e.props.children.split("").join(r)}):iu(e)?ru(e)?t().createElement("span",null,e.split("").join(r)):t().createElement("span",null,e):Zs(e)?t().createElement("span",null,e):e}(e,n)))}(x,ee&&L):null;if(void 0!==se.href)return D(t().createElement("a",Object.assign({},se,{className:A()(ce,{[`${H}-disabled`]:q}),href:q?void 0:se.href,style:ue,onClick:ne,ref:J,tabIndex:q?-1:0}),me,ge));let ve=t().createElement("button",Object.assign({},P,{type:$,className:ce,style:ue,onClick:ne,disabled:q,ref:J}),me,ge,oe&&t().createElement(hd,{prefixCls:H}));return au(N)||(ve=t().createElement(Qc,{component:"Button",disabled:K},ve)),D(ve)})),xd=yd;xd.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(ai),{prefixCls:o,size:i,className:a}=t,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{switch(i){case"large":return"lg";case"small":return"sm";default:return""}}),[i]),d=A()(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===r},a,c);return e.createElement(tu.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},xd.__ANT_BUTTON=!0;const Cd=xd,wd=e=>e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked;function Sd(e){return nl(e,{inputAffixPadding:e.paddingXXS})}const Ed=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},$d=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),kd=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},$d(nl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Od=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Id=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Od(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),jd=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Od(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kd(e))}),Id(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Id(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Pd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Md=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Pd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Pd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},kd(e))}})}),Rd=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Nd=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Ad=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Nd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Fd=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kd(e))}),Ad(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Ad(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Td=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),zd=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Td(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Td(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Bd=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Ri(t)} ${Ri(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Ld=e=>({padding:`${Ri(e.paddingBlockSM)} ${Ri(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Hd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ri(e.paddingBlock)} ${Ri(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Bd(e)),"&-sm":Object.assign({},Ld(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Dd=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Bd(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Ld(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ri(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ri(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ri(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ri(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ri(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},_d=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ul(e)),Hd(e)),jd(e)),Fd(e)),Rd(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Vd=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ri(e.inputAffixPadding)}`}}}},Wd=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Hd(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Vd(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},qd=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ul(e)),Dd(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Md(e)),zd(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Gd=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Xd=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Kd=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ud=ys("Input",(e=>{const t=nl(e,Sd(e));return[_d(t),Xd(t),Wd(t),qd(t),Gd(t),Kd(t),pd(t)]}),Ed,{resetFont:!1});function Yd(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Qd(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Yd(t,e,r)):n(o=Yd(t,e,""))}}function Zd(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var Jd=t().forwardRef((function(n,r){var o,i,a,l=n.inputElement,s=n.children,c=n.prefixCls,u=n.prefix,d=n.suffix,f=n.addonBefore,p=n.addonAfter,m=n.className,g=n.style,v=n.disabled,h=n.readOnly,b=n.focused,y=n.triggerFocus,x=n.allowClear,C=n.value,w=n.handleReset,S=n.hidden,E=n.classes,$=n.classNames,k=n.dataAttrs,O=n.styles,I=n.components,j=n.onClear,P=null!=s?s:l,M=(null==I?void 0:I.affixWrapper)||"span",R=(null==I?void 0:I.groupWrapper)||"span",N=(null==I?void 0:I.wrapper)||"span",F=(null==I?void 0:I.groupAddon)||"span",B=(0,e.useRef)(null),H=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(n),_=(0,e.cloneElement)(P,{value:C,className:A()(null===(o=P.props)||void 0===o?void 0:o.className,!H&&(null==$?void 0:$.variant))||null}),V=(0,e.useRef)(null);if(t().useImperativeHandle(r,(function(){return{nativeElement:V.current||B.current}})),H){var W=null;if(x){var q=!v&&!h&&C,G="".concat(c,"-clear-icon"),X="object"===z(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";W=t().createElement("button",{type:"button",onClick:function(e){null==w||w(e),null==j||j()},onMouseDown:function(e){return e.preventDefault()},className:A()(G,L(L({},"".concat(G,"-hidden"),!q),"".concat(G,"-has-suffix"),!!d))},X)}var K="".concat(c,"-affix-wrapper"),U=A()(K,L(L(L(L(L({},"".concat(c,"-disabled"),v),"".concat(K,"-disabled"),v),"".concat(K,"-focused"),b),"".concat(K,"-readonly"),h),"".concat(K,"-input-with-clear-btn"),d&&x&&C),null==E?void 0:E.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),Y=(d||x)&&t().createElement("span",{className:A()("".concat(c,"-suffix"),null==$?void 0:$.suffix),style:null==O?void 0:O.suffix},W,d);_=t().createElement(M,T({className:U,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==k?void 0:k.affixWrapper,{ref:B}),u&&t().createElement("span",{className:A()("".concat(c,"-prefix"),null==$?void 0:$.prefix),style:null==O?void 0:O.prefix},u),_,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(n)){var Q="".concat(c,"-group"),Z="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),ee=A()("".concat(c,"-wrapper"),Q,null==E?void 0:E.wrapper,null==$?void 0:$.wrapper),te=A()(J,L({},"".concat(J,"-disabled"),v),null==E?void 0:E.group,null==$?void 0:$.groupWrapper);_=t().createElement(R,{className:te,ref:V},t().createElement(N,{className:ee},f&&t().createElement(F,{className:Z},f),_,p&&t().createElement(F,{className:Z},p)))}return t().cloneElement(_,{className:A()(null===(i=_.props)||void 0===i?void 0:i.className,m)||null,style:D(D({},null===(a=_.props)||void 0===a?void 0:a.style),g),hidden:S})}));const ef=Jd;var tf=["show"];function nf(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===z(n)&&n.formatter?n.formatter:!!n);var r=e=D(D({},e),t),o=r.show,i=_(r,tf);return D(D({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var rf=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],of=(0,e.forwardRef)((function(n,r){var o=n.autoComplete,i=n.onChange,a=n.onFocus,l=n.onBlur,s=n.onPressEnter,c=n.onKeyDown,u=n.onKeyUp,d=n.prefixCls,f=void 0===d?"rc-input":d,p=n.disabled,m=n.htmlSize,g=n.className,v=n.maxLength,h=n.suffix,b=n.showCount,y=n.count,x=n.type,C=void 0===x?"text":x,w=n.classes,S=n.classNames,E=n.styles,$=n.onCompositionStart,k=n.onCompositionEnd,O=_(n,rf),I=X((0,e.useState)(!1),2),j=I[0],P=I[1],M=(0,e.useRef)(!1),R=(0,e.useRef)(!1),N=(0,e.useRef)(null),F=(0,e.useRef)(null),z=function(e){N.current&&Zd(N.current,e)},B=X(qt(n.defaultValue,{value:n.value}),2),H=B[0],V=B[1],W=null==H?"":String(H),q=X((0,e.useState)(null),2),G=q[0],K=q[1],U=nf(y,b),Y=U.max||v,Q=U.strategy(W),Z=!!Y&&Q>Y;(0,e.useImperativeHandle)(r,(function(){var e;return{focus:z,blur:function(){var e;null===(e=N.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=N.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=N.current)||void 0===e||e.select()},input:N.current,nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||N.current}})),(0,e.useEffect)((function(){R.current&&(R.current=!1),P((function(e){return(!e||!p)&&e}))}),[p]);var J=function(e,t,n){var r,o,a=t;if(!M.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&K([(null===(r=N.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=N.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),N.current&&Qd(N.current,e,i,a)};(0,e.useEffect)((function(){var e;G&&(null===(e=N.current)||void 0===e||e.setSelectionRange.apply(e,ye(G)))}),[G]);var ee,te=Z&&"".concat(f,"-out-of-range");return t().createElement(ef,T({},O,{prefixCls:f,className:A()(g,te),handleReset:function(e){V(""),z(),N.current&&Qd(N.current,e,i)},value:W,focused:j,triggerFocus:z,suffix:function(){var e=Number(Y)>0;if(h||U.show){var n=U.showFormatter?U.showFormatter({value:W,count:Q,maxLength:Y}):"".concat(Q).concat(e?" / ".concat(Y):"");return t().createElement(t().Fragment,null,U.show&&t().createElement("span",{className:A()("".concat(f,"-show-count-suffix"),L({},"".concat(f,"-show-count-has-suffix"),!!h),null==S?void 0:S.count),style:D({},null==E?void 0:E.count)},n),h)}return null}(),disabled:p,classes:w,classNames:S,styles:E}),(ee=Uo(n,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t().createElement("input",T({autoComplete:o},ee,{onChange:function(e){J(e,e.target.value,{source:"change"})},onFocus:function(e){P(!0),null==a||a(e)},onBlur:function(e){R.current&&(R.current=!1),P(!1),null==l||l(e)},onKeyDown:function(e){s&&"Enter"===e.key&&!R.current&&(R.current=!0,s(e)),null==c||c(e)},onKeyUp:function(e){"Enter"===e.key&&(R.current=!1),null==u||u(e)},className:A()(f,L({},"".concat(f,"-disabled"),p),null==S?void 0:S.input),style:null==E?void 0:E.input,ref:N,size:m,type:C,onCompositionStart:function(e){M.current=!0,null==$||$(e)},onCompositionEnd:function(e){M.current=!1,J(e,e.currentTarget.value,{source:"compositionEnd"}),null==k||k(e)}}))))}));const af=of,lf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var sf=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:lf}))};const cf=e.forwardRef(sf),uf=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t().createElement(cf,null)}),n};function df(e,t,n){return A()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const ff=(e,t)=>t||e,pf=e=>{const[,,,,t]=bs();return t?`${e}-css-var`:""},mf=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:l}=e.useContext(ai),s=e.useContext(ni),c=null==l?void 0:l.variant;let u;return u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=s?s:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined",[u,ii.includes(u)]};function gf(t,n){const r=(0,e.useRef)([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,e.useEffect)((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}const vf=(0,e.forwardRef)(((n,r)=>{var o;const{prefixCls:i,bordered:a=!0,status:l,size:s,disabled:c,onBlur:u,onFocus:d,suffix:f,allowClear:p,addonAfter:m,addonBefore:g,className:v,style:h,styles:b,rootClassName:y,onChange:x,classNames:C,variant:w}=n,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=s?s:N)&&void 0!==t?t:e})),z=t().useContext(eu),B=null!=c?c:z,{status:L,hasFeedback:H,feedbackIcon:D}=(0,e.useContext)(ei),_=ff(L,l),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(n)||!!H;(0,e.useRef)(V);const W=gf(I,!0),q=(H||f)&&t().createElement(t().Fragment,null,f,H&&D),G=uf(null!=p?p:null==k?void 0:k.allowClear),[X,K]=mf("input",w,a);return P(t().createElement(af,Object.assign({ref:fe(r,I),prefixCls:O,autoComplete:null==k?void 0:k.autoComplete},S,{disabled:B,onBlur:e=>{W(),null==u||u(e)},onFocus:e=>{W(),null==d||d(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),h),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),b),suffix:q,allowClear:G,className:A()(v,y,R,j,F,null==k?void 0:k.className),onChange:e=>{W(),null==x||x(e)},addonBefore:g&&t().createElement(Ms,{form:!0,space:!0},g),addonAfter:m&&t().createElement(Ms,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},C),null==k?void 0:k.classNames),{input:A()({[`${O}-sm`]:"small"===T,[`${O}-lg`]:"large"===T,[`${O}-rtl`]:"rtl"===$},null==C?void 0:C.input,null===(o=null==k?void 0:k.classNames)||void 0===o?void 0:o.input,M),variant:A()({[`${O}-${X}`]:K},df(O,_)),affixWrapper:A()({[`${O}-affix-wrapper-sm`]:"small"===T,[`${O}-affix-wrapper-lg`]:"large"===T,[`${O}-affix-wrapper-rtl`]:"rtl"===$},M),wrapper:A()({[`${O}-group-rtl`]:"rtl"===$},M),groupWrapper:A()({[`${O}-group-wrapper-sm`]:"small"===T,[`${O}-group-wrapper-lg`]:"large"===T,[`${O}-group-wrapper-rtl`]:"rtl"===$,[`${O}-group-wrapper-${X}`]:K},df(`${O}-group-wrapper`,_,H),M)})})))})),hf=vf;var bf="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function yf(e,t){return 0===e.indexOf(t)}function xf(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:D({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||yf(n,"aria-"))||t.data&&yf(n,"data-")||t.attr&&bf.includes(n))&&(r[n]=e[n])})),r}const Cf=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},wf=ys(["Input","OTP"],(e=>{const t=nl(e,Sd(e));return[Cf(t)]}),Ed);const Sf=e.forwardRef(((t,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=t,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ou.current));const d=()=>{Rn((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(hf,Object.assign({type:!0===l?"password":"text"},s,{ref:u,value:c,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||r)&&e.preventDefault(),d()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),d()},onMouseDown:d,onMouseUp:d}))})),Ef=Sf;function $f(e){return(e||"").split("")}const kf=e.forwardRef(((t,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:g,onInput:v,inputMode:h}=t,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull!=i?i:e)),I=e.useContext(ei),j=ff(I.status,f),P=e.useMemo((()=>Object.assign(Object.assign({},I),{status:j,hasFeedback:!1,feedbackIcon:null})),[I,j]),M=e.useRef(null),R=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=R.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tc?c(e):e,[F,T]=e.useState($f(N(a||"")));e.useEffect((()=>{void 0!==l&&T($f(l))}),[l]);const z=Nt((e=>{T(e),v&&v(e),s&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>F[t]!==e))&&s(e.join(""))})),B=Nt(((e,t)=>{let n=ye(F);for(let t=0;t=0&&!n[e];e-=1)n.pop();const r=N(n.map((e=>e||" ")).join(""));return n=$f(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),L=(e,t)=>{var n;const r=B(e,t),i=Math.min(e+t.length,o-1);i!==e&&void 0!==r[e]&&(null===(n=R.current[i])||void 0===n||n.focus()),z(r)},H=e=>{var t;null===(t=R.current[e])||void 0===t||t.focus()},D={variant:u,disabled:d,status:j,mask:m,type:g,inputMode:h};return E(e.createElement("div",Object.assign({},w,{ref:M,className:A()(C,{[`${C}-sm`]:"small"===O,[`${C}-lg`]:"large"===O,[`${C}-rtl`]:"rtl"===x},k,$)}),e.createElement(ei.Provider,{value:P},Array.from({length:o}).map(((t,n)=>{const r=`otp-${n}`,o=F[n]||"";return e.createElement(Ef,Object.assign({ref:e=>{R.current[n]=e},key:r,index:n,size:O,htmlSize:1,className:`${C}-input`,onChange:L,value:o,onActiveChange:H,autoFocus:0===n&&p},D))})))))})),Of=kf,If={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var jf=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:If}))};const Pf=e.forwardRef(jf),Mf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var Rf=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Mf}))};const Nf=e.forwardRef(Rf);const Af=t=>t?e.createElement(Nf,null):e.createElement(Pf,null),Ff={click:"onClick",hover:"onMouseOver"},Tf=e.forwardRef(((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=Af}=t,l=e.useContext(eu),s=null!=r?r:l,c="object"==typeof i&&void 0!==i.visible,[u,d]=(0,e.useState)((()=>!!c&&i.visible)),f=(0,e.useRef)(null);e.useEffect((()=>{c&&d(i.visible)}),[c,i]);const p=gf(f),m=()=>{var e;if(s)return;u&&p();const t=!u;d(t),"object"==typeof i&&(null===(e=i.onVisibleChange)||void 0===e||e.call(i,t))},{className:g,prefixCls:v,inputPrefixCls:h,size:b}=t,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=Ff[o]||"",r=a(u),i={[n]:m,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),i)})(w),E=A()(w,g,{[`${w}-${b}`]:!!b}),$=Object.assign(Object.assign({},Uo(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:E,prefixCls:C,suffix:S});return b&&($.size=b),e.createElement(hf,Object.assign({ref:fe(n,f)},$))})),zf=Tf,Bf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var Lf=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Bf}))};const Hf=e.forwardRef(Lf);const Df=e.forwardRef(((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g}=t,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=a?a:w)&&void 0!==t?t:e})),E=e.useRef(null),$=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;f&&f(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof s?e.createElement(Hf,null):null,I=`${x}-button`;let j;const P=s||{},M=P.type&&!0===P.type.__ANT_BUTTON;j=M||"button"===P.type?Js(P,Object.assign({onMouseDown:$,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},M?{className:I,size:S}:{})):e.createElement(Cd,{className:I,type:s?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:$,onClick:k,loading:u,icon:O},s),c&&(j=[j,Js(c,{key:"addonAfter"})]);const R=A()(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!s},i),N=Object.assign(Object.assign({},v),{className:R,prefixCls:C,type:"search"});return e.createElement(hf,Object.assign({ref:fe(E,n),onPressEnter:e=>{y.current||u||k(e)}},N,{size:S,onCompositionStart:e=>{y.current=!0,null==m||m(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},addonAfter:j,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d}))})),_f=Df;var Vf,Wf=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],qf={};var Gf=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Xf=e.forwardRef((function(t,n){var r=t,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,s=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange,p=(r.onInternalAutoSize,_(r,Gf)),m=X(qt(i,{value:a,postState:function(e){return null!=e?e:""}}),2),g=m[0],v=m[1],h=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:h.current}}));var b=X(e.useMemo((function(){return l&&"object"===z(l)?[l.minRows,l.maxRows]:[]}),[l]),2),y=b[0],x=b[1],C=!!l,w=X(e.useState(2),2),S=w[0],E=w[1],$=X(e.useState(),2),k=$[0],O=$[1],I=function(){E(0)};Se((function(){C&&I()}),[a,y,x,C]),Se((function(){if(0===S)E(1);else if(1===S){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Vf||((Vf=document.createElement("textarea")).setAttribute("tab-index","-1"),Vf.setAttribute("aria-hidden","true"),Vf.setAttribute("name","hiddenTextarea"),document.body.appendChild(Vf)),e.getAttribute("wrap")?Vf.setAttribute("wrap",e.getAttribute("wrap")):Vf.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&qf[n])return qf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Wf.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(qf[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Vf.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),Vf.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=Vf.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){Vf.value=" ";var p=Vf.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:c,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(h.current,!1,y,x);E(2),O(e)}else!function(){try{if(document.activeElement===h.current){var e=h.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;h.current.setSelectionRange(t,n),h.current.scrollTop=r}}catch(e){}}()}),[S]);var j=e.useRef(),P=function(){Rn.cancel(j.current)};e.useEffect((function(){return P}),[]);var M=C?k:null,R=D(D({},u),M);return 0!==S&&1!==S||(R.overflowY="hidden",R.overflowX="hidden"),e.createElement(Pt,{onResize:function(e){2===S&&(null==s||s(e),l&&(P(),j.current=Rn((function(){I()}))))},disabled:!(l||s)},e.createElement("textarea",T({},p,{ref:h,style:R,className:A()(o,c,L({},"".concat(o,"-disabled"),d)),disabled:d,value:g,onChange:function(e){v(e.target.value),null==f||f(e)}})))}));const Kf=Xf;var Uf=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Yf=t().forwardRef((function(n,r){var o,i=n.defaultValue,a=n.value,l=n.onFocus,s=n.onBlur,c=n.onChange,u=n.allowClear,d=n.maxLength,f=n.onCompositionStart,p=n.onCompositionEnd,m=n.suffix,g=n.prefixCls,v=void 0===g?"rc-textarea":g,h=n.showCount,b=n.count,y=n.className,x=n.style,C=n.disabled,w=n.hidden,S=n.classNames,E=n.styles,$=n.onResize,k=n.onClear,O=n.onPressEnter,I=n.readOnly,j=n.autoSize,P=n.onKeyDown,M=_(n,Uf),R=X(qt(i,{value:a,defaultValue:i}),2),N=R[0],F=R[1],z=null==N?"":String(N),B=X(t().useState(!1),2),H=B[0],V=B[1],W=t().useRef(!1),q=X(t().useState(null),2),G=q[0],K=q[1],U=(0,e.useRef)(null),Y=(0,e.useRef)(null),Q=function(){var e;return null===(e=Y.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};(0,e.useImperativeHandle)(r,(function(){var e;return{resizableTextArea:Y.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=U.current)||void 0===e?void 0:e.nativeElement)||Q()}})),(0,e.useEffect)((function(){V((function(e){return!C&&e}))}),[C]);var J=X(t().useState(null),2),ee=J[0],te=J[1];t().useEffect((function(){var e;ee&&(e=Q()).setSelectionRange.apply(e,ye(ee))}),[ee]);var ne,re=nf(b,h),oe=null!==(o=re.max)&&void 0!==o?o:d,ie=Number(oe)>0,ae=re.strategy(z),le=!!oe&&ae>oe,se=function(e,t){var n=t;!W.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&te([Q().selectionStart||0,Q().selectionEnd||0]),F(n),Qd(e.currentTarget,e,c,n)},ce=m;re.show&&(ne=re.showFormatter?re.showFormatter({value:z,count:ae,maxLength:oe}):"".concat(ae).concat(ie?" / ".concat(oe):""),ce=t().createElement(t().Fragment,null,ce,t().createElement("span",{className:A()("".concat(v,"-data-count"),null==S?void 0:S.count),style:null==E?void 0:E.count},ne)));var ue=!j&&!h&&!u;return t().createElement(ef,{ref:U,value:z,allowClear:u,handleReset:function(e){F(""),Z(),Qd(Q(),e,c)},suffix:ce,prefixCls:v,classNames:D(D({},S),{},{affixWrapper:A()(null==S?void 0:S.affixWrapper,L(L({},"".concat(v,"-show-count"),h),"".concat(v,"-textarea-allow-clear"),u))}),disabled:C,focused:H,className:A()(y,le&&"".concat(v,"-out-of-range")),style:D(D({},x),G&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:w,readOnly:I,onClear:k},t().createElement(Kf,T({},M,{autoSize:j,maxLength:d,onKeyDown:function(e){"Enter"===e.key&&O&&O(e),null==P||P(e)},onChange:function(e){se(e,e.target.value)},onFocus:function(e){V(!0),null==l||l(e)},onBlur:function(e){V(!1),null==s||s(e)},onCompositionStart:function(e){W.current=!0,null==f||f(e)},onCompositionEnd:function(e){W.current=!1,se(e,e.currentTarget.value),null==p||p(e)},className:A()(null==S?void 0:S.textarea),style:D(D({},null==E?void 0:E.textarea),{},{resize:null==x?void 0:x.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==$||$(e),null!==(t=Q())&&void 0!==t&&t.style.height&&K(!0)},ref:Y,readOnly:I})))}));const Qf=Yf;const Zf=(0,e.forwardRef)(((t,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:m,styles:g,variant:v}=t,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;return{resizableTextArea:null===(e=O.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;Zd(null===(n=null===(t=O.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.blur()}}}));const I=b("input",i),j=pf(I),[P,M,R]=Ud(I,j),{compactSize:N,compactItemClassnames:F}=Is(I,y),T=di((e=>{var t;return null!==(t=null!=l?l:N)&&void 0!==t?t:e})),[z,B]=mf("textArea",v,a),L=uf(null!=u?u:null==x?void 0:x.allowClear);return P(e.createElement(Qf,Object.assign({autoComplete:null==x?void 0:x.autoComplete},h,{style:Object.assign(Object.assign({},null==x?void 0:x.style),m),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:w,allowClear:L,className:A()(R,j,p,f,F,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:A()({[`${I}-sm`]:"small"===T,[`${I}-lg`]:"large"===T},M,null==d?void 0:d.textarea,null===(r=null==x?void 0:x.classNames)||void 0===r?void 0:r.textarea),variant:A()({[`${I}-${z}`]:B},df(I,k)),affixWrapper:A()(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:"rtl"===y,[`${I}-affix-wrapper-sm`]:"small"===T,[`${I}-affix-wrapper-lg`]:"large"===T,[`${I}-textarea-show-count`]:t.showCount||(null===(o=t.count)||void 0===o?void 0:o.show)},M)}),prefixCls:I,suffix:E&&e.createElement("span",{className:`${I}-textarea-suffix`},$),ref:O})))})),Jf=Zf,ep=hf;ep.Group=t=>{const{getPrefixCls:n,direction:r}=(0,e.useContext)(ai),{prefixCls:o,className:i}=t,a=n("input-group",o),l=n("input"),[s,c]=Ud(l),u=A()(a,{[`${a}-lg`]:"large"===t.size,[`${a}-sm`]:"small"===t.size,[`${a}-compact`]:t.compact,[`${a}-rtl`]:"rtl"===r},c,i),d=(0,e.useContext)(ei),f=(0,e.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return s(e.createElement("span",{className:u,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(ei.Provider,{value:f},t.children)))},ep.Search=_f,ep.TextArea=Jf,ep.Password=zf,ep.OTP=Of;const tp=ep,{useRef:np,useEffect:rp}=wp.element,op=t=>{let n=np(null);const{arg:r,argValue:o,styleConfig:i}=t,a=I(r.type),l="string"==typeof o.value?o.value:"",s="StringValue"===t.argValue.kind?i.colors.string:i.colors.number;return(0,e.createElement)("span",{style:{color:s}},"String"===a.name?'"':"",(0,e.createElement)(tp,{name:r.name,style:{width:"15ch",color:s,minHeight:"16px"},size:"small",ref:e=>{n=e},type:"text",onChange:e=>{var n;n=e,t.setArgValue(n,!0)},value:l}),"String"===a.name?'"':"")},{isInputObjectType:ip,isLeafType:ap}=wpGraphiQL.GraphQL,{useState:lp}=wp.element,sp=t=>{let n;const r=()=>t.selection.fields.find((e=>e.name.value===t.arg.name)),{arg:o,parentField:i}=t,a=r();return(0,e.createElement)(Bv,{argValue:a?a.value:null,arg:o,parentField:i,addArg:()=>{const{selection:e,arg:r,getDefaultScalarArgValue:o,parentField:i,makeDefaultArg:a}=t,l=I(r.type);let s=null;if(n)s=n;else if(ip(l)){const e=l.getFields();s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:{kind:"ObjectValue",fields:P(o,a,i,Object.keys(e).map((t=>e[t])))}}}else ap(l)&&(s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:o(i,r,l)});if(s)return t.modifyFields([...e.fields||[],s],!0);console.error("Unable to add arg for argType",l)},removeArg:()=>{const{selection:e}=t,o=r();n=o,t.modifyFields(e.fields.filter((e=>e!==o)),!0)},setArgFields:e=>t.modifyFields(t.selection.fields.map((n=>n.name.value===t.arg.name?{...n,value:{kind:"ObjectValue",fields:e}}:n)),!0),setArgValue:(e,n)=>{let o=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?o=!0:"string"==typeof e.kind&&(a=!0)}catch(e){}const{selection:l}=t,s=r();if(!s)return void console.error("missing arg selection when setting arg value");const c=I(t.arg.type);if(!(ap(c)||i||o||a))return void console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e);let u,d;return null==e?d=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?(u=e,d=u.variable):"string"==typeof e.kind?d=e:e.target&&"string"==typeof e.target.value&&(u=e.target.value,d=j(c,u)),t.modifyFields((l.fields||[]).map((e=>e===s?{...e,value:d}:e)),n)},getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})},cp=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,s="function"==typeof r?r(o):r;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:e.createElement("span",{className:A()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var up=e.createContext(null);function dp(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),r=e.useRef(null);return e.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}var fp={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=fp.F1&&t<=fp.F12)return!1;switch(t){case fp.ALT:case fp.CAPS_LOCK:case fp.CONTEXT_MENU:case fp.CTRL:case fp.DOWN:case fp.END:case fp.ESC:case fp.HOME:case fp.INSERT:case fp.LEFT:case fp.MAC_FF_META:case fp.META:case fp.NUMLOCK:case fp.NUM_CENTER:case fp.PAGE_DOWN:case fp.PAGE_UP:case fp.PAUSE:case fp.PRINT_SCREEN:case fp.RIGHT:case fp.SHIFT:case fp.UP:case fp.WIN_KEY:case fp.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=fp.ZERO&&e<=fp.NINE)return!0;if(e>=fp.NUM_ZERO&&e<=fp.NUM_MULTIPLY)return!0;if(e>=fp.A&&e<=fp.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case fp.SPACE:case fp.QUESTION_MARK:case fp.NUM_PLUS:case fp.NUM_MINUS:case fp.NUM_PERIOD:case fp.NUM_DIVISION:case fp.SEMICOLON:case fp.DASH:case fp.EQUALS:case fp.COMMA:case fp.PERIOD:case fp.SLASH:case fp.APOSTROPHE:case fp.SINGLE_QUOTE:case fp.OPEN_SQUARE_BRACKET:case fp.BACKSLASH:case fp.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const pp=fp;var mp=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],gp=void 0;function vp(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,s=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,f=t.style,p=t.children,m=t.display,g=t.order,v=t.component,h=void 0===v?"div":v,b=_(t,mp),y=l&&!m;function x(e){c(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var C,w=a&&i!==gp?a(i,{index:g}):p;o||(C={opacity:y?0:1,height:y?0:gp,overflowY:y?"hidden":gp,order:l?g:gp,pointerEvents:y?"none":gp,position:y?"absolute":gp});var S={};y&&(S["aria-hidden"]=!0);var E=e.createElement(h,T({className:A()(!o&&r,d),style:D(D({},C),f)},S,b,{ref:n}),w);return l&&(E=e.createElement(Pt,{onResize:function(e){x(e.offsetWidth)},disabled:s},E)),E}var hp=e.forwardRef(vp);hp.displayName="Item";const bp=hp;function yp(t,n){var r=X(e.useState(n),2),o=r[0],i=r[1];return[o,Nt((function(e){t((function(){i(e)}))}))]}var xp=t().createContext(null),Cp=["component"],Sp=["className"],Ep=["className"],$p=function(t,n){var r=e.useContext(xp);if(!r){var o=t.component,i=void 0===o?"div":o,a=_(t,Cp);return e.createElement(i,T({},a,{ref:n}))}var l=r.className,s=_(r,Sp),c=t.className,u=_(t,Ep);return e.createElement(xp.Provider,{value:null},e.createElement(bp,T({ref:n,className:A()(l,c)},s,u)))},kp=e.forwardRef($p);kp.displayName="RawItem";const Op=kp;var Ip=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],jp="responsive",Pp="invalidate";function Mp(e){return"+ ".concat(e.length," ...")}function Rp(t,n){var r,o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,s=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,p=t.ssr,m=t.style,g=t.className,v=t.maxCount,h=t.renderRest,b=t.renderRawRest,y=t.suffix,x=t.component,C=void 0===x?"div":x,w=t.itemComponent,S=t.onVisibleChange,E=_(t,Ip),$="full"===p,k=(r=e.useRef(null),function(e){r.current||(r.current=[],function(e){if("undefined"==typeof MessageChannel)Rn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,K.unstable_batchedUpdates)((function(){r.current.forEach((function(e){e()})),r.current=null}))}))),r.current.push(e)}),O=X(yp(k,null),2),I=O[0],j=O[1],P=I||0,M=X(yp(k,new Map),2),R=M[0],N=M[1],F=X(yp(k,0),2),z=F[0],B=F[1],L=X(yp(k,0),2),H=L[0],V=L[1],W=X(yp(k,0),2),q=W[0],G=W[1],U=X((0,e.useState)(null),2),Y=U[0],Q=U[1],Z=X((0,e.useState)(null),2),J=Z[0],ee=Z[1],te=e.useMemo((function(){return null===J&&$?Number.MAX_SAFE_INTEGER:J||0}),[J,I]),ne=X((0,e.useState)(!1),2),re=ne[0],oe=ne[1],ie="".concat(i,"-item"),ae=Math.max(z,H),le=v===jp,se=l.length&&le,ce=v===Pp,ue=se||"number"==typeof v&&l.length>v,de=(0,e.useMemo)((function(){var e=l;return se?e=null===I&&$?l:l.slice(0,Math.min(l.length,P/f)):"number"==typeof v&&(e=l.slice(0,v)),e}),[l,f,I,v,se]),fe=(0,e.useMemo)((function(){return se?l.slice(te+1):l.slice(de.length)}),[l,de,se,te]),pe=(0,e.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),me=(0,e.useCallback)(s||function(e){return e},[s]);function ge(e,t,n){(J!==e||void 0!==t&&t!==Y)&&(ee(e),n||(oe(eP){ge(r-1,e-o-q+H);break}}y&&he(0)+q>P&&Q(null)}}),[P,R,H,q,pe,de]);var be=re&&!!fe.length,ye={};null!==Y&&se&&(ye={position:"absolute",left:Y,top:0});var xe={prefixCls:ie,responsive:se,component:w,invalidate:ce},Ce=c?function(t,n){var r=pe(t,n);return e.createElement(xp.Provider,{key:r,value:D(D({},xe),{},{order:n,item:t,itemKey:r,registerSize:ve,display:n<=te})},c(t,n))}:function(t,n){var r=pe(t,n);return e.createElement(bp,T({},xe,{order:n,key:r,item:t,renderItem:me,itemKey:r,registerSize:ve,display:n<=te}))},we={order:be?te:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:function(e,t){V(t),B(H)},display:be},Ee=h||Mp,$e=b?e.createElement(xp.Provider,{value:D(D({},xe),we)},b(fe)):e.createElement(bp,T({},xe,we),"function"==typeof Ee?Ee(fe):Ee),ke=e.createElement(C,T({className:A()(!ce&&i,g),style:m,ref:n},E),de.map(Ce),ue?$e:null,y&&e.createElement(bp,T({},xe,{responsive:le,responsiveDisabled:!se,order:te,className:"".concat(ie,"-suffix"),registerSize:function(e,t){G(t)},display:!0,style:ye}),y));return le?e.createElement(Pt,{onResize:function(e,t){j(t.clientWidth)},disabled:!se},ke):ke}var Np=e.forwardRef(Rp);Np.displayName="Overflow",Np.Item=Op,Np.RESPONSIVE=jp,Np.INVALIDATE=Pp;const Ap=Np;var Fp=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,h=t.onChange,b=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,C=t.onBlur,w=t.open,S=t.attrs,E=a||e.createElement("input",null),$=E,k=$.ref,O=$.props,I=O.onKeyDown,j=O.onChange,P=O.onMouseDown,M=O.onCompositionStart,R=O.onCompositionEnd,N=O.onBlur,F=O.style;return E.props,e.cloneElement(E,D(D(D({type:"search"},O),{},{id:i,ref:fe(n,k),disabled:l,tabIndex:s,autoComplete:u||"off",autoFocus:c,className:A()("".concat(o,"-selection-search-input"),null===(r=E)||void 0===r||null===(r=r.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?f:void 0},S),{},{value:d?p:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:D(D({},F),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),I&&I(e)},onMouseDown:function(e){v(e),P&&P(e)},onChange:function(e){h(e),j&&j(e)},onCompositionStart:function(e){y(e),M&&M(e)},onCompositionEnd:function(e){x(e),R&&R(e)},onPaste:b,onBlur:function(e){C(e),N&&N(e)}}))};const Tp=e.forwardRef(Fp);function zp(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Bp="undefined"!=typeof window&&window.document&&window.document.documentElement;function Lp(e){return["string","number"].includes(z(e))}function Hp(e){var t=void 0;return e&&(Lp(e.title)?t=e.title.toString():Lp(e.label)&&(t=e.label.toString())),t}function Dp(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var _p=function(e){e.preventDefault(),e.stopPropagation()};const Vp=function(t){var n,r,o=t.id,i=t.prefixCls,a=t.values,l=t.open,s=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,d=t.placeholder,f=t.disabled,p=t.mode,m=t.showSearch,g=t.autoFocus,v=t.autoComplete,h=t.activeDescendantId,b=t.tabIndex,y=t.removeIcon,x=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,S=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,E=t.tagRender,$=t.onToggleOpen,k=t.onRemove,O=t.onInputChange,I=t.onInputPaste,j=t.onInputKeyDown,P=t.onInputMouseDown,M=t.onInputCompositionStart,R=t.onInputCompositionEnd,N=t.onInputBlur,F=e.useRef(null),T=X((0,e.useState)(0),2),z=T[0],B=T[1],H=X((0,e.useState)(!1),2),D=H[0],_=H[1],V="".concat(i,"-selection"),W=l||"multiple"===p&&!1===c||"tags"===p?s:"",q="tags"===p||"multiple"===p&&!1===c||m&&(l||D);n=function(){B(F.current.scrollWidth)},r=[W],Bp?e.useLayoutEffect(n,r):e.useEffect(n,r);var G=function(t,n,r,o,i){return e.createElement("span",{title:Hp(t),className:A()("".concat(V,"-item"),L({},"".concat(V,"-item-disabled"),r))},e.createElement("span",{className:"".concat(V,"-item-content")},n),o&&e.createElement(cp,{className:"".concat(V,"-item-remove"),onMouseDown:_p,onClick:i,customizeIcon:y},"×"))},K=function(t,n,r,o,i,a){return e.createElement("span",{onMouseDown:function(e){_p(e),$(!l)}},E({label:n,value:t,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},U=e.createElement("div",{className:"".concat(V,"-search"),style:{width:z},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},e.createElement(Tp,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:f,autoFocus:g,autoComplete:v,editable:q,activeDescendantId:h,value:W,onKeyDown:j,onMouseDown:P,onChange:O,onPaste:I,onCompositionStart:M,onCompositionEnd:R,onBlur:N,tabIndex:b,attrs:xf(t,!0)}),e.createElement("span",{ref:F,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},W," ")),Y=e.createElement(Ap,{prefixCls:"".concat(V,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!f&&!t,i=n;if("number"==typeof C&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>C&&(i="".concat(a.slice(0,C),"..."))}var l=function(t){t&&t.stopPropagation(),k(e)};return"function"==typeof E?K(r,i,t,o,l):G(e,i,t,o,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof S?S(e):S;return"function"==typeof E?K(void 0,t,!1,!1,void 0,!0):G({title:t},t,!1)},suffix:U,itemKey:Dp,maxCount:x});return e.createElement("span",{className:"".concat(V,"-wrap")},Y,!a.length&&!W&&e.createElement("span",{className:"".concat(V,"-placeholder")},d))},Wp=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,h=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,S=t.onInputCompositionStart,E=t.onInputCompositionEnd,$=t.onInputBlur,k=t.title,O=X(e.useState(!1),2),I=O[0],j=O[1],P="combobox"===u,M=P||g,R=f[0],N=v||"";P&&h&&!I&&(N=h),e.useEffect((function(){P&&j(!1)}),[P,h]);var A=!("combobox"!==u&&!d&&!g||!N),F=void 0===k?Hp(R):k,T=e.useMemo((function(){return R?null:e.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},p)}),[R,A,p,r]);return e.createElement("span",{className:"".concat(r,"-selection-wrap")},e.createElement("span",{className:"".concat(r,"-selection-search")},e.createElement(Tp,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:M,activeDescendantId:c,value:N,onKeyDown:y,onMouseDown:x,onChange:function(e){j(!0),C(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:E,onBlur:$,tabIndex:m,attrs:xf(t,!0),maxLength:P?b:void 0})),!P&&R?e.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:A?{visibility:"hidden"}:void 0},R.label):null,T)};var qp=function(t,n){var r=(0,e.useRef)(null),o=(0,e.useRef)(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,h=t.onInputBlur,b=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=X(dp(0),2),x=y[0],C=y[1],w=(0,e.useRef)(null),S=function(e){!1!==p(e,!0,o.current)&&g(!0)},E={inputRef:r,onInputKeyDown:function(e){var t,n=e.which,i=r.current instanceof HTMLTextAreaElement;i||!a||n!==pp.UP&&n!==pp.DOWN||e.preventDefault(),v&&v(e),n!==pp.ENTER||"tags"!==l||o.current||a||null==m||m(e.target.value),i&&!a&&~[pp.UP,pp.DOWN,pp.LEFT,pp.RIGHT].indexOf(n)||(t=n)&&![pp.ESC,pp.SHIFT,pp.BACKSPACE,pp.TAB,pp.WIN_KEY,pp.ALT,pp.META,pp.WIN_KEY_RIGHT,pp.CTRL,pp.SEMICOLON,pp.EQUALS,pp.CAPS_LOCK,pp.CONTEXT_MENU,pp.F1,pp.F2,pp.F3,pp.F4,pp.F5,pp.F6,pp.F7,pp.F8,pp.F9,pp.F10,pp.F11,pp.F12].includes(t)&&g(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(c&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,S(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&S(e.target.value)},onInputBlur:h},$="multiple"===l||"tags"===l?e.createElement(Vp,T({},t,E)):e.createElement(Wp,T({},t,E));return e.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=x();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||s&&t)&&a||(a&&!1!==f&&p("",!0,!1),g())}},d&&e.createElement("div",{className:"".concat(i,"-prefix")},d),$)};const Gp=e.forwardRef(qp);var Xp=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Kp=function(t,n){var r=t.prefixCls,o=(t.disabled,t.visible),i=t.children,a=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=void 0===d?"ltr":d,p=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,v=t.dropdownRender,h=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,C=t.onPopupVisibleChange,w=t.onPopupMouseEnter,S=_(t,Xp),E="".concat(r,"-dropdown"),$=a;v&&($=v(a));var k=e.useMemo((function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[m,g]),O=l?"".concat(E,"-").concat(l):s,I="number"==typeof g,j=e.useMemo((function(){return I?null:!1===g?"minWidth":"width"}),[g,I]),P=c;I&&(P=D(D({},P),{},{width:g}));var M=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.popupElement}}})),e.createElement(Cr,T({},S,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:E,popupTransitionName:O,popup:e.createElement("div",{onMouseEnter:w},$),ref:M,stretch:j,popupAlign:h,popupVisible:o,getPopupContainer:b,popupClassName:A()(u,L({},"".concat(E,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)};const Up=e.forwardRef(Kp);function Yp(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Qp(e){return void 0!==e&&!Number.isNaN(e)}function Zp(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Jp(e){var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return re(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const em=e.createContext(null);function tm(t){var n=t.visible,r=t.values;return n?e.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(z(t))?t:n})).join(", ")),r.length>50?", ...":null):null}var nm=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],rm=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],om=function(e){return"tags"===e||"multiple"===e},im=e.forwardRef((function(n,r){var o,i=n.id,a=n.prefixCls,l=n.className,s=n.showSearch,c=n.tagRender,u=n.direction,d=n.omitDomProps,f=n.displayValues,p=n.onDisplayValuesChange,m=n.emptyOptions,g=n.notFoundContent,v=void 0===g?"Not Found":g,h=n.onClear,b=n.mode,y=n.disabled,x=n.loading,C=n.getInputElement,w=n.getRawInputElement,S=n.open,E=n.defaultOpen,$=n.onDropdownVisibleChange,k=n.activeValue,O=n.onActiveValueChange,I=n.activeDescendantId,j=n.searchValue,P=n.autoClearSearchValue,M=n.onSearch,R=n.onSearchSplit,N=n.tokenSeparators,F=n.allowClear,B=n.prefix,H=n.suffixIcon,V=n.clearIcon,W=n.OptionList,q=n.animation,G=n.transitionName,K=n.dropdownStyle,U=n.dropdownClassName,Y=n.dropdownMatchSelectWidth,Q=n.dropdownRender,Z=n.dropdownAlign,J=n.placement,ee=n.builtinPlacements,te=n.getPopupContainer,ne=n.showAction,re=void 0===ne?[]:ne,oe=n.onFocus,ie=n.onBlur,ae=n.onKeyUp,le=n.onKeyDown,se=n.onMouseDown,ce=_(n,nm),ue=om(b),de=(void 0!==s?s:ue)||"combobox"===b,fe=D({},ce);rm.forEach((function(e){delete fe[e]})),null==d||d.forEach((function(e){delete fe[e]}));var me=X(e.useState(!1),2),ge=me[0],ve=me[1];e.useEffect((function(){ve(zt())}),[]);var he=e.useRef(null),be=e.useRef(null),xe=e.useRef(null),Ce=e.useRef(null),we=e.useRef(null),Ee=e.useRef(!1),$e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=X(e.useState(!1),2),r=n[0],o=n[1],i=e.useRef(null),a=function(){window.clearTimeout(i.current)};return e.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),ke=X($e,3),Oe=ke[0],Ie=ke[1],je=ke[2];e.useImperativeHandle(r,(function(){var e,t;return{focus:null===(e=Ce.current)||void 0===e?void 0:e.focus,blur:null===(t=Ce.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=we.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:he.current||be.current}}));var Pe=e.useMemo((function(){var e;if("combobox"!==b)return j;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[j,b,f]),Me="combobox"===b&&"function"==typeof C&&C()||null,Re="function"==typeof w&&w(),Ne=pe(be,null==Re||null===(o=Re.props)||void 0===o?void 0:o.ref),Ae=X(e.useState(!1),2),Fe=Ae[0],Te=Ae[1];Se((function(){Te(!0)}),[]);var ze=X(qt(!1,{defaultValue:E,value:S}),2),Be=ze[0],Le=ze[1],He=!!Fe&&Be,De=!v&&m;(y||De&&He&&"combobox"===b)&&(He=!1);var _e=!De&&He,Ve=e.useCallback((function(e){var t=void 0!==e?e:!He;y||(Le(t),He!==t&&(null==$||$(t)))}),[y,He,Le,$]),We=e.useMemo((function(){return(N||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[N]),qe=e.useContext(em)||{},Ge=qe.maxCount,Xe=qe.rawValues,Ke=function(e,t,n){if(!(ue&&Qp(Ge)&&(null==Xe?void 0:Xe.size)>=Ge)){var r=!0,o=e;null==O||O(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Xt(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(ye(t),ye(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,N,Qp(Ge)?Ge-Xe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==R||R(a),Ve(!1),r=!1),M&&Pe!==o&&M(o,{source:t?"typing":"effect"}),r}};e.useEffect((function(){He||ue||"combobox"===b||Ke("",!1,!1)}),[He]),e.useEffect((function(){Be&&y&&Le(!1),y&&!Ee.current&&Ie(!1)}),[y]);var Ue=X(dp(),2),Ye=Ue[0],Qe=Ue[1],Ze=e.useRef(!1),Je=e.useRef(!1),et=[];e.useEffect((function(){return function(){et.forEach((function(e){return clearTimeout(e)})),et.splice(0,et.length)}}),[]);var tt,nt=X(e.useState({}),2)[1];Re&&(tt=function(e){Ve(e)}),function(t,n,r,o){var i=e.useRef(null);i.current={open:n,triggerOpen:r,customizedTrigger:o},e.useEffect((function(){function e(e){var t,n;if(null===(t=i.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&[he.current,null===(n=xe.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,_e,Ve,!!Re);var rt,ot=e.useMemo((function(){return D(D({},n),{},{notFoundContent:v,open:He,triggerOpen:_e,id:i,showSearch:de,multiple:ue,toggleOpen:Ve})}),[n,v,_e,He,i,de,ue,Ve]),it=!!H||x;it&&(rt=e.createElement(cp,{className:A()("".concat(a,"-arrow"),L({},"".concat(a,"-arrow-loading"),x)),customizeIcon:H,customizeIconProps:{loading:x,searchValue:Pe,open:He,focused:Oe,showSearch:de}}));var at,lt=function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=t().useMemo((function(){return"object"===z(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:t().useMemo((function(){return!(a||!o||!r.length&&!l||"combobox"===s&&""===l)}),[o,a,r.length,l,s]),clearIcon:t().createElement(cp,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,(function(){var e;null==h||h(),null===(e=Ce.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),Ke("",!1,!1)}),f,F,V,y,Pe,b),st=lt.allowClear,ct=lt.clearIcon,ut=e.createElement(W,{ref:we}),dt=A()(a,l,L(L(L(L(L(L(L(L(L(L({},"".concat(a,"-focused"),Oe),"".concat(a,"-multiple"),ue),"".concat(a,"-single"),!ue),"".concat(a,"-allow-clear"),F),"".concat(a,"-show-arrow"),it),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),x),"".concat(a,"-open"),He),"".concat(a,"-customize-input"),Me),"".concat(a,"-show-search"),de)),ft=e.createElement(Up,{ref:xe,disabled:y,prefixCls:a,visible:_e,popupElement:ut,animation:q,transitionName:G,dropdownStyle:K,dropdownClassName:U,direction:u,dropdownMatchSelectWidth:Y,dropdownRender:Q,dropdownAlign:Z,placement:J,builtinPlacements:ee,getPopupContainer:te,empty:m,getTriggerDOMNode:function(e){return be.current||e},onPopupVisibleChange:tt,onPopupMouseEnter:function(){nt({})}},Re?e.cloneElement(Re,{ref:Ne}):e.createElement(Gp,T({},n,{domRef:be,prefixCls:a,inputElement:Me,ref:Ce,id:i,prefix:B,showSearch:de,autoClearSearchValue:P,mode:b,activeDescendantId:I,tagRender:c,values:f,open:He,onToggleOpen:Ve,activeValue:k,searchValue:Pe,onSearch:Ke,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){var t=f.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:We,onInputBlur:function(){Ze.current=!1}})));return at=Re?ft:e.createElement("div",T({className:dt},fe,{ref:he,onMouseDown:function(e){var t,n=e.target,r=null===(t=xe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=et.indexOf(o);-1!==t&&et.splice(t,1),je(),ge||r.contains(document.activeElement)||null===(e=Ce.current)||void 0===e||e.focus()}));et.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;l-=1){var s=i[l];if(!s.disabled){i.splice(l,1),a=s;break}}a&&p(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};const vm=function(){function e(){vt(this,e),L(this,"maps",void 0),L(this,"id",0),L(this,"diffKeys",new Set),this.maps=Object.create(null)}return bt(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1,this.diffKeys.add(e)}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function hm(e){var t=parseFloat(e);return isNaN(t)?0:t}var bm=14/15;function ym(e){return Math.floor(Math.pow(e,.5))}function xm(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Cm=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.rtl,i=t.scrollOffset,a=t.scrollRange,l=t.onStartMove,s=t.onStopMove,c=t.onScroll,u=t.horizontal,d=t.spinSize,f=t.containerSize,p=t.style,m=t.thumbStyle,g=t.showScrollBar,v=X(e.useState(!1),2),h=v[0],b=v[1],y=X(e.useState(null),2),x=y[0],C=y[1],w=X(e.useState(null),2),S=w[0],E=w[1],$=!o,k=e.useRef(),O=e.useRef(),I=X(e.useState(g),2),j=I[0],P=I[1],M=e.useRef(),R=function(){!0!==g&&!1!==g&&(clearTimeout(M.current),P(!0),M.current=setTimeout((function(){P(!1)}),3e3))},N=a-f||0,F=f-d||0,T=e.useMemo((function(){return 0===i||0===N?0:i/N*F}),[i,N,F]),z=e.useRef({top:T,dragging:h,pageY:x,startTop:S});z.current={top:T,dragging:h,pageY:x,startTop:S};var B=function(e){b(!0),C(xm(e,u)),E(z.current.top),l(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=k.current,n=O.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",B,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}}),[]);var H=e.useRef();H.current=N;var _=e.useRef();_.current=F,e.useEffect((function(){if(h){var e,t=function(t){var n=z.current,r=n.dragging,o=n.pageY,i=n.startTop;Rn.cancel(e);var a=k.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var s=(xm(t,u)-o)*l,d=i;!$&&u?d-=s:d+=s;var p=H.current,m=_.current,g=m?d/m:0,v=Math.ceil(g*p);v=Math.max(v,0),v=Math.min(v,p),e=Rn((function(){c(v,u)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Rn.cancel(e)}}}),[h]),e.useEffect((function(){return R(),function(){clearTimeout(M.current)}}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:R}}));var V="".concat(r,"-scrollbar"),W={position:"absolute",visibility:j?null:"hidden"},q={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(W.height=8,W.left=0,W.right=0,W.bottom=0,q.height="100%",q.width=d,$?q.left=T:q.right=T):(W.width=8,W.top=0,W.bottom=0,$?W.right=0:W.left=0,q.width="100%",q.height=d,q.top=T),e.createElement("div",{ref:k,className:A()(V,L(L(L({},"".concat(V,"-horizontal"),u),"".concat(V,"-vertical"),!u),"".concat(V,"-visible"),j)),style:D(D({},W),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},e.createElement("div",{ref:O,className:A()("".concat(V,"-thumb"),L({},"".concat(V,"-thumb-moving"),h)),style:D(D({},q),m),onMouseDown:B}))}));const wm=Cm;function Sm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Em=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],$m=[],km={overflowY:"auto",overflowAnchor:"none"};function Om(t,n){var r=t.prefixCls,o=void 0===r?"rc-virtual-list":r,i=t.className,a=t.height,l=t.itemHeight,s=t.fullHeight,c=void 0===s||s,u=t.style,d=t.data,f=t.children,p=t.itemKey,m=t.virtual,g=t.direction,v=t.scrollWidth,h=t.component,b=void 0===h?"div":h,y=t.onScroll,x=t.onVirtualScroll,C=t.onVisibleChange,w=t.innerProps,S=t.extraRender,E=t.styles,$=t.showScrollBar,k=void 0===$?"optional":$,O=_(t,Em),I=e.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),j=function(t){var n=X(e.useState(0),2),r=n[0],o=n[1],i=(0,e.useRef)(new Map),a=(0,e.useRef)(new vm),l=(0,e.useRef)(0);function s(){l.current+=1}function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;i.current.forEach((function(t,n){if(t&&t.offsetParent){var r=qe(t),o=r.offsetHeight,i=getComputedStyle(r),l=i.marginTop,s=i.marginBottom,c=o+hm(l)+hm(s);a.current.get(n)!==c&&(a.current.set(n,c),e=!0)}})),e&&o((function(e){return e+1}))};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then((function(){n===l.current&&t()}))}}return(0,e.useEffect)((function(){return s}),[]),[function(e,n){var r=t(e);i.current.get(r);n?(i.current.set(r,n),c()):i.current.delete(r)},c,a.current,r]}(I),P=X(j,4),M=P[0],R=P[1],N=P[2],F=P[3],B=!(!1===m||!a||!l),H=e.useMemo((function(){return Object.values(N.maps).reduce((function(e,t){return e+t}),0)}),[N.id,N.maps]),V=B&&d&&(Math.max(l*d.length,H)>a||!!v),W="rtl"===g,q=A()(o,L({},"".concat(o,"-rtl"),W),i),G=d||$m,U=(0,e.useRef)(),Y=(0,e.useRef)(),Q=(0,e.useRef)(),Z=X((0,e.useState)(0),2),J=Z[0],ee=Z[1],te=X((0,e.useState)(0),2),ne=te[0],re=te[1],oe=X((0,e.useState)(!1),2),ie=oe[0],ae=oe[1],le=function(){ae(!0)},se=function(){ae(!1)},ce={getKey:I};function ue(e){ee((function(t){var n=function(e){var t=e;return Number.isNaN(Ie.current)||(t=Math.min(t,Ie.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return U.current.scrollTop=n,n}))}var de=(0,e.useRef)({start:0,end:G.length}),fe=(0,e.useRef)(),pe=X(function(t,n,r){var o=X(e.useState(t),2),i=o[0],a=o[1],l=X(e.useState(null),2),s=l[0],c=l[1];return e.useEffect((function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i=J&&void 0===t&&(t=s,n=o),f>J+a&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=G.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,G.length-1),offset:n}}),[V,B,J,G,F,a]),ge=me.scrollHeight,ve=me.start,he=me.end,be=me.offset;de.current.start=ve,de.current.end=he,e.useLayoutEffect((function(){var e=N.getRecord();if(1===e.size){var t=Array.from(e)[0];if(I(G[ve])===t){var n=N.get(t)-l;ue((function(e){return e+n}))}}N.resetRecord()}),[ge]);var ye=X(e.useState({width:0,height:a}),2),xe=ye[0],Ce=ye[1],we=(0,e.useRef)(),Ee=(0,e.useRef)(),$e=e.useMemo((function(){return Sm(xe.width,v)}),[xe.width,v]),ke=e.useMemo((function(){return Sm(xe.height,ge)}),[xe.height,ge]),Oe=ge-a,Ie=(0,e.useRef)(Oe);Ie.current=Oe;var je=J<=0,Pe=J>=Oe,Me=ne<=0,Re=ne>=v,Ne=gm(je,Pe,Me,Re),Ae=function(){return{x:W?-ne:ne,y:J}},Fe=(0,e.useRef)(Ae()),Te=Nt((function(e){if(x){var t=D(D({},Ae()),e);Fe.current.x===t.x&&Fe.current.y===t.y||(x(t),Fe.current=t)}}));function ze(e,t){var n=e;t?((0,K.flushSync)((function(){re(n)})),Te()):ue(n)}var Be=function(e){var t=e,n=v?v-xe.width:0;return t=Math.max(t,0),Math.min(t,n)},Le=Nt((function(e,t){t?((0,K.flushSync)((function(){re((function(t){return Be(t+(W?-e:e))}))})),Te()):ue((function(t){return t+e}))})),He=X(function(t,n,r,o,i,a,l){var s=(0,e.useRef)(0),c=(0,e.useRef)(null),u=(0,e.useRef)(null),d=(0,e.useRef)(!1),f=gm(n,r,o,i),p=(0,e.useRef)(null),m=(0,e.useRef)(null);return[function(e){if(t){Rn.cancel(m.current),m.current=Rn((function(){p.current=null}),2);var n=e.deltaX,r=e.deltaY,o=e.shiftKey,i=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,g=0,p.current="sx");var v=Math.abs(i),h=Math.abs(g);null===p.current&&(p.current=a&&v>h?"x":"y"),"y"===p.current?function(e,t){if(Rn.cancel(c.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,mm||n.preventDefault(),c.current=Rn((function(){var e=d.current?10:1;l(s.current*e,!1),s.current=0})))}}(e,g):function(e,t){l(t,!0),mm||e.preventDefault()}(e,i)}},function(e){t&&(d.current=e.detail===u.current)}]}(B,je,Pe,Me,Re,!!v,Le),2),De=He[0],_e=He[1];!function(t,n,r){var o,i=(0,e.useRef)(!1),a=(0,e.useRef)(0),l=(0,e.useRef)(0),s=(0,e.useRef)(null),c=(0,e.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,s=l.current-n,u=Math.abs(o)>Math.abs(s);u?a.current=t:l.current=n;var d=r(u,u?o:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?o*=bm:s*=bm;var e=Math.floor(u?o:s);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},Se((function(){return t&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(c.current)}}),[t])}(B,U,(function(e,t,n,r){var o=r;return!(Ne(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(t,n){e.useEffect((function(){var e=n.current;if(t&&e){var r,o,i=!1,a=function(){Rn.cancel(r)},l=function e(){a(),r=Rn((function(){var t;t=o,ue((function(e){return e+t})),e()}))},s=function(e){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)},c=function(){i=!1,a()},u=function(t){if(i){var n=xm(t,!1),r=e.getBoundingClientRect(),s=r.top,c=r.bottom;n<=s?(o=-ym(s-n),l()):n>=c?(o=ym(n-c),l()):a()}};return e.addEventListener("mousedown",s),e.ownerDocument.addEventListener("mouseup",c),e.ownerDocument.addEventListener("mousemove",u),function(){e.removeEventListener("mousedown",s),e.ownerDocument.removeEventListener("mouseup",c),e.ownerDocument.removeEventListener("mousemove",u),a()}}}),[t])}(V,U),Se((function(){function e(e){var t=je&&e.detail<0,n=Pe&&e.detail>0;!B||t||n||e.preventDefault()}var t=U.current;return t.addEventListener("wheel",De,{passive:!1}),t.addEventListener("DOMMouseScroll",_e,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",_e),t.removeEventListener("MozMousePixelScroll",e)}}),[B,je,Pe]),Se((function(){if(v){var e=Be(ne);re(e),Te({x:e})}}),[xe.width,v]);var Ve=function(){var e,t;null===(e=we.current)||void 0===e||e.delayHidden(),null===(t=Ee.current)||void 0===t||t.delayHidden()},We=function(t,n,r,o,i,a,l,s){var c=e.useRef(),u=X(e.useState(null),2),d=u[0],f=u[1];return Se((function(){if(d&&d.times<10){if(!t.current)return void f((function(e){return D({},e)}));a();var e=d.targetAlign,s=d.originAlign,c=d.index,u=d.offset,p=t.current.clientHeight,m=!1,g=e,v=null;if(p){for(var h=e||s,b=0,y=0,x=0,C=Math.min(n.length-1,c),w=0;w<=C;w+=1){var S=i(n[w]);y=b;var E=r.get(S);b=x=y+(void 0===E?o:E)}for(var $="top"===h?u:p-u,k=C;k>=0;k-=1){var O=i(n[k]),I=r.get(O);if(void 0===I){m=!0;break}if(($-=I)<=0)break}switch(h){case"top":v=y-u;break;case"bottom":v=x-p+u;break;default:var j=t.current.scrollTop;yj+p&&(g="bottom")}null!==v&&l(v),v!==d.lastTop&&(m=!0)}m&&f(D(D({},d),{},{times:d.times+1,targetAlign:g,lastTop:v}))}}),[d,t.current]),function(e){if(null!=e){if(Rn.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===z(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else s()}}(U,G,N,l,I,(function(){return R(!0)}),ue,Ve);e.useImperativeHandle(n,(function(){return{nativeElement:Q.current,getScrollInfo:Ae,scrollTo:function(e){var t;(t=e)&&"object"===z(t)&&("left"in t||"top"in t)?(void 0!==e.left&&re(Be(e.left)),We(e.top)):We(e)}}})),Se((function(){if(C){var e=G.slice(ve,he+1);C(e,G)}}),[ve,he,G]);var Ge=function(t,n,r,o){var i=X(e.useMemo((function(){return[new Map,[]]}),[t,r.id,o]),2),a=i[0],l=i[1];return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,s=a.get(e),c=a.get(i);if(void 0===s||void 0===c)for(var u=t.length,d=l.length;da&&e.createElement(wm,{ref:we,prefixCls:o,scrollOffset:J,scrollRange:ge,rtl:W,onScroll:ze,onStartMove:le,onStopMove:se,spinSize:ke,containerSize:xe.height,style:null==E?void 0:E.verticalScrollBar,thumbStyle:null==E?void 0:E.verticalScrollBarThumb,showScrollBar:k}),V&&v>xe.width&&e.createElement(wm,{ref:Ee,prefixCls:o,scrollOffset:ne,scrollRange:v,rtl:W,onScroll:ze,onStartMove:le,onStopMove:se,spinSize:$e,containerSize:xe.width,horizontal:!0,style:null==E?void 0:E.horizontalScrollBar,thumbStyle:null==E?void 0:E.horizontalScrollBarThumb,showScrollBar:k}))}var Im=e.forwardRef(Om);Im.displayName="List";const jm=Im;var Pm=["disabled","title","children","style","className"];function Mm(e){return"string"==typeof e||"number"==typeof e}var Rm=function(t,n){var r=e.useContext(up),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=e.useContext(em),m=p.maxCount,g=p.flattenOptions,v=p.onActiveValue,h=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,C=p.fieldNames,w=p.virtual,S=p.direction,E=p.listHeight,$=p.listItemHeight,k=p.optionRender,O="".concat(o,"-item"),I=ie((function(){return g}),[a,g],(function(e,t){return t[0]&&e[1]!==t[1]})),j=e.useRef(null),P=e.useMemo((function(){return l&&Qp(m)&&(null==x?void 0:x.size)>=m}),[l,m,null==x?void 0:x.size]),M=function(e){e.preventDefault()},R=function(e){var t;null===(t=j.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},N=e.useCallback((function(e){return"combobox"!==s&&x.has(e)}),[s,ye(x).toString(),x.size]),F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];H(e);var n={source:t?"keyboard":"mouse"},r=I[e];r?v(r.value,e,n):v(null,-1,n)};(0,e.useEffect)((function(){D(!1!==h?F(0):-1)}),[I.length,c]);var V=e.useCallback((function(e){return"combobox"===s?String(e).toLowerCase()===c.toLowerCase():x.has(e)}),[s,c,ye(x).toString(),x.size]);(0,e.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===x.size){var e=Array.from(x)[0],t=I.findIndex((function(t){return t.data.value===e}));-1!==t&&(D(t),R(t))}}));return a&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[a,c]);var W=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),l||u(!1)};if(e.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case pp.N:case pp.P:case pp.UP:case pp.DOWN:var r=0;if(t===pp.UP?r=-1:t===pp.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===pp.N?r=1:t===pp.P&&(r=-1)),0!==r){var o=F(B+r,r);R(o),D(o,!0)}break;case pp.TAB:case pp.ENTER:var i,l=I[B];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||P?W(void 0):W(l.value),a&&e.preventDefault();break;case pp.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===I.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:M},d);var q=Object.keys(C).map((function(e){return C[e]})),G=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var U=function(t){var n=I[t];if(!n)return null;var r=n.data||{},o=r.value,i=n.group,a=xf(r,!0),l=G(n);return n?e.createElement("div",T({"aria-label":"string"!=typeof l||i?null:l},a,{key:t},K(n,t),{"aria-selected":V(o)}),o):null},Y={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,w&&e.createElement("div",T({},Y,{style:{height:0,width:0,overflow:"hidden"}}),U(B-1),U(B),U(B+1)),e.createElement(jm,{itemKey:"key",ref:j,data:I,height:E,itemHeight:$,fullHeight:!1,onMouseDown:M,onScroll:f,virtual:w,direction:S,innerProps:w?null:Y},(function(t,n){var r=t.group,o=t.groupOption,i=t.data,a=t.label,l=t.value,s=i.key;if(r){var c,u=null!==(c=i.title)&&void 0!==c?c:Mm(a)?a.toString():void 0;return e.createElement("div",{className:A()(O,"".concat(O,"-group"),i.className),title:u},void 0!==a?a:s)}var d=i.disabled,f=i.title,p=(i.children,i.style),m=i.className,g=Uo(_(i,Pm),q),v=N(l),h=d||!v&&P,b="".concat(O,"-option"),x=A()(O,b,m,L(L(L(L({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),B===n&&!h),"".concat(b,"-disabled"),h),"".concat(b,"-selected"),v)),C=G(t),S=!y||"function"==typeof y||v,E="number"==typeof C?C:C||l,$=Mm(E)?E.toString():void 0;return void 0!==f&&($=f),e.createElement("div",T({},xf(g),w?{}:K(t,n),{"aria-selected":V(l),className:x,title:$,onMouseMove:function(){B===n||h||D(n)},onClick:function(){h||W(l)},style:p}),e.createElement("div",{className:"".concat(b,"-content")},"function"==typeof k?k(t,{index:n}):E),e.isValidElement(y)||v,S&&e.createElement(cp,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:h,isSelected:v}},v?"✓":null))})))};const Nm=e.forwardRef(Rm);function Am(e,t){return zp(e).join("").toUpperCase().includes(t)}var Fm=0,Tm=Y();var zm=["children","value"],Bm=["children"];function Lm(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _e(t).map((function(t,r){if(!e.isValidElement(t)||!t.type)return null;var o=t,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,c=_(l,Bm);return n||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return D({key:n,value:void 0!==i?i:n,children:o},_(r,zm))}(t):D(D({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},c),{},{options:Lm(s)})})).filter((function(e){return e}))}const Hm=function(t,n,r,o,i){return e.useMemo((function(){var e=t;!t&&(e=Lm(n));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c0?e(t.options):t.options}):t}))},Ce=e.useMemo((function(){return y?xe(be):be}),[be,y,Z]),we=e.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Zp(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(s in t)){var i=t[l];o.push({key:Yp(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:Yp(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(Ce,{fieldNames:Y,childrenAsData:K})}),[Ce,Y,K]),Se=function(e){var t=oe(e);if(le(t),H&&(t.length!==de.length||t.some((function(e,t){var n;return(null===(n=de[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=B?t:t.map((function(e){return e.value})),r=t.map((function(e){return Jp(fe(e.value))}));H(G?n:n[0],G?r:r[0])}},Ee=X(e.useState(null),2),$e=Ee[0],ke=Ee[1],Oe=X(e.useState(0),2),Ie=Oe[0],je=Oe[1],Pe=void 0!==$?$:"combobox"!==o,Me=e.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;je(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&ke(String(e))}),[l,o]),Re=function(e,t,n){var r=function(){var t,n=fe(e);return[B?{label:null==n?void 0:n[Y.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Jp(n)]};if(t&&m){var o=X(r(),2),i=o[0],a=o[1];m(i,a)}else if(!t&&g&&"clear"!==n){var l=X(r(),2),s=l[0],c=l[1];g(s,c)}},Ne=Dm((function(e,t){var n,r=!G||t.selected;n=r?G?[].concat(ye(de),[e]):[e]:de.filter((function(t){return t.value!==e})),Se(n),Re(e,r),"combobox"===o?ke(""):om&&!p||(J(""),ke(""))})),Ae=e.useMemo((function(){var e=!1!==O&&!1!==h;return D(D({},ee),{},{flattenOptions:we,onActiveValue:Me,defaultActiveFirstOption:Pe,onSelect:Ne,menuItemSelectedIcon:k,rawValues:me,fieldNames:Y,virtual:e,direction:I,listHeight:P,listItemHeight:R,childrenAsData:K,maxCount:V,optionRender:S})}),[V,ee,we,Me,Pe,Ne,k,me,Y,O,h,I,P,R,K,S]);return e.createElement(em.Provider,{value:Ae},e.createElement(am,T({},W,{id:q,prefixCls:a,ref:n,omitDomProps:Vm,mode:o,displayValues:pe,onDisplayValuesChange:function(e,t){Se(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Re(e.value,!1,n)}))},direction:I,searchValue:Z,onSearch:function(e,t){if(J(e),ke(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&Se(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(ye(me),[n])));Se(r),Re(n,!0),J("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=ne.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(ye(me),ye(t))));Se(n),n.forEach((function(e){Re(e,!0)}))},dropdownMatchSelectWidth:h,OptionList:Nm,emptyOptions:!we.length,activeValue:$e,activeDescendantId:"".concat(q,"_list_").concat(Ie)})))})),qm=Wm;qm.Option=um,qm.OptGroup=sm;const Gm=qm,Xm=(0,e.createContext)(void 0),Km=D(D({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),Um={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ym={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Km),timePickerLocale:Object.assign({},Um)},Qm="${label} is not a valid ${type}",Zm={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:Ym,TimePicker:Um,Calendar:Ym,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Qm,method:Qm,array:Qm,object:Qm,number:Qm,date:Qm,boolean:Qm,integer:Qm,float:Qm,regexp:Qm,email:Qm,url:Qm,hex:Qm},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Jm=Object.assign({},Zm.Modal),eg=[];const tg=()=>eg.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Zm.Modal),ng=(0,e.createContext)(void 0),rg=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return eg.push(t),Jm=tg(),()=>{eg=eg.filter((e=>e!==t)),Jm=tg()}}Jm=Object.assign({},Zm.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(ng.Provider,{value:i},r)},og=`-ant-${Date.now()}-${Math.random()}`;const ig=Object.assign({},e),{useId:ag}=ig,lg=void 0===ag?()=>"":ag;function sg(t){const{children:n}=t,[,r]=bs(),{motion:o}=r,i=e.useRef(!1);return i.current=i.current||!1===o,i.current?e.createElement(Ht,{motion:o},n):n}const cg=()=>null;const ug=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let dg,fg,pg,mg;function gg(){return dg||ri}function vg(){return fg||oi}const hg=()=>({getPrefixCls:(e,t)=>t||(e?`${gg()}-${e}`:gg()),getIconPrefixCls:vg,getRootPrefixCls:()=>dg||gg(),getTheme:()=>pg,holderRender:mg}),bg=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:h,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:S,spin:E,calendar:$,carousel:k,cascader:O,collapse:I,typography:j,checkbox:P,descriptions:M,divider:R,drawer:N,skeleton:A,steps:F,image:T,layout:z,list:B,mentions:L,modal:H,progress:D,result:_,slider:V,breadcrumb:W,menu:q,pagination:G,input:X,textArea:K,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ae,tabs:le,timeline:se,timePicker:ce,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:ve,wave:he,dropdown:be,warning:ye,tour:xe,tooltip:Ce,popover:we,popconfirm:Se,floatButtonGroup:Ee,variant:$e,inputNumber:ke,treeSelect:Oe}=t,Ie=e.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||b.getPrefixCls("");return e?`${o}-${e}`:o}),[b.getPrefixCls,t.prefixCls]),je=y||b.iconPrefixCls||oi,Pe=r||b.csp;((e,t)=>{const[n,r]=bs();Ha({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[ml(e)]))})(je,Pe);const Me=function(e,t,n){var r;nc();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},hl),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:hl.hashed,cssVar:null==t?void 0:t.cssVar}),a=lg();return ie((()=>{var r,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!Rr(e,r,!0)}))))}(x,b.theme,{prefixCls:Ie("")}),Re={csp:Pe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:s||h,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!=g?g:m,popupOverflow:v,getPrefixCls:Ie,iconPrefixCls:je,theme:Me,segmented:w,statistic:S,spin:E,calendar:$,carousel:k,cascader:O,collapse:I,typography:j,checkbox:P,descriptions:M,divider:R,drawer:N,skeleton:A,steps:F,image:T,input:X,textArea:K,layout:z,list:B,mentions:L,modal:H,progress:D,result:_,slider:V,breadcrumb:W,menu:q,pagination:G,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ae,tabs:le,timeline:se,timePicker:ce,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:ve,wave:he,dropdown:be,warning:ye,tour:xe,tooltip:Ce,popover:we,popconfirm:Se,floatButtonGroup:Ee,variant:$e,inputNumber:ke,treeSelect:Oe},Ne=Object.assign({},b);Object.keys(Re).forEach((e=>{void 0!==Re[e]&&(Ne[e]=Re[e])})),ug.forEach((e=>{const n=t[e];n&&(Ne[e]=n)})),void 0!==o&&(Ne.button=Object.assign({autoInsertSpace:o},Ne.button));const Ae=ie((()=>Ne),Ne,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),{layer:Fe}=e.useContext(xi),Te=e.useMemo((()=>({prefixCls:je,csp:Pe,layer:Fe?"antd":void 0})),[je,Pe,Fe]);let ze=e.createElement(e.Fragment,null,e.createElement(cg,{dropdownMatchSelectWidth:m}),n);const Be=e.useMemo((()=>{var e,t,n,r;return Zt((null===(e=Zm.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ae.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ae.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ae,null==l?void 0:l.validateMessages]);Object.keys(Be).length>0&&(ze=e.createElement(Xm.Provider,{value:Be},ze)),s&&(ze=e.createElement(rg,{locale:s,_ANT_MARK__:"internalMark"},ze)),(je||Pe)&&(ze=e.createElement(uu.Provider,{value:Te},ze)),c&&(ze=e.createElement(ci,{size:c},ze)),ze=e.createElement(sg,null,ze);const Le=e.useMemo((()=>{const e=Me||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0)?$i(t):cs,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=$i(r.algorithm)),delete r.algorithm),l[t]=r}));const s=Object.assign(Object.assign({},vl),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})}),[Me]);return x&&(ze=e.createElement(bl.Provider,{value:Le},ze)),Ae.warning&&(ze=e.createElement(tc.Provider,{value:Ae.warning},ze)),void 0!==C&&(ze=e.createElement(Jc,{disabled:C},ze)),e.createElement(ai.Provider,{value:Ae},ze)},yg=t=>{const n=e.useContext(ai),r=e.useContext(ng);return e.createElement(bg,Object.assign({parentContext:n,legacyLocale:r},t))};yg.ConfigContext=ai,yg.SizeContext=ui,yg.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(dg=t),void 0!==n&&(fg=n),"holderRender"in e&&(mg=o),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Sl(e),i=Il(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Sl(t.primaryColor),i=Il(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setA(.12*e.a)));const a=new Sl(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setA(.3*e.a))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Y()&&Ae(n,`${og}-dynamic-theme`)}(gg(),r):pg=r)},yg.useConfig=function(){return{componentDisabled:(0,e.useContext)(eu),componentSize:(0,e.useContext)(ui)}},Object.defineProperty(yg,"SizeContext",{get:()=>ui});const xg=yg,Cg=(t,n,r,o,i)=>function(t){return n=>e.createElement(xg,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}((a=>{const{prefixCls:l,style:s}=a,c=e.useRef(null),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,g]=qt(!1,{value:a.open}),{getPrefixCls:v}=e.useContext(ai),h=v(o||"select",l);e.useEffect((()=>{if(g(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var n;const r=i?`.${i(h)}`:`.${h}-dropdown`,o=null===(n=c.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(b=r(b)),n&&Object.assign(b,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:f};return e.createElement("div",{ref:c,style:y},e.createElement(t,Object.assign({},b)))})),wg=(t,n)=>{const r=e.useContext(ng);return[e.useMemo((()=>{var e;const o=n||Zm[t],i=null!==(e=null==r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[t,n,r]),e.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?Zm.locale:e}),[r])]},Sg=()=>{const[,t]=bs(),[n]=wg("Empty"),r=new Sl(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(null==n?void 0:n.description)||"Empty"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Eg=()=>{const[,t]=bs(),[n]=wg("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=t,{borderColor:l,shadowColor:s,contentColor:c}=(0,e.useMemo)((()=>({borderColor:new Sl(r).onBackground(a).toHexString(),shadowColor:new Sl(o).onBackground(a).toHexString(),contentColor:new Sl(i).onBackground(a).toHexString()})),[r,o,i,a]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(null==n?void 0:n.description)||"Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:l},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},$g=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},kg=ys("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=nl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[$g(o)]}));const Og=e.createElement(Sg,null),Ig=e.createElement(Eg,null),jg=t=>{var n,r,o,i,a,l,s,c;const{className:u,rootClassName:d,prefixCls:f,image:p=Og,description:m,children:g,imageStyle:v,style:h,classNames:b,styles:y}=t,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentName:r}=n,{getPrefixCls:o}=(0,e.useContext)(ai),i=o("empty");switch(r){case"Table":case"List":return t().createElement(Pg,{image:Pg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t().createElement(Pg,{image:Pg.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return t().createElement(Pg,null)}},Rg=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},Ng=new Wa("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ag=new Wa("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fg=new Wa("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Tg=new Wa("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),zg=new Wa("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Bg=new Wa("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Lg=new Wa("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Hg=new Wa("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Dg={"slide-up":{inKeyframes:Ng,outKeyframes:Ag},"slide-down":{inKeyframes:Fg,outKeyframes:Tg},"slide-left":{inKeyframes:zg,outKeyframes:Bg},"slide-right":{inKeyframes:Lg,outKeyframes:Hg}},_g=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dg[t];return[ic(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Vg=new Wa("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wg=new Wa("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qg=new Wa("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gg=new Wa("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Xg=new Wa("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kg=new Wa("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ug={"move-up":{inKeyframes:new Wa("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Wa("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Vg,outKeyframes:Wg},"move-left":{inKeyframes:qg,outKeyframes:Gg},"move-right":{inKeyframes:Xg,outKeyframes:Kg}},Yg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ug[t];return[ic(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Qg=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Zg=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ul(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Ng},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Fg},[`${a}${l}bottomLeft`]:{animationName:Ag},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Tg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Qg(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},cl),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Qg(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},_g(e,"slide-up"),_g(e,"slide-down"),Yg(e,"move-up"),Yg(e,"move-down")]},Jg=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},ev=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Ri(t),itemLineHeight:Ri(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Jg(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ri(r)} 0`,lineHeight:Ri(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:Ri(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ri(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Ri(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function tv(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ev(e,t),o]}const nv=e=>{const{componentCls:t}=e,n=nl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=nl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tv(e),tv(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},tv(r,"lg")]};function rv(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ul(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:Ri(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ri(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Ri(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ri(r)}`,"&:after":{display:"none"}}}}}}}function ov(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[rv(e),rv(nl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Ri(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},rv(nl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const iv=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ri(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ri(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},av=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},iv(e,t))}),lv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},iv(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),av(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),av(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ri(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),sv=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ri(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},cv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sv(e,t))}),uv=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},sv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),cv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),cv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),dv=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ri(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ri(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),fv=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},lv(e)),uv(e)),dv(e))}),pv=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},mv=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},gv=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},ul(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},pv(e)),mv(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},cl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},cl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},vv=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},gv(e),ov(e),nv(e),Zg(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},hv=ys("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=nl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vv(r),fv(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:h,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,C=2*l,w=2*r,S=Math.min(o-C,o-w),E=Math.min(i-C,i-w),$=Math.min(a-C,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:E,multipleItemHeightLG:$,multipleSelectorBgDisabled:v,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),bv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var yv=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:bv}))};const xv=e.forwardRef(yv),Cv={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var wv=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Cv}))};const Sv=e.forwardRef(wv),Ev={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var $v=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Ev}))};const kv=e.forwardRef($v);const Ov="SECRET_COMBOBOX_MODE_DO_NOT_USE",Iv=(t,n)=>{var r;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:m,disabled:g,notFoundContent:v,status:h,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:C,style:w,allowClear:S,variant:E,dropdownStyle:$,transitionName:k,tagRender:O,maxCount:I,prefix:j}=t,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{mode:e}=t;if("combobox"!==e)return e===Ov?"combobox":e}),[t.mode]),ee="multiple"===J||"tags"===J,te=function(e,t){return void 0!==t?t:null!==e}(t.suffixIcon,t.showArrow),ne=null!==(r=null!=x?x:y)&&void 0!==r?r:z,{status:re,hasFeedback:oe,isFormItemInput:ie,feedbackIcon:ae}=e.useContext(ei),le=ff(re,h);let se;se=void 0!==v?v:"combobox"===J?null:(null==N?void 0:N("Select"))||e.createElement(Mg,{componentName:"Select"});const{suffixIcon:ce,itemIcon:ue,removeIcon:de,clearIcon:fe}=function(t){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=t;const m=null!=r?r:e.createElement(cf,null),g=t=>null!==n||s||f?e.createElement(e.Fragment,null,!1!==u&&t,s&&d):null;let v=null;if(void 0!==n)v=g(n);else if(a)v=g(e.createElement($u,{spin:!0}));else{const t=`${c}-suffix`;v=n=>{let{open:r,showSearch:o}=n;return g(r&&o?e.createElement(Hf,{className:t}):e.createElement(kv,{className:t}))}}let h=null;h=void 0!==o?o:l?e.createElement(xv,null):null;let b=null;return b=void 0!==i?i:e.createElement(Sv,null),{clearIcon:m,suffixIcon:v,itemIcon:h,removeIcon:b}}(Object.assign(Object.assign({},P),{multiple:ee,hasFeedback:oe,feedbackIcon:ae,showSuffixIcon:te,prefixCls:_,componentName:"Select"})),pe=!0===S?{clearIcon:fe}:S,me=Uo(P,["suffixIcon","itemIcon"]),ge=A()(c||u,{[`${_}-dropdown-${W}`]:"rtl"===W},l,Z,U,Q),ve=di((e=>{var t;return null!==(t=null!=m?m:q)&&void 0!==t?t:e})),he=e.useContext(eu),be=null!=g?g:he,ye=A()({[`${_}-lg`]:"large"===ve,[`${_}-sm`]:"small"===ve,[`${_}-rtl`]:"rtl"===W,[`${_}-${X}`]:K,[`${_}-in-form-item`]:ie},df(_,le,oe),G,null==L?void 0:L.className,a,l,Z,U,Q),xe=e.useMemo((()=>void 0!==f?f:"rtl"===W?"bottomRight":"bottomLeft"),[f,W]),[Ce]=Ts("SelectLike",null==$?void 0:$.zIndex);return Y(e.createElement(Gm,Object.assign({ref:n,virtual:T,showSearch:null==L?void 0:L.showSearch},me,{style:Object.assign(Object.assign({},null==L?void 0:L.style),w),dropdownMatchSelectWidth:ne,transitionName:Ds(V,"slide-up",k),builtinPlacements:Rg(b,B),listHeight:d,listItemHeight:D,mode:J,prefixCls:_,placement:xe,direction:W,prefix:j,suffixIcon:ce,menuItemSelectedIcon:ue,removeIcon:de,allowClear:pe,notFoundContent:se,className:ye,getPopupContainer:s||M,dropdownClassName:ge,disabled:be,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:Ce}),maxCount:ee?I:void 0,tagRender:ee?O:void 0})))},jv=e.forwardRef(Iv),Pv=Cg(jv,"dropdownAlign");jv.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ov,jv.Option=um,jv.OptGroup=sm,jv._InternalPanelDoNotUseOrYouWillBeFired=Pv;const Mv=jv,{isEnumType:Rv,isInputObjectType:Nv,isScalarType:Av,parseType:Fv,visit:Tv}=wpGraphiQL.GraphQL,{useState:zv}=wp.element,Bv=t=>{const[n,r]=zv(!0),{definition:o}=t,{argValue:i,arg:a,styleConfig:l}=t,s=I(a.type);let c=null;if(i)if("Variable"===i.kind)c=(0,e.createElement)("span",{style:{color:l.colors.variable}},"$",i.name.value);else if(Av(s))c="Boolean"===s.name?(0,e.createElement)(Mv,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],size:"small",style:{color:l.colors.builtin,minHeight:"16px",minWidth:"16ch"},onChange:e=>{const n={target:{value:e}};t.setArgValue(n)},value:"BooleanValue"===i.kind?i.value:void 0},(0,e.createElement)(Mv.Option,{key:"true",value:"true"},"true"),(0,e.createElement)(Mv.Option,{key:"false",value:"false"},"false")):(0,e.createElement)(op,{setArgValue:t.setArgValue,arg:a,argValue:i,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig});else if(Rv(s))"EnumValue"===i.kind?c=(0,e.createElement)(Mv,{size:"small",getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],style:{backgroundColor:"white",minHeight:"16px",minWidth:"20ch",color:l.colors.string2},onChange:e=>{const n={target:{value:e}};t.setArgValue(n)},value:i.value},s.getValues().map(((t,n)=>(0,e.createElement)(Mv.Option,{key:n,value:t.name},t.name)))):console.error("arg mismatch between arg and selection",s,i);else if(Nv(s))if("ObjectValue"===i.kind){const n=s.getFields();c=(0,e.createElement)("div",{style:{marginLeft:16}},Object.keys(n).sort().map((r=>(0,e.createElement)(sp,{key:r,arg:n[r],parentField:t.parentField,selection:i,modifyFields:t.setArgFields,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition}))))}else console.error("arg mismatch between arg and selection",s,i);const u=i&&"Variable"===i.kind,d=void 0!==o.name&&i?(0,e.createElement)(jc,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:u?"Remove the variable":"Extract the current value into a GraphQL variable"},(0,e.createElement)(Cd,{type:u?"danger":"default",size:"small",className:"toolbar-button",title:u?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:e=>{e.preventDefault(),e.stopPropagation(),u?(()=>{if(!i||!i.name||!i.name.value)return;const e=i.name.value,n=(t.definition.variableDefinitions||[]).find((t=>t.variable.name.value===e));if(!n)return;const r=n.defaultValue,o=t.setArgValue(r,{commit:!1});if(o){const n=o.definitions.find((e=>e.name.value===t.definition.name.value));if(!n)return;let r=0;Tv(n,{Variable(t){t.name.value===e&&(r+=1)}});let i=n.variableDefinitions||[];r<2&&(i=i.filter((t=>t.variable.name.value!==e)));const a={...n,variableDefinitions:i},l=o.definitions.map((e=>n===e?a:e)),s={...o,definitions:l};t.onCommit(s)}})():(()=>{const e=a.name,n=(t.definition.variableDefinitions||[]).filter((t=>t.variable.name.value.startsWith(e))).length;let r;r=n>0?`${e}${n}`:e;const o=a.type.toString(),l={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:r}},type:Fv(o),directives:[]};let s,c={};if(null!=i){const e=Tv(i,{Variable(e){const n=e.name.value,r=(o=n,(t.definition.variableDefinitions||[]).find((e=>e.variable.name.value===o)));var o;if(c[n]=c[n]+1||1,r)return r.defaultValue}});s={..."NonNullType"===l.type.kind?{...l,type:l.type.type}:l,defaultValue:e}}else s=l;const u=Object.entries(c).filter((([e,t])=>t<2)).map((([e,t])=>e));if(s){const e=t.setArgValue(s,!1);if(e){const n=e.definitions.find((e=>!!(e.operation&&e.name&&e.name.value&&t.definition.name&&t.definition.name.value)&&e.name.value===t.definition.name.value)),r=[...n?.variableDefinitions||[],s].filter((e=>-1===u.indexOf(e.variable.name.value))),o={...n,variableDefinitions:r},i=e.definitions.map((e=>n===e?o:e)),a={...e,definitions:i};t.onCommit(a)}}})()}},(0,e.createElement)("span",{style:{color:u?"inherit":l.colors.variable}},"$"))):null;return(0,e.createElement)("div",{style:{cursor:"pointer",minHeight:"20px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":a.name,"data-arg-type":s.name,className:`graphiql-explorer-${a.name}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:e=>{const n=!i;n?t.addArg(!0):t.removeArg(!0),r(n)}},Nv(s)?(0,e.createElement)("span",null,i?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):(0,e.createElement)(wd,{checked:!!i,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:l.colors.attribute},title:a.description,onMouseEnter:()=>{null!=i&&r(!0)},onMouseLeave:()=>r(!0)},a.name,k(a)?"*":"",": ",d," ")," "),c||(0,e.createElement)("span",null)," ")},{isInputObjectType:Lv,isLeafType:Hv}=wpGraphiQL.GraphQL,Dv=t=>{let n;const r=()=>{const{selection:e}=t;return(e.arguments||[]).find((e=>e.name.value===t.arg.name))},{arg:o,parentField:i}=t,a=r();return(0,e.createElement)(Bv,{argValue:a?a.value:null,arg:o,parentField:i,addArg:e=>{const{selection:r,getDefaultScalarArgValue:o,makeDefaultArg:i,parentField:a,arg:l}=t,s=I(l.type);let c=null;if(n)c=n;else if(Lv(s)){const e=s.getFields();c={kind:"Argument",name:{kind:"Name",value:l.name},value:{kind:"ObjectValue",fields:P(o,i,a,Object.keys(e).map((t=>e[t])))}}}else Hv(s)&&(c={kind:"Argument",name:{kind:"Name",value:l.name},value:o(a,l,s)});return c?t.modifyArguments([...r.arguments||[],c],e):(console.error("Unable to add arg for argType",s),null)},removeArg:e=>{const{selection:o}=t,i=r();return n=r(),t.modifyArguments((o.arguments||[]).filter((e=>e!==i)),e)},setArgFields:(e,n)=>{const{selection:o}=t,i=r();if(i)return t.modifyArguments((o.arguments||[]).map((t=>t===i?{...t,value:{kind:"ObjectValue",fields:e}}:t)),n);console.error("missing arg selection when setting arg value")},setArgValue:(e,n)=>{let o=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?o=!0:"string"==typeof e.kind&&(a=!0)}catch(e){}const{selection:l}=t,s=r();if(!s&&!i)return void console.error("missing arg selection when setting arg value");const c=I(t.arg.type);if(!(Hv(c)||i||o||a))return void console.warn("Unable to handle non leaf types in ArgView._setArgValue");let u,d;return null==e?d=null:e.target&&"string"==typeof e.target.value?(u=e.target.value,d=j(c,u)):e.target||"VariableDefinition"!==e.kind?"string"==typeof e.kind&&(d=e):(u=e,d=u.variable),t.modifyArguments((l.arguments||[]).map((e=>e===s?{...e,value:d}:e)),n)},getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})},_v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};var Vv=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:_v}))};const Wv=e.forwardRef(Vv),qv=t=>{let n;const r=()=>t.selections.find((e=>"FragmentSpread"===e.kind&&e.name.value===t.fragment.name.value)),{styleConfig:o}=t,i=r();return(0,e.createElement)("div",{className:`graphiql-explorer-${t.fragment.name.value}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:i?()=>{const e=r();n=e,t.modifySelections(t.selections.filter((e=>!("FragmentSpread"===e.kind&&e.name.value===t.fragment.name.value))))}:()=>{t.modifySelections([...t.selections,n||{kind:"FragmentSpread",name:t.fragment.name}])}},(0,e.createElement)(wd,{checked:!!i,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:o.colors.def},className:`graphiql-explorer-${t.fragment.name.value}`},t.fragment.name.value),(0,e.createElement)(jc,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Edit the ${t.fragment.name.value} Fragment`},(0,e.createElement)(Cd,{style:{height:"18px",margin:"0px 5px"},title:`Edit the ${t.fragment.name.value} Fragment`,type:"primary",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation();const n=window.document.getElementById(`collapse-wrap-fragment-${t.fragment.name.value}`);n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},icon:(0,e.createElement)(Wv,null)}))))},Gv=t=>{let n;const r=()=>{const e=t.selections.find((e=>"InlineFragment"===e.kind&&e.typeCondition&&t.implementingType.name===e.typeCondition.name.value));return e?"InlineFragment"===e.kind?e:void 0:null},o=(e,n)=>{const o=r();return t.modifySelections(t.selections.map((n=>n===o?{directives:n.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:n)),n)},{implementingType:i,schema:a,getDefaultFieldNames:l,styleConfig:s}=t,c=r(),u=i.getFields(),d=c&&c.selectionSet?c.selectionSet.selections:[];return(0,e.createElement)("div",{className:`graphiql-explorer-${i.name}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:c?()=>{const e=r();n=e,t.modifySelections(t.selections.filter((t=>t!==e)))}:()=>{t.modifySelections([...t.selections,n||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:t.getDefaultFieldNames(t.implementingType).map((e=>({kind:"Field",name:{kind:"Name",value:e}})))}}])}},(0,e.createElement)(wd,{checked:!!c,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:s.colors.atom}},t.implementingType.name)),c?(0,e.createElement)("div",{style:{marginLeft:16}},Object.keys(u).sort().map((n=>(0,e.createElement)(nh,{key:n,field:u[n],selections:d,modifySelections:o,schema:a,getDefaultFieldNames:l,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,onCommit:t.onCommit,styleConfig:t.styleConfig,definition:t.definition,availableFragments:t.availableFragments})))):null)},Xv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Kv=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Xv}))};const Uv=e.forwardRef(Kv),{getNamedType:Yv,isInterfaceType:Qv,isObjectType:Zv,isUnionType:Jv}=wpGraphiQL.GraphQL,{useState:eh}=wp.element,th=t=>{const[n,r]=eh(!1);let o;const i=()=>{const e=t.selections.find((e=>"Field"===e.kind&&t.field.name===e.name.value));return e?"Field"===e.kind?e:void 0:null},a=(e,n)=>{const r=i();if(r)return t.modifySelections(t.selections.map((t=>t===r?{alias:r.alias,arguments:e,directives:r.directives,kind:"Field",name:r.name,selectionSet:r.selectionSet}:t)),n);console.error("Missing selection when setting arguments",e)},l=(e,n)=>t.modifySelections(t.selections.map((n=>{if("Field"===n.kind&&t.field.name===n.name.value){if("Field"!==n.kind)throw new Error("invalid selection");return{alias:n.alias,arguments:n.arguments,directives:n.directives,kind:"Field",name:n.name,selectionSet:{kind:"SelectionSet",selections:e}}}return n})),n),{field:s,schema:c,getDefaultFieldNames:u,styleConfig:d}=t,f=i(),p=O(s.type),m=s.args.sort(((e,t)=>e.name.localeCompare(t.name)));let g=`graphiql-explorer-node graphiql-explorer-${s.name}`;s.isDeprecated&&(g+=" graphiql-explorer-deprecated");const v=Zv(p)||Qv(p)||Jv(p)?t.availableFragments&&t.availableFragments[p.name]:null,h=f&&f.selectionSet?f.selectionSet.selections:[],b=(0,e.createElement)("div",{className:g},(0,e.createElement)("span",{title:s.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":s.name,"data-field-type":p.name,onClick:e=>{if(i()&&!e.altKey)(()=>{const e=i();o=e,t.modifySelections(t.selections.filter((t=>t!==e)))})();else{const n=Yv(t.field.type),r=Zv(n)&&n.getFields();r&&e.altKey?(e=>{const n={kind:"SelectionSet",selections:e?Object.keys(e).map((e=>({kind:"Field",name:{kind:"Name",value:e},arguments:[]}))):[]},r=[...t.selections.filter((e=>"InlineFragment"===e.kind||e.name.value!==t.field.name)),{kind:"Field",name:{kind:"Name",value:t.field.name},arguments:M(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field),selectionSet:n}];t.modifySelections(r)})(r):(()=>{const e=[...t.selections,o||{kind:"Field",name:{kind:"Name",value:t.field.name},arguments:M(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field)}];t.modifySelections(e)})()}},onMouseEnter:()=>{Zv(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter((e=>"FragmentSpread"!==e.kind)).length>0&&r(!0)},onMouseLeave:()=>r(!1)},Zv(p)?(0,e.createElement)("span",null,f?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):null,Zv(p)?null:(0,e.createElement)(wd,{checked:!!f,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view"},s.name),n?(0,e.createElement)(jc,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:"Extract selections into a new reusable fragment"},(0,e.createElement)(Cd,{size:"small",type:"primary",title:"Extract selections into a new reusable fragment",onClick:e=>{e.preventDefault(),e.stopPropagation();let n=`${p.name}Fragment`;const o=(v||[]).filter((e=>e.name.value.startsWith(n))).length;o>0&&(n=`${n}${o}`);const i=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:p.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:h}},s=l(i,!1);if(s){const e={...s,definitions:[...s.definitions,a]};t.onCommit(e)}else console.warn("Unable to complete extractFragment operation");r(!1)},icon:(0,e.createElement)(Uv,null),style:{height:"18px",margin:"0px 5px"}})):null),f&&m.length?(0,e.createElement)("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},m.map((n=>(0,e.createElement)(Dv,{key:n.name,parentField:s,arg:n,selection:f,modifyArguments:a,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})))):null);if(f){const n=O(p),r=n&&"getFields"in n?n.getFields():null;if(r)return(0,e.createElement)("div",{className:`graphiql-explorer-${s.name}`},b,(0,e.createElement)("div",{style:{marginLeft:16}},v?v.map((n=>{const r=c.getType(n.typeCondition.name.value),o=n.name.value;return r?(0,e.createElement)(qv,{key:o,fragment:n,selections:h,modifySelections:l,schema:c,styleConfig:t.styleConfig,onCommit:t.onCommit}):null})):null,Object.keys(r).sort().map((n=>(0,e.createElement)(th,{key:n,field:r[n],selections:h,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition,availableFragments:t.availableFragments}))),Qv(p)||Jv(p)?c.getPossibleTypes(p).map((n=>(0,e.createElement)(Gv,{key:n.name,implementingType:n,selections:h,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition}))):null));if(Jv(p))return(0,e.createElement)("div",{className:`graphiql-explorer-${s.name}`},b,(0,e.createElement)("div",{style:{marginLeft:16}},c.getPossibleTypes(p).map((n=>(0,e.createElement)(Gv,{key:n.name,implementingType:n,selections:h,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})))))}return b},nh=th;var rh=n(2833),oh=n.n(rh);const ih=function(e){function t(e,r,s,c,f){for(var p,m,g,v,x,w=0,S=0,E=0,$=0,k=0,R=0,A=g=p=0,T=0,z=0,B=0,L=0,H=s.length,D=H-1,_="",V="",W="",q="";Tp)&&(L=(_=_.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Eh=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&Sh(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=Oh&&(Oh=t+1),$h.set(e,t),kh.set(t,e)},Mh="style["+xh+'][data-styled-version="5.3.11"]',Rh=new RegExp("^"+xh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Nh=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(xh))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(xh,"active"),r.setAttribute("data-styled-version","5.3.11");var a=Fh();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},zh=function(){function e(e){var t=this.element=Th(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Vh=/(a)(d)/gi,Wh=function(e){return String.fromCharCode(e+(e>25?39:97))};function qh(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Wh(t%52)+n;return(Wh(t%52)+n).replace(Vh,"$1-$2")}var Gh=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Xh=function(e){return Gh(5381,e)};function Kh(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,c=Gh(this.baseHash,n.hash),u="",d=0;d>>0);if(!t.hasNameForId(r,g)){var v=n(u,"."+g,void 0,r);t.insertRules(r,g,v)}o.push(g)}}return o.join(" ")},e}(),Qh=/^\s*\/\/.*$/gm,Zh=[":","[",".","#"];function Jh(e){var t,n,r,o,i=void 0===e?vh:e,a=i.options,l=void 0===a?vh:a,s=i.plugins,c=void 0===s?gh:s,u=new ih(l),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==Zh.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Qh,""),c=i&&a?a+" "+i+" { "+s+" }":s;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||Sh(15),Gh(e,t.name)}),5381).toString():"",m}var eb=t().createContext(),tb=(eb.Consumer,t().createContext()),nb=(tb.Consumer,new _h),rb=Jh();function ob(){return(0,e.useContext)(eb)||nb}function ib(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=ob(),l=(0,e.useMemo)((function(){var e=a;return n.sheet?e=n.sheet:n.target&&(e=e.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[n.disableCSSOMInjection,n.sheet,n.target]),s=(0,e.useMemo)((function(){return Jh({options:{prefix:!n.disableVendorPrefixes},plugins:o})}),[n.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){oh()(o,n.stylisPlugins)||i(n.stylisPlugins)}),[n.stylisPlugins]),t().createElement(eb.Provider,{value:l},t().createElement(tb.Provider,{value:s},n.children))}var ab=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=rb);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Sh(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=rb),this.name+e.hash},e}(),lb=/([A-Z])/,sb=/([A-Z])/g,cb=/^ms-/,ub=function(e){return"-"+e.toLowerCase()};function db(e){return lb.test(e)?e.replace(sb,ub).replace(cb,"-ms-"):e}var fb=function(e){return null==e||!1===e||""===e};function pb(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,hb=/(^-|-$)/g;function bb(e){return e.replace(vb,"-").replace(hb,"")}function yb(e){return"string"==typeof e&&!0}var xb=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Cb=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function wb(e,t,n){var r=e[n];xb(t)&&xb(r)?Sb(r,t):e[n]=t}function Sb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)}("5.3.11"+n+$b[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):c,d=r.displayName,f=void 0===d?function(e){return yb(e)?"styled."+e:"Styled("+bh(e)+")"}(n):d,p=r.displayName&&r.componentId?bb(r.displayName)+"-"+r.componentId:r.componentId||u,m=i&&n.attrs?Array.prototype.concat(n.attrs,s).filter(Boolean):s,g=r.shouldForwardProp;i&&n.shouldForwardProp&&(g=r.shouldForwardProp?function(e,t,o){return n.shouldForwardProp(e,t,o)&&r.shouldForwardProp(e,t,o)}:n.shouldForwardProp);var v,h=new Yh(o,p,i?n.componentStyle:void 0),b=h.isStatic&&0===s.length,y=function(t,n){return function(t,n,r,o){var i=t.attrs,a=t.componentStyle,l=t.defaultProps,s=t.foldedComponentIds,c=t.shouldForwardProp,u=t.styledComponentId,d=t.target,f=function(e,t,n){void 0===e&&(e=vh);var r=fh({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in hh(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(function(e,t,n){return void 0===n&&(n=vh),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,e.useContext)(Eb),l)||vh,n,i),p=f[0],m=f[1],g=function(t,n,r){var o=ob(),i=(0,e.useContext)(tb)||rb;return n?t.generateAndInjectStyles(vh,o,i):t.generateAndInjectStyles(r,o,i)}(a,o,p),v=r,h=m.$as||n.$as||m.as||n.as||d,b=yb(h),y=m!==n?fh({},n,{},m):n,x={};for(var C in y)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?x.as=y[C]:(c?c(C,ch,h):!b||ch(C))&&(x[C]=y[C]));return n.style&&m.style!==n.style&&(x.style=fh({},n.style,{},m.style)),x.className=Array.prototype.concat(s,u,g!==u?g:null,n.className,m.className).filter(Boolean).join(" "),x.ref=v,(0,e.createElement)(h,x)}(v,t,n,b)};return y.displayName=f,(v=t().forwardRef(y)).attrs=m,v.componentStyle=h,v.displayName=f,v.shouldForwardProp=g,v.foldedComponentIds=i?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):gh,v.styledComponentId=p,v.target=i?n.target:n,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(yb(e)?e:bb(bh(e)));return kb(e,fh({},n,{attrs:m,componentId:i}),o)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Sb({},n.defaultProps,e):e}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),a&&dh()(v,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Ob=function(e){return function e(t,n,r){if(void 0===r&&(r=vh),!(0,oe.isValidElementType)(n))return Sh(1,String(n));var o=function(){return t(n,r,gb.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,fh({},r,{},o))},o.attrs=function(o){return e(t,n,fh({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(kb,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ob[e]=Ob(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Kh(e),_h.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,n,r){var o=r(pb(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,n,r){e>2&&_h.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Fh();return""},this.getStyleTags=function(){return e.sealed?Sh(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return Sh(2);var r=((n={})[xh]="",n["data-styled-version"]="5.3.11",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=Fh();return o&&(r.nonce=o),[t().createElement("style",fh({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new _h({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Sh(2):t().createElement(ib,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Sh(3)}}();const Ib=Ob,jb=t().createContext({}),Pb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var Mb=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Pb}))};const Rb=e.forwardRef(Mb),Nb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var Ab=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Nb}))};const Fb=e.forwardRef(Ab),Tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var zb=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Tb}))};const Bb=e.forwardRef(zb);var Lb=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.style,i=t.className,a=t.duration,l=void 0===a?4.5:a,s=t.showProgress,c=t.pauseOnHover,u=void 0===c||c,d=t.eventKey,f=t.content,p=t.closable,m=t.closeIcon,g=void 0===m?"x":m,v=t.props,h=t.onClick,b=t.onNoticeClose,y=t.times,x=t.hovering,C=X(e.useState(!1),2),w=C[0],S=C[1],E=X(e.useState(0),2),$=E[0],k=E[1],O=X(e.useState(0),2),I=O[0],j=O[1],P=x||w,M=l>0&&s,R=function(){b(d)};e.useEffect((function(){if(!P&&l>0){var e=Date.now()-I,t=setTimeout((function(){R()}),1e3*l-I);return function(){u&&clearTimeout(t),j(Date.now()-e)}}}),[l,P,y]),e.useEffect((function(){if(!P&&M&&(u||0===I)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+I-t,o=Math.min(r/(1e3*l),1);k(100*o),o<1&&n()}))}(),function(){u&&cancelAnimationFrame(e)}}}),[l,I,P,M,y]);var N=e.useMemo((function(){return"object"===z(p)&&null!==p?p:p?{closeIcon:g}:{}}),[p,g]),F=xf(N,!0),B=100-(!$||$<0?0:$>100?100:$),H="".concat(r,"-notice");return e.createElement("div",T({},v,{ref:n,className:A()(H,i,L({},"".concat(H,"-closable"),p)),style:o,onMouseEnter:function(e){var t;S(!0),null==v||null===(t=v.onMouseEnter)||void 0===t||t.call(v,e)},onMouseLeave:function(e){var t;S(!1),null==v||null===(t=v.onMouseLeave)||void 0===t||t.call(v,e)},onClick:h}),e.createElement("div",{className:"".concat(H,"-content")},f),p&&e.createElement("a",T({tabIndex:0,className:"".concat(H,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==pp.ENTER||R()},"aria-label":"Close"},F,{onClick:function(e){e.preventDefault(),e.stopPropagation(),R()}}),N.closeIcon),M&&e.createElement("progress",{className:"".concat(H,"-progress"),max:"100",value:B},B+"%"))}));const Hb=Lb;var Db=t().createContext({});const _b=function(e){var n=e.children,r=e.classNames;return t().createElement(Db.Provider,{value:{classNames:r}},n)};var Vb=["className","style","classNames","styles"];const Wb=function(n){var r,o,i,a,l,s=n.configList,c=n.placement,u=n.prefixCls,d=n.className,f=n.style,p=n.motion,m=n.onAllNoticeRemoved,g=n.onNoticeClose,v=n.stack,h=(0,e.useContext)(Db).classNames,b=(0,e.useRef)({}),y=X((0,e.useState)(null),2),x=y[0],C=y[1],w=X((0,e.useState)([]),2),S=w[0],E=w[1],$=s.map((function(e){return{config:e,key:String(e.key)}})),k=X((l={offset:8,threshold:3,gap:16},(r=v)&&"object"===z(r)&&(l.offset=null!==(o=r.offset)&&void 0!==o?o:8,l.threshold=null!==(i=r.threshold)&&void 0!==i?i:3,l.gap=null!==(a=r.gap)&&void 0!==a?a:16),[!!r,l]),2),O=k[0],I=k[1],j=I.offset,P=I.threshold,M=I.gap,R=O&&(S.length>0||$.length<=P),N="function"==typeof p?p(c):p;return(0,e.useEffect)((function(){O&&S.length>1&&E((function(e){return e.filter((function(e){return $.some((function(t){var n=t.key;return e===n}))}))}))}),[S,$,O]),(0,e.useEffect)((function(){var e,t;O&&b.current[null===(e=$[$.length-1])||void 0===e?void 0:e.key]&&C(b.current[null===(t=$[$.length-1])||void 0===t?void 0:t.key])}),[$,O]),t().createElement(Un,T({key:c,className:A()(u,"".concat(u,"-").concat(c),null==h?void 0:h.list,d,L(L({},"".concat(u,"-stack"),!!O),"".concat(u,"-stack-expanded"),R)),style:f,keys:$,motionAppear:!0},N,{onAllRemoved:function(){m(c)}}),(function(e,n){var r=e.config,o=e.className,i=e.style,a=e.index,l=r,s=l.key,d=l.times,f=String(s),p=r,m=p.className,v=p.style,y=p.classNames,C=p.styles,w=_(p,Vb),k=$.findIndex((function(e){return e.key===f})),I={};if(O){var P=$.length-1-(k>-1?k:a-1),N="top"===c||"bottom"===c?"-50%":"0";if(P>0){var F,z,B;I.height=R?null===(F=b.current[f])||void 0===F?void 0:F.offsetHeight:null==x?void 0:x.offsetHeight;for(var L=0,H=0;H-1?b.current[f]=e:delete b.current[f]},prefixCls:u,classNames:y,styles:C,className:A()(m,null==h?void 0:h.notice),style:v,times:d,key:s,eventKey:s,onNoticeClose:g,hovering:O&&S.length>0})))}))};var qb=e.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-notification":r,i=t.container,a=t.motion,l=t.maxCount,s=t.className,c=t.style,u=t.onAllRemoved,d=t.stack,f=t.renderNotifications,p=X(e.useState([]),2),m=p[0],g=p[1],v=function(e){var t,n=m.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),g((function(t){return t.filter((function(t){return t.key!==e}))}))};e.useImperativeHandle(n,(function(){return{open:function(e){g((function(t){var n,r=ye(t),o=r.findIndex((function(t){return t.key===e.key})),i=D({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){v(e)},destroy:function(){g([])}}}));var h=X(e.useState({}),2),b=h[0],y=h[1];e.useEffect((function(){var e={};m.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[m]);var x=function(e){y((function(t){var n=D({},t);return(n[e]||[]).length||delete n[e],n}))},C=e.useRef(!1);if(e.useEffect((function(){Object.keys(b).length>0?C.current=!0:C.current&&(null==u||u(),C.current=!1)}),[b]),!i)return null;var w=Object.keys(b);return(0,K.createPortal)(e.createElement(e.Fragment,null,w.map((function(t){var n=b[t],r=e.createElement(Wb,{key:t,configList:n,placement:t,prefixCls:o,className:null==s?void 0:s(t),style:null==c?void 0:c(t),motion:a,onNoticeClose:v,onAllNoticeRemoved:x,stack:d});return f?f(r,{prefixCls:o,key:t}):r}))),i)}));const Gb=qb;var Xb=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Kb=function(){return document.body},Ub=0;const Yb=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Wa("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Wa("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Wa("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Wa("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},Qb=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Zb={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Jb=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},ey=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},Jb(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},ey(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Qb.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Zb[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},ny=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:h,lineHeight:b,width:y,notificationIconSize:x,colorText:C}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[w]:{padding:p,width:y,maxWidth:`calc(100vw - ${Ri(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:h,color:C},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:h},[`${w}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},pl(e)),[`${w}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ri(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},ry=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Wa("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ul(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},ny(e))}}]},oy=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384}),iy=e=>{const t=e.paddingMD,n=e.paddingLG;return nl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ri(e.paddingMD)} ${Ri(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},ay=ys("Notification",(e=>{const t=iy(e);return[ry(t),Yb(t),ty(t)]}),oy),ly=Cs(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=iy(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},ny(n)),{width:n.width,maxWidth:`calc(100vw - ${Ri(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),oy);function sy(t,n){return null===n||!1===n?null:n||e.createElement(Sv,{className:`${t}-close-icon`})}const cy={success:Rb,info:Bb,error:cf,warning:Fb},uy=t=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,btn:l,role:s="alert"}=t;let c=null;return r?c=e.createElement("span",{className:`${n}-icon`},r):o&&(c=e.createElement(cy[o]||null,{className:A()(`${n}-icon`,`${n}-icon-${o}`)})),e.createElement("div",{className:A()({[`${n}-with-icon`]:c}),role:s},c,e.createElement("div",{className:`${n}-message`},i),e.createElement("div",{className:`${n}-description`},a),l&&e.createElement("div",{className:`${n}-btn`},l))};const dy=e=>{let{children:n,prefixCls:r}=e;const o=pf(r),[i,a,l]=ay(r,o);return i(t().createElement(_b,{classNames:{list:A()(a,l,o)}},n))},fy=(e,n)=>{let{prefixCls:r,key:o}=n;return t().createElement(dy,{prefixCls:r,key:o},e)},py=t().forwardRef(((n,r)=>{const{top:o,bottom:i,prefixCls:a,getContainer:l,maxCount:s,rtl:c,onAllRemoved:u,stack:d,duration:f,pauseOnHover:p=!0,showProgress:m}=n,{getPrefixCls:g,getPopupContainer:v,notification:h,direction:b}=(0,e.useContext)(ai),[,y]=bs(),x=a||g("notification"),[C,w]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getContainer,r=void 0===n?Kb:n,o=t.motion,i=t.prefixCls,a=t.maxCount,l=t.className,s=t.style,c=t.onAllRemoved,u=t.stack,d=t.renderNotifications,f=_(t,Xb),p=X(e.useState(),2),m=p[0],g=p[1],v=e.useRef(),h=e.createElement(Gb,{container:m,ref:v,prefixCls:i,motion:o,maxCount:a,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),b=X(e.useState([]),2),y=b[0],x=b[1],C=e.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;rfunction(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=o?o:24,null!=i?i:24),className:()=>A()({[`${x}-rtl`]:null!=c?c:"rtl"===b}),motion:()=>function(e){return{motionName:`${e}-fade`}}(x),closable:!0,closeIcon:sy(x),duration:null!=f?f:4.5,getContainer:()=>(null==l?void 0:l())||(null==v?void 0:v())||document.body,maxCount:s,pauseOnHover:p,showProgress:m,onAllRemoved:u,renderNotifications:fy,stack:!1!==d&&{threshold:"object"==typeof d?null==d?void 0:d.threshold:void 0,offset:8,gap:y.margin}});return t().useImperativeHandle(r,(()=>Object.assign(Object.assign({},C),{prefixCls:x,notification:h}))),w}));function my(e){const n=t().useRef(null),r=(nc(),t().useMemo((()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,s=`${a}-notice`,{message:c,description:u,icon:d,type:f,btn:p,className:m,style:g,role:v="alert",closeIcon:h,closable:b}=r,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[r,t().createElement(py,Object.assign({key:"notification-holder"},e,{ref:n}))]}let gy=null,vy=e=>e(),hy=[],by={};function yy(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=by,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const xy=t().forwardRef(((n,r)=>{const{notificationConfig:o,sync:i}=n,{getPrefixCls:a}=(0,e.useContext)(ai),l=by.prefixCls||a("notification"),s=(0,e.useContext)(jb),[c,u]=my(Object.assign(Object.assign(Object.assign({},o),{prefixCls:l}),s.notification));return t().useEffect(i,[]),t().useImperativeHandle(r,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return i(),c[t].apply(c,arguments)}})),{instance:e,sync:i}})),u})),Cy=t().forwardRef(((e,n)=>{const[r,o]=t().useState(yy),i=()=>{o(yy)};t().useEffect(i,[]);const a=hg(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=t().createElement(xy,{ref:n,sync:i,notificationConfig:r});return t().createElement(xg,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}));function wy(){if(!gy){const e=document.createDocumentFragment(),n={fragment:e};return gy=n,void vy((()=>{qc()(t().createElement(Cy,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,wy())}))}}),e)}))}gy.instance&&(hy.forEach((e=>{switch(e.type){case"open":vy((()=>{gy.instance.open(Object.assign(Object.assign({},by),e.config))}));break;case"destroy":vy((()=>{null==gy||gy.instance.destroy(e.key)}))}})),hy=[])}function Sy(e){hg(),hy.push({type:"open",config:e}),wy()}const Ey={open:Sy,destroy:e=>{hy.push({type:"destroy",key:e}),wy()},config:function(e){by=Object.assign(Object.assign({},by),e),vy((()=>{var e;null===(e=null==gy?void 0:gy.sync)||void 0===e||e.call(gy)}))},useNotification:function(e){return my(e)},_InternalPanelDoNotUseOrYouWillBeFired:t=>{const{prefixCls:n,className:r,icon:o,type:i,message:a,description:l,btn:s,closable:c=!0,closeIcon:u,className:d}=t,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{Ey[e]=t=>Sy(Object.assign(Object.assign({},t),{type:e}))}));const $y=Ey;var ky=e.createContext(null);function Oy(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Iy(t){return Oy(e.useContext(ky),t)}var jy=["children","locked"],Py=e.createContext(null);function My(t){var n=t.children,r=t.locked,o=_(t,jy),i=e.useContext(Py),a=ie((function(){return e=o,t=D({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&Rr(e[1],t[1],!0))}));return e.createElement(Py.Provider,{value:a},n)}var Ry=[],Ny=e.createContext(null);function Ay(){return e.useContext(Ny)}var Fy=e.createContext(Ry);function Ty(t){var n=e.useContext(Fy);return e.useMemo((function(){return void 0!==t?[].concat(ye(n),[t]):n}),[n,t])}var zy=e.createContext(null);const By=e.createContext({});function Ly(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(lr(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Hy=pp.LEFT,Dy=pp.RIGHT,_y=pp.UP,Vy=pp.DOWN,Wy=pp.ENTER,qy=pp.ESC,Gy=pp.HOME,Xy=pp.END,Ky=[_y,Vy,Hy,Dy];function Uy(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ye(e.querySelectorAll("*")).filter((function(e){return Ly(e,t)}));return Ly(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Yy(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Uy(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Qy=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Oy(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var Zy="__RC_UTIL_PATH_SPLIT__",Jy=function(e){return e.join(Zy)},ex="rc-menu-more";function tx(t){var n=e.useRef(t);n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||v(!0),null==y?void 0:y(e)},g?null:e.createElement(My,{mode:a,locked:!p.current},e.createElement(Yn,T({visible:h},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(yx,{id:n,className:r,style:o},i)})))}var Ix=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],jx=["active"],Px=e.forwardRef((function(t,n){var r=t.style,o=t.className,i=t.title,a=t.eventKey,l=(t.warnKey,t.disabled),s=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,p=t.popupOffset,m=t.popupStyle,g=t.onClick,v=t.onMouseEnter,h=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,x=t.onTitleMouseLeave,C=_(t,Ix),w=Iy(a),S=e.useContext(Py),E=S.prefixCls,$=S.mode,k=S.openKeys,O=S.disabled,I=S.overflowDisabled,j=S.activeKey,P=S.selectedKeys,M=S.itemIcon,R=S.expandIcon,N=S.onItemClick,F=S.onOpenChange,z=S.onActive,B=e.useContext(By)._internalRenderSubMenuItem,H=e.useContext(zy).isSubPathKey,V=Ty(),W="".concat(E,"-submenu"),q=O||l,G=e.useRef(),K=e.useRef(),U=null!=u?u:M,Y=null!=d?d:R,Q=k.includes(a),Z=!I&&Q,J=H(P,a),ee=ox(a,q,y,x),te=ee.active,ne=_(ee,jx),re=X(e.useState(!1),2),oe=re[0],ie=re[1],ae=function(e){q||ie(e)},le=e.useMemo((function(){return te||"inline"!==$&&(oe||H([j],a))}),[$,te,j,oe,a,H]),se=ix(V.length),ce=tx((function(e){null==g||g(sx(e)),N(e)})),ue=w&&"".concat(w,"-popup"),de=e.createElement("div",T({role:"menuitem",style:se,className:"".concat(W,"-title"),tabIndex:q?null:-1,ref:G,title:"string"==typeof i?i:null,"data-menu-id":I&&w?null:w,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":q,onClick:function(e){q||(null==b||b({key:a,domEvent:e}),"inline"===$&&F(a,!Q))},onFocus:function(){z(a)}},ne),i,e.createElement(ax,{icon:"horizontal"!==$?Y:void 0,props:D(D({},t),{},{isOpen:Z,isSubMenu:!0})},e.createElement("i",{className:"".concat(W,"-arrow")}))),fe=e.useRef($);if("inline"!==$&&V.length>1?fe.current="vertical":fe.current=$,!I){var pe=fe.current;de=e.createElement(kx,{mode:pe,prefixCls:W,visible:!s&&Z&&"inline"!==$,popupClassName:f,popupOffset:p,popupStyle:m,popup:e.createElement(My,{mode:"horizontal"===pe?"vertical":pe},e.createElement(yx,{id:ue,ref:K},c)),disabled:q,onVisibleChange:function(e){"inline"!==$&&F(a,e)}},de)}var me=e.createElement(Ap.Item,T({ref:n,role:"none"},C,{component:"li",style:r,className:A()(W,"".concat(W,"-").concat($),o,L(L(L(L({},"".concat(W,"-open"),Z),"".concat(W,"-active"),le),"".concat(W,"-selected"),J),"".concat(W,"-disabled"),q)),onMouseEnter:function(e){ae(!0),null==v||v({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==h||h({key:a,domEvent:e})}}),de,!I&&e.createElement(Ox,{id:ue,open:Z,keyPath:V},c));return B&&(me=B(me,t,{selected:J,active:le,open:Z,disabled:q})),e.createElement(My,{onItemClick:ce,mode:"horizontal"===$?"vertical":$,itemIcon:U,expandIcon:Y},me)}));const Mx=e.forwardRef((function(t,n){var r,o=t.eventKey,i=t.children,a=Ty(o),l=xx(i,a),s=Ay();return e.useEffect((function(){if(s)return s.registerPath(o,a),function(){s.unregisterPath(o,a)}}),[a]),r=s?l:e.createElement(Px,T({ref:n},t),l),e.createElement(Fy.Provider,{value:a},r)}));function Rx(t){var n=t.className,r=t.style,o=e.useContext(Py).prefixCls;return Ay()?null:e.createElement("li",{role:"separator",className:A()("".concat(o,"-item-divider"),n),style:r})}var Nx=["className","title","eventKey","children"],Ax=e.forwardRef((function(t,n){var r=t.className,o=t.title,i=(t.eventKey,t.children),a=_(t,Nx),l=e.useContext(Py).prefixCls,s="".concat(l,"-item-group");return e.createElement("li",T({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:A()(s,r)}),e.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))}));const Fx=e.forwardRef((function(t,n){var r=t.eventKey,o=xx(t.children,Ty(r));return Ay()?o:e.createElement(Ax,T({ref:n},Uo(t,["warnKey"])),o)}));var Tx=["label","children","key","type","extra"];function zx(t,n,r){var o=n.item,i=n.group,a=n.submenu,l=n.divider;return(t||[]).map((function(t,s){if(t&&"object"===z(t)){var c=t,u=c.label,d=c.children,f=c.key,p=c.type,m=c.extra,g=_(c,Tx),v=null!=f?f:"tmp-".concat(s);return d||"group"===p?"group"===p?e.createElement(i,T({key:v},g,{title:u}),zx(d,n,r)):e.createElement(a,T({key:v},g,{title:u}),zx(d,n,r)):"divider"===p?e.createElement(l,T({key:v},g)):e.createElement(o,T({key:v},g,{extra:m}),u,(!!m||0===m)&&e.createElement("span",{className:"".concat(r,"-item-extra")},m))}return null})).filter((function(e){return e}))}function Bx(e,t,n,r,o){var i=e,a=D({divider:Rx,item:gx,group:Fx,submenu:Mx},r);return t&&(i=zx(t,a,o)),xx(i,n)}var Lx=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Hx=[],Dx=e.forwardRef((function(t,n){var r,o=t,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,m=o.direction,g=o.id,v=o.mode,h=void 0===v?"vertical":v,b=o.inlineCollapsed,y=o.disabled,x=o.disabledOverflow,C=o.subMenuOpenDelay,w=void 0===C?.1:C,S=o.subMenuCloseDelay,E=void 0===S?.1:S,$=o.forceSubMenuRender,k=o.defaultOpenKeys,O=o.openKeys,I=o.activeKey,j=o.defaultActiveFirst,P=o.selectable,M=void 0===P||P,R=o.multiple,N=void 0!==R&&R,F=o.defaultSelectedKeys,z=o.selectedKeys,B=o.onSelect,H=o.onDeselect,V=o.inlineIndent,W=void 0===V?24:V,q=o.motion,G=o.defaultMotions,U=o.triggerSubMenuAction,Y=void 0===U?"hover":U,Q=o.builtinPlacements,Z=o.itemIcon,J=o.expandIcon,ee=o.overflowedIndicator,te=void 0===ee?"...":ee,ne=o.overflowedIndicatorPopupClassName,re=o.getPopupContainer,oe=o.onClick,ie=o.onOpenChange,ae=o.onKeyDown,le=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ce=o._internalComponents,ue=_(o,Lx),de=X(e.useMemo((function(){return[Bx(p,f,Hx,ce,a),Bx(p,f,Hx,{},a)]}),[p,f,ce]),2),fe=de[0],pe=de[1],me=X(e.useState(!1),2),ge=me[0],ve=me[1],he=e.useRef(),be=function(t){var n=X(qt(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){rx+=1;var e="".concat(nx,"-").concat(rx);o("rc-menu-uuid-".concat(e))}),[]),r}(g),xe="rtl"===m,Ce=qt(k,{value:O,postState:function(e){return e||Hx}}),we=X(Ce,2),Se=we[0],Ee=we[1],$e=function(e){function t(){Ee(e),null==ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,K.flushSync)(t):t()},ke=X(e.useState(Se),2),Oe=ke[0],Ie=ke[1],je=e.useRef(!1),Pe=X(e.useMemo((function(){return"inline"!==h&&"vertical"!==h||!b?[h,!1]:["vertical",b]}),[h,b]),2),Me=Pe[0],Re=Pe[1],Ne="inline"===Me,Ae=X(e.useState(Me),2),Fe=Ae[0],Te=Ae[1],ze=X(e.useState(Re),2),Be=ze[0],Le=ze[1];e.useEffect((function(){Te(Me),Le(Re),je.current&&(Ne?Ee(Oe):$e(Hx))}),[Me,Re]);var He=X(e.useState(0),2),De=He[0],_e=He[1],Ve=De>=fe.length-1||"horizontal"!==Fe||x;e.useEffect((function(){Ne&&Ie(Se)}),[Se]),e.useEffect((function(){return je.current=!0,function(){je.current=!1}}),[]);var We=function(){var t=X(e.useState({}),2)[1],n=(0,e.useRef)(new Map),r=(0,e.useRef)(new Map),o=X(e.useState([]),2),i=o[0],a=o[1],l=(0,e.useRef)(0),s=(0,e.useRef)(!1),c=(0,e.useCallback)((function(e,o){var i=Jy(o);r.current.set(i,e),n.current.set(e,i),l.current+=1;var a,c=l.current;a=function(){c===l.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),u=(0,e.useCallback)((function(e,t){var o=Jy(t);r.current.delete(o),n.current.delete(e)}),[]),d=(0,e.useCallback)((function(e){a(e)}),[]),f=(0,e.useCallback)((function(e,t){var r=(n.current.get(e)||"").split(Zy);return t&&i.includes(r[0])&&r.unshift(ex),r}),[i]),p=(0,e.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,e.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Zy),o=new Set;return ye(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return e.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:c,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=ye(n.current.keys());return i.length&&e.push(ex),e},getSubPathKeys:m}}(),qe=We.registerPath,Ge=We.unregisterPath,Xe=We.refreshOverflowKeys,Ke=We.isSubPathKey,Ue=We.getKeyPath,Ye=We.getKeys,Qe=We.getSubPathKeys,Ze=e.useMemo((function(){return{registerPath:qe,unregisterPath:Ge}}),[qe,Ge]),Je=e.useMemo((function(){return{isSubPathKey:Ke}}),[Ke]);e.useEffect((function(){Xe(Ve?Hx:fe.slice(De+1).map((function(e){return e.key})))}),[De,Ve]);var et=X(qt(I||j&&(null===(r=fe[0])||void 0===r?void 0:r.key),{value:I}),2),tt=et[0],nt=et[1],rt=tx((function(e){nt(e)})),ot=tx((function(){nt(void 0)}));(0,e.useImperativeHandle)(n,(function(){return{list:he.current,focus:function(e){var t,n,r=Ye(),o=Qy(r,be),i=o.elements,a=o.key2element,l=o.element2key,s=Uy(he.current,i),c=null!=tt?tt:s[0]?l.get(s[0]):null===(t=fe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var it=qt(F||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?Hx:[e]}}),at=X(it,2),lt=at[0],st=at[1],ct=tx((function(e){null==oe||oe(sx(e)),function(e){if(M){var t,n=e.key,r=lt.includes(n);t=N?r?lt.filter((function(e){return e!==n})):[].concat(ye(lt),[n]):[n],st(t);var o=D(D({},e),{},{selectedKeys:t});r?null==H||H(o):null==B||B(o)}!N&&Se.length&&"inline"!==Fe&&$e(Hx)}(e)})),ut=tx((function(e,t){var n=Se.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Fe){var r=Qe(e);n=n.filter((function(e){return!r.has(e)}))}Rr(Se,n,!0)||$e(n,!0)})),dt=function(t,n,r,o,i,a,l,s,c,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){Rn.cancel(d.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(Ky,[Wy,qy,Gy,Xy]).includes(m)){var g=a(),v=Qy(g,o),h=v,b=h.elements,y=h.key2element,x=h.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),w=x.get(C),S=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===Wy)return{inlineTrigger:!0};var c=L(L({},_y,i),Vy,a),u=L(L(L(L({},Hy,n?a:i),Dy,n?i:a),Vy,l),Wy,l),d=L(L(L(L(L(L({},_y,i),Vy,a),Wy,l),qy,s),Hy,n?l:s),Dy,n?s:l);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(t,1===l(w,!0).length,r,m);if(!S&&m!==Gy&&m!==Xy)return;(Ky.includes(m)||[Gy,Xy].includes(m))&&e.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);s(r),p(),d.current=Rn((function(){f.current===r&&t.focus()}))}};if([Gy,Xy].includes(m)||S.sibling||!C){var $,k,O=Uy($=C&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,b);k=m===Gy?O[0]:m===Xy?O[O.length-1]:Yy($,b,C,S.offset),E(k)}else if(S.inlineTrigger)c(w);else if(S.offset>0)c(w,!0),p(),d.current=Rn((function(){v=Qy(g,o);var e=C.getAttribute("aria-controls"),t=Yy(document.getElementById(e),v.elements);E(t)}),5);else if(S.offset<0){var I=l(w,!0),j=I[I.length-2],P=y.get(j);c(j,!1),E(P)}}null==u||u(e)}}(Fe,tt,xe,be,he,Ye,Ue,nt,(function(e,t){var n=null!=t?t:!Se.includes(e);ut(e,n)}),ae);e.useEffect((function(){ve(!0)}),[]);var ft=e.useMemo((function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:se}}),[le,se]),pt="horizontal"!==Fe||x?fe:fe.map((function(t,n){return e.createElement(My,{key:t.key,overflowDisabled:n>De},t)})),mt=e.createElement(Ap,T({id:g,ref:he,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:gx,className:A()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Fe),c,L(L({},"".concat(a,"-inline-collapsed"),Be),"".concat(a,"-rtl"),xe),l),dir:m,style:s,role:"menu",tabIndex:d,data:pt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?fe.slice(-n):null;return e.createElement(Mx,{eventKey:ex,title:te,disabled:Ve,internalPopupClose:0===n,popupClassName:ne},r)},maxCount:"horizontal"!==Fe||x?Ap.INVALIDATE:Ap.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:dt},ue));return e.createElement(By.Provider,{value:ft},e.createElement(ky.Provider,{value:be},e.createElement(My,{prefixCls:a,rootClassName:l,mode:Fe,openKeys:Se,rtl:xe,disabled:y,motion:ge?q:null,defaultMotions:ge?G:null,activeKey:tt,onActive:rt,onInactive:ot,selectedKeys:lt,inlineIndent:W,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:$,builtinPlacements:Q,triggerSubMenuAction:Y,getPopupContainer:re,itemIcon:Z,expandIcon:J,onItemClick:ct,onOpenChange:ut},e.createElement(zy.Provider,{value:Je},mt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Ny.Provider,{value:Ze},pe)))))})),Vx=Dx;Vx.Item=gx,Vx.SubMenu=Mx,Vx.ItemGroup=Fx,Vx.Divider=Rx;const Wx=Vx,qx=e.createContext({}),Gx=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const Xx=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{className:r,children:o,icon:i,title:a,danger:l,extra:s}=t,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=e.useContext(Gx),{siderCollapsed:m}=e.useContext(qx);let g=a;void 0===a?g=u?o:"":!1===a&&(g="");const v={title:g};m||p||(v.title=null,v.open=!1);const h=_e(o).length;let b=e.createElement(gx,Object.assign({},Uo(t,["title","icon","danger"]),{className:A()({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?h+1:h)},r),title:"string"==typeof a?a:void 0}),Js(i,{className:A()(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),(t=>{const n=null==o?void 0:o[0],r=e.createElement("span",{className:A()(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||0===s})},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&u&&"string"==typeof n?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},n.charAt(0)):r})(p));return f||(b=e.createElement(jc,Object.assign({},v,{placement:"rtl"===d?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),b)),b};const Ux=e.createContext(null),Yx=e.forwardRef(((t,n)=>{const{children:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign({},i),o)),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(e){return ge(e)&&me(e)}(r),s=pe(n,l?ve(r):null);return e.createElement(Ux.Provider,{value:a},e.createElement(Ms,{space:!0},l?e.cloneElement(r,{ref:s}):r))})),Qx=Ux,Zx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Jx=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Ri(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},eC=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ri(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ri(n)})`}}}}},tC=e=>Object.assign({},fl(e)),nC=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:C,dangerItemColor:w,dangerItemHoverColor:S,dangerItemSelectedColor:E,dangerItemActiveBg:$,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:I,itemActiveBg:j,menuSubMenuBg:P,horizontalItemSelectedColor:M,horizontalItemSelectedBg:R,horizontalItemBorderRadius:N,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},tC(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},tC(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Ri(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ri(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ri(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(",")}}}}}},rC=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ri(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ri(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},oC=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,h={height:r,lineHeight:Ri(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},rC(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},rC(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Ri(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ri(e.calc(v).div(2).equal())} - ${Ri(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Ri(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},cl),{paddingInline:p})}}]},iC=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},aC=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ri(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ri(a)})`}}}}},lC=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ul(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ri(l)} ${Ri(s)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),iC(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ri(e.calc(r).mul(2).equal())} ${Ri(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},iC(e)),aC(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),aC(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ri(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ri(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ri(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ri(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ri(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},sC=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:w,controlHeightSM:S,fontSizeLG:E,colorTextLightSolid:$,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,j=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,P=new Sl($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:1.15*h+"px",iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:E,groupTitleFontSize:w,darkItemDisabledColor:new Sl($).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*j}px)`}},cC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=ys("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),C=nl(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=nl(C,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[lC(C),Jx(C),oC(C),nC(C,"light"),nC(w,"dark"),eC(C),Zx(C),_g(C,"slide-up"),_g(C,"slide-down"),yc(C,"zoom-big")]}),sC,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},uC=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext(Gx),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=Ty();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,Js(o,{className:A()(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:"",`${s}-item-icon`)}),t?i:e.createElement("span",{className:`${s}-title-content`},i))}else f=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${s}-title-content`},i);const p=e.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=Ts("Menu");return e.createElement(Gx.Provider,{value:p},e.createElement(Mx,Object.assign({},Uo(t,["icon"]),{title:f,popupClassName:A()(s,r,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:m},t.popupStyle)})))};function dC(e){return null===e||!1===e}const fC={item:Kx,submenu:uC,divider:Xx},pC=(0,e.forwardRef)(((t,n)=>{var r;const o=e.useContext(Qx),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=e.useContext(ai),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:h,siderCollapsed:b,rootClassName:y,mode:x,selectable:C,onClick:w,overflowedIndicatorPopupClassName:S}=t,E=Uo(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n;if("function"==typeof g||dC(g))return g||null;if("function"==typeof i.expandIcon||dC(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||dC(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const r=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return Js(r,{className:A()(`${P}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,P]),B=e.useMemo((()=>({prefixCls:P,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:m,mode:k,disableMenuItemTitleTooltip:v})),[P,I,s,v,m]);return R(e.createElement(Qx.Provider,{value:null},e.createElement(Gx.Provider,{value:B},e.createElement(Wx,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(Uv,null),overflowedIndicatorPopupClassName:A()(P,`${P}-${m}`,S),mode:k,selectable:O,onClick:$},E,{inlineCollapsed:I,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:T,prefixCls:P,direction:s,defaultMotions:j,expandIcon:z,ref:n,rootClassName:A()(y,N,i.rootClassName,F,M),_internalComponents:fC})))))})),mC=pC,gC=(0,e.forwardRef)(((t,n)=>{const r=(0,e.useRef)(null),o=e.useContext(qx);return(0,e.useImperativeHandle)(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(mC,Object.assign({ref:r},t,o))}));gC.Item=Kx,gC.SubMenu=uC,gC.Divider=Xx,gC.ItemGroup=Fx;const vC=gC,hC=e=>e?"function"==typeof e?e():e:null,bC=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},ul(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},Xs(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},yC=e=>{const{componentCls:t}=e;return{[t]:xc.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},xC=ys("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=nl(e,{popoverBg:t,popoverColor:n});return[bC(r),yC(r),yc(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Vs(e)),qs({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const CC=t=>{let{title:n,content:r,prefixCls:o}=t;return n||r?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},n),r&&e.createElement("div",{className:`${o}-inner-content`},r)):null},wC=t=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:s,children:c}=t,u=hC(l),d=hC(s),f=A()(n,r,`${r}-pure`,`${r}-placement-${a}`,o);return e.createElement("div",{className:f,style:i},e.createElement("div",{className:`${r}-arrow`}),e.createElement(F,Object.assign({},t,{className:n,prefixCls:r}),c||e.createElement(CC,{prefixCls:r,title:u,content:d})))},SC=t=>{const{prefixCls:n,className:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var r,o,i,a,l,s;const{prefixCls:c,title:u,content:d,overlayClassName:f,placement:p="top",trigger:m="hover",children:g,mouseEnterDelay:v=.1,mouseLeaveDelay:h=.1,onOpenChange:b,overlayStyle:y={},styles:x,classNames:C}=t,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{N(e,!0),null==b||b(e,t)},T=hC(u),z=hC(d);return k(e.createElement(jc,Object.assign({placement:p,trigger:m,mouseEnterDelay:v,mouseLeaveDelay:h},w,{prefixCls:$,classNames:{root:P,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},null===(l=null==S?void 0:S.styles)||void 0===l?void 0:l.root),null==S?void 0:S.style),y),null==x?void 0:x.root),body:Object.assign(Object.assign({},null===(s=null==S?void 0:S.styles)||void 0===s?void 0:s.body),null==x?void 0:x.body)},ref:n,open:R,onOpenChange:e=>{F(e)},overlay:T||z?e.createElement(CC,{prefixCls:$,title:T,content:z}):null,transitionName:Ds(j,"zoom-big",w.transitionName),"data-popover-inject":!0}),Js(g,{onKeyDown:t=>{var n,r;e.isValidElement(g)&&(null===(r=null==g?void 0:(n=g.props).onKeyDown)||void 0===r||r.call(n,t)),(e=>{e.keyCode===pp.ESC&&F(!1,e)})(t)}})))})),$C=EC;$C._InternalPanelDoNotUseOrYouWillBeFired=SC;const kC=$C;function OC(e){return!!(null==e?void 0:e.then)}const IC=t=>{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,f=e.useRef(!1),p=e.useRef(null),[m,g]=Vt(!1),v=function(){null==a||a.apply(void 0,arguments)};return e.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})}))),()=>{e&&clearTimeout(e)}}),[]),e.createElement(Cd,Object.assign({},ou(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void v();let t;if(s){if(t=d(e),u&&!OC(t))return f.current=!1,void v(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!OC(t))return void v();(e=>{OC(e)&&(g(!0),e.then((function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:m,prefixCls:o},i,{ref:p}),r)},jC=ys("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const PC=t=>{const{prefixCls:n,okButtonProps:r,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:s,okType:c="primary",icon:u=e.createElement(Fb,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=t,{getPrefixCls:v}=e.useContext(ai),[h]=wg("Popconfirm",Zm.Popconfirm),b=hC(i),y=hC(a);return e.createElement("div",{className:`${n}-inner-content`,onClick:g},e.createElement("div",{className:`${n}-message`},u&&e.createElement("span",{className:`${n}-message-icon`},u),e.createElement("div",{className:`${n}-message-text`},b&&e.createElement("div",{className:`${n}-title`},b),y&&e.createElement("div",{className:`${n}-description`},y))),e.createElement("div",{className:`${n}-buttons`},d&&e.createElement(Cd,Object.assign({onClick:m,size:"small"},o),l||(null==h?void 0:h.cancelText)),e.createElement(IC,{buttonProps:Object.assign(Object.assign({size:"small"},ou(c)),r),actionFn:p,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==h?void 0:h.okText))))};const MC=e.forwardRef(((t,n)=>{var r,o,i,a,l,s;const{prefixCls:c,placement:u="top",trigger:d="click",okType:f="primary",icon:p=e.createElement(Fb,null),children:m,overlayClassName:g,onOpenChange:v,onVisibleChange:h,overlayStyle:b,styles:y,classNames:x}=t,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{$(e,!0),null==h||h(e),null==v||v(e,t)},O=w("popconfirm",c),I=A()(O,g,null===(i=null==S?void 0:S.classNames)||void 0===i?void 0:i.root,null==x?void 0:x.root),j=A()(null===(a=null==S?void 0:S.classNames)||void 0===a?void 0:a.body,null==x?void 0:x.body),[P]=jC(O);return P(e.createElement(kC,Object.assign({},Uo(C,["title"]),{trigger:d,placement:u,onOpenChange:(e,n)=>{const{disabled:r=!1}=t;r||k(e,n)},open:E,ref:n,classNames:{root:I,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},null===(l=null==S?void 0:S.styles)||void 0===l?void 0:l.root),null==S?void 0:S.style),b),null==y?void 0:y.root),body:Object.assign(Object.assign({},null===(s=null==S?void 0:S.styles)||void 0===s?void 0:s.body),null==y?void 0:y.body)},content:e.createElement(PC,Object.assign({okType:f,icon:p},t,{prefixCls:O,close:e=>{k(!1,e)},onConfirm:e=>{var n;return null===(n=t.onConfirm)||void 0===n?void 0:n.call(void 0,e)},onCancel:e=>{var n;k(!1,e),null===(n=t.onCancel)||void 0===n||n.call(void 0,e)}})),"data-popover-inject":!0}),m))})),RC=MC;RC._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,placement:r,className:o,style:i}=t,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},XC=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ng},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fg},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ag},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Tg}}},Xs(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ul(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},pl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ri(c)} ${Ri(m)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Ri(c)} ${Ri(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},pl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ri(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Ri(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[_g(e,"slide-up"),_g(e,"slide-down"),Yg(e,"move-up"),Yg(e,"move-down"),yc(e,"zoom-big")]]},KC=ys("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=nl(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[XC(i),GC(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},qs({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Vs(e))),{resetStyle:!1}),UC=t=>{var n;const{menu:r,arrow:o,prefixCls:i,children:a,trigger:l,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:g,visible:v,onVisibleChange:h,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:C="",overlay:w,transitionName:S}=t,{getPopupContainer:E,getPrefixCls:$,direction:k,dropdown:O}=e.useContext(ai);nc();const I=e.useMemo((()=>{const e=$();return void 0!==S?S:C.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[$,C,S]),j=e.useMemo((()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===k?"bottomRight":"bottomLeft"),[C,k]),P=$("dropdown",i),M=pf(P),[R,N,F]=KC(P,M),[,T]=bs(),z=e.Children.only("object"!=typeof(U=a)&&"function"!=typeof U||null===U?e.createElement("span",null,a):a),B=Js(z,{className:A()(`${P}-trigger`,{[`${P}-rtl`]:"rtl"===k},z.props.className),disabled:null!==(n=z.props.disabled)&&void 0!==n?n:s}),L=s?[]:l,H=!!(null==L?void 0:L.includes("contextMenu")),[D,_]=qt(!1,{value:null!=m?m:v}),V=Nt((e=>{null==g||g(e,{source:"trigger"}),null==h||h(e),_(e)})),W=A()(d,f,N,F,M,null==O?void 0:O.className,{[`${P}-rtl`]:"rtl"===k}),q=Qs({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:x,offset:T.marginXXS,arrowWidth:o?T.sizePopupArrow:0,borderRadius:T.borderRadius}),G=e.useCallback((()=>{(null==r?void 0:r.selectable)&&(null==r?void 0:r.multiple)||(null==g||g(!1,{source:"menu"}),_(!1))}),[null==r?void 0:r.selectable,null==r?void 0:r.multiple]),[X,K]=Ts("Dropdown",null==p?void 0:p.zIndex);var U;let Y=e.createElement(qC,Object.assign({alignPoint:H},Uo(t,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:D,builtinPlacements:q,arrow:!!o,overlayClassName:W,prefixCls:P,getPopupContainer:u||E,transitionName:I,trigger:L,overlay:()=>{let t;return t=(null==r?void 0:r.items)?e.createElement(vC,Object.assign({},r)):"function"==typeof w?w():w,c&&(t=c(t)),t=e.Children.only("string"==typeof t?e.createElement("span",null,t):t),e.createElement(Yx,{prefixCls:`${P}-menu`,rootClassName:A()(F,M),expandIcon:e.createElement("span",{className:`${P}-menu-submenu-arrow`},e.createElement(TC,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:e=>{let{mode:t}=e}},t)},placement:j,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.style),p),{zIndex:X})}),B);return X&&(Y=e.createElement(Rs.Provider,{value:K},Y)),R(Y)},YC=Cg(UC,"align",void 0,"dropdown",(e=>e));UC._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(YC,Object.assign({},t),e.createElement("span",null));const QC=UC;function ZC(e){return["small","middle","large"].includes(e)}function JC(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const ew=t().createContext({latestIndex:0}),tw=ew.Provider,nw=t=>{let{className:n,index:r,children:o,split:i,style:a}=t;const{latestIndex:l}=e.useContext(ew);return null==o?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:a},o),r{var r,o,i;const{getPrefixCls:a,space:l,direction:s}=e.useContext(ai),{size:c=(null!==(r=null==l?void 0:l.size)&&void 0!==r?r:"small"),align:u,className:d,rootClassName:f,children:p,direction:m="horizontal",prefixCls:g,split:v,style:h,wrap:b=!1,classNames:y,styles:x}=t,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var r,o;null!=t&&(z=n);const i=(null==t?void 0:t.key)||`${T}-${n}`;return e.createElement(nw,{className:T,key:i,index:n,split:v,style:null!==(r=null==x?void 0:x.item)&&void 0!==r?r:null===(o=null==l?void 0:l.styles)||void 0===o?void 0:o.item},t)})),L=e.useMemo((()=>({latestIndex:z})),[z]);if(0===I.length)return null;const H={};return b&&(H.flexWrap="wrap"),!$&&O&&(H.columnGap=w),!E&&k&&(H.rowGap=S),M(e.createElement("div",Object.assign({ref:n,className:F,style:Object.assign(Object.assign(Object.assign({},H),null==l?void 0:l.style),h)},C),e.createElement(tw,{value:L},B)))})),ow=rw;ow.Compact=t=>{const{getPrefixCls:n,direction:r}=e.useContext(ai),{size:o,direction:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=t,d=ks(t,["size","direction","block","prefixCls","className","rootClassName","children"]),f=di((e=>null!=o?o:e)),p=n("space-compact",l),[m,g]=$s(p),v=A()(p,g,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},s,c),h=e.useContext(Os),b=_e(u),y=e.useMemo((()=>b.map(((t,n)=>{const r=(null==t?void 0:t.key)||`${p}-item-${n}`;return e.createElement(Ps,{key:r,compactSize:f,compactDirection:i,isFirstItem:0===n&&(!h||(null==h?void 0:h.isFirstItem)),isLastItem:n===b.length-1&&(!h||(null==h?void 0:h.isLastItem))},t)}))),[o,b,h]);return 0===b.length?null:m(e.createElement("div",Object.assign({className:v},d),y))};const iw=ow;const aw=t=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=e.useContext(ai),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:g,autoFocus:v,overlay:h,trigger:b,align:y,open:x,onOpenChange:C,placement:w,getPopupContainer:S,href:E,icon:$=e.createElement(Uv,null),title:k,buttonsRender:O=e=>e,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyPopupOnHide:R,dropdownRender:N}=t,F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1,t().createElement(mw,T({},b,{prefixCls:r,key:y,panelKey:y,isActive:d,accordion:o,openMotion:c,expandIcon:u,header:p,collapsible:x,onItemClick:function(e){"disabled"!==x&&(l(e),null==v||v(e))},destroyInactivePanel:C}),f)}))}(e,r):_e(n).map((function(e,n){return function(e,n,r){if(!e)return null;var o,i=r.prefixCls,a=r.accordion,l=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=e.key||String(n),m=e.props,g=m.header,v=m.headerClass,h=m.destroyInactivePanel,b=m.collapsible,y=m.onItemClick;o=a?u[0]===p:u.indexOf(p)>-1;var x=null!=b?b:l,C={key:p,panelKey:p,header:g,headerClass:v,isActive:o,prefixCls:i,destroyInactivePanel:null!=h?h:s,openMotion:d,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(c(e),null==y||y(e))},expandIcon:f,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),t().cloneElement(e,C))}(e,n,r)}))}(h,u,{prefixCls:o,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return s?C[0]===e?[]:[e]:C.indexOf(e)>-1?C.filter((function(t){return t!==e})):[].concat(ye(C),[e])}))},activeKey:C});return t().createElement("div",T({ref:n,className:b,style:l,role:s?"tablist":void 0},xf(e,{aria:!0,data:!0})),S)}));const bw=Object.assign(hw,{Panel:mw}),yw=bw;bw.Panel;const xw=e.forwardRef(((t,n)=>{const{getPrefixCls:r}=e.useContext(ai),{prefixCls:o,className:i,showArrow:a=!0}=t,l=r("collapse",o),s=A()({[`${l}-no-arrow`]:!a},i);return e.createElement(yw.Panel,Object.assign({ref:n},t,{prefixCls:l,className:s}))})),Cw=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:h,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:w,fontSizeIcon:S,contentPadding:E,fontHeight:$,fontHeightLG:k}=e,O=`${Ri(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},ul(e)),{backgroundColor:o,border:O,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${Ri(s)} ${Ri(s)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Ri(s)} ${Ri(s)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:v,cursor:"pointer",transition:`all ${w}, visibility 0s`},pl(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:S,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ri(s)} ${Ri(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},ww=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Sw=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Ew=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},$w=ys("Collapse",(e=>{const t=nl(e,{collapseHeaderPaddingSM:`${Ri(e.paddingXS)} ${Ri(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ri(e.padding)} ${Ri(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Cw(t),Sw(t),Ew(t),ww(t),Zx(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),kw=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o,collapse:i}=e.useContext(ai),{prefixCls:a,className:l,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:m,expandIcon:g}=t,v=di((e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"})),h=r("collapse",a),b=r(),[y,x,C]=$w(h),w=e.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),S=null!=g?g:null==i?void 0:i.expandIcon,E=e.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof S?S(t):e.createElement(TC,{rotate:t.isActive?"rtl"===o?-90:90:void 0,"aria-label":t.isActive?"expanded":"collapsed"});return Js(n,(()=>{var e;return{className:A()(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${h}-arrow`)}}))}),[S,h]),$=A()(`${h}-icon-position-${w}`,{[`${h}-borderless`]:!u,[`${h}-rtl`]:"rtl"===o,[`${h}-ghost`]:!!d,[`${h}-${v}`]:"middle"!==v},null==i?void 0:i.className,l,s,x,C),k=Object.assign(Object.assign({},_s(b)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),O=e.useMemo((()=>m?_e(m).map(((e,t)=>{var n,r;const o=e.props;if(null==o?void 0:o.disabled){const i=null!==(n=e.key)&&void 0!==n?n:String(t);return Js(e,Object.assign(Object.assign({},Uo(e.props,["disabled"])),{key:i,collapsible:null!==(r=o.collapsible)&&void 0!==r?r:"disabled"}))}return e})):null),[m]);return y(e.createElement(yw,Object.assign({ref:n,openMotion:k},Uo(t,["rootClassName"]),{expandIcon:E,prefixCls:h,className:$,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),O))})),Ow=Object.assign(kw,{Panel:xw}),Iw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var jw=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Iw}))};const Pw=e.forwardRef(jw),Mw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var Rw=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Mw}))};const Nw=e.forwardRef(Rw),Aw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};var Fw=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:Aw}))};const Tw=e.forwardRef(Fw),{hooks:zw}=wpGraphiQL,{useEffect:Bw}=wp.element,Lw=Ib.div` .ant-collapse { margin-bottom: 10px; } @@ -11,4 +11,4 @@ .ant-collapse-content-box { padding: 0; } -`,hC=t=>{var n,r;let o;const{index:i}=t,a=(e,n)=>{let r,i=t.definition;if(0===i.selectionSet.selections.length&&o&&(i=o),"FragmentDefinition"===i.kind)r={...i,selectionSet:{...i.selectionSet,selections:e}};else if("OperationDefinition"===i.kind){let t=e.filter((e=>!("Field"===e.kind&&"__typename"===e.name.value)));0===t.length&&(t=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),r={...i,selectionSet:{...i.selectionSet,selections:t}}}return o=r,t.onEdit(r,n)};mC((()=>{ey.config({top:50,placement:"topRight",getContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]})}));const{operationType:l,definition:s,schema:c,getDefaultFieldNames:u,styleConfig:d}=t,f=(()=>{const{operationType:e,name:n}=t;return`${e}-${n||"unknown"}`})(),p=t.fields||{},m=s.selectionSet.selections,g=t.name||`${$(l)} Name`,h={clone:(0,e.createElement)(Xw.Item,{key:"clone"},(0,e.createElement)(Lc,{type:"link",style:{marginRight:5},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationClone(),ey.success({message:`${$(l)} "${g}" was cloned`})},icon:(0,e.createElement)(aC,null)},`Clone ${$(l)}`)),destroy:(0,e.createElement)(Xw.Item,{key:"destroy"},(0,e.createElement)(sx,{zIndex:1e4,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Are you sure you want to delete ${$(l)} "${g}"`,onCancel:e=>{e.preventDefault(),e.stopPropagation()},onConfirm:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationDestroy(),ey.success({message:`${$(l)} "${g}" was deleted`})}},(0,e.createElement)(Lc,{type:"link",onClick:e=>{e.preventDefault(),e.stopPropagation()},icon:(0,e.createElement)(cC,null)},`Delete ${$(l)}`)))},v=pC.applyFilters("graphiql_explorer_operation_action_menu_items",h,{Menu:Xw,props:t});if(Object.keys(v).length<1)return null;const b=v&&Object.keys(v).length?Object.keys(v).map((e=>{var t;return null!==(t=v[e])&&void 0!==t?t:null})):null,y=(0,e.createElement)(Xw,null,b),w=(0,e.createElement)(Lx,{overlay:y,arrow:!0,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]},(0,e.createElement)(Lc,{type:"text",onClick:e=>e.stopPropagation()},(0,e.createElement)(fC,null)));return(0,e.createElement)(gC,{id:`collapse-wrap-${i}`},(0,e.createElement)("span",{id:`collapse-wrap-${f}`}),(0,e.createElement)(rC,{key:`collapse-${i}`,id:`collapse-${i}`,tabIndex:"0",defaultActiveKey:0},(0,e.createElement)(rC.Panel,{key:0,header:(0,e.createElement)("span",{style:{textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",verticalAlign:"middle",fontSize:"smaller",color:d.colors.keyword,paddingBottom:0},className:"graphiql-operation-title-bar"},l," ",(0,e.createElement)("span",{style:{color:d.colors.def}},(0,e.createElement)(Mf,{id:`operationName-${i}`,name:"operation-name","data-lpignore":"true",defaultValue:null!==(n=t.name)&&void 0!==n?n:"",placeholder:null!==(r=t.name)&&void 0!==r?r:"name",onChange:e=>{var n;t.name!==e.target.value&&(n=e,t.onOperationRename(n.target.value))},value:t.name,onClick:e=>{e.stopPropagation(),e.preventDefault()},style:{color:d.colors.def,width:`${Math.max(15,g.length)}ch`,fontSize:"smaller"}}))),extra:w},(0,e.createElement)("div",{style:{padding:"10px 0 0 0"}},Object.keys(p).sort().map((n=>(0,e.createElement)(Rh,{key:n,field:p[n],selections:m,modifySelections:a,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition,availableFragments:t.availableFragments})))))))};function vC(t){const[n,r]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>{r(t)}),t.length?0:10);return()=>{clearTimeout(e)}}),[t]),n}const bC=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},yC=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Dr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Dr(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),wC=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},xC=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ja(e)),yC(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},wC(e,e.controlHeightSM)),"&-large":Object.assign({},wC(e,e.controlHeightLG))})}},CC=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Ja(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Nl,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},SC=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},EC=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},$C=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:$C(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},OC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:$C(e),[`@media (max-width: ${Dr(e.screenXSMax)})`]:[kC(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:$C(e)}}],[`@media (max-width: ${Dr(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:$C(e)}},[`@media (max-width: ${Dr(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:$C(e)}},[`@media (max-width: ${Dr(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:$C(e)}}}},IC=(e,t)=>fl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),PC=wl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=IC(e,n);return[xC(r),CC(r),bC(r),SC(r),EC(r),OC(r),Mw(r),Nl]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),jC=[];function MC(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const RC=t=>{let{help:n,helpStatus:r,errors:o=jC,warnings:i=jC,className:a,fieldId:l,onVisibleChanged:s}=t;const{prefixCls:c}=e.useContext(sd),u=`${c}-item-explain`,d=Qd(c),[f,p,m]=PC(c,d),g=(0,e.useMemo)((()=>xa(c)),[c]),h=vC(o),v=vC(i),b=e.useMemo((()=>null!=n?[MC(n,"help",r)]:[].concat(fe(h.map(((e,t)=>MC(e,"error","error",t)))),fe(v.map(((e,t)=>MC(e,"warning","warning",t)))))),[n,r,h,v]),y={};return l&&(y.id=`${l}_help`),f(e.createElement(Nn,{motionDeadline:g.motionDeadline,motionName:`${c}-show-help`,visible:!!b.length,onVisibleChanged:s},(t=>{const{className:n,style:r}=t;return e.createElement("div",Object.assign({},y,{className:A()(u,n,m,d,a,p),style:r,role:"alert"}),e.createElement(Rn,Object.assign({keys:b},xa(c),{motionName:`${c}-show-help-item`,component:!1}),(t=>{const{key:n,error:r,errorStatus:o,className:i,style:a}=t;return e.createElement("div",{key:n,className:A()(i,{[`${u}-${o}`]:o}),style:a},r)})))})))},NC=e=>"object"==typeof e&&null!=e&&1===e.nodeType,AC=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,FC=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,zC=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},LC=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!NC(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;NC(m)&&d(m);){if(m=zC(m),m===f){p.push(m);break}null!=m&&m===document.body&&FC(m)&&!FC(document.documentElement)||null!=m&&FC(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:w,top:x,right:C,bottom:S,left:E}=e.getBoundingClientRect(),{top:$,right:k,bottom:O,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let P="start"===l||"nearest"===l?x-$:"end"===l?S+O:x+y/2-$+O,j="center"===s?E+w/2-I+k:"end"===s?C+k:E-I;const M=[];for(let e=0;e=0&&E>=0&&S<=h&&C<=g&&x>=o&&S<=c&&E>=u&&C<=i)return M;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),$=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let I=0,R=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-k:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-$-O:0,F="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,T="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?P:"end"===l?P-h:"nearest"===l?TC(b,b+h,h,$,O,b+P,b+P+y,y):P-h/2,R="start"===s?j:"center"===s?j-g/2:"end"===s?j-g:TC(v,v+g,g,m,k,v+j,v+j+w,w),I=Math.max(0,I+b),R=Math.max(0,R+v);else{I="start"===l?P-o-$:"end"===l?P-c+O+A:"nearest"===l?TC(o,c,n,$,O+A,P,P+y,y):P-(o+n/2)+A/2,R="start"===s?j-u-m:"center"===s?j-(u+r/2)+N/2:"end"===s?j-i+k+N:TC(u,i,r,m,k+N,j,j+w,w);const{scrollLeft:e,scrollTop:a}=t;I=0===T?0:Math.max(0,Math.min(a+I/T,t.scrollHeight-n/T+A)),R=0===F?0:Math.max(0,Math.min(e+R/F,t.scrollWidth-r/F+N)),P+=a-I,j+=e-R}M.push({el:t,top:I,left:R})}return M},BC=["parentNode"],DC="form_item";function HC(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function _C(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:BC.includes(n)?`${DC}_${n}`:n}function VC(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function WC(e){return HC(e).join("_")}function qC(t){const[n]=Uu(),r=e.useRef({}),o=e.useMemo((()=>null!=t?t:Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:e=>t=>{const n=WC(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=_C(HC(e),o.__INTERNAL__.name),r=n?document.getElementById(n):null;r&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(LC(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of LC(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(r,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=WC(e);return r.current[t]}})),[t,n]);return[o]}const GC=(t,n)=>{const r=e.useContext(Is),{getPrefixCls:o,direction:i,form:a}=e.useContext(Ba),{prefixCls:l,className:s,rootClassName:c,size:u,disabled:d=r,form:f,colon:p,labelAlign:m,labelWrap:g,labelCol:h,wrapperCol:v,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:w,requiredMark:x,onFinishFailed:C,name:S,style:E,feedbackIcons:$,variant:k}=t,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==x?x:!b&&(!a||void 0===a.requiredMark||a.requiredMark)),[b,x,a]),M=null!=p?p:null==a?void 0:a.colon,R=o("form",l),N=Qd(R),[F,T,z]=PC(R,N),L=A()(R,`${R}-${y}`,{[`${R}-hide-required-mark`]:!1===j,[`${R}-rtl`]:"rtl"===i,[`${R}-${I}`]:I},z,N,T,null==a?void 0:a.className,s,c),[B]=qC(f),{__INTERNAL__:D}=B;D.name=S;const H=(0,e.useMemo)((()=>({name:S,labelAlign:m,labelCol:h,labelWrap:g,wrapperCol:v,vertical:"vertical"===y,colon:M,requiredMark:j,itemRef:D.itemRef,form:B,feedbackIcons:$})),[S,m,h,v,y,M,j,B,$]);e.useImperativeHandle(n,(()=>B));const _=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),B.scrollToField(t,n)}};return F(e.createElement(dd.Provider,{value:k},e.createElement(Os,{disabled:d},e.createElement(Va.Provider,{value:I},e.createElement(ld,{validateMessages:P},e.createElement(id.Provider,{value:H},e.createElement(od,Object.assign({id:S},O,{name:S,onFinishFailed:e=>{if(null==C||C(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==w)return void _(w,t);a&&void 0!==a.scrollToFirstError&&_(a.scrollToFirstError,t)}},form:B,style:Object.assign(Object.assign({},null==a?void 0:a.style),E),className:L}))))))))},XC=e.forwardRef(GC),KC=()=>{const{status:t,errors:n=[],warnings:r=[]}=(0,e.useContext)(cd);return{status:t,errors:n,warnings:r}};KC.Context=cd;const UC=KC,YC=["xxl","xl","lg","md","sm","xs"];const QC=(0,e.createContext)({}),ZC=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},JC=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),eS=wl("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),tS=wl("Grid",(e=>{const t=fl(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[ZC(t),JC(t,""),JC(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Dr(t)})`]:Object.assign({},JC(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function nS(t,n){const[r,o]=e.useState("string"==typeof t?t:"");return e.useEffect((()=>{(()=>{if("string"==typeof t&&o(t),"object"==typeof t)for(let e=0;e{const{prefixCls:o,justify:i,align:a,className:l,style:s,children:c,gutter:u=0,wrap:d}=n,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(YC).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)}))},responsiveMap:n}}),[e])}();e.useEffect((()=>{const e=C.subscribe((e=>{b(e);const t=x.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>C.unsubscribe(e)}),[]);const S=p("row",o),[E,$,k]=eS(S),O=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?O[0]/-2:void 0;j&&(P.marginLeft=j,P.marginRight=j);const[M,R]=O;P.rowGap=R;const N=e.useMemo((()=>({gutter:[M,R],wrap:d})),[M,R,d]);return E(e.createElement(QC.Provider,{value:N},e.createElement("div",Object.assign({},f,{className:I,style:Object.assign(Object.assign({},P),s),ref:r}),c)))})),oS=rS;function iS(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const aS=["xs","sm","md","lg","xl","xxl"],lS=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(Ba),{gutter:i,wrap:a}=e.useContext(QC),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:p,children:m,flex:g,style:h}=t,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let n={};const r=t[e];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete v[e],S=Object.assign(Object.assign({},S),{[`${b}-${e}-${n.span}`]:void 0!==n.span,[`${b}-${e}-order-${n.order}`]:n.order||0===n.order,[`${b}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${e}-push-${n.push}`]:n.push||0===n.push,[`${b}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===o}),n.flex&&(S[`${b}-${e}-flex`]=!0,C[`--${b}-${e}-flex`]=iS(n.flex))}));const E=A()(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},p,S,w,x),$={};if(i&&i[0]>0){const e=i[0]/2;$.paddingLeft=e,$.paddingRight=e}return g&&($.flex=iS(g),!1!==a||$.minWidth||($.minWidth=0)),y(e.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},$),h),C),className:E,ref:n}),m))})),sS=lS,cS=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},uS=yl(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=IC(e,n);return[cS(r)]})),dS=t=>{const{prefixCls:n,status:r,wrapperCol:o,children:i,errors:a,warnings:l,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=t,m=`${n}-item`,g=e.useContext(id),h=o||g.wrapperCol||{},v=A()(`${m}-control`,h.className),b=e.useMemo((()=>Object.assign({},g)),[g]);delete b.labelCol,delete b.wrapperCol;const y=e.createElement("div",{className:`${m}-control-input`},e.createElement("div",{className:`${m}-control-input-content`},i)),w=e.useMemo((()=>({prefixCls:n,status:r})),[n,r]),x=null!==f||a.length||l.length?e.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},e.createElement(sd.Provider,{value:w},e.createElement(RC,{fieldId:d,errors:a,warnings:l,help:u,helpStatus:r,className:`${m}-explain-connected`,onVisibleChanged:p})),!!f&&e.createElement("div",{style:{width:0,height:f}})):null,C={};d&&(C.id=`${d}_extra`);const S=c?e.createElement("div",Object.assign({},C,{className:`${m}-extra`}),c):null,E=s&&"pro_table_render"===s.mark&&s.render?s.render(t,{input:y,errorList:x,extra:S}):e.createElement(e.Fragment,null,y,x,S);return e.createElement(id.Provider,{value:b},e.createElement(sS,Object.assign({},h,{className:v}),E),e.createElement(uS,{prefixCls:n}))},fS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var pS=function(t,n){return e.createElement(Qs,T({},t,{ref:n,icon:fS}))};const mS=e.forwardRef(pS);const gS=t=>{let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:a,colon:l,required:s,requiredMark:c,tooltip:u}=t;var d;const[f]=Zm("Form"),{vertical:p,labelAlign:m,labelCol:g,labelWrap:h,colon:v}=e.useContext(id);if(!r)return null;const b=i||g||{},y=a||m,w=`${n}-item-label`,x=A()(w,"left"===y&&`${w}-left`,b.className,{[`${w}-wrap`]:!!h});let C=r;const S=!0===l||!1!==v&&!1!==l;S&&!p&&"string"==typeof r&&""!==r.trim()&&(C=r.replace(/[:|:]\s*$/,""));const E=function(t){return t?"object"!=typeof t||e.isValidElement(t)?{title:t}:t:null}(u);if(E){const{icon:t=e.createElement(mS,null)}=E,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{e.preventDefault()},tabIndex:null}));C=e.createElement(e.Fragment,null,C,o)}const $="optional"===c,k="function"==typeof c;k?C=c(C,{required:!!s}):$&&!s&&(C=e.createElement(e.Fragment,null,C,e.createElement("span",{className:`${n}-item-optional`,title:""},(null==f?void 0:f.optional)||(null===(d=Im.Form)||void 0===d?void 0:d.optional))));const O=A()({[`${n}-item-required`]:s,[`${n}-item-required-mark-optional`]:$||k,[`${n}-item-no-colon`]:!S});return e.createElement(sS,Object.assign({},b,{className:x}),e.createElement("label",{htmlFor:o,className:O,title:"string"==typeof r?r:""},C))},hS={success:lb,warning:ub,error:Xd,validating:Js};function vS(t){let{children:n,errors:r,warnings:o,hasFeedback:i,validateStatus:a,prefixCls:l,meta:s,noStyle:c}=t;const u=`${l}-item`,{feedbackIcons:d}=e.useContext(id),f=VC(r,o,s,null,!!i,a),{isFormItemInput:p,status:m,hasFeedback:g,feedbackIcon:h}=e.useContext(cd),v=e.useMemo((()=>{var t;let n;if(i){const a=!0!==i&&i.icons||d,l=f&&(null===(t=null==a?void 0:a({status:f,errors:r,warnings:o}))||void 0===t?void 0:t[f]),s=f&&hS[f];n=!1!==l&&s?e.createElement("span",{className:A()(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},l||e.createElement(s,null)):null}const a={status:f||"",errors:r,warnings:o,hasFeedback:!!i,feedbackIcon:n,isFormItemInput:!0};return c&&(a.status=(null!=f?f:m)||"",a.isFormItemInput=p,a.hasFeedback=!!(null!=i?i:g),a.feedbackIcon=void 0!==i?a.feedbackIcon:h),a}),[f,i,c,p,m]);return e.createElement(cd.Provider,{value:v},n)}function bS(t){const{prefixCls:n,className:r,rootClassName:o,style:i,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:m,required:g,isRequired:h,onSubItemMetaChange:v}=t,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if($&&x.current){const e=getComputedStyle(x.current);I(parseInt(e.marginBottom,10))}}),[$,k]);const P=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return VC(e?C:u.errors,e?S:u.warnings,u,"",!!d,c)}(),j=A()(y,r,o,{[`${y}-with-help`]:E||C.length||S.length,[`${y}-has-feedback`]:P&&d,[`${y}-has-success`]:"success"===P,[`${y}-has-warning`]:"warning"===P,[`${y}-has-error`]:"error"===P,[`${y}-is-validating`]:"validating"===P,[`${y}-hidden`]:f});return e.createElement("div",{className:j,style:i,ref:x},e.createElement(oS,Object.assign({className:`${y}-row`},ns(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),e.createElement(gS,Object.assign({htmlFor:m},t,{requiredMark:w,required:null!=g?g:h,prefixCls:n})),e.createElement(dS,Object.assign({},t,u,{errors:C,warnings:S,prefixCls:n,status:P,help:a,marginBottom:O,onErrorVisibleChanged:e=>{e||I(null)}}),e.createElement(ad.Provider,{value:v},e.createElement(vS,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:P},p)))),!!O&&e.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-O}}))}const yS=e.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),wS=function(t){const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:m,hidden:g,help:h}=t,{getPrefixCls:v}=e.useContext(Ba),{name:b}=e.useContext(id),y=function(e){if("function"==typeof e)return e;const t=Te(e);return t.length<=1?t[0]:t}(c),w="function"==typeof y,x=e.useContext(ad),{validateTrigger:C}=e.useContext(_c),S=void 0!==m?m:C,E=!(null==n),$=v("form",a),k=Qd($),[O,I,P]=PC($,k);za();const j=e.useContext(Vc),M=e.useRef(),[R,N]=function(t){const[n,r]=e.useState({}),o=(0,e.useRef)(null),i=(0,e.useRef)([]),a=(0,e.useRef)(!1);return e.useEffect((()=>(a.current=!1,()=>{a.current=!0,vn.cancel(o.current),o.current=null})),[]),[n,function(e){a.current||(null===o.current&&(i.current=[],o.current=vn((()=>{o.current=null,r((e=>{let t=e;return i.current.forEach((e=>{t=e(t)})),t}))}))),i.current.push(e))}]}(),[F,T]=zt((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),z=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(fe(e.name.slice(0,-1)),fe(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[L,B]=e.useMemo((()=>{const e=fe(F.errors),t=fe(F.warnings);return Object.values(R).forEach((n=>{e.push.apply(e,fe(n.errors||[])),t.push.apply(t,fe(n.warnings||[]))})),[e,t]}),[R,F.errors,F.warnings]),D=function(){const{itemRef:t}=e.useContext(id),n=e.useRef({});return function(e,r){const o=r&&"object"==typeof r&&r.ref,i=e.join("_");return n.current.name===i&&n.current.originRef===o||(n.current.name=i,n.current.originRef=o,n.current.ref=le(t(e),o)),n.current.ref}}();function H(n,i,a){return r&&!g?e.createElement(vS,{prefixCls:$,hasFeedback:t.hasFeedback,validateStatus:t.validateStatus,meta:F,errors:L,warnings:B,noStyle:!0},n):e.createElement(bS,Object.assign({key:"row"},t,{className:A()(o,P,k,I),prefixCls:$,fieldId:i,isRequired:a,errors:L,warnings:B,meta:F,onSubItemMetaChange:z}),n)}if(!E&&!w&&!i)return O(H(y));let _={};return"string"==typeof d?_.label=d:n&&(_.label=String(n)),f&&(_=Object.assign(Object.assign({},_),f)),O(e.createElement(Hu,Object.assign({},t,{messageVariables:_,trigger:p,validateTrigger:S,onMetaChange:e=>{const t=null==j?void 0:j.getKey(e.name);if(T(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&x){let n=e.name;if(e.destroy)n=M.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(fe(r)),M.current=n}x(e,n)}}}),((r,o,a)=>{const c=HC(n).length&&o?o.name:[],d=_C(c,b),f=void 0!==u?u:!(!s||!s.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},r);let g=null;if(Array.isArray(y)&&E)g=y;else if(w&&(!l&&!i||E));else if(!i||w||E)if(e.isValidElement(y)){const n=Object.assign(Object.assign({},y.props),m);if(n.id||(n.id=d),h||L.length>0||B.length>0||t.extra){const e=[];(h||L.length>0)&&e.push(`${d}_help`),t.extra&&e.push(`${d}_extra`),n["aria-describedby"]=e.join(" ")}L.length>0&&(n["aria-invalid"]="true"),f&&(n["aria-required"]="true"),ce(y)&&(n.ref=D(c,y)),new Set([].concat(fe(HC(p)),fe(HC(S)))).forEach((e=>{n[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s{var{prefixCls:n,children:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({prefixCls:a,status:"error"})),[a]);return e.createElement(_u,Object.assign({},o),((t,n,o)=>e.createElement(sd.Provider,{value:l},r(t.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),n,{errors:o.errors,warnings:o.warnings}))))},CS.ErrorList=RC,CS.useForm=qC,CS.useFormInstance=function(){const{form:t}=(0,e.useContext)(id);return t},CS.useWatch=nd,CS.Provider=ld,CS.create=()=>{};const SS=CS,ES=t=>{const{actionOptions:n,addOperation:r}=t,o=45*n.length;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{padding:"10px 10px 0 10px",borderTop:"1px solid #ccc",overflowY:"hidden",minHeight:`${o}px`}},(0,e.createElement)(SS,{name:"add-graphql-operation",className:"variable-editor-title graphiql-explorer-actions",layout:"inline",onSubmit:e=>e.preventDefault()},n.map(((t,n)=>{const{type:o}=t;return(0,e.createElement)(Lc,{key:n,style:{marginBottom:"5px",textTransform:"capitalize"},block:!0,type:"primary",onClick:()=>r(o)},"Add New ",o)})))))},{useAppContext:$S}=wpGraphiQL,{GraphQLObjectType:kS,print:OS}=wpGraphiQL.GraphQL,{useState:IS,useEffect:PS,useRef:jS}=wp.element,MS=t=>{const[n,r]=IS("query"),[o,i]=IS(null),[a,l]=IS(null);let s=jS(null);PS((()=>{}));const c=e=>{},{schema:u,query:d}=$S(),{makeDefaultArg:f}=t;if(!u)return(0,e.createElement)("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");const p={colors:t.colors||v,checkboxChecked:t.checkboxChecked||w,checkboxUnchecked:t.checkboxUnchecked||x,arrowClosed:t.arrowClosed||y,arrowOpen:t.arrowOpen||b,styles:t.styles?{...C,...t.styles}:C},m=u.getQueryType(),g=u.getMutationType(),k=u.getSubscriptionType();if(!m&&!g&&!k)return(0,e.createElement)("div",null,"Missing query type");const O=m&&m.getFields(),I=g&&g.getFields(),P=k&&k.getFields(),j=E(d),M=t.getDefaultFieldNames||h,N=t.getDefaultScalarArgValue||R,A=j.definitions.map((e=>"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null)).filter(Boolean),F=0===A.length?S.definitions:A;let T=[];O&&T.push({type:"query",label:"Queries",fields:()=>O}),P&&T.push({type:"subscription",label:"Subscriptions",fields:()=>P}),I&&T.push({type:"mutation",label:"Mutations",fields:()=>I});const z=(0,e.createElement)(ES,{query:d,actionOptions:T,addOperation:e=>{const n=j.definitions,r=1===j.definitions.length&&j.definitions[0]===S.definitions[0],o=r?[]:n.filter((t=>"OperationDefinition"===t.kind&&t.operation===e)),i=`My${$(e)}${0===o.length?"":o.length+1}`,a={kind:"OperationDefinition",operation:e,name:{kind:"Name",value:i},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},l=r?[a]:[...j.definitions,a],s={...j,definitions:l};t.onEdit(OS(s))}}),L=F.reduce(((e,t)=>{if("FragmentDefinition"===t.kind){const n=t.typeCondition.name.value,r=[...e[n]||[],t].sort(((e,t)=>e.name.value.localeCompare(t.name.value)));return{...e,[n]:r}}return e}),{});return(0,e.createElement)("div",{ref:e=>{s=e},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:0,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root antd-app"},(0,e.createElement)("div",{style:{flexGrow:1,overflowY:"scroll",width:"100%",padding:"8px"}},F.map(((n,r)=>{const o=n&&n.name&&n.name.value,i="FragmentDefinition"===n.kind?"fragment":n&&n.operation||"query",a="FragmentDefinition"===n.kind&&"NamedType"===n.typeCondition.kind&&u.getType(n.typeCondition.name.value),l=a instanceof kS?a.getFields():null,s="query"===i?O:"mutation"===i?I:"subscription"===i?P:"FragmentDefinition"===n.kind?l:null,d="FragmentDefinition"===n.kind?n.typeCondition.name.value:null,m=e=>{const n=OS(e);t.onEdit(n)};return(0,e.createElement)(hC,{key:r,index:r,isLast:r===F.length-1,fields:s,operationType:i,name:o,definition:n,onOperationRename:e=>{const r=((e,t)=>{const n=null==t||""===t?null:{kind:"Name",value:t,loc:void 0},r={...e,name:n},o=j.definitions.map((t=>e===t?r:t));return{...j,definitions:o}})(n,e);t.onEdit(OS(r))},onOperationDestroy:()=>{const e=(e=>{const t=j.definitions.filter((t=>e!==t));return{...j,definitions:t}})(n);t.onEdit(OS(e))},onOperationClone:()=>{const e=(e=>{let t;t="FragmentDefinition"===e.kind?"fragment":e.operation;const n={kind:"Name",value:(e.name&&e.name.value||"")+"Copy",loc:void 0},r={...e,name:n},o=[...j.definitions,r];return{...j,definitions:o}})(n);t.onEdit(OS(e))},onTypeName:d,onMount:c,onCommit:m,onEdit:(e,t)=>{let r;if(r="object"!=typeof t||void 0===t.commit||t.commit,e){const t={...j,definitions:j.definitions.map((t=>t===n?e:t))};return r?(m(t),t):t}return j},schema:u,getDefaultFieldNames:M,getDefaultScalarArgValue:N,makeDefaultArg:f,onRunOperation:()=>{t.onRunOperation&&t.onRunOperation(o)},styleConfig:p,availableFragments:L})}))),z)};var RS=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={hasError:!1,error:null},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromError=function(e){return{hasError:!0,error:e}};var o=r.prototype;return o.componentDidCatch=function(e,t){return this.props.onDidCatch(e,t)},o.render=function(){var e=this.state,t=this.props,n=t.render,r=t.children,o=t.renderError;return e.hasError?o?o({error:e.error}):null:n?n():r||null},r}(e.PureComponent),NS=function(e,t){switch(t.type){case"catch":return{didCatch:!0,error:t.error};case"reset":return{didCatch:!1,error:null};default:return e}};const AS=({children:n})=>{const{ErrorBoundary:r,didCatch:o,error:i}=function(n){var r=(0,e.useReducer)(NS,{didCatch:!1,error:null}),o=r[0],i=r[1],a=(0,e.useRef)(null);function l(){return e=function(e,t){i({type:"catch",error:e}),n&&n.onDidCatch&&n.onDidCatch(e,t)},function(n){return t().createElement(RS,{onDidCatch:e,children:n.children,render:n.render,renderError:n.renderError})};var e}var s,c=(0,e.useCallback)((function(){a.current=l(),i({type:"reset"})}),[]);return{ErrorBoundary:(s=a.current,null!==s?s:(a.current=l(),a.current)),didCatch:o.didCatch,error:o.error,reset:c}}();return o&&console.warn({error:i}),o?(0,e.createElement)("div",{style:{padding:18,fontFamily:"sans-serif"}},(0,e.createElement)("div",null,"Something went wrong"),(0,e.createElement)("details",{style:{whiteSpace:"pre-wrap"}},i?i.message:null,(0,e.createElement)("br",null),i.stack?i.stack:null)):(0,e.createElement)(r,null,n)},{useAppContext:FS}=wpGraphiQL,{useState:TS,useEffect:zS}=wp.element,LS=({schema:t,children:n})=>t?(0,e.createElement)("div",{style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:0,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},n):(0,e.createElement)("div",{className:"graphiql-container"},(0,e.createElement)("div",{className:"error-container"},"No Schema Available")),BS=t=>{const{query:n,setQuery:r}=t,{schema:o}=FS(),[i,a]=TS(null);return zS((()=>{const e=E(n);i!==e&&a(e)}),[n]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(p,null,(0,e.createElement)(AS,null,(0,e.createElement)(LS,{schema:o},(0,e.createElement)(MS,{schema:o,query:n,onEdit:e=>{r(e)}})))))};function DS(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;var n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}var HS={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=DS(e,!0);return null==t?t:String(t)}},_S={encode:function(e){return null==e?e:e?"1":"0"},decode:function(e){var t=DS(e);return null==t?t:"1"===t||"0"!==t&&null}},VS=n(6663);'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]})),Object.prototype.hasOwnProperty,e.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}}),(0,VS.parse)("");const{hooks:WS}=window.wpGraphiQL;WS.addFilter("graphiql_toolbar_after_buttons","graphiql-extension",((t,n)=>{const{GraphiQL:r}=n,{toggleExplorer:o}=u();return t.push((0,e.createElement)(c.Consumer,{key:"graphiql-query-composer-button"},(t=>(0,e.createElement)(r.Button,{onClick:()=>{o()},label:"Query Composer",title:"Query Composer"})))),t})),WS.addFilter("graphiql_before_graphiql","graphiql-explorer",((t,n)=>(t.push((0,e.createElement)(BS,{...n,key:"graphiql-explorer"})),t))),WS.addFilter("graphiql_app","graphiql-explorer",((t,{appContext:n})=>(0,e.createElement)(d,{appContext:n},t)),99),WS.addFilter("graphiql_query_params_provider_config","graphiql-explorer",(e=>({...e,isQueryComposerOpen:_S,explorerIsOpen:HS})))})()})(); \ No newline at end of file +`,Hw=t=>{var n,r;let o;const{index:i}=t,a=(e,n)=>{let r,i=t.definition;if(0===i.selectionSet.selections.length&&o&&(i=o),"FragmentDefinition"===i.kind)r={...i,selectionSet:{...i.selectionSet,selections:e}};else if("OperationDefinition"===i.kind){let t=e.filter((e=>!("Field"===e.kind&&"__typename"===e.name.value)));0===t.length&&(t=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),r={...i,selectionSet:{...i.selectionSet,selections:t}}}return o=r,t.onEdit(r,n)};Bw((()=>{$y.config({top:50,placement:"topRight",getContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]})}));const{operationType:l,definition:s,schema:c,getDefaultFieldNames:u,styleConfig:d}=t,f=(()=>{const{operationType:e,name:n}=t;return`${e}-${n||"unknown"}`})(),p=t.fields||{},m=s.selectionSet.selections,g=t.name||`${$(l)} Name`,v={clone:(0,e.createElement)(vC.Item,{key:"clone"},(0,e.createElement)(Cd,{type:"link",style:{marginRight:5},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationClone(),$y.success({message:`${$(l)} "${g}" was cloned`})},icon:(0,e.createElement)(Pw,null)},`Clone ${$(l)}`)),destroy:(0,e.createElement)(vC.Item,{key:"destroy"},(0,e.createElement)(NC,{zIndex:1e4,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Are you sure you want to delete ${$(l)} "${g}"`,onCancel:e=>{e.preventDefault(),e.stopPropagation()},onConfirm:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationDestroy(),$y.success({message:`${$(l)} "${g}" was deleted`})}},(0,e.createElement)(Cd,{type:"link",onClick:e=>{e.preventDefault(),e.stopPropagation()},icon:(0,e.createElement)(Nw,null)},`Delete ${$(l)}`)))},h=zw.applyFilters("graphiql_explorer_operation_action_menu_items",v,{Menu:vC,props:t});if(Object.keys(h).length<1)return null;const b=h&&Object.keys(h).length?Object.keys(h).map((e=>{var t;return null!==(t=h[e])&&void 0!==t?t:null})):null,y=(0,e.createElement)(vC,null,b),x=(0,e.createElement)(cw,{overlay:y,arrow:!0,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]},(0,e.createElement)(Cd,{type:"text",onClick:e=>e.stopPropagation()},(0,e.createElement)(Tw,null)));return(0,e.createElement)(Lw,{id:`collapse-wrap-${i}`},(0,e.createElement)("span",{id:`collapse-wrap-${f}`}),(0,e.createElement)(Ow,{key:`collapse-${i}`,id:`collapse-${i}`,tabIndex:"0",defaultActiveKey:0},(0,e.createElement)(Ow.Panel,{key:0,header:(0,e.createElement)("span",{style:{textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",verticalAlign:"middle",fontSize:"smaller",color:d.colors.keyword,paddingBottom:0},className:"graphiql-operation-title-bar"},l," ",(0,e.createElement)("span",{style:{color:d.colors.def}},(0,e.createElement)(tp,{id:`operationName-${i}`,name:"operation-name","data-lpignore":"true",defaultValue:null!==(n=t.name)&&void 0!==n?n:"",placeholder:null!==(r=t.name)&&void 0!==r?r:"name",onChange:e=>{var n;t.name!==e.target.value&&(n=e,t.onOperationRename(n.target.value))},value:t.name,onClick:e=>{e.stopPropagation(),e.preventDefault()},style:{color:d.colors.def,width:`${Math.max(15,g.length)}ch`,fontSize:"smaller"}}))),extra:x},(0,e.createElement)("div",{style:{padding:"10px 0 0 0"}},Object.keys(p).sort().map((n=>(0,e.createElement)(nh,{key:n,field:p[n],selections:m,modifySelections:a,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition,availableFragments:t.availableFragments})))))))};function Dw(t){const[n,r]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>{r(t)}),t.length?0:10);return()=>{clearTimeout(e)}}),[t]),n}const _w=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Vw=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ri(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ri(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ww=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},qw=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ul(e)),Vw(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Ww(e,e.controlHeightSM)),"&-large":Object.assign({},Ww(e,e.controlHeightLG))})}},Gw=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},ul(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:ac,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Xw=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Kw=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Uw=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Yw=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Uw(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qw=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:Uw(e)}},[`@media (max-width: ${Ri(e.screenXSMax)})`]:[Yw(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Uw(e)}}}],[`@media (max-width: ${Ri(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Uw(e)}}},[`@media (max-width: ${Ri(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Uw(e)}}},[`@media (max-width: ${Ri(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Uw(e)}}}}},Zw=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:Uw(e),[`@media (max-width: ${Ri(e.screenXSMax)})`]:[Yw(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Uw(e)}}],[`@media (max-width: ${Ri(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Uw(e)}},[`@media (max-width: ${Ri(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Uw(e)}},[`@media (max-width: ${Ri(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Uw(e)}}}},Jw=(e,t)=>nl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),eS=ys("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=Jw(e,n);return[qw(r),Gw(r),_w(r),Xw(r,r.componentCls),Xw(r,r.formItemCls),Kw(r),Qw(r),Zw(r),Zx(r),ac]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),tS=[];function nS(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const rS=t=>{let{help:n,helpStatus:r,errors:o=tS,warnings:i=tS,className:a,fieldId:l,onVisibleChanged:s}=t;const{prefixCls:c}=e.useContext(Jo),u=`${c}-item-explain`,d=pf(c),[f,p,m]=eS(c,d),g=e.useMemo((()=>_s(c)),[c]),v=Dw(o),h=Dw(i),b=e.useMemo((()=>null!=n?[nS(n,"help",r)]:[].concat(ye(v.map(((e,t)=>nS(e,"error","error",t)))),ye(h.map(((e,t)=>nS(e,"warning","warning",t)))))),[n,r,v,h]),y=e.useMemo((()=>{const e={};return b.forEach((t=>{let{key:n}=t;e[n]=(e[n]||0)+1})),b.map(((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key})))}),[b]),x={};return l&&(x.id=`${l}_help`),f(e.createElement(Yn,{motionDeadline:g.motionDeadline,motionName:`${c}-show-help`,visible:!!y.length,onVisibleChanged:s},(t=>{const{className:n,style:r}=t;return e.createElement("div",Object.assign({},x,{className:A()(u,n,m,d,a,p),style:r,role:"alert"}),e.createElement(Un,Object.assign({keys:y},_s(c),{motionName:`${c}-show-help-item`,component:!1}),(t=>{const{key:n,error:r,errorStatus:o,className:i,style:a}=t;return e.createElement("div",{key:n,className:A()(i,{[`${u}-${o}`]:o}),style:a},r)})))})))},oS=e=>"object"==typeof e&&null!=e&&1===e.nodeType,iS=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,aS=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,sS=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},cS=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!oS(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;oS(m)&&d(m);){if(m=sS(m),m===f){p.push(m);break}null!=m&&m===document.body&&aS(m)&&!aS(document.documentElement)||null!=m&&aS(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,v=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:h,scrollY:b}=window,{height:y,width:x,top:C,right:w,bottom:S,left:E}=e.getBoundingClientRect(),{top:$,right:k,bottom:O,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===l||"nearest"===l?C-$:"end"===l?S+O:C+y/2-$+O,P="center"===s?E+x/2-I+k:"end"===s?w+k:E-I;const M=[];for(let e=0;e=0&&E>=0&&S<=v&&w<=g&&C>=o&&S<=c&&E>=u&&w<=i)return M;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),$=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let I=0,R=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-k:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-$-O:0,F="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,T="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?j:"end"===l?j-v:"nearest"===l?lS(b,b+v,v,$,O,b+j,b+j+y,y):j-v/2,R="start"===s?P:"center"===s?P-g/2:"end"===s?P-g:lS(h,h+g,g,m,k,h+P,h+P+x,x),I=Math.max(0,I+b),R=Math.max(0,R+h);else{I="start"===l?j-o-$:"end"===l?j-c+O+A:"nearest"===l?lS(o,c,n,$,O+A,j,j+y,y):j-(o+n/2)+A/2,R="start"===s?P-u-m:"center"===s?P-(u+r/2)+N/2:"end"===s?P-i+k+N:lS(u,i,r,m,k+N,P,P+x,x);const{scrollLeft:e,scrollTop:a}=t;I=0===T?0:Math.max(0,Math.min(a+I/T,t.scrollHeight-n/T+A)),R=0===F?0:Math.max(0,Math.min(e+R/F,t.scrollWidth-r/F+N)),j+=a-I,P+=e-R}M.push({el:t,top:I,left:R})}return M};const uS=["parentNode"];function dS(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function fS(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:uS.includes(n)?`form_item_${n}`:n}function pS(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function mS(e){return dS(e).join("_")}function gS(e,t){const n=We(t.getFieldInstance(e));if(n)return n;const r=fS(dS(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function vS(t){const[n]=Lo(),r=e.useRef({}),o=e.useMemo((()=>null!=t?t:Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:e=>t=>{const n=mS(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=gS(e,o);n&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(cS(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of cS(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},focusField:e=>{var t;const n=gS(e,o);n&&(null===(t=n.focus)||void 0===t||t.call(n))},getFieldInstance:e=>{const t=mS(e);return r.current[t]}})),[t,n]);return[o]}const hS=(t,n)=>{const r=e.useContext(eu),{getPrefixCls:o,direction:i,form:a}=e.useContext(ai),{prefixCls:l,className:s,rootClassName:c,size:u,disabled:d=r,form:f,colon:p,labelAlign:m,labelWrap:g,labelCol:v,wrapperCol:h,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:x,requiredMark:C,onFinishFailed:w,name:S,style:E,feedbackIcons:$,variant:k}=t,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==C?C:!b&&(!a||void 0===a.requiredMark||a.requiredMark)),[b,C,a]),M=null!=p?p:null==a?void 0:a.colon,R=o("form",l),N=pf(R),[F,T,z]=eS(R,N),B=A()(R,`${R}-${y}`,{[`${R}-hide-required-mark`]:!1===P,[`${R}-rtl`]:"rtl"===i,[`${R}-${I}`]:I},z,N,T,null==a?void 0:a.className,s,c),[L]=vS(f),{__INTERNAL__:H}=L;H.name=S;const D=e.useMemo((()=>({name:S,labelAlign:m,labelCol:v,labelWrap:g,wrapperCol:h,vertical:"vertical"===y,colon:M,requiredMark:P,itemRef:H.itemRef,form:L,feedbackIcons:$})),[S,m,v,h,y,M,P,L,$]),_=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return Object.assign(Object.assign({},L),{nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement})}));const V=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),L.scrollToField(t,n),n.focus&&L.focusField(t)}};return F(e.createElement(ni.Provider,{value:k},e.createElement(Jc,{disabled:d},e.createElement(ui.Provider,{value:I},e.createElement(Zo,{validateMessages:j},e.createElement(Yo.Provider,{value:D},e.createElement(Ko,Object.assign({id:S},O,{name:S,onFinishFailed:e=>{if(null==w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==x)return void V(x,t);a&&void 0!==a.scrollToFirstError&&V(a.scrollToFirstError,t)}},form:L,ref:_,style:Object.assign(Object.assign({},null==a?void 0:a.style),E),className:B}))))))))},bS=e.forwardRef(hS),yS=()=>{const{status:t,errors:n=[],warnings:r=[]}=e.useContext(ei);return{status:t,errors:n,warnings:r}};yS.Context=ei;const xS=yS,CS=["xxl","xl","lg","md","sm","xs"];const wS=(0,e.createContext)({}),SS=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ES=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),$S=ys("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),kS=ys("Grid",(e=>{const t=nl(e,{gridColumns:24}),n=(e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}))(t);return delete n.xs,[SS(t),ES(t,""),ES(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Ri(t)})`]:Object.assign({},ES(e,n))}))(t,n[e],`-${e}`))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function OS(t,n){const[r,o]=e.useState("string"==typeof t?t:"");return e.useEffect((()=>{(()=>{if("string"==typeof t&&o(t),"object"==typeof t)for(let e=0;e{const{prefixCls:o,justify:i,align:a,className:l,style:s,children:c,gutter:u=0,wrap:d}=n,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(CS).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)}))},responsiveMap:n}}),[e])}();e.useEffect((()=>{const e=w.subscribe((e=>{b(e);const t=C.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&v(e)}));return()=>w.unsubscribe(e)}),[]);const S=p("row",o),[E,$,k]=$S(S),O=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?O[0]/-2:void 0;P&&(j.marginLeft=P,j.marginRight=P);const[M,R]=O;j.rowGap=R;const N=e.useMemo((()=>({gutter:[M,R],wrap:d})),[M,R,d]);return E(e.createElement(wS.Provider,{value:N},e.createElement("div",Object.assign({},f,{className:I,style:Object.assign(Object.assign({},j),s),ref:r}),c)))})),jS=IS;function PS(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const MS=["xs","sm","md","lg","xl","xxl"],RS=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(ai),{gutter:i,wrap:a}=e.useContext(wS),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:p,children:m,flex:g,style:v}=t,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let n={};const r=t[e];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete h[e],S=Object.assign(Object.assign({},S),{[`${b}-${e}-${n.span}`]:void 0!==n.span,[`${b}-${e}-order-${n.order}`]:n.order||0===n.order,[`${b}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${e}-push-${n.push}`]:n.push||0===n.push,[`${b}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===o}),n.flex&&(S[`${b}-${e}-flex`]=!0,w[`--${b}-${e}-flex`]=PS(n.flex))}));const E=A()(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},p,S,x,C),$={};if(i&&i[0]>0){const e=i[0]/2;$.paddingLeft=e,$.paddingRight=e}return g&&($.flex=PS(g),!1!==a||$.minWidth||($.minWidth=0)),y(e.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},$),v),w),className:E,ref:n}),m))})),NS=RS,AS=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},FS=Cs(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=Jw(e,n);return[AS(r)]}));const TS=t=>{const{prefixCls:n,status:r,labelCol:o,wrapperCol:i,children:a,errors:l,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:m,label:g}=t,v=`${n}-item`,h=e.useContext(Yo),b=e.useMemo((()=>{let e=Object.assign({},i||h.wrapperCol||{});return null!==g||o||i||!h.labelCol||[void 0,"xs","sm","md","lg","xl","xxl"].forEach((t=>{const n=t?[t]:[],r=Gt(h.labelCol,n),o="object"==typeof r?r:{},i=Gt(e,n);"span"in o&&!("offset"in("object"==typeof i?i:{}))&&o.span<24&&(e=Ut(e,[].concat(n,["offset"]),o.span))})),e}),[i,h]),y=A()(`${v}-control`,b.className),x=e.useMemo((()=>{const{labelCol:e,wrapperCol:t}=h;return function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{u&&C.current?S(C.current.clientHeight):S(0)}),[u]);const E=e.createElement("div",{className:`${v}-control-input`},e.createElement("div",{className:`${v}-control-input-content`},a)),$=e.useMemo((()=>({prefixCls:n,status:r})),[n,r]),k=null!==p||l.length||s.length?e.createElement(Jo.Provider,{value:$},e.createElement(rS,{fieldId:f,errors:l,warnings:s,help:d,helpStatus:r,className:`${v}-explain-connected`,onVisibleChanged:m})):null,O={};f&&(O.id=`${f}_extra`);const I=u?e.createElement("div",Object.assign({},O,{className:`${v}-extra`,ref:C}),u):null,j=k||I?e.createElement("div",{className:`${v}-additional`,style:p?{minHeight:p+w}:{}},k,I):null,P=c&&"pro_table_render"===c.mark&&c.render?c.render(t,{input:E,errorList:k,extra:I}):e.createElement(e.Fragment,null,E,j);return e.createElement(Yo.Provider,{value:x},e.createElement(NS,Object.assign({},b,{className:y}),P),e.createElement(FS,{prefixCls:n}))},zS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var BS=function(t,n){return e.createElement(Su,T({},t,{ref:n,icon:zS}))};const LS=e.forwardRef(BS);const HS=t=>{let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:a,colon:l,required:s,requiredMark:c,tooltip:u,vertical:d}=t;var f;const[p]=wg("Form"),{labelAlign:m,labelCol:g,labelWrap:v,colon:h}=e.useContext(Yo);if(!r)return null;const b=i||g||{},y=a||m,x=`${n}-item-label`,C=A()(x,"left"===y&&`${x}-left`,b.className,{[`${x}-wrap`]:!!v});let w=r;const S=!0===l||!1!==h&&!1!==l;S&&!d&&"string"==typeof r&&r.trim()&&(w=r.replace(/[:|:]\s*$/,""));const E=function(t){return t?"object"!=typeof t||e.isValidElement(t)?{title:t}:t:null}(u);if(E){const{icon:t=e.createElement(LS,null)}=E,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{e.preventDefault()},tabIndex:null}));w=e.createElement(e.Fragment,null,w,o)}const $="optional"===c,k="function"==typeof c;k?w=c(w,{required:!!s}):$&&!s&&(w=e.createElement(e.Fragment,null,w,e.createElement("span",{className:`${n}-item-optional`,title:""},(null==p?void 0:p.optional)||(null===(f=Zm.Form)||void 0===f?void 0:f.optional))));const O=A()({[`${n}-item-required`]:s,[`${n}-item-required-mark-optional`]:$||k,[`${n}-item-no-colon`]:!S});return e.createElement(NS,Object.assign({},b,{className:C}),e.createElement("label",{htmlFor:o,className:O,title:"string"==typeof r?r:""},w))},DS={success:Rb,warning:Fb,error:cf,validating:$u};function _S(t){let{children:n,errors:r,warnings:o,hasFeedback:i,validateStatus:a,prefixCls:l,meta:s,noStyle:c}=t;const u=`${l}-item`,{feedbackIcons:d}=e.useContext(Yo),f=pS(r,o,s,null,!!i,a),{isFormItemInput:p,status:m,hasFeedback:g,feedbackIcon:v}=e.useContext(ei),h=e.useMemo((()=>{var t;let n;if(i){const a=!0!==i&&i.icons||d,l=f&&(null===(t=null==a?void 0:a({status:f,errors:r,warnings:o}))||void 0===t?void 0:t[f]),s=f&&DS[f];n=!1!==l&&s?e.createElement("span",{className:A()(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},l||e.createElement(s,null)):null}const a={status:f||"",errors:r,warnings:o,hasFeedback:!!i,feedbackIcon:n,isFormItemInput:!0};return c&&(a.status=(null!=f?f:m)||"",a.isFormItemInput=p,a.hasFeedback=!!(null!=i?i:g),a.feedbackIcon=void 0!==i?a.feedbackIcon:v),a}),[f,i,c,p,m]);return e.createElement(ei.Provider,{value:h},n)}function VS(t){const{prefixCls:n,className:r,rootClassName:o,style:i,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:m,required:g,isRequired:v,onSubItemMetaChange:h,layout:b}=t,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(I&&E.current){const e=getComputedStyle(E.current);M(parseInt(e.marginBottom,10))}}),[I,j]);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return pS(e?$:u.errors,e?k:u.warnings,u,"",!!d,c)}(),N=A()(x,r,o,{[`${x}-with-help`]:O||$.length||k.length,[`${x}-has-feedback`]:R&&d,[`${x}-has-success`]:"success"===R,[`${x}-has-warning`]:"warning"===R,[`${x}-has-error`]:"error"===R,[`${x}-is-validating`]:"validating"===R,[`${x}-hidden`]:f,[`${x}-${b}`]:b});return e.createElement("div",{className:N,style:i,ref:E},e.createElement(jS,Object.assign({className:`${x}-row`},Uo(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),e.createElement(HS,Object.assign({htmlFor:m},t,{requiredMark:C,required:null!=g?g:v,prefixCls:n,vertical:S})),e.createElement(TS,Object.assign({},t,u,{errors:$,warnings:k,prefixCls:n,status:R,help:a,marginBottom:P,onErrorVisibleChanged:e=>{e||M(null)}}),e.createElement(Qo.Provider,{value:h},e.createElement(_S,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:R},p)))),!!P&&e.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-P}}))}const WS=e.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),qS=function(t){const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:m,hidden:g,help:v,layout:h}=t,{getPrefixCls:b}=e.useContext(ai),{name:y}=e.useContext(Yo),x=function(e){if("function"==typeof e)return e;const t=_e(e);return t.length<=1?t[0]:t}(c),C="function"==typeof x,w=e.useContext(Qo),{validateTrigger:S}=e.useContext(Fr),E=void 0!==m?m:S,$=!(null==n),k=b("form",a),O=pf(k),[I,j,P]=eS(k,O);nc();const M=e.useContext(Tr),R=e.useRef(null),[N,F]=function(){const[t,n]=e.useState({}),r=e.useRef(null),o=e.useRef([]),i=e.useRef(!1);return e.useEffect((()=>(i.current=!1,()=>{i.current=!0,Rn.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=Rn((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}(),[T,z]=Vt((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),B=(e,t)=>{F((n=>{const r=Object.assign({},n),o=[].concat(ye(e.name.slice(0,-1)),ye(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[L,H]=e.useMemo((()=>{const e=ye(T.errors),t=ye(T.warnings);return Object.values(N).forEach((n=>{e.push.apply(e,ye(n.errors||[])),t.push.apply(t,ye(n.warnings||[]))})),[e,t]}),[N,T.errors,T.warnings]),D=function(){const{itemRef:t}=e.useContext(Yo),n=e.useRef({});return function(e,r){const o=r&&"object"==typeof r&&ve(r),i=e.join("_");return n.current.name===i&&n.current.originRef===o||(n.current.name=i,n.current.originRef=o,n.current.ref=fe(t(e),o)),n.current.ref}}();function _(n,i,a){return r&&!g?e.createElement(_S,{prefixCls:k,hasFeedback:t.hasFeedback,validateStatus:t.validateStatus,meta:T,errors:L,warnings:H,noStyle:!0},n):e.createElement(VS,Object.assign({key:"row"},t,{className:A()(o,P,O,j),prefixCls:k,fieldId:i,isRequired:a,errors:L,warnings:H,meta:T,onSubItemMetaChange:B,layout:h}),n)}if(!$&&!C&&!i)return I(_(x));let V={};return"string"==typeof d?V.label=d:n&&(V.label=String(n)),f&&(V=Object.assign(Object.assign({},V),f)),I(e.createElement(Mo,Object.assign({},t,{messageVariables:V,trigger:p,validateTrigger:E,onMetaChange:e=>{const t=null==M?void 0:M.getKey(e.name);if(z(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==v&&w){let n=e.name;if(e.destroy)n=R.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ye(r)),R.current=n}w(e,n)}}}),((r,o,a)=>{const c=dS(n).length&&o?o.name:[],d=fS(c,y),f=void 0!==u?u:!!(null==s?void 0:s.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),m=Object.assign({},r);let g=null;if(Array.isArray(x)&&$)g=x;else if(C&&(!l&&!i||$));else if(!i||C||$)if(e.isValidElement(x)){const n=Object.assign(Object.assign({},x.props),m);if(n.id||(n.id=d),v||L.length>0||H.length>0||t.extra){const e=[];(v||L.length>0)&&e.push(`${d}_help`),t.extra&&e.push(`${d}_extra`),n["aria-describedby"]=e.join(" ")}L.length>0&&(n["aria-invalid"]="true"),f&&(n["aria-required"]="true"),me(x)&&(n.ref=D(c,x)),new Set([].concat(ye(dS(p)),ye(dS(E)))).forEach((e=>{n[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s{var{prefixCls:n,children:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({prefixCls:a,status:"error"})),[a]);return e.createElement(Ro,Object.assign({},o),((t,n,o)=>e.createElement(Jo.Provider,{value:l},r(t.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),n,{errors:o.errors,warnings:o.warnings}))))},XS.ErrorList=rS,XS.useForm=vS,XS.useFormInstance=function(){const{form:t}=e.useContext(Yo);return t},XS.useWatch=Go,XS.Provider=Zo,XS.create=()=>{};const KS=XS,US=t=>{const{actionOptions:n,addOperation:r}=t,o=45*n.length;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{padding:"10px 10px 0 10px",borderTop:"1px solid #ccc",overflowY:"hidden",minHeight:`${o}px`}},(0,e.createElement)(KS,{name:"add-graphql-operation",className:"variable-editor-title graphiql-explorer-actions",layout:"inline",onSubmit:e=>e.preventDefault()},n.map(((t,n)=>{const{type:o}=t;return(0,e.createElement)(Cd,{key:n,style:{marginBottom:"5px",textTransform:"capitalize"},block:!0,type:"primary",onClick:()=>r(o)},"Add New ",o)})))))},{useAppContext:YS}=wpGraphiQL,{GraphQLObjectType:QS,print:ZS}=wpGraphiQL.GraphQL,{useState:JS,useEffect:eE,useRef:tE}=wp.element,nE=t=>{const[n,r]=JS("query"),[o,i]=JS(null),[a,l]=JS(null);let s=tE(null);eE((()=>{}));const c=e=>{},{schema:u,query:d}=YS(),{makeDefaultArg:f}=t;if(!u)return(0,e.createElement)("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");const p={colors:t.colors||h,checkboxChecked:t.checkboxChecked||x,checkboxUnchecked:t.checkboxUnchecked||C,arrowClosed:t.arrowClosed||y,arrowOpen:t.arrowOpen||b,styles:t.styles?{...w,...t.styles}:w},m=u.getQueryType(),g=u.getMutationType(),k=u.getSubscriptionType();if(!m&&!g&&!k)return(0,e.createElement)("div",null,"Missing query type");const O=m&&m.getFields(),I=g&&g.getFields(),j=k&&k.getFields(),P=E(d),M=t.getDefaultFieldNames||v,N=t.getDefaultScalarArgValue||R,A=P.definitions.map((e=>"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null)).filter(Boolean),F=0===A.length?S.definitions:A;let T=[];O&&T.push({type:"query",label:"Queries",fields:()=>O}),j&&T.push({type:"subscription",label:"Subscriptions",fields:()=>j}),I&&T.push({type:"mutation",label:"Mutations",fields:()=>I});const z=(0,e.createElement)(US,{query:d,actionOptions:T,addOperation:e=>{const n=P.definitions,r=1===P.definitions.length&&P.definitions[0]===S.definitions[0],o=r?[]:n.filter((t=>"OperationDefinition"===t.kind&&t.operation===e)),i=`My${$(e)}${0===o.length?"":o.length+1}`,a={kind:"OperationDefinition",operation:e,name:{kind:"Name",value:i},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},l=r?[a]:[...P.definitions,a],s={...P,definitions:l};t.onEdit(ZS(s))}}),B=F.reduce(((e,t)=>{if("FragmentDefinition"===t.kind){const n=t.typeCondition.name.value,r=[...e[n]||[],t].sort(((e,t)=>e.name.value.localeCompare(t.name.value)));return{...e,[n]:r}}return e}),{});return(0,e.createElement)("div",{ref:e=>{s=e},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:0,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root antd-app"},(0,e.createElement)("div",{style:{flexGrow:1,overflowY:"scroll",width:"100%",padding:"8px"}},F.map(((n,r)=>{const o=n&&n.name&&n.name.value,i="FragmentDefinition"===n.kind?"fragment":n&&n.operation||"query",a="FragmentDefinition"===n.kind&&"NamedType"===n.typeCondition.kind&&u.getType(n.typeCondition.name.value),l=a instanceof QS?a.getFields():null,s="query"===i?O:"mutation"===i?I:"subscription"===i?j:"FragmentDefinition"===n.kind?l:null,d="FragmentDefinition"===n.kind?n.typeCondition.name.value:null,m=e=>{const n=ZS(e);t.onEdit(n)};return(0,e.createElement)(Hw,{key:r,index:r,isLast:r===F.length-1,fields:s,operationType:i,name:o,definition:n,onOperationRename:e=>{const r=((e,t)=>{const n=null==t||""===t?null:{kind:"Name",value:t,loc:void 0},r={...e,name:n},o=P.definitions.map((t=>e===t?r:t));return{...P,definitions:o}})(n,e);t.onEdit(ZS(r))},onOperationDestroy:()=>{const e=(e=>{const t=P.definitions.filter((t=>e!==t));return{...P,definitions:t}})(n);t.onEdit(ZS(e))},onOperationClone:()=>{const e=(e=>{let t;t="FragmentDefinition"===e.kind?"fragment":e.operation;const n={kind:"Name",value:(e.name&&e.name.value||"")+"Copy",loc:void 0},r={...e,name:n},o=[...P.definitions,r];return{...P,definitions:o}})(n);t.onEdit(ZS(e))},onTypeName:d,onMount:c,onCommit:m,onEdit:(e,t)=>{let r;if(r="object"!=typeof t||void 0===t.commit||t.commit,e){const t={...P,definitions:P.definitions.map((t=>t===n?e:t))};return r?(m(t),t):t}return P},schema:u,getDefaultFieldNames:M,getDefaultScalarArgValue:N,makeDefaultArg:f,onRunOperation:()=>{t.onRunOperation&&t.onRunOperation(o)},styleConfig:p,availableFragments:B})}))),z)};var rE=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={hasError:!1,error:null},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromError=function(e){return{hasError:!0,error:e}};var o=r.prototype;return o.componentDidCatch=function(e,t){return this.props.onDidCatch(e,t)},o.render=function(){var e=this.state,t=this.props,n=t.render,r=t.children,o=t.renderError;return e.hasError?o?o({error:e.error}):null:n?n():r||null},r}(e.PureComponent),oE=function(e,t){switch(t.type){case"catch":return{didCatch:!0,error:t.error};case"reset":return{didCatch:!1,error:null};default:return e}};const iE=({children:n})=>{const{ErrorBoundary:r,didCatch:o,error:i}=function(n){var r=(0,e.useReducer)(oE,{didCatch:!1,error:null}),o=r[0],i=r[1],a=(0,e.useRef)(null);function l(){return e=function(e,t){i({type:"catch",error:e}),n&&n.onDidCatch&&n.onDidCatch(e,t)},function(n){return t().createElement(rE,{onDidCatch:e,children:n.children,render:n.render,renderError:n.renderError})};var e}var s,c=(0,e.useCallback)((function(){a.current=l(),i({type:"reset"})}),[]);return{ErrorBoundary:(s=a.current,null!==s?s:(a.current=l(),a.current)),didCatch:o.didCatch,error:o.error,reset:c}}();return o&&console.warn({error:i}),o?(0,e.createElement)("div",{style:{padding:18,fontFamily:"sans-serif"}},(0,e.createElement)("div",null,"Something went wrong"),(0,e.createElement)("details",{style:{whiteSpace:"pre-wrap"}},i?i.message:null,(0,e.createElement)("br",null),i.stack?i.stack:null)):(0,e.createElement)(r,null,n)},{useAppContext:aE}=wpGraphiQL,{useState:lE,useEffect:sE}=wp.element,cE=({schema:t,children:n})=>t?(0,e.createElement)("div",{style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:0,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},n):(0,e.createElement)("div",{className:"graphiql-container"},(0,e.createElement)("div",{className:"error-container"},"No Schema Available")),uE=t=>{const{query:n,setQuery:r}=t,{schema:o}=aE(),[i,a]=lE(null);return sE((()=>{const e=E(n);i!==e&&a(e)}),[n]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(p,null,(0,e.createElement)(iE,null,(0,e.createElement)(cE,{schema:o},(0,e.createElement)(nE,{schema:o,query:n,onEdit:e=>{r(e)}})))))};function dE(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;var n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}var fE={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=dE(e,!0);return null==t?t:String(t)}},pE={encode:function(e){return null==e?e:e?"1":"0"},decode:function(e){var t=dE(e);return null==t?t:"1"===t||"0"!==t&&null}},mE=n(6663);'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]})),Object.prototype.hasOwnProperty,e.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}}),(0,mE.parse)("");const{hooks:gE}=window.wpGraphiQL;gE.addFilter("graphiql_toolbar_after_buttons","graphiql-extension",((t,n)=>{const{GraphiQL:r}=n,{toggleExplorer:o}=u();return t.push((0,e.createElement)(c.Consumer,{key:"graphiql-query-composer-button"},(t=>(0,e.createElement)(r.Button,{onClick:()=>{o()},label:"Query Composer",title:"Query Composer"})))),t})),gE.addFilter("graphiql_before_graphiql","graphiql-explorer",((t,n)=>(t.push((0,e.createElement)(uE,{...n,key:"graphiql-explorer"})),t))),gE.addFilter("graphiql_app","graphiql-explorer",((t,{appContext:n})=>(0,e.createElement)(d,{appContext:n},t)),99),gE.addFilter("graphiql_query_params_provider_config","graphiql-explorer",(e=>({...e,isQueryComposerOpen:pE,explorerIsOpen:fE})))})()})(); \ No newline at end of file diff --git a/lib/wp-graphql/build/index.asset.php b/lib/wp-graphql/build/index.asset.php index 5efcc5726..cf7a3def0 100644 --- a/lib/wp-graphql/build/index.asset.php +++ b/lib/wp-graphql/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-element', 'wp-hooks'), 'version' => '252dbaf55e1db7ca04ca'); + array('react', 'wp-element', 'wp-hooks'), 'version' => '42b004019b12ba709032'); diff --git a/lib/wp-graphql/build/index.js b/lib/wp-graphql/build/index.js index f05fbc161..df2f6f57b 100644 --- a/lib/wp-graphql/build/index.js +++ b/lib/wp-graphql/build/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={4291:(e,t,n)=>{n.d(t,{QG:()=>u,Us:()=>s});var r=n(1609),i=n(6087),o=n(3408);const a=(0,i.createContext)(),s=()=>(0,i.useContext)(a),u=({children:e,setQueryParams:t,queryParams:n})=>{const[s,u]=(0,i.useState)(null),[c,p]=(0,i.useState)(!0),[l,d]=(0,i.useState)(null!==(f=window?.wpGraphiQLSettings?.nonce)&&void 0!==f?f:null);var f;const[y,m]=(0,i.useState)(null!==(h=window?.wpGraphiQLSettings?.graphqlEndpoint)&&void 0!==h?h:null);var h;const[T,b]=(0,i.useState)(n);let v={endpoint:y,setEndpoint:m,nonce:l,setNonce:d,schema:s,setSchema:u,schemaLoading:c,setSchemaLoading:p,queryParams:T,setQueryParams:e=>{b(e),t(e)}},g=o.J.applyFilters("graphiql_app_context",v);return(0,r.createElement)(a.Provider,{value:g},e)}},3408:(e,t,n)=>{n.d(t,{J:()=>a});var r=n(3574);const i=window.wp.hooks;var o=n(4291);const a=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:a,useAppContext:o.Us,AppContextProvider:o.QG}},1702:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(5569),i=n(9530),o=n(825);class a extends Error{constructor(e,...t){var n,o,u;const{nodes:c,source:p,positions:l,path:d,originalError:f,extensions:y}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=p?p:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=l?l:null==m?void 0:m.map((e=>e.start)),this.locations=l&&p?l.map((e=>(0,i.getLocation)(p,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const h=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(u=null!=y?y:h)&&void 0!==u?u:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},9211:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(1702),i=n(1352),o=n(6107)},6107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=(0,r.toError)(e);return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,{nodes:null!==(o=a.nodes)&&void 0!==o?o:t,source:a.source,positions:a.positions,path:n,originalError:a});var s};var r=n(2036),i=n(1702)},1352:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(1702)},1516:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return u(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&u(e,t,n,r,s.selectionSet,o,a);return o};var r=n(7030),i=n(3754),o=n(8685),a=n(6693),s=n(8113);function u(e,t,n,i,o,a,s){for(const d of o.selections)switch(d.kind){case r.Kind.FIELD:{if(!c(n,d))continue;const e=(l=d).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(d):a.set(e,[d]);break}case r.Kind.INLINE_FRAGMENT:if(!c(n,d)||!p(e,d,i))continue;u(e,t,n,i,d.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=d.name.value;if(s.has(r)||!c(n,d))continue;s.add(r);const o=t[r];if(!o||!p(e,o,i))continue;u(e,t,n,i,o.selectionSet,a,s);break}}var l}function c(e,t){const n=(0,s.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function p(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.typeFromAST)(e,r);return o===n||!!(0,i.isAbstractType)(o)&&e.isSubType(o,n)}},6892:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=_,t.buildExecutionContext=L,t.buildResolveInfo=j,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=O,t.executeSync=function(e){const t=O(e);if((0,u.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=G;var r=n(3028),i=n(9657),o=n(1321),a=n(4820),s=n(5569),u=n(7724),c=n(2104),p=n(6506),l=n(4702),d=n(5662),f=n(1702),y=n(6107),m=n(6257),h=n(7030),T=n(3754),b=n(8364),v=n(9873),g=n(1516),E=n(8113);const N=(0,c.memoize3)(((e,t,n)=>(0,g.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n)));function O(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;_(t,n,i);const a=L(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new f.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,g.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return S(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,d.promiseReduce)(i.entries(),((i,[o,a])=>{const s=(0,p.addPath)(r,o,t.name),c=D(e,t,n,a,s);return void 0===c?i:(0,u.isPromise)(c)?c.then((e=>(i[o]=e,i))):(i[o]=c,i)}),Object.create(null))}(e,r,n,o,i);case m.OperationTypeNode.SUBSCRIPTION:return S(e,r,n,o,i)}}(a,e,o);return(0,u.isPromise)(t)?t.then((e=>I(e,a.errors)),(e=>(a.errors.push(e),I(null,a.errors)))):I(t,a.errors)}catch(e){return a.errors.push(e),I(null,a.errors)}}function I(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function _(e,t,n){t||(0,r.devAssert)(!1,"Must provide document."),(0,v.assertValidSchema)(e),null==n||(0,s.isObjectLike)(n)||(0,r.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function L(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:u,fieldResolver:c,typeResolver:p,subscribeFieldResolver:l}=e;let d;const y=Object.create(null);for(const e of i.definitions)switch(e.kind){case h.Kind.OPERATION_DEFINITION:if(null==u){if(void 0!==d)return[new f.GraphQLError("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===u&&(d=e);break;case h.Kind.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!d)return null!=u?[new f.GraphQLError(`Unknown operation named "${u}".`)]:[new f.GraphQLError("Must provide an operation.")];const m=null!==(n=d.variableDefinitions)&&void 0!==n?n:[],T=(0,E.getVariableValues)(r,m,null!=s?s:{},{maxErrors:50});return T.errors?T.errors:{schema:r,fragments:y,rootValue:o,contextValue:a,operation:d,variableValues:T.coerced,fieldResolver:null!=c?c:x,typeResolver:null!=p?p:F,subscribeFieldResolver:null!=l?l:x,errors:[]}}function S(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,c]of i.entries()){const i=D(e,t,n,c,(0,p.addPath)(r,s,t.name));void 0!==i&&(o[s]=i,(0,u.isPromise)(i)&&(a=!0))}}catch(e){if(a)return(0,l.promiseForObject)(o).finally((()=>{throw e}));throw e}return a?(0,l.promiseForObject)(o):o}function D(e,t,n,r,i){var o;const a=G(e.schema,t,r[0]);if(!a)return;const s=a.type,c=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,l=j(e,a,r,t,i);try{const t=c(n,(0,E.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,l);let o;return o=(0,u.isPromise)(t)?t.then((t=>P(e,s,r,l,i,t))):P(e,s,r,l,i,t),(0,u.isPromise)(o)?o.then(void 0,(t=>A((0,y.locatedError)(t,r,(0,p.pathToArray)(i)),s,e))):o}catch(t){return A((0,y.locatedError)(t,r,(0,p.pathToArray)(i)),s,e)}}function j(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function A(e,t,n){if((0,T.isNonNullType)(t))throw e;return n.errors.push(e),null}function P(e,t,n,r,s,c){if(c instanceof Error)throw c;if((0,T.isNonNullType)(t)){const i=P(e,t.ofType,n,r,s,c);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==c?null:(0,T.isListType)(t)?function(e,t,n,r,i,o){if(!(0,a.isIterableObject)(o))throw new f.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let c=!1;const l=Array.from(o,((t,o)=>{const a=(0,p.addPath)(i,o,void 0);try{let i;return i=(0,u.isPromise)(t)?t.then((t=>P(e,s,n,r,a,t))):P(e,s,n,r,a,t),(0,u.isPromise)(i)?(c=!0,i.then(void 0,(t=>A((0,y.locatedError)(t,n,(0,p.pathToArray)(a)),s,e)))):i}catch(t){return A((0,y.locatedError)(t,n,(0,p.pathToArray)(a)),s,e)}}));return c?Promise.all(l):l}(e,t,n,r,s,c):(0,T.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.inspect)(e)}.serialize(${(0,i.inspect)(t)})\` to return non-nullable value, returned: ${(0,i.inspect)(n)}`);return n}(t,c):(0,T.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,c=e.contextValue,p=s(o,c,r,t);return(0,u.isPromise)(p)?p.then((a=>w(e,R(a,e,t,n,r,o),n,r,i,o))):w(e,R(p,e,t,n,r,o),n,r,i,o)}(e,t,n,r,s,c):(0,T.isObjectType)(t)?w(e,t,n,r,s,c):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,i.inspect)(t))}function R(e,t,n,r,o,a){if(null==e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,T.isObjectType)(e))throw new f.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.inspect)(a)}, received "${(0,i.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,T.isObjectType)(s))throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function w(e,t,n,r,i,o){const a=N(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if((0,u.isPromise)(s))return s.then((r=>{if(!r)throw k(t,o,n);return S(e,t,o,i,a)}));if(!s)throw k(t,o,n)}return S(e,t,o,i,a)}function k(e,t,n){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const F=function(e,t,n,r){if((0,s.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return o.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return i.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return i.defaultTypeResolver}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return i.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return i.executeSync}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return a.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return a.getVariableValues}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.pathToArray}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return o.subscribe}});var r=n(6506),i=n(6892),o=n(9567),a=n(8113)},1215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapAsyncIterator=function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},9567:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await f(e);return(0,o.isAsyncIterable)(t)?(0,l.mapAsyncIterator)(t,(t=>(0,p.execute)({...e,rootValue:t}))):t};var r=n(3028),i=n(9657),o=n(1619),a=n(6506),s=n(1702),u=n(6107),c=n(1516),p=n(6892),l=n(1215),d=n(8113);async function f(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:l}=t;(0,p.assertValidExecutionArguments)(n,r,l);const f=(0,p.buildExecutionContext)(t);if(!("schema"in f))return{errors:f};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(null==l)throw new s.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});const f=(0,c.collectFields)(t,n,i,l,r.selectionSet),[y,m]=[...f.entries()][0],h=(0,p.getFieldDef)(t,l,m[0]);if(!h){const e=m[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:m})}const T=(0,a.addPath)(void 0,y,l.name),b=(0,p.buildResolveInfo)(e,h,m,l,T);try{var v;const t=(0,d.getArgumentValues)(h,m[0],i),n=e.contextValue,r=null!==(v=h.subscribe)&&void 0!==v?v:e.subscribeFieldResolver,a=await r(o,t,n,b);if(a instanceof Error)throw a;return a}catch(e){throw(0,u.locatedError)(e,m,(0,a.pathToArray)(T))}}(f);if(!(0,o.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.inspect)(e)}.`);return e}catch(e){if(e instanceof s.GraphQLError)return{errors:[e]};throw e}}},8113:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=f,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return f(e,i,n)},t.getVariableValues=function(e,t,n,i){const s=[],f=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const f of t){const t=f.variable.name.value,m=(0,l.typeFromAST)(e,f.type);if(!(0,c.isInputType)(m)){const e=(0,u.print)(f.type);i(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!y(n,t)){if(f.defaultValue)s[t]=(0,d.valueFromAST)(f.defaultValue,m);else if((0,c.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const h=n[t];if(null===h&&(0,c.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}))}else s[t]=(0,p.coerceInputValue)(h,m,((e,n,s)=>{let u=`Variable "$${t}" got invalid value `+(0,r.inspect)(n);e.length>0&&(u+=` at "${t}${(0,o.printPathArray)(e)}"`),i(new a.GraphQLError(u+"; "+s.message,{nodes:f,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=f&&s.length>=f)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:i}}catch(e){s.push(e)}return{errors:s}};var r=n(9657),i=n(4590),o=n(636),a=n(1702),s=n(7030),u=n(585),c=n(3754),p=n(4090),l=n(6693),d=n(2302);function f(e,t,n){var o;const p={},l=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.keyMap)(l,(e=>e.name.value));for(const i of e.args){const e=i.name,o=i.type,l=f[e];if(!l){if(void 0!==i.defaultValue)p[e]=i.defaultValue;else if((0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was not provided.`,{nodes:t});continue}const m=l.value;let h=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!y(n,t)){if(void 0!==i.defaultValue)p[e]=i.defaultValue;else if((0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:m});continue}h=null==n[t]}if(h&&(0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,r.inspect)(o)}" must not be null.`,{nodes:m});const T=(0,d.valueFromAST)(m,o,n);if(void 0===T)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,u.print)(m)}.`,{nodes:m});p[e]=T}return p}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9151:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise((t=>t(c(e))))},t.graphqlSync=function(e){const t=c(e);if((0,i.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(3028),i=n(7724),o=n(246),a=n(9873),s=n(9040),u=n(6892);function c(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:i,contextValue:c,variableValues:p,operationName:l,fieldResolver:d,typeResolver:f}=e,y=(0,a.validateSchema)(t);if(y.length>0)return{errors:y};let m;try{m=(0,o.parse)(n)}catch(e){return{errors:[e]}}const h=(0,s.validate)(t,m);return h.length>0?{errors:h}:(0,u.execute)({schema:t,document:m,rootValue:i,contextValue:c,variableValues:p,operationName:l,fieldResolver:d,typeResolver:f})}},3574:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return p.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return p.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return u.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return u.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return u.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return c.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return u.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return u.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return u.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return u.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return u.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return u.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return u.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return u.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return u.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return u.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return u.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return u.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return u.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return u.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return u.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return u.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return u.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return p.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return u.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return u.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return u.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return u.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return u.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return u.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return u.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return u.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return u.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return u.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return u.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return u.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return u.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return u.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return u.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return u.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return p.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return p.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return p.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return p.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return p.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return p.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return p.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return p.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return p.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return p.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return p.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return c.formatError}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return s.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return p.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return p.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return p.getOperationRootType}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return s.getVariableValues}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return p.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return p.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return p.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return p.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return p.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return c.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return c.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return p.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return p.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return p.printType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return o.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return o.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return p.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return u.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return p.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return c.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return p.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return p.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return p.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return p.visitWithTypeInfo}});var r=n(4274),i=n(9151),o=n(219),a=n(425),s=n(8259),u=n(4360),c=n(9211),p=n(4889)},6506:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},3028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},2832:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[r,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";r&&(o+=r+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,n),u=s.pop();return o+s.join(", ")+", or "+u+"?"};const n=5},4947:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},6033:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},9657:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return i(e,[])};const n=10,r=2;function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const o=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,o)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";const o=Math.min(n,e.length),a=e.length-o,s=[];for(let n=0;n1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}(e,o);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>r)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const o=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+o.join(", ")+" }"}(e,o)}(e,t);default:return String(e)}}},9527:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(9657);const i=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};t.instanceOf=i},1321:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},1619:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},4820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},5569:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},4590:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},5785:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},3430:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}},2104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},5745:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let r=0,o=0;for(;r0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(uc)return 1}else{if(as)return 1;++r,++o}}return e.length-t.length};const n=48,r=57;function i(e){return!isNaN(e)&&n<=e&&e<=r}},636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}},4702:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}},5662:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then((e=>t(e,n))):t(i,n);return i};var r=n(7724)},1709:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)}))};var r=n(5745);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.lengtht)return;const u=this._rows;for(let e=0;e<=s;e++)u[0][e]=e;for(let e=1;e<=a;e++){const n=u[(e-1)%3],o=u[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let c=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=u[(e-2)%3][t-2];c=Math.min(c,n+1)}ct)return}const c=u[a%3][s];return c<=t?c:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.toError=function(e){return e instanceof Error?e:new i(e)};var r=n(9657);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}},3101:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toObjMap=function(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}},6257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class r{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;const o=new Set(Object.keys(i));var a;t.OperationTypeNode=a,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(a||(t.OperationTypeNode=a={}))},9165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o1&&i.slice(1).every((e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),p=u||c,l=!(null!=t&&t.minimize)&&(!o||e.length>70||p||a||s);let d="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(l&&!f||a)&&(d+="\n"),d+=n,(l||p)&&(d+="\n"),'"""'+d+'"""'};var r=n(3932);function i(e){let t=0;for(;t{function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},5919:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},425:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return l.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return y.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return u.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return d.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return d.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return d.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return l.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return l.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return f.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return f.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return f.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return f.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return f.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return f.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return f.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return f.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return f.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return f.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return c.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return c.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return c.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return p.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return l.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return l.visitInParallel}});var r=n(6876),i=n(9530),o=n(825),a=n(7030),s=n(3038),u=n(6083),c=n(246),p=n(585),l=n(9111),d=n(6257),f=n(9187),y=n(5919)},7030:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},6083:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var r=n(1352),i=n(6257),o=n(9165),a=n(3932),s=n(3038);class u{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function p(e,t){return l(e.charCodeAt(t))&&d(e.charCodeAt(t+1))}function l(e){return e>=55296&&e<=56319}function d(e){return e>=56320&&e<=57343}function f(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function y(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function _(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,u=t+3,l=u,d="";const m=[];for(;u{Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(1321);const i=/\r\n|[\n\r]/g},246:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new p(e,t).parseDocument()},t.parseConstValue=function(e,t){const n=new p(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(c.TokenKind.EOF),r},t.parseType=function(e,t){const n=new p(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(c.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new p(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(c.TokenKind.EOF),r};var r=n(1352),i=n(6257),o=n(5919),a=n(7030),s=n(6083),u=n(6876),c=n(3038);class p{constructor(e,t={}){const n=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(c.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(c.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(c.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${l(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${d(e)}, found ${l(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${l(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${l(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function l(e){const t=e.value;return d(e.kind)+(null!=t?` "${t}"`:"")}function d(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=p},9187:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some((t=>e(t.value))):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||u(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=c,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=u,t.isValueNode=o;var r=n(7030);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function u(e){return e.kind===r.Kind.SCHEMA_EXTENSION||c(e)}function c(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},825:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9530);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,u=1===t.line?n:0,c=t.column+u,p=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return p+o([[s-1+" |",l[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},7583:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(9165),i=n(7583),o=n(9111);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=c("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+c(" = ",n)+c(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=c("",e,": ")+t;let a=o+c("(",s(n,", "),")");return a.length>80&&(a=o+c("(\n",p(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",c("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${c("(",s(n,", "),")")} on ${t} ${c("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>c("",e,"\n")+s(["schema",s(t," "),u(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>c("",e,"\n")+t+(l(n)?c("(\n",p(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>c("",e,"\n")+s([t+": "+n,c("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>c("",e,"\n")+s(["union",t,s(n," "),c("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>c("",e,"\n")+s(["enum",t,s(n," "),u(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>c("",e,"\n")+s(["input",t,s(n," "),u(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>c("",e,"\n")+"directive @"+t+(l(n)?c("(\n",p(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),u(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,c("implements ",s(t," & ")),s(n," "),u(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,c("implements ",s(t," & ")),s(n," "),u(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),c("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),u(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),u(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function u(e){return c("{\n",p(s(e,"\n")),"\n}")}function c(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return c(" ",e.replace(/\n/g,"\n "))}function l(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},6876:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(3028),i=n(9657),o=n(9527);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},3038:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},9111:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=u,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=u(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(a.Kind))c.set(e,u(t,e));let p,l,d,f=Array.isArray(e),y=[e],m=-1,h=[],T=e;const b=[],v=[];do{m++;const e=m===y.length,a=e&&0!==h.length;if(e){if(l=0===v.length?void 0:b[b.length-1],T=d,d=v.pop(),a)if(f){T=T.slice();let e=0;for(const[t,n]of h){const r=t-e;null===n?(T.splice(r,1),e++):T[r]=n}}else{T=Object.defineProperties({},Object.getOwnPropertyDescriptors(T));for(const[e,t]of h)T[e]=t}m=p.index,y=p.keys,h=p.edits,f=p.inArray,p=p.prev}else if(d){if(l=f?m:y[m],T=d[l],null==T)continue;b.push(l)}let u;if(!Array.isArray(T)){var g,E;(0,o.isNode)(T)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(T)}.`);const n=e?null===(g=c.get(T.kind))||void 0===g?void 0:g.leave:null===(E=c.get(T.kind))||void 0===E?void 0:E.enter;if(u=null==n?void 0:n.call(t,T,l,d,b,v),u===s)break;if(!1===u){if(!e){b.pop();continue}}else if(void 0!==u&&(h.push([l,u]),!e)){if(!(0,o.isNode)(u)){b.pop();continue}T=u}}var N;void 0===u&&a&&h.push([l,T]),e?b.pop():(p={inArray:f,index:m,keys:y,edits:h,prev:p},f=Array.isArray(T),y=f?T:null!==(N=n[T.kind])&&void 0!==N?N:[],m=-1,h=[],d&&v.push(d),d=T)}while(void 0!==p);return 0!==h.length?h[h.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.assertEnumValueName=function(e){if("true"===e||"false"===e||"null"===e)throw new i.GraphQLError(`Enum values cannot be named: ${e}`);return a(e)},t.assertName=a;var r=n(3028),i=n(1702),o=n(3932);function a(e){if(null!=e||(0,r.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new i.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0,t.argsToArgsConfig=Y,t.assertAbstractType=function(e){if(!R(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL abstract type.`);return e},t.assertCompositeType=function(e){if(!P(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL composite type.`);return e},t.assertEnumType=function(e){if(!I(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Enum type.`);return e},t.assertInputObjectType=function(e){if(!_(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Input Object type.`);return e},t.assertInputType=function(e){if(!D(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL input type.`);return e},t.assertInterfaceType=function(e){if(!N(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Interface type.`);return e},t.assertLeafType=function(e){if(!A(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL leaf type.`);return e},t.assertListType=function(e){if(!L(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL List type.`);return e},t.assertNamedType=function(e){if(!G(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL named type.`);return e},t.assertNonNullType=function(e){if(!S(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Non-Null type.`);return e},t.assertNullableType=function(e){if(!x(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`);return e},t.assertObjectType=function(e){if(!E(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Object type.`);return e},t.assertOutputType=function(e){if(!j(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL output type.`);return e},t.assertScalarType=function(e){if(!g(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Scalar type.`);return e},t.assertType=function(e){if(!v(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`);return e},t.assertUnionType=function(e){if(!O(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Union type.`);return e},t.assertWrappingType=function(e){if(!F(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL wrapping type.`);return e},t.defineArguments=U,t.getNamedType=function(e){if(e){let t=e;for(;F(t);)t=t.ofType;return t}},t.getNullableType=function(e){if(e)return S(e)?e.ofType:e},t.isAbstractType=R,t.isCompositeType=P,t.isEnumType=I,t.isInputObjectType=_,t.isInputType=D,t.isInterfaceType=N,t.isLeafType=A,t.isListType=L,t.isNamedType=G,t.isNonNullType=S,t.isNullableType=x,t.isObjectType=E,t.isOutputType=j,t.isRequiredArgument=function(e){return S(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return S(e.type)&&void 0===e.defaultValue},t.isScalarType=g,t.isType=v,t.isUnionType=O,t.isWrappingType=F,t.resolveObjMapThunk=C,t.resolveReadonlyArrayThunk=V;var r=n(3028),i=n(2832),o=n(6033),a=n(9657),s=n(9527),u=n(5569),c=n(4590),p=n(5785),l=n(3430),d=n(1709),f=n(3101),y=n(1702),m=n(7030),h=n(585),T=n(8805),b=n(3506);function v(e){return g(e)||E(e)||N(e)||O(e)||I(e)||_(e)||L(e)||S(e)}function g(e){return(0,s.instanceOf)(e,M)}function E(e){return(0,s.instanceOf)(e,K)}function N(e){return(0,s.instanceOf)(e,J)}function O(e){return(0,s.instanceOf)(e,X)}function I(e){return(0,s.instanceOf)(e,z)}function _(e){return(0,s.instanceOf)(e,Z)}function L(e){return(0,s.instanceOf)(e,w)}function S(e){return(0,s.instanceOf)(e,k)}function D(e){return g(e)||I(e)||_(e)||F(e)&&D(e.ofType)}function j(e){return g(e)||E(e)||N(e)||O(e)||I(e)||F(e)&&j(e.ofType)}function A(e){return g(e)||I(e)}function P(e){return E(e)||N(e)||O(e)}function R(e){return N(e)||O(e)}class w{constructor(e){v(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=w;class k{constructor(e){x(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function F(e){return L(e)||S(e)}function x(e){return v(e)&&!S(e)}function G(e){return g(e)||E(e)||N(e)||O(e)||I(e)||_(e)}function V(e){return"function"==typeof e?e():e}function C(e){return"function"==typeof e?e():e}t.GraphQLNonNull=k;class M{constructor(e){var t,n,i,s;const u=null!==(t=e.parseValue)&&void 0!==t?t:o.identityFunc;this.name=(0,b.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.identityFunc,this.parseValue=u,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>u((0,T.valueFromASTUntyped)(e,t)),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=M;class K{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>$(e),this._interfaces=()=>Q(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:q(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Q(e){var t;const n=V(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $(e){const t=C(e.fields);return B(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,l.mapValue)(t,((t,n)=>{var i;B(t)||(0,r.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return B(o)||(0,r.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,b.assertName)(n),description:t.description,type:t.type,args:U(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}}))}function U(e){return Object.entries(e).map((([e,t])=>({name:(0,b.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}function B(e){return(0,u.isObjectLike)(e)&&!Array.isArray(e)}function q(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:Y(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Y(e){return(0,p.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}t.GraphQLObjectType=K;class J{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$.bind(void 0,e),this._interfaces=Q.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:q(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=J;class X{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=H.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function H(e){const t=V(e.types);return Array.isArray(t)||(0,r.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=X;class z{constructor(e){var t,n,i;this.name=(0,b.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,B(i=e.values)||(0,r.devAssert)(!1,`${n} values must be an object with value names as keys.`),Object.entries(i).map((([e,t])=>(B(t)||(0,r.devAssert)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${(0,a.inspect)(t)}.`),{name:(0,b.assertEnumValueName)(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=(0,c.keyMap)(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new y.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,a.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.inspect)(e);throw new y.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+W(this,t))}const t=this.getValue(e);if(null==t)throw new y.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+W(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,h.print)(e);throw new y.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+W(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,h.print)(e);throw new y.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+W(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,p.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function W(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.suggestionList)(t,n);return(0,i.didYouMean)("the enum value",r)}t.GraphQLEnumType=z;class Z{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ee.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ee(e){const t=C(e.fields);return B(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,l.mapValue)(t,((t,n)=>(!("resolve"in t)||(0,r.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,b.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}t.GraphQLInputObjectType=Z},8685:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!d(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=d,t.isSpecifiedDirective=function(e){return v.some((({name:t})=>t===e.name))},t.specifiedDirectives=void 0;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),u=n(5919),c=n(3506),p=n(3754),l=n(1062);function d(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.name=(0,c.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.devAssert)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.isObjectLike)(i)&&!Array.isArray(i)||(0,r.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,p.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=f;const y=new f({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[u.DirectiveLocation.FIELD,u.DirectiveLocation.FRAGMENT_SPREAD,u.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=y;const m=new f({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[u.DirectiveLocation.FIELD,u.DirectiveLocation.FRAGMENT_SPREAD,u.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const h="No longer supported";t.DEFAULT_DEPRECATION_REASON=h;const T=new f({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[u.DirectiveLocation.FIELD_DEFINITION,u.DirectiveLocation.ARGUMENT_DEFINITION,u.DirectiveLocation.INPUT_FIELD_DEFINITION,u.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:h}}});t.GraphQLDeprecatedDirective=T;const b=new f({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[u.DirectiveLocation.SCALAR],args:{url:{type:new p.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=b;const v=Object.freeze([y,m,T,b]);t.specifiedDirectives=v},219:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return c.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return c.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return u.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return i.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return i.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return u.validateSchema}});var r=n(4648),i=n(3754),o=n(8685),a=n(1062),s=n(8364),u=n(9873),c=n(3506)},8364:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return N.some((({name:t})=>e.name===t))};var r=n(9657),i=n(1321),o=n(5919),a=n(585),s=n(8096),u=n(3754),c=n(1062);const p=new u.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new u.GraphQLNonNull(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=p;const l=new u.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})});t.__Directive=l;const d=new u.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const f=new u.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.GraphQLNonNull(b),resolve:e=>(0,u.isScalarType)(e)?T.SCALAR:(0,u.isObjectType)(e)?T.OBJECT:(0,u.isInterfaceType)(e)?T.INTERFACE:(0,u.isUnionType)(e)?T.UNION:(0,u.isEnumType)(e)?T.ENUM:(0,u.isInputObjectType)(e)?T.INPUT_OBJECT:(0,u.isListType)(e)?T.LIST:(0,u.isNonNullType)(e)?T.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(y)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new u.GraphQLList(new u.GraphQLNonNull(f)),resolve(e){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(f)),resolve(e,t,n,{schema:r}){if((0,u.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,u.isEnumType)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,u.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0}})});t.__Type=f;const y=new u.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new u.GraphQLNonNull(f),resolve:e=>e.type},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=y;const m=new u.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new u.GraphQLNonNull(f),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,a.print)(r):null}},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const h=new u.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});var T;t.__EnumValue=h,t.TypeKind=T,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(T||(t.TypeKind=T={}));const b=new u.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:T.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:T.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:T.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:T.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:T.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:T.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:T.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:T.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=b;const v={name:"__schema",type:new u.GraphQLNonNull(p),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=v;const g={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.GraphQLNonNull(c.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=g;const E={name:"__typename",type:new u.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=E;const N=Object.freeze([p,l,d,f,y,m,h,b]);t.introspectionTypes=N},1062:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0,t.isSpecifiedScalarType=function(e){return h.some((({name:t})=>e.name===t))},t.specifiedScalarTypes=void 0;var r=n(9657),i=n(5569),o=n(1702),a=n(7030),s=n(585),u=n(3754);const c=2147483647;t.GRAPHQL_MAX_INT=c;const p=-2147483648;t.GRAPHQL_MIN_INT=p;const l=new u.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=T(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>c||nc||ec||t{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0,t.assertSchema=function(e){if(!d(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL schema.`);return e},t.isSchema=d;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),u=n(6257),c=n(3754),p=n(8685),l=n(8364);function d(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.isObjectLike)(e)||(0,r.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:p.specifiedDirectives;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),y(t,o);null!=this._queryType&&y(this._queryType,o),null!=this._mutationType&&y(this._mutationType,o),null!=this._subscriptionType&&y(this._subscriptionType,o);for(const e of this._directives)if((0,p.isDirective)(e))for(const t of e.args)y(t.type,o);y(l.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,c.isInterfaceType)(e)){for(const t of e.getInterfaces())if((0,c.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,c.isObjectType)(e))for(const t of e.getInterfaces())if((0,c.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.OperationTypeNode.QUERY:return this.getQueryType();case u.OperationTypeNode.MUTATION:return this.getMutationType();case u.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,c.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,c.isUnionType)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function y(e,t){const n=(0,c.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,c.isUnionType)(n))for(const e of n.getTypes())y(e,t);else if((0,c.isObjectType)(n)||(0,c.isInterfaceType)(n)){for(const e of n.getInterfaces())y(e,t);for(const e of Object.values(n.getFields())){y(e.type,t);for(const n of e.args)y(n.type,t)}}else if((0,c.isInputObjectType)(n))for(const e of Object.values(n.getFields()))y(e.type,t);return t}t.GraphQLSchema=f},9873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=l(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.validateSchema=l;var r=n(9657),i=n(1702),o=n(6257),a=n(3448),s=n(3754),u=n(8685),c=n(8364),p=n(4648);function l(e){if((0,p.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new d(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=f(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var u;a&&!(0,s.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(u=f(t,o.OperationTypeNode.MUTATION))&&void 0!==u?u:a.astNode);const c=t.getSubscriptionType();var p;c&&!(0,s.isObjectType)(c)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(c)}.`,null!==(p=f(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==p?p:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,u.isDirective)(n)){y(e,n);for(const i of n.args){var t;y(e,i),(0,s.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,s.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[I(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.isNonNullType)(t.type)&&(0,s.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.isNamedType)(i)?((0,c.isIntrospectionType)(i)||y(e,i),(0,s.isObjectType)(i)||(0,s.isInterfaceType)(i)?(m(e,i),h(e,i)):(0,s.isUnionType)(i)?v(e,i):(0,s.isEnumType)(i)?g(e,i):(0,s.isInputObjectType)(i)&&(E(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class d{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}}function f(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function y(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const u of n){var i;y(e,u),(0,s.isOutputType)(u.type)||e.reportError(`The type of ${t.name}.${u.name} must be Output Type but got: ${(0,r.inspect)(u.type)}.`,null===(i=u.astNode)||void 0===i?void 0:i.type);for(const n of u.args){const i=n.name;var o,a;y(e,n),(0,s.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${u.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${u.name}(${i}:) cannot be deprecated.`,[I(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function h(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,N(t,i)):(n[i.name]=!0,b(e,t,i),T(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,N(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,N(t,i))}function T(e,t,n){const i=t.getFields();for(const l of Object.values(n.getFields())){const d=l.name,f=i[d];if(f){var o,u;(0,a.isTypeSubTypeOf)(e.schema,f.type,l.type)||e.reportError(`Interface field ${n.name}.${d} expects type ${(0,r.inspect)(l.type)} but ${t.name}.${d} is type ${(0,r.inspect)(f.type)}.`,[null===(o=l.astNode)||void 0===o?void 0:o.type,null===(u=f.astNode)||void 0===u?void 0:u.type]);for(const i of l.args){const o=i.name,s=f.args.find((e=>e.name===o));var c,p;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${d}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(c=i.astNode)||void 0===c?void 0:c.type,null===(p=s.astNode)||void 0===p?void 0:p.type]):e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!l.args.find((e=>e.name===i))&&(0,s.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${i} that is missing from the Interface field ${n.name}.${d}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function b(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...N(n,i),...N(t,n)])}function v(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,O(t,o.name)):(i[o.name]=!0,(0,s.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,O(t,String(o))))}function g(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)y(e,t)}function E(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;y(e,a),(0,s.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[I(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function N(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function O(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function I(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===u.GraphQLDeprecatedDirective.name))}},7485:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.getEnterLeaveForKind)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(6257),i=n(7030),o=n(9111),a=n(3754),s=n(8364),u=n(6693);class c{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:p,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case i.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,u.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case i.Kind.VARIABLE_DEFINITION:{const n=(0,u.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case i.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case i.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}}}function p(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=c},8426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(3028),i=n(1702),o=n(3506);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},8096:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,u.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,u.isListType)(n)){const r=n.ofType;if((0,o.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,u.isInputObjectType)(n)){if(!(0,a.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,u.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return p.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,u.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===c.GraphQLID&&p.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(9657),i=n(1321),o=n(4820),a=n(5569),s=n(7030),u=n(3754),c=n(1062);const p=/^-?(?:0|[1-9][0-9]*)$/},434:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=p,t.buildSchema=function(e,t){return p((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(3028),i=n(7030),o=n(246),a=n(8685),s=n(4648),u=n(9040),c=n(1442);function p(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,u.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,c.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const p=[...o.directives,...a.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new s.GraphQLSchema({...o,directives:p})}},6613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,r.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.inspect)(e)}.`);const n=e.__schema,y=(0,a.keyValMap)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case p.TypeKind.SCALAR:return r=e,new u.GraphQLScalarType({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case p.TypeKind.OBJECT:return n=e,new u.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>O(n),fields:()=>I(n)});case p.TypeKind.INTERFACE:return t=e,new u.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>O(t),fields:()=>I(t)});case p.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new u.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(E)})}(e);case p.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new u.GraphQLEnumType({name:e.name,description:e.description,values:(0,a.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case p.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new u.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>L(e.inputFields)})}(e)}var t,n,r;const o=(0,i.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const e of[...l.specifiedScalarTypes,...p.introspectionTypes])y[e.name]&&(y[e.name]=e);const m=n.queryType?E(n.queryType):null,h=n.mutationType?E(n.mutationType):null,T=n.subscriptionType?E(n.subscriptionType):null,b=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new c.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:L(e.args)})})):[];return new d.GraphQLSchema({description:n.description,query:m,mutation:h,subscription:T,types:Object.values(y),directives:b,assumeValid:null==t?void 0:t.assumeValid});function v(e){if(e.kind===p.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new u.GraphQLList(v(t))}if(e.kind===p.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=v(t);return new u.GraphQLNonNull((0,u.assertNullableType)(n))}return g(e)}function g(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.inspect)(e)}.`);const n=y[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function E(e){return(0,u.assertObjectType)(g(e))}function N(e){return(0,u.assertInterfaceType)(g(e))}function O(e){if(null===e.interfaces&&e.kind===p.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(N)}function I(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.inspect)(e)}.`);return(0,a.keyValMap)(e.fields,(e=>e.name),_)}function _(e){const t=v(e.type);if(!(0,u.isOutputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:L(e.args)}}function L(e){return(0,a.keyValMap)(e,(e=>e.name),S)}function S(e){const t=v(e.type);if(!(0,u.isInputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(3028),i=n(9657),o=n(5569),a=n(5785),s=n(246),u=n(3754),c=n(8685),p=n(8364),l=n(1062),d=n(4648),f=n(2302)},4090:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=f){return y(e,t,n,void 0)};var r=n(2832),i=n(9657),o=n(1321),a=n(4820),s=n(5569),u=n(6506),c=n(636),p=n(1709),l=n(1702),d=n(3754);function f(e,t,n){let r="Invalid value "+(0,i.inspect)(t);throw e.length>0&&(r+=` at "value${(0,c.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function y(e,t,n,c){if((0,d.isNonNullType)(t))return null!=e?y(e,t.ofType,n,c):void n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected non-nullable type "${(0,i.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,d.isListType)(t)){const r=t.ofType;return(0,a.isIterableObject)(e)?Array.from(e,((e,t)=>{const i=(0,u.addPath)(c,t,void 0);return y(e,r,n,i)})):[y(e,r,n,c)]}if((0,d.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return void n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=y(a,r.type,n,(0,u.addPath)(c,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,d.isNonNullType)(r.type)){const t=(0,i.inspect)(r.type);n((0,u.pathToArray)(c),e,new l.GraphQLError(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,p.suggestionList)(i,Object.keys(t.getFields()));n((0,u.pathToArray)(c),e,new l.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}return o}if((0,d.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof l.GraphQLError?n((0,u.pathToArray)(c),e,r):n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected type "${t.name}".`)),r}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(t))}},3129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(7030)},1442:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,y.assertSchema)(e),null!=t&&t.kind===u.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,m.assertValidSDLExtension)(t,e);const i=e.toConfig(),o=b(i,t,n);return i===o?e:new y.GraphQLSchema(o)},t.extendSchemaImpl=b;var r=n(3028),i=n(9657),o=n(1321),a=n(4590),s=n(3430),u=n(7030),c=n(9187),p=n(3754),l=n(8685),d=n(8364),f=n(1062),y=n(4648),m=n(9040),h=n(8113),T=n(2302);function b(e,t,n){var r,a,y,m;const h=[],b=Object.create(null),N=[];let O;const I=[];for(const e of t.definitions)if(e.kind===u.Kind.SCHEMA_DEFINITION)O=e;else if(e.kind===u.Kind.SCHEMA_EXTENSION)I.push(e);else if((0,c.isTypeDefinitionNode)(e))h.push(e);else if((0,c.isTypeExtensionNode)(e)){const t=e.name.value,n=b[t];b[t]=n?n.concat([e]):[e]}else e.kind===u.Kind.DIRECTIVE_DEFINITION&&N.push(e);if(0===Object.keys(b).length&&0===h.length&&0===N.length&&0===I.length&&null==O)return e;const _=Object.create(null);for(const t of e.types)_[t.name]=(L=t,(0,d.isIntrospectionType)(L)||(0,f.isSpecifiedScalarType)(L)?L:(0,p.isScalarType)(L)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=E(e))&&void 0!==o?o:i}return new p.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(L):(0,p.isObjectType)(L)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new p.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(A),...M(r)],fields:()=>({...(0,s.mapValue)(n.fields,P),...x(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(L):(0,p.isInterfaceType)(L)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new p.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(A),...M(r)],fields:()=>({...(0,s.mapValue)(n.fields,P),...x(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(L):(0,p.isUnionType)(L)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new p.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(A),...K(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(L):(0,p.isEnumType)(L)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[e.name])&&void 0!==t?t:[];return new p.GraphQLEnumType({...n,values:{...n.values,...C(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(L):(0,p.isInputObjectType)(L)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new p.GraphQLInputObjectType({...n,fields:()=>({...(0,s.mapValue)(n.fields,(e=>({...e,type:j(e.type)}))),...V(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(L):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(L)));var L;for(const e of h){var S;const t=e.name.value;_[t]=null!==(S=v[t])&&void 0!==S?S:Q(e)}const D={query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription),...O&&w([O]),...w(I)};return{description:null===(r=O)||void 0===r||null===(a=r.description)||void 0===a?void 0:a.value,...D,types:Object.values(_),directives:[...e.directives.map((function(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,R)})})),...N.map((function(e){var t;return new l.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:G(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(y=O)&&void 0!==y?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(I),assumeValid:null!==(m=null==n?void 0:n.assumeValid)&&void 0!==m&&m};function j(e){return(0,p.isListType)(e)?new p.GraphQLList(j(e.ofType)):(0,p.isNonNullType)(e)?new p.GraphQLNonNull(j(e.ofType)):A(e)}function A(e){return _[e.name]}function P(e){return{...e,type:j(e.type),args:e.args&&(0,s.mapValue)(e.args,R)}}function R(e){return{...e,type:j(e.type)}}function w(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=k(n.type)}return t}function k(e){var t;const n=e.name.value,r=null!==(t=v[n])&&void 0!==t?t:_[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function F(e){return e.kind===u.Kind.LIST_TYPE?new p.GraphQLList(F(e.type)):e.kind===u.Kind.NON_NULL_TYPE?new p.GraphQLNonNull(F(e.type)):k(e)}function x(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:F(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:G(n.arguments),deprecationReason:g(n),astNode:n}}}return t}function G(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=F(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,T.valueFromAST)(e.defaultValue,t),deprecationReason:g(e),astNode:e}}return n}function V(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=F(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,T.valueFromAST)(n.defaultValue,e),deprecationReason:g(n),astNode:n}}}return t}function C(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:g(n),astNode:n}}}return t}function M(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(k))&&void 0!==t?t:[]}))}function K(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(k))&&void 0!==t?t:[]}))}function Q(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:[];switch(e.kind){case u.Kind.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new p.GraphQLObjectType({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>M(t),fields:()=>x(t),astNode:e,extensionASTNodes:r})}case u.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new p.GraphQLInterfaceType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>M(t),fields:()=>x(t),astNode:e,extensionASTNodes:r})}case u.Kind.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new p.GraphQLEnumType({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:C(t),astNode:e,extensionASTNodes:r})}case u.Kind.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new p.GraphQLUnionType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>K(t),astNode:e,extensionASTNodes:r})}case u.Kind.SCALAR_TYPE_DEFINITION:var c;return new p.GraphQLScalarType({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:E(e),astNode:e,extensionASTNodes:r});case u.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...r];return new p.GraphQLInputObjectType({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>V(t),astNode:e,extensionASTNodes:r})}}}}const v=(0,a.keyMap)([...f.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function g(e){const t=(0,h.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function E(e){const t=(0,h.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},3666:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return f(e,t).filter((e=>e.type in r))},t.findDangerousChanges=function(e,t){return f(e,t).filter((e=>e.type in i))};var r,i,o=n(9657),a=n(1321),s=n(4590),u=n(585),c=n(3754),p=n(1062),l=n(8096),d=n(1152);function f(e,t){return[...m(e,t),...y(e,t)]}function y(e,t){const n=[],i=L(e.getDirectives(),t.getDirectives());for(const e of i.removed)n.push({type:r.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of i.persisted){const i=L(e.args,t.args);for(const t of i.added)(0,c.isRequiredArgument)(t)&&n.push({type:r.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of i.removed)n.push({type:r.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:r.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const i of e.locations)t.locations.includes(i)||n.push({type:r.DIRECTIVE_LOCATION_REMOVED,description:`${i} was removed from ${e.name}.`})}return n}function m(e,t){const n=[],i=L(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of i.removed)n.push({type:r.TYPE_REMOVED,description:(0,p.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of i.persisted)(0,c.isEnumType)(e)&&(0,c.isEnumType)(t)?n.push(...b(e,t)):(0,c.isUnionType)(e)&&(0,c.isUnionType)(t)?n.push(...T(e,t)):(0,c.isInputObjectType)(e)&&(0,c.isInputObjectType)(t)?n.push(...h(e,t)):(0,c.isObjectType)(e)&&(0,c.isObjectType)(t)||(0,c.isInterfaceType)(e)&&(0,c.isInterfaceType)(t)?n.push(...g(e,t),...v(e,t)):e.constructor!==t.constructor&&n.push({type:r.TYPE_CHANGED_KIND,description:`${e.name} changed from ${I(e)} to ${I(t)}.`});return n}function h(e,t){const n=[],o=L(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of o.added)(0,c.isRequiredInputField)(t)?n.push({type:r.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:i.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of o.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of o.persisted)O(t.type,i.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function T(e,t){const n=[],o=L(e.getTypes(),t.getTypes());for(const t of o.added)n.push({type:i.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of o.removed)n.push({type:r.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function b(e,t){const n=[],o=L(e.getValues(),t.getValues());for(const t of o.added)n.push({type:i.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of o.removed)n.push({type:r.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function v(e,t){const n=[],o=L(e.getInterfaces(),t.getInterfaces());for(const t of o.added)n.push({type:i.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of o.removed)n.push({type:r.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function g(e,t){const n=[],i=L(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of i.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of i.persisted)n.push(...E(e,t,o)),N(t.type,o.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`});return n}function E(e,t,n){const o=[],a=L(t.args,n.args);for(const n of a.removed)o.push({type:r.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,s]of a.persisted)if(O(n.type,s.type)){if(void 0!==n.defaultValue)if(void 0===s.defaultValue)o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const r=_(n.defaultValue,n.type),a=_(s.defaultValue,s.type);r!==a&&o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:r.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(s.type)}.`});for(const n of a.added)(0,c.isRequiredArgument)(n)?o.push({type:r.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):o.push({type:i.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return o}function N(e,t){return(0,c.isListType)(e)?(0,c.isListType)(t)&&N(e.ofType,t.ofType)||(0,c.isNonNullType)(t)&&N(e,t.ofType):(0,c.isNonNullType)(e)?(0,c.isNonNullType)(t)&&N(e.ofType,t.ofType):(0,c.isNamedType)(t)&&e.name===t.name||(0,c.isNonNullType)(t)&&N(e,t.ofType)}function O(e,t){return(0,c.isListType)(e)?(0,c.isListType)(t)&&O(e.ofType,t.ofType):(0,c.isNonNullType)(e)?(0,c.isNonNullType)(t)&&O(e.ofType,t.ofType)||!(0,c.isNonNullType)(t)&&O(e.ofType,t):(0,c.isNamedType)(t)&&e.name===t.name}function I(e){return(0,c.isScalarType)(e)?"a Scalar type":(0,c.isObjectType)(e)?"an Object type":(0,c.isInterfaceType)(e)?"an Interface type":(0,c.isUnionType)(e)?"a Union type":(0,c.isEnumType)(e)?"an Enum type":(0,c.isInputObjectType)(e)?"an Input type":void(0,a.invariant)(!1,"Unexpected type: "+(0,o.inspect)(e))}function _(e,t){const n=(0,l.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,u.print)((0,d.sortValueNode)(n))}function L(e,t){const n=[],r=[],i=[],o=(0,s.keyMap)(e,(({name:e})=>e)),a=(0,s.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}t.BreakingChangeType=r,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(r||(t.BreakingChangeType=r={})),t.DangerousChangeType=i,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(i||(t.DangerousChangeType=i={}))},6032:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},3810:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(7030)},4676:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})};var r=n(1702)},4889:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return O.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return O.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return h.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return N.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return T.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return b.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return E.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return c.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return O.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return O.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return E.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return E.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return N.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return p.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return l.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return l.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return l.printType}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return v.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return g.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return d.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return f.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return y.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return h.visitWithTypeInfo}});var r=n(6032),i=n(3810),o=n(4676),a=n(5197),s=n(6613),u=n(434),c=n(1442),p=n(7460),l=n(2254),d=n(6693),f=n(2302),y=n(8805),m=n(8096),h=n(7485),T=n(4090),b=n(3129),v=n(1070),g=n(8401),E=n(3448),N=n(8426),O=n(3666)},5197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),u=(0,o.executeSync)({schema:e,document:s});return!u.errors&&u.data||(0,r.invariant)(!1),u.data};var r=n(1321),i=n(246),o=n(6892),a=n(6032)},7460:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(d(t.types),(e=>e.name),(function(e){if((0,s.isScalarType)(e)||(0,c.isIntrospectionType)(e))return e;if((0,s.isObjectType)(e)){const t=e.toConfig();return new s.GraphQLObjectType({...t,interfaces:()=>b(t.interfaces),fields:()=>T(t.fields)})}if((0,s.isInterfaceType)(e)){const t=e.toConfig();return new s.GraphQLInterfaceType({...t,interfaces:()=>b(t.interfaces),fields:()=>T(t.fields)})}if((0,s.isUnionType)(e)){const t=e.toConfig();return new s.GraphQLUnionType({...t,types:()=>b(t.types)})}if((0,s.isEnumType)(e)){const t=e.toConfig();return new s.GraphQLEnumType({...t,values:l(t.values,(e=>e))})}if((0,s.isInputObjectType)(e)){const t=e.toConfig();return new s.GraphQLInputObjectType({...t,fields:()=>l(t.fields,(e=>({...e,type:a(e.type)})))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}));return new p.GraphQLSchema({...t,types:Object.values(n),directives:d(t.directives).map((function(e){const t=e.toConfig();return new u.GraphQLDirective({...t,locations:f(t.locations,(e=>e)),args:h(t.args)})})),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,s.isListType)(e)?new s.GraphQLList(a(e.ofType)):(0,s.isNonNullType)(e)?new s.GraphQLNonNull(a(e.ofType)):y(e)}function y(e){return n[e.name]}function m(e){return e&&y(e)}function h(e){return l(e,(e=>({...e,type:a(e.type)})))}function T(e){return l(e,(e=>({...e,type:a(e.type),args:e.args&&h(e.args)})))}function b(e){return d(e).map(y)}};var r=n(9657),i=n(1321),o=n(5785),a=n(5745),s=n(3754),u=n(8685),c=n(8364),p=n(4648);function l(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(a.naturalCompare))n[r]=t(e[r]);return n}function d(e){return f(e,(e=>e.name))}function f(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)}))}},2254:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return y(e,c.isSpecifiedDirective,p.isIntrospectionType)},t.printSchema=function(e){return y(e,(e=>!(0,c.isSpecifiedDirective)(e)),f)},t.printType=h;var r=n(9657),i=n(1321),o=n(9165),a=n(7030),s=n(585),u=n(3754),c=n(8685),p=n(8364),l=n(1062),d=n(8096);function f(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,p.isIntrospectionType)(e)}function y(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map((e=>function(e){return O(e)+"directive @"+e.name+g(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>h(e)))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),O(e)+`schema {\n${t.join("\n")}\n}`}function h(e){return(0,u.isScalarType)(e)?function(e){return O(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,s.print)({kind:a.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,u.isObjectType)(e)?function(e){return O(e)+`type ${e.name}`+T(e)+b(e)}(e):(0,u.isInterfaceType)(e)?function(e){return O(e)+`interface ${e.name}`+T(e)+b(e)}(e):(0,u.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return O(e)+"union "+e.name+n}(e):(0,u.isEnumType)(e)?function(e){const t=e.getValues().map(((e,t)=>O(e," ",!t)+" "+e.name+N(e.deprecationReason)));return O(e)+`enum ${e.name}`+v(t)}(e):(0,u.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>O(e," ",!t)+" "+E(e)));return O(e)+`input ${e.name}`+v(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function T(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function b(e){return v(Object.values(e.getFields()).map(((e,t)=>O(e," ",!t)+" "+e.name+g(e.args," ")+": "+String(e.type)+N(e.deprecationReason))))}function v(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function g(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(E).join(", ")+")":"(\n"+e.map(((e,n)=>O(e," "+t,!n)+" "+t+E(e))).join("\n")+"\n"+t+")"}function E(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,s.print)(t)}`),n+N(e.deprecationReason)}function N(e){return null==e?"":e!==c.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,s.print)({kind:a.Kind.STRING,value:e})})`:" @deprecated"}function O(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,s.print)({kind:a.Kind.STRING,value:r,block:(0,o.isPrintableAsBlockString)(r)}).replace(/\n/g,"\n"+t)+"\n"}},1070:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return i};var r=n(7030),i=n(9111);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},1152:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sortValueNode=function e(t){switch(t.kind){case i.Kind.OBJECT:return{...t,fields:(n=t.fields,n.map((t=>({...t,value:e(t.value)}))).sort(((e,t)=>(0,r.naturalCompare)(e.name.value,t.name.value))))};case i.Kind.LIST:return{...t,values:t.values.map(e)};case i.Kind.INT:case i.Kind.FLOAT:case i.Kind.STRING:case i.Kind.BOOLEAN:case i.Kind.NULL:case i.Kind.ENUM:case i.Kind.VARIABLE:return t}var n};var r=n(5745),i=n(7030)},8401:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,o.isSource)(e)?e:new o.Source(e),n=t.body,s=new i.Lexer(t);let u="",c=!1;for(;s.advance().kind!==a.TokenKind.EOF;){const e=s.token,t=e.kind,o=!(0,i.isPunctuatorTokenKind)(e.kind);c&&(o||e.kind===a.TokenKind.SPREAD)&&(u+=" ");const p=n.slice(e.start,e.end);t===a.TokenKind.BLOCK_STRING?u+=(0,r.printBlockString)(e.value,{minimize:!0}):u+=p,c=o}return u};var r=n(9165),i=n(6083),o=n(6876),a=n(3038)},3448:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(3754)},6693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){switch(n.kind){case r.Kind.LIST_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLList(r)}case r.Kind.NON_NULL_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLNonNull(r)}case r.Kind.NAMED_TYPE:return t.getType(n.name.value)}};var r=n(7030),i=n(3754)},2302:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,c){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==c||void 0===c[e])return;const r=c[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,c)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(u(i,c)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,c);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,c);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const r=Object.create(null),i=(0,o.keyMap)(t.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const n=i[t.name];if(!n||u(n.value,c)){if(void 0!==t.defaultValue)r[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const o=e(n.value,t.type,c);if(void 0===o)return;r[t.name]=o}return r}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,c)}catch(e){return}if(void 0===e)return;return e}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))}};var r=n(9657),i=n(1321),o=n(4590),a=n(7030),s=n(3754);function u(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},8805:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case i.Kind.NULL:return null;case i.Kind.INT:return parseInt(t.value,10);case i.Kind.FLOAT:return parseFloat(t.value);case i.Kind.STRING:case i.Kind.ENUM:case i.Kind.BOOLEAN:return t.value;case i.Kind.LIST:return t.values.map((t=>e(t,n)));case i.Kind.OBJECT:return(0,r.keyValMap)(t.fields,(e=>e.name.value),(t=>e(t.value,n)));case i.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}};var r=n(5785),i=n(7030)},4782:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(7030),i=n(9111),o=n(7485);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class u extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=u},4360:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return u.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return p.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return l.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return f.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return R.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return M.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return y.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return K.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return h.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return T.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return b.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return v.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return C.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return g.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return E.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return N.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return G.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return O.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return V.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return I.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return F.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return x.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return _.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return L.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return S.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return w.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return k.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return D.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return j.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return A.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return P.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9040),i=n(4782),o=n(7283),a=n(2988),s=n(9284),u=n(6514),c=n(7372),p=n(7999),l=n(9093),d=n(5117),f=n(9130),y=n(944),m=n(1350),h=n(6072),T=n(4472),b=n(2457),v=n(6839),g=n(1672),E=n(1843),N=n(3618),O=n(5566),I=n(9529),_=n(7091),L=n(7027),S=n(5988),D=n(3191),j=n(7909),A=n(964),P=n(4281),R=n(502),w=n(105),k=n(3171),F=n(1813),x=n(3084),G=n(1066),V=n(5972),C=n(817),M=n(4555),K=n(5588)},2988:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}};var r=n(1702),i=n(7030),o=n(9187)},9284:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const u=e.getSchema(),c=t.name.value;let p=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,i.naturalCompare)(t.name,n.name)})).map((e=>e.name))}(u,n,c));""===p&&(p=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,o.suggestionList)(t,n)}return[]}(n,c))),e.reportError(new a.GraphQLError(`Cannot query field "${c}" on type "${n.name}".`+p,{nodes:t}))}}}};var r=n(2832),i=n(5745),o=n(1709),a=n(1702),s=n(3754)},6514:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},7372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=u,t.KnownArgumentNamesRule=function(e){return{...u(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,u=a.args.map((e=>e.name)),c=(0,i.suggestionList)(n,u);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(c),{nodes:t}))}}}};var r=n(2832),i=n(1709),o=n(1702),a=n(7030),s=n(8685);function u(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():s.specifiedDirectives;for(const e of u)t[e.name]=e.args.map((e=>e.name));const c=e.getDocument().definitions;for(const e of c)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var p;const n=null!==(p=e.arguments)&&void 0!==p?p:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const u=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(u),{nodes:t}))}}return!1}}}},7999:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),p=n?n.getDirectives():c.specifiedDirectives;for(const e of p)t[e.name]=e.locations;const l=e.getDocument().definitions;for(const e of l)e.kind===u.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,c,p,l,d){const f=n.name.value,y=t[f];if(!y)return void e.reportError(new o.GraphQLError(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case u.Kind.OPERATION_DEFINITION:return function(e){switch(e){case a.OperationTypeNode.QUERY:return s.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return s.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return s.DirectiveLocation.SUBSCRIPTION}}(t.operation);case u.Kind.FIELD:return s.DirectiveLocation.FIELD;case u.Kind.FRAGMENT_SPREAD:return s.DirectiveLocation.FRAGMENT_SPREAD;case u.Kind.INLINE_FRAGMENT:return s.DirectiveLocation.INLINE_FRAGMENT;case u.Kind.FRAGMENT_DEFINITION:return s.DirectiveLocation.FRAGMENT_DEFINITION;case u.Kind.VARIABLE_DEFINITION:return s.DirectiveLocation.VARIABLE_DEFINITION;case u.Kind.SCHEMA_DEFINITION:case u.Kind.SCHEMA_EXTENSION:return s.DirectiveLocation.SCHEMA;case u.Kind.SCALAR_TYPE_DEFINITION:case u.Kind.SCALAR_TYPE_EXTENSION:return s.DirectiveLocation.SCALAR;case u.Kind.OBJECT_TYPE_DEFINITION:case u.Kind.OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.OBJECT;case u.Kind.FIELD_DEFINITION:return s.DirectiveLocation.FIELD_DEFINITION;case u.Kind.INTERFACE_TYPE_DEFINITION:case u.Kind.INTERFACE_TYPE_EXTENSION:return s.DirectiveLocation.INTERFACE;case u.Kind.UNION_TYPE_DEFINITION:case u.Kind.UNION_TYPE_EXTENSION:return s.DirectiveLocation.UNION;case u.Kind.ENUM_TYPE_DEFINITION:case u.Kind.ENUM_TYPE_EXTENSION:return s.DirectiveLocation.ENUM;case u.Kind.ENUM_VALUE_DEFINITION:return s.DirectiveLocation.ENUM_VALUE;case u.Kind.INPUT_OBJECT_TYPE_DEFINITION:case u.Kind.INPUT_OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.INPUT_OBJECT;case u.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===u.Kind.INPUT_OBJECT_TYPE_DEFINITION?s.DirectiveLocation.INPUT_FIELD_DEFINITION:s.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,i.invariant)(!1,"Unexpected kind: "+(0,r.inspect)(t.kind))}}(d);m&&!y.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}};var r=n(9657),i=n(1321),o=n(1702),a=n(6257),s=n(5919),u=n(7030),c=n(8685)},9093:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}};var r=n(1702)},5117:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const c=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,p,l,d,f){const y=t.name.value;if(!n[y]&&!s[y]){var m;const n=null!==(m=f[2])&&void 0!==m?m:l,s=null!=n&&"kind"in(h=n)&&((0,a.isTypeSystemDefinitionNode)(h)||(0,a.isTypeSystemExtensionNode)(h));if(s&&u.includes(y))return;const p=(0,i.suggestionList)(y,s?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${y}".`+(0,r.didYouMean)(p),{nodes:t}))}var h}}};var r=n(2832),i=n(1709),o=n(1702),a=n(9187),s=n(8364);const u=[...n(1062).specifiedScalarTypes,...s.introspectionTypes].map((e=>e.name))},9130:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.Kind.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}};var r=n(1702),i=n(7030)},502:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",{nodes:t})),++s)}}};var r=n(1702)},944:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const u=e.getFragmentSpreads(a.selectionSet);if(0!==u.length){i[s]=n.length;for(const t of u){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}};var r=n(1702)},1350:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(1702)},6072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,{nodes:t}))}}}}};var r=n(1702)},4472:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}};var r=n(1702)},2457:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new g,n=new Map;return{SelectionSet(r){const o=function(e,t,n,r,i){const o=[],[a,s]=T(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i`subfields "${e}" conflict because `+p(t))).join(" and "):e}function l(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[u,c]=b(e,n,s);if(o!==u){f(e,t,n,r,i,o,u);for(const s of c)r.has(s,a,i)||(r.add(s,a,i),l(e,t,n,r,i,o,s))}}function d(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),u=e.getFragment(a);if(!s||!u)return;const[c,p]=b(e,n,s),[l,y]=b(e,n,u);f(e,t,n,r,i,c,l);for(const a of y)d(e,t,n,r,i,o,a);for(const o of p)d(e,t,n,r,i,o,a)}function f(e,t,n,r,i,o,a){for(const[s,u]of Object.entries(o)){const o=a[s];if(o)for(const a of u)for(const u of o){const o=y(e,n,r,i,s,a,u);o&&t.push(o)}}}function y(e,t,n,i,o,a,u){const[c,p,y]=a,[b,v,g]=u,E=i||c!==b&&(0,s.isObjectType)(c)&&(0,s.isObjectType)(b);if(!E){const e=p.name.value,t=v.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[p],[v]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((({name:e,value:t})=>[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&m(t)===m(n)}))}(p,v))return[[o,"they have differing arguments"],[p],[v]]}const N=null==y?void 0:y.type,O=null==g?void 0:g.type;if(N&&O&&h(N,O))return[[o,`they return conflicting types "${(0,r.inspect)(N)}" and "${(0,r.inspect)(O)}"`],[p],[v]];const I=p.selectionSet,_=v.selectionSet;if(I&&_){const r=function(e,t,n,r,i,o,a,s){const u=[],[c,p]=T(e,t,i,o),[y,m]=T(e,t,a,s);f(e,u,t,n,r,c,y);for(const i of m)l(e,u,t,n,r,c,i);for(const i of p)l(e,u,t,n,r,y,i);for(const i of p)for(const o of m)d(e,u,t,n,r,i,o);return u}(e,t,n,E,(0,s.getNamedType)(N),I,(0,s.getNamedType)(O),_);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,o,p,v)}}function m(e){return(0,a.print)((0,u.sortValueNode)(e))}function h(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||h(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||h(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function T(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);v(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function b(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return T(e,t,i,n.selectionSet)}function v(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,c.typeFromAST)(e.getSchema(),n):t;v(e,o,a.selectionSet,r,i);break}}}class g{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e{Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleFragmentSpreadsRule=function(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s),a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,u=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t))return t}}(e,n),c=e.getParentType();if(u&&c&&!(0,a.doTypesOverlap)(e.getSchema(),u,c)){const o=(0,r.inspect)(c),a=(0,r.inspect)(u);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754),a=n(3448),s=n(6693)},817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleTypeExtensionsRule=function(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,c.isTypeDefinitionNode)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:d,ObjectTypeExtension:d,InterfaceTypeExtension:d,UnionTypeExtension:d,EnumTypeExtension:d,InputObjectTypeExtension:d};function d(c){const d=c.name.value,f=n[d],y=null==t?void 0:t.getType(d);let m;if(f?m=l[f.kind]:y&&(h=y,m=(0,p.isScalarType)(h)?u.Kind.SCALAR_TYPE_EXTENSION:(0,p.isObjectType)(h)?u.Kind.OBJECT_TYPE_EXTENSION:(0,p.isInterfaceType)(h)?u.Kind.INTERFACE_TYPE_EXTENSION:(0,p.isUnionType)(h)?u.Kind.UNION_TYPE_EXTENSION:(0,p.isEnumType)(h)?u.Kind.ENUM_TYPE_EXTENSION:(0,p.isInputObjectType)(h)?u.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(h))),m){if(m!==c.kind){const t=function(e){switch(e){case u.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case u.Kind.OBJECT_TYPE_EXTENSION:return"object";case u.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case u.Kind.UNION_TYPE_EXTENSION:return"union";case u.Kind.ENUM_TYPE_EXTENSION:return"enum";case u.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.invariant)(!1,"Unexpected kind: "+(0,i.inspect)(e))}}(c.kind);e.reportError(new s.GraphQLError(`Cannot extend non-${t} type "${d}".`,{nodes:f?[f,c]:c}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,a.suggestionList)(d,i);e.reportError(new s.GraphQLError(`Cannot extend type "${d}" because it is not defined.`+(0,r.didYouMean)(o),{nodes:c.name}))}var h}};var r=n(2832),i=n(9657),o=n(1321),a=n(1709),s=n(1702),u=n(7030),c=n(9187),p=n(3754);const l={[u.Kind.SCALAR_TYPE_DEFINITION]:u.Kind.SCALAR_TYPE_EXTENSION,[u.Kind.OBJECT_TYPE_DEFINITION]:u.Kind.OBJECT_TYPE_EXTENSION,[u.Kind.INTERFACE_TYPE_DEFINITION]:u.Kind.INTERFACE_TYPE_EXTENSION,[u.Kind.UNION_TYPE_DEFINITION]:u.Kind.UNION_TYPE_EXTENSION,[u.Kind.ENUM_TYPE_DEFINITION]:u.Kind.ENUM_TYPE_EXTENSION,[u.Kind.INPUT_OBJECT_TYPE_DEFINITION]:u.Kind.INPUT_OBJECT_TYPE_EXTENSION}},1672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedRequiredArgumentsOnDirectivesRule=p,t.ProvidedRequiredArgumentsRule=function(e){return{...p(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,u.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}};var r=n(9657),i=n(4590),o=n(1702),a=n(7030),s=n(585),u=n(3754),c=n(8685);function p(e){var t;const n=Object.create(null),p=e.getSchema(),d=null!==(t=null==p?void 0:p.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of d)n[e.name]=(0,i.keyMap)(e.args.filter(u.isRequiredArgument),(e=>e.name));const f=e.getDocument().definitions;for(const e of f)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var y;const t=null!==(y=e.arguments)&&void 0!==y?y:[];n[e.name.value]=(0,i.keyMap)(t.filter(l),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var c;const n=null!==(c=t.arguments)&&void 0!==c?c:[],p=new Set(n.map((e=>e.name.value)));for(const[n,c]of Object.entries(a))if(!p.has(n)){const a=(0,u.isType)(c.type)?(0,r.inspect)(c.type):(0,s.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}}function l(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},1843:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(!a){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754)},3618:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,u=Object.create(null),c=e.getDocument(),p=Object.create(null);for(const e of c.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(p[e.name.value]=e);const l=(0,o.collectFields)(n,p,u,a,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}};var r=n(1702),i=n(7030),o=n(1516)},1066:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map((e=>e.name))}));return!1}};var r=n(4947),i=n(1702)},5566:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}};var r=n(4947),i=n(1702)},5972:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}};var r=n(1702)},9529:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const u=e.getDocument().definitions;for(const e of u)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const c=Object.create(null),p=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=c;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=p[e],void 0===a&&(p[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}};var r=n(1702),i=n(7030),o=n(9187),a=n(8685)},1813:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const u=null!==(a=t.values)&&void 0!==a?a:[],c=o[s];for(const t of u){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,{nodes:[c[o],t.name]})):c[o]=t.name}return!1}};var r=n(1702),i=n(3754)},3084:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const u=null!==(a=t.fields)&&void 0!==a?a:[],c=i[s];for(const t of u){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,{nodes:[c[i],t.name]})):c[i]=t.name}return!1}};var r=n(1702),i=n(3754);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},7091:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}};var r=n(1702)},7027:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}};var r=n(1321),i=n(1702)},5988:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(1702)},105:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[a,t]})):n[o]=t}return!1}};var r=n(1702)},3171:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}};var r=n(1702)},3191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}};var r=n(4947),i=n(1702)},7909:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){return{ListValue(t){const n=(0,c.getNullableType)(e.getParentInputType());if(!(0,c.isListType)(n))return p(e,t),!1},ObjectValue(t){const n=(0,c.getNamedType)(e.getInputType());if(!(0,c.isInputObjectType)(n))return p(e,t),!1;const r=(0,o.keyMap)(t.fields,(e=>e.name.value));for(const o of Object.values(n.getFields()))if(!r[o.name]&&(0,c.isRequiredInputField)(o)){const r=(0,i.inspect)(o.type);e.reportError(new s.GraphQLError(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=(0,c.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,c.isInputObjectType)(n)){const i=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.didYouMean)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,c.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,u.print)(t)}.`,{nodes:t}))},EnumValue:t=>p(e,t),IntValue:t=>p(e,t),FloatValue:t=>p(e,t),StringValue:t=>p(e,t),BooleanValue:t=>p(e,t)}};var r=n(2832),i=n(9657),o=n(4590),a=n(1709),s=n(1702),u=n(585),c=n(3754);function p(e,t){const n=e.getInputType();if(!n)return;const r=(0,c.getNamedType)(n);if((0,c.isLeafType)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,u.print)(t)}.`,{nodes:t}))}}},964:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},4281:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:s}of o){const o=n.name.value,p=t[o];if(p&&a){const t=e.getSchema(),l=(0,u.typeFromAST)(t,p.type);if(l&&!c(t,l,p.defaultValue,a,s)){const t=(0,r.inspect)(l),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,{nodes:[p,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(9657),i=n(1702),o=n(7030),a=n(3754),s=n(3448),u=n(6693);function c(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){if((null==n||n.kind===o.Kind.NULL)&&void 0===i)return!1;const a=r.ofType;return(0,s.isTypeSubTypeOf)(e,t,a)}return(0,s.isTypeSubTypeOf)(e,t,r)}},4555:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}};var r=n(1321),i=n(1702),o=n(3754)},5588:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}};var r=n(1702),i=n(3754),o=n(8364)},7283:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=void 0;var r=n(2988),i=n(9284),o=n(6514),a=n(7372),s=n(7999),u=n(9093),c=n(5117),p=n(9130),l=n(502),d=n(944),f=n(1350),y=n(6072),m=n(4472),h=n(2457),T=n(6839),b=n(817),v=n(1672),g=n(1843),E=n(3618),N=n(1066),O=n(5566),I=n(5972),_=n(9529),L=n(1813),S=n(3084),D=n(7091),j=n(7027),A=n(5988),P=n(105),R=n(3171),w=n(3191),k=n(7909),F=n(964),x=n(4281);const G=Object.freeze([r.ExecutableDefinitionsRule,A.UniqueOperationNamesRule,p.LoneAnonymousOperationRule,E.SingleFieldSubscriptionsRule,c.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,F.VariablesAreInputTypesRule,g.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,D.UniqueFragmentNamesRule,u.KnownFragmentNamesRule,y.NoUnusedFragmentsRule,T.PossibleFragmentSpreadsRule,d.NoFragmentCyclesRule,w.UniqueVariableNamesRule,f.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,s.KnownDirectivesRule,_.UniqueDirectivesPerLocationRule,a.KnownArgumentNamesRule,O.UniqueArgumentNamesRule,k.ValuesOfCorrectTypeRule,v.ProvidedRequiredArgumentsRule,x.VariablesInAllowedPositionRule,h.OverlappingFieldsCanBeMergedRule,j.UniqueInputFieldNamesRule]);t.specifiedRules=G;const V=Object.freeze([l.LoneSchemaDefinitionRule,P.UniqueOperationTypesRule,R.UniqueTypeNamesRule,L.UniqueEnumValueNamesRule,S.UniqueFieldDefinitionNamesRule,N.UniqueArgumentDefinitionNamesRule,I.UniqueDirectiveNamesRule,c.KnownTypeNamesRule,s.KnownDirectivesRule,_.UniqueDirectivesPerLocationRule,b.PossibleTypeExtensionsRule,a.KnownArgumentNamesOnDirectivesRule,O.UniqueArgumentNamesRule,j.UniqueInputFieldNamesRule,v.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=V},9040:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=p(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))},t.validate=function(e,t,n=u.specifiedRules,p,l=new s.TypeInfo(e)){var d;const f=null!==(d=null==p?void 0:p.maxErrors)&&void 0!==d?d:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const y=Object.freeze({}),m=[],h=new c.ValidationContext(e,t,l,(e=>{if(m.length>=f)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),y;m.push(e)})),T=(0,o.visitInParallel)(n.map((e=>e(h))));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(l,T))}catch(e){if(e!==y)throw e}return m},t.validateSDL=p;var r=n(3028),i=n(1702),o=n(9111),a=n(9873),s=n(7485),u=n(7283),c=n(4782);function p(e,t,n=u.specifiedSDLRules){const r=[],i=new c.SDLValidationContext(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},4274:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.8.1";const n=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});t.versionInfo=n},1609:e=>{e.exports=window.React},6087:e=>{e.exports=window.wp.element}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(3408)})(); \ No newline at end of file +(()=>{"use strict";var e={4291:(e,t,n)=>{n.d(t,{QG:()=>u,Us:()=>s});var r=n(1609),i=n(6087),o=n(3408);const a=(0,i.createContext)(),s=()=>(0,i.useContext)(a),u=({children:e,setQueryParams:t,queryParams:n})=>{const[s,u]=(0,i.useState)(null),[c,p]=(0,i.useState)(!0),[l,d]=(0,i.useState)(null!==(f=window?.wpGraphiQLSettings?.nonce)&&void 0!==f?f:null);var f;const[y,m]=(0,i.useState)(null!==(h=window?.wpGraphiQLSettings?.graphqlEndpoint)&&void 0!==h?h:null);var h;const[T,b]=(0,i.useState)(n);let v={endpoint:y,setEndpoint:m,nonce:l,setNonce:d,schema:s,setSchema:u,schemaLoading:c,setSchemaLoading:p,queryParams:T,setQueryParams:e=>{b(e),t(e)}},g=o.J.applyFilters("graphiql_app_context",v);return(0,r.createElement)(a.Provider,{value:g},e)}},3408:(e,t,n)=>{n.d(t,{J:()=>a});var r=n(3574);const i=window.wp.hooks;var o=n(4291);const a=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:a,useAppContext:o.Us,AppContextProvider:o.QG}},1702:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(5569),i=n(9530),o=n(825);class a extends Error{constructor(e,...t){var n,o,u;const{nodes:c,source:p,positions:l,path:d,originalError:f,extensions:y}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=p?p:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=l?l:null==m?void 0:m.map((e=>e.start)),this.locations=l&&p?l.map((e=>(0,i.getLocation)(p,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const h=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(u=null!=y?y:h)&&void 0!==u?u:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},9211:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(1702),i=n(1352),o=n(6107)},6107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=(0,r.toError)(e);return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,{nodes:null!==(o=a.nodes)&&void 0!==o?o:t,source:a.source,positions:a.positions,path:n,originalError:a});var s};var r=n(2036),i=n(1702)},1352:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(1702)},1516:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return u(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&u(e,t,n,r,s.selectionSet,o,a);return o};var r=n(7030),i=n(3754),o=n(8685),a=n(6693),s=n(8113);function u(e,t,n,i,o,a,s){for(const d of o.selections)switch(d.kind){case r.Kind.FIELD:{if(!c(n,d))continue;const e=(l=d).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(d):a.set(e,[d]);break}case r.Kind.INLINE_FRAGMENT:if(!c(n,d)||!p(e,d,i))continue;u(e,t,n,i,d.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=d.name.value;if(s.has(r)||!c(n,d))continue;s.add(r);const o=t[r];if(!o||!p(e,o,i))continue;u(e,t,n,i,o.selectionSet,a,s);break}}var l}function c(e,t){const n=(0,s.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function p(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.typeFromAST)(e,r);return o===n||!!(0,i.isAbstractType)(o)&&e.isSubType(o,n)}},6892:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=_,t.buildExecutionContext=L,t.buildResolveInfo=j,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=N,t.executeSync=function(e){const t=N(e);if((0,u.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=G;var r=n(3028),i=n(9657),o=n(1321),a=n(4820),s=n(5569),u=n(7724),c=n(2104),p=n(6506),l=n(4702),d=n(5662),f=n(1702),y=n(6107),m=n(6257),h=n(7030),T=n(3754),b=n(8364),v=n(9873),g=n(1516),E=n(8113);const O=(0,c.memoize3)(((e,t,n)=>(0,g.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n)));function N(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;_(t,n,i);const a=L(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new f.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,g.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return D(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,d.promiseReduce)(i.entries(),((i,[o,a])=>{const s=(0,p.addPath)(r,o,t.name),c=S(e,t,n,a,s);return void 0===c?i:(0,u.isPromise)(c)?c.then((e=>(i[o]=e,i))):(i[o]=c,i)}),Object.create(null))}(e,r,n,o,i);case m.OperationTypeNode.SUBSCRIPTION:return D(e,r,n,o,i)}}(a,e,o);return(0,u.isPromise)(t)?t.then((e=>I(e,a.errors)),(e=>(a.errors.push(e),I(null,a.errors)))):I(t,a.errors)}catch(e){return a.errors.push(e),I(null,a.errors)}}function I(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function _(e,t,n){t||(0,r.devAssert)(!1,"Must provide document."),(0,v.assertValidSchema)(e),null==n||(0,s.isObjectLike)(n)||(0,r.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function L(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:u,fieldResolver:c,typeResolver:p,subscribeFieldResolver:l}=e;let d;const y=Object.create(null);for(const e of i.definitions)switch(e.kind){case h.Kind.OPERATION_DEFINITION:if(null==u){if(void 0!==d)return[new f.GraphQLError("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===u&&(d=e);break;case h.Kind.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!d)return null!=u?[new f.GraphQLError(`Unknown operation named "${u}".`)]:[new f.GraphQLError("Must provide an operation.")];const m=null!==(n=d.variableDefinitions)&&void 0!==n?n:[],T=(0,E.getVariableValues)(r,m,null!=s?s:{},{maxErrors:50});return T.errors?T.errors:{schema:r,fragments:y,rootValue:o,contextValue:a,operation:d,variableValues:T.coerced,fieldResolver:null!=c?c:x,typeResolver:null!=p?p:F,subscribeFieldResolver:null!=l?l:x,errors:[]}}function D(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,c]of i.entries()){const i=S(e,t,n,c,(0,p.addPath)(r,s,t.name));void 0!==i&&(o[s]=i,(0,u.isPromise)(i)&&(a=!0))}}catch(e){if(a)return(0,l.promiseForObject)(o).finally((()=>{throw e}));throw e}return a?(0,l.promiseForObject)(o):o}function S(e,t,n,r,i){var o;const a=G(e.schema,t,r[0]);if(!a)return;const s=a.type,c=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,l=j(e,a,r,t,i);try{const t=c(n,(0,E.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,l);let o;return o=(0,u.isPromise)(t)?t.then((t=>P(e,s,r,l,i,t))):P(e,s,r,l,i,t),(0,u.isPromise)(o)?o.then(void 0,(t=>A((0,y.locatedError)(t,r,(0,p.pathToArray)(i)),s,e))):o}catch(t){return A((0,y.locatedError)(t,r,(0,p.pathToArray)(i)),s,e)}}function j(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function A(e,t,n){if((0,T.isNonNullType)(t))throw e;return n.errors.push(e),null}function P(e,t,n,r,s,c){if(c instanceof Error)throw c;if((0,T.isNonNullType)(t)){const i=P(e,t.ofType,n,r,s,c);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==c?null:(0,T.isListType)(t)?function(e,t,n,r,i,o){if(!(0,a.isIterableObject)(o))throw new f.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let c=!1;const l=Array.from(o,((t,o)=>{const a=(0,p.addPath)(i,o,void 0);try{let i;return i=(0,u.isPromise)(t)?t.then((t=>P(e,s,n,r,a,t))):P(e,s,n,r,a,t),(0,u.isPromise)(i)?(c=!0,i.then(void 0,(t=>A((0,y.locatedError)(t,n,(0,p.pathToArray)(a)),s,e)))):i}catch(t){return A((0,y.locatedError)(t,n,(0,p.pathToArray)(a)),s,e)}}));return c?Promise.all(l):l}(e,t,n,r,s,c):(0,T.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.inspect)(e)}.serialize(${(0,i.inspect)(t)})\` to return non-nullable value, returned: ${(0,i.inspect)(n)}`);return n}(t,c):(0,T.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,c=e.contextValue,p=s(o,c,r,t);return(0,u.isPromise)(p)?p.then((a=>w(e,R(a,e,t,n,r,o),n,r,i,o))):w(e,R(p,e,t,n,r,o),n,r,i,o)}(e,t,n,r,s,c):(0,T.isObjectType)(t)?w(e,t,n,r,s,c):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,i.inspect)(t))}function R(e,t,n,r,o,a){if(null==e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,T.isObjectType)(e))throw new f.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.inspect)(a)}, received "${(0,i.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,T.isObjectType)(s))throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function w(e,t,n,r,i,o){const a=O(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if((0,u.isPromise)(s))return s.then((r=>{if(!r)throw k(t,o,n);return D(e,t,o,i,a)}));if(!s)throw k(t,o,n)}return D(e,t,o,i,a)}function k(e,t,n){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const F=function(e,t,n,r){if((0,s.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return o.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return i.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return i.defaultTypeResolver}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return i.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return i.executeSync}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return a.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return a.getVariableValues}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.pathToArray}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return o.subscribe}});var r=n(6506),i=n(6892),o=n(9567),a=n(8113)},1215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapAsyncIterator=function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},9567:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await f(e);return(0,o.isAsyncIterable)(t)?(0,l.mapAsyncIterator)(t,(t=>(0,p.execute)({...e,rootValue:t}))):t};var r=n(3028),i=n(9657),o=n(1619),a=n(6506),s=n(1702),u=n(6107),c=n(1516),p=n(6892),l=n(1215),d=n(8113);async function f(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:l}=t;(0,p.assertValidExecutionArguments)(n,r,l);const f=(0,p.buildExecutionContext)(t);if(!("schema"in f))return{errors:f};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(null==l)throw new s.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});const f=(0,c.collectFields)(t,n,i,l,r.selectionSet),[y,m]=[...f.entries()][0],h=(0,p.getFieldDef)(t,l,m[0]);if(!h){const e=m[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:m})}const T=(0,a.addPath)(void 0,y,l.name),b=(0,p.buildResolveInfo)(e,h,m,l,T);try{var v;const t=(0,d.getArgumentValues)(h,m[0],i),n=e.contextValue,r=null!==(v=h.subscribe)&&void 0!==v?v:e.subscribeFieldResolver,a=await r(o,t,n,b);if(a instanceof Error)throw a;return a}catch(e){throw(0,u.locatedError)(e,m,(0,a.pathToArray)(T))}}(f);if(!(0,o.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.inspect)(e)}.`);return e}catch(e){if(e instanceof s.GraphQLError)return{errors:[e]};throw e}}},8113:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=f,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return f(e,i,n)},t.getVariableValues=function(e,t,n,i){const s=[],f=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const f of t){const t=f.variable.name.value,m=(0,l.typeFromAST)(e,f.type);if(!(0,c.isInputType)(m)){const e=(0,u.print)(f.type);i(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!y(n,t)){if(f.defaultValue)s[t]=(0,d.valueFromAST)(f.defaultValue,m);else if((0,c.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const h=n[t];if(null===h&&(0,c.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}))}else s[t]=(0,p.coerceInputValue)(h,m,((e,n,s)=>{let u=`Variable "$${t}" got invalid value `+(0,r.inspect)(n);e.length>0&&(u+=` at "${t}${(0,o.printPathArray)(e)}"`),i(new a.GraphQLError(u+"; "+s.message,{nodes:f,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=f&&s.length>=f)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:i}}catch(e){s.push(e)}return{errors:s}};var r=n(9657),i=n(4590),o=n(636),a=n(1702),s=n(7030),u=n(585),c=n(3754),p=n(4090),l=n(6693),d=n(2302);function f(e,t,n){var o;const p={},l=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.keyMap)(l,(e=>e.name.value));for(const i of e.args){const e=i.name,o=i.type,l=f[e];if(!l){if(void 0!==i.defaultValue)p[e]=i.defaultValue;else if((0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was not provided.`,{nodes:t});continue}const m=l.value;let h=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!y(n,t)){if(void 0!==i.defaultValue)p[e]=i.defaultValue;else if((0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:m});continue}h=null==n[t]}if(h&&(0,c.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,r.inspect)(o)}" must not be null.`,{nodes:m});const T=(0,d.valueFromAST)(m,o,n);if(void 0===T)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,u.print)(m)}.`,{nodes:m});p[e]=T}return p}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9151:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise((t=>t(c(e))))},t.graphqlSync=function(e){const t=c(e);if((0,i.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(3028),i=n(7724),o=n(246),a=n(9873),s=n(9040),u=n(6892);function c(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:i,contextValue:c,variableValues:p,operationName:l,fieldResolver:d,typeResolver:f}=e,y=(0,a.validateSchema)(t);if(y.length>0)return{errors:y};let m;try{m=(0,o.parse)(n)}catch(e){return{errors:[e]}}const h=(0,s.validate)(t,m);return h.length>0?{errors:h}:(0,u.execute)({schema:t,document:m,rootValue:i,contextValue:c,variableValues:p,operationName:l,fieldResolver:d,typeResolver:f})}},3574:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return p.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return p.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return u.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return u.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return u.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return c.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return o.GraphQLOneOfDirective}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return u.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return u.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return u.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return u.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return u.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return u.MaxIntrospectionDepthRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return u.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return u.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return u.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return u.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return u.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return u.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return u.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return u.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return u.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return u.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return u.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return u.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return p.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return u.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return u.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return u.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return u.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return u.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return u.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return u.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return u.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return u.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return u.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return u.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return u.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return u.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return u.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return u.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return u.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return p.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return p.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return p.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return p.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return p.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return p.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return p.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return p.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return p.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return p.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return p.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return c.formatError}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return s.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return p.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return p.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return p.getOperationRootType}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return s.getVariableValues}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return p.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return p.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return p.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return p.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return p.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return c.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return c.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return p.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return p.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return p.printType}}),Object.defineProperty(t,"recommendedRules",{enumerable:!0,get:function(){return u.recommendedRules}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return o.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return o.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return p.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return u.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return p.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return c.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return p.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return p.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return p.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return p.visitWithTypeInfo}});var r=n(4274),i=n(9151),o=n(219),a=n(425),s=n(8259),u=n(4360),c=n(9211),p=n(4889)},6506:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},3028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},2832:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[r,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";r&&(o+=r+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,n),u=s.pop();return o+s.join(", ")+", or "+u+"?"};const n=5},4947:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},6033:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},9657:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return i(e,[])};const n=10,r=2;function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const o=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,o)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>r)return"[Array]";const o=Math.min(n,e.length),a=e.length-o,s=[];for(let n=0;n1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}(e,o);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>r)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const o=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+o.join(", ")+" }"}(e,o)}(e,t);default:return String(e)}}},9527:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(9657);const i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};t.instanceOf=i},1321:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},1619:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},4820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},5569:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},4590:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},5785:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},3430:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}},2104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},5745:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let r=0,o=0;for(;r0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(uc)return 1}else{if(as)return 1;++r,++o}}return e.length-t.length};const n=48,r=57;function i(e){return!isNaN(e)&&n<=e&&e<=r}},636:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}},4702:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}},5662:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then((e=>t(e,n))):t(i,n);return i};var r=n(7724)},1709:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)}))};var r=n(5745);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.lengtht)return;const u=this._rows;for(let e=0;e<=s;e++)u[0][e]=e;for(let e=1;e<=a;e++){const n=u[(e-1)%3],o=u[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let c=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=u[(e-2)%3][t-2];c=Math.min(c,n+1)}ct)return}const c=u[a%3][s];return c<=t?c:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.toError=function(e){return e instanceof Error?e:new i(e)};var r=n(9657);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}},3101:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toObjMap=function(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}},6257:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class r{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;const o=new Set(Object.keys(i));var a;t.OperationTypeNode=a,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(a||(t.OperationTypeNode=a={}))},9165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o1&&i.slice(1).every((e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),p=u||c,l=!(null!=t&&t.minimize)&&(!o||e.length>70||p||a||s);let d="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(l&&!f||a)&&(d+="\n"),d+=n,(l||p)&&(d+="\n"),'"""'+d+'"""'};var r=n(3932);function i(e){let t=0;for(;t{function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},5919:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},425:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return l.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return y.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return u.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return d.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return d.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return d.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return l.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return l.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return f.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return f.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return f.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return f.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return f.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return f.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return f.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return f.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return f.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return f.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return c.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return c.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return c.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return p.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return l.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return l.visitInParallel}});var r=n(6876),i=n(9530),o=n(825),a=n(7030),s=n(3038),u=n(6083),c=n(246),p=n(585),l=n(9111),d=n(6257),f=n(9187),y=n(5919)},7030:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(t.Kind=n={}))},6083:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var r=n(1352),i=n(6257),o=n(9165),a=n(3932),s=n(3038);class u{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function p(e,t){return l(e.charCodeAt(t))&&d(e.charCodeAt(t+1))}function l(e){return e>=55296&&e<=56319}function d(e){return e>=56320&&e<=57343}function f(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function y(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let o=t;for(;o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function _(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,u=t+3,l=u,d="";const m=[];for(;u{Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(1321);const i=/\r\n|[\n\r]/g},246:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){const n=new p(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r},t.parseConstValue=function(e,t){const n=new p(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(c.TokenKind.EOF),r},t.parseType=function(e,t){const n=new p(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(c.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new p(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(c.TokenKind.EOF),r};var r=n(1352),i=n(6257),o=n(5919),a=n(7030),s=n(6083),u=n(6876),c=n(3038);class p{constructor(e,t={}){const n=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(c.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(c.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(c.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${l(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${d(e)}, found ${l(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${l(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${l(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function l(e){const t=e.value;return d(e.kind)+(null!=t?` "${t}"`:"")}function d(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=p},9187:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some((t=>e(t.value))):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||u(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=c,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=u,t.isValueNode=o;var r=n(7030);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function u(e){return e.kind===r.Kind.SCHEMA_EXTENSION||c(e)}function c(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},825:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9530);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,u=1===t.line?n:0,c=t.column+u,p=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return p+o([[s-1+" |",l[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function o(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}},7583:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(9165),i=n(7583),o=n(9111);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=c("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+c(" = ",n)+c(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=c("",e,": ")+t;let a=o+c("(",s(n,", "),")");return a.length>80&&(a=o+c("(\n",p(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",c("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${c("(",s(n,", "),")")} on ${t} ${c("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>c("",e,"\n")+s(["schema",s(t," "),u(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>c("",e,"\n")+t+(l(n)?c("(\n",p(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>c("",e,"\n")+s([t+": "+n,c("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>c("",e,"\n")+s(["union",t,s(n," "),c("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>c("",e,"\n")+s(["enum",t,s(n," "),u(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>c("",e,"\n")+s(["input",t,s(n," "),u(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>c("",e,"\n")+"directive @"+t+(l(n)?c("(\n",p(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),u(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,c("implements ",s(t," & ")),s(n," "),u(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,c("implements ",s(t," & ")),s(n," "),u(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),c("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),u(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),u(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function u(e){return c("{\n",p(s(e,"\n")),"\n}")}function c(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return c(" ",e.replace(/\n/g,"\n "))}function l(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},6876:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(3028),i=n(9657),o=n(9527);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},3038:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(t.TokenKind=n={}))},9111:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=u,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=u(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(a.Kind))c.set(e,u(t,e));let p,l,d,f=Array.isArray(e),y=[e],m=-1,h=[],T=e;const b=[],v=[];do{m++;const e=m===y.length,a=e&&0!==h.length;if(e){if(l=0===v.length?void 0:b[b.length-1],T=d,d=v.pop(),a)if(f){T=T.slice();let e=0;for(const[t,n]of h){const r=t-e;null===n?(T.splice(r,1),e++):T[r]=n}}else{T=Object.defineProperties({},Object.getOwnPropertyDescriptors(T));for(const[e,t]of h)T[e]=t}m=p.index,y=p.keys,h=p.edits,f=p.inArray,p=p.prev}else if(d){if(l=f?m:y[m],T=d[l],null==T)continue;b.push(l)}let u;if(!Array.isArray(T)){var g,E;(0,o.isNode)(T)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(T)}.`);const n=e?null===(g=c.get(T.kind))||void 0===g?void 0:g.leave:null===(E=c.get(T.kind))||void 0===E?void 0:E.enter;if(u=null==n?void 0:n.call(t,T,l,d,b,v),u===s)break;if(!1===u){if(!e){b.pop();continue}}else if(void 0!==u&&(h.push([l,u]),!e)){if(!(0,o.isNode)(u)){b.pop();continue}T=u}}var O;void 0===u&&a&&h.push([l,T]),e?b.pop():(p={inArray:f,index:m,keys:y,edits:h,prev:p},f=Array.isArray(T),y=f?T:null!==(O=n[T.kind])&&void 0!==O?O:[],m=-1,h=[],d&&v.push(d),d=T)}while(void 0!==p);return 0!==h.length?h[h.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.assertEnumValueName=function(e){if("true"===e||"false"===e||"null"===e)throw new i.GraphQLError(`Enum values cannot be named: ${e}`);return a(e)},t.assertName=a;var r=n(3028),i=n(1702),o=n(3932);function a(e){if(null!=e||(0,r.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new i.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0,t.argsToArgsConfig=Y,t.assertAbstractType=function(e){if(!R(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL abstract type.`);return e},t.assertCompositeType=function(e){if(!P(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL composite type.`);return e},t.assertEnumType=function(e){if(!I(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Enum type.`);return e},t.assertInputObjectType=function(e){if(!_(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Input Object type.`);return e},t.assertInputType=function(e){if(!S(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL input type.`);return e},t.assertInterfaceType=function(e){if(!O(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Interface type.`);return e},t.assertLeafType=function(e){if(!A(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL leaf type.`);return e},t.assertListType=function(e){if(!L(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL List type.`);return e},t.assertNamedType=function(e){if(!G(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL named type.`);return e},t.assertNonNullType=function(e){if(!D(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Non-Null type.`);return e},t.assertNullableType=function(e){if(!x(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`);return e},t.assertObjectType=function(e){if(!E(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Object type.`);return e},t.assertOutputType=function(e){if(!j(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL output type.`);return e},t.assertScalarType=function(e){if(!g(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Scalar type.`);return e},t.assertType=function(e){if(!v(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`);return e},t.assertUnionType=function(e){if(!N(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Union type.`);return e},t.assertWrappingType=function(e){if(!F(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL wrapping type.`);return e},t.defineArguments=U,t.getNamedType=function(e){if(e){let t=e;for(;F(t);)t=t.ofType;return t}},t.getNullableType=function(e){if(e)return D(e)?e.ofType:e},t.isAbstractType=R,t.isCompositeType=P,t.isEnumType=I,t.isInputObjectType=_,t.isInputType=S,t.isInterfaceType=O,t.isLeafType=A,t.isListType=L,t.isNamedType=G,t.isNonNullType=D,t.isNullableType=x,t.isObjectType=E,t.isOutputType=j,t.isRequiredArgument=function(e){return D(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return D(e.type)&&void 0===e.defaultValue},t.isScalarType=g,t.isType=v,t.isUnionType=N,t.isWrappingType=F,t.resolveObjMapThunk=C,t.resolveReadonlyArrayThunk=V;var r=n(3028),i=n(2832),o=n(6033),a=n(9657),s=n(9527),u=n(5569),c=n(4590),p=n(5785),l=n(3430),d=n(1709),f=n(3101),y=n(1702),m=n(7030),h=n(585),T=n(8805),b=n(3506);function v(e){return g(e)||E(e)||O(e)||N(e)||I(e)||_(e)||L(e)||D(e)}function g(e){return(0,s.instanceOf)(e,M)}function E(e){return(0,s.instanceOf)(e,Q)}function O(e){return(0,s.instanceOf)(e,J)}function N(e){return(0,s.instanceOf)(e,X)}function I(e){return(0,s.instanceOf)(e,z)}function _(e){return(0,s.instanceOf)(e,ee)}function L(e){return(0,s.instanceOf)(e,w)}function D(e){return(0,s.instanceOf)(e,k)}function S(e){return g(e)||I(e)||_(e)||F(e)&&S(e.ofType)}function j(e){return g(e)||E(e)||O(e)||N(e)||I(e)||F(e)&&j(e.ofType)}function A(e){return g(e)||I(e)}function P(e){return E(e)||O(e)||N(e)}function R(e){return O(e)||N(e)}class w{constructor(e){v(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=w;class k{constructor(e){x(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function F(e){return L(e)||D(e)}function x(e){return v(e)&&!D(e)}function G(e){return g(e)||E(e)||O(e)||N(e)||I(e)||_(e)}function V(e){return"function"==typeof e?e():e}function C(e){return"function"==typeof e?e():e}t.GraphQLNonNull=k;class M{constructor(e){var t,n,i,s;const u=null!==(t=e.parseValue)&&void 0!==t?t:o.identityFunc;this.name=(0,b.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.identityFunc,this.parseValue=u,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>u((0,T.valueFromASTUntyped)(e,t)),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=M;class Q{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>$(e),this._interfaces=()=>K(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:q(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function K(e){var t;const n=V(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $(e){const t=C(e.fields);return B(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,l.mapValue)(t,((t,n)=>{var i;B(t)||(0,r.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return B(o)||(0,r.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,b.assertName)(n),description:t.description,type:t.type,args:U(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}}))}function U(e){return Object.entries(e).map((([e,t])=>({name:(0,b.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}function B(e){return(0,u.isObjectLike)(e)&&!Array.isArray(e)}function q(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:Y(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Y(e){return(0,p.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}t.GraphQLObjectType=Q;class J{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$.bind(void 0,e),this._interfaces=K.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:q(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=J;class X{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=H.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function H(e){const t=V(e.types);return Array.isArray(t)||(0,r.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=X;class z{constructor(e){var t;this.name=(0,b.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Z(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Z(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,c.keyMap)(this.getValues(),(e=>e.name))),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map((e=>[e.value,e]))));const t=this._valueLookup.get(e);if(void 0===t)throw new y.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,a.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.inspect)(e);throw new y.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+W(this,t))}const t=this.getValue(e);if(null==t)throw new y.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+W(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,h.print)(e);throw new y.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+W(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,h.print)(e);throw new y.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+W(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,p.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function W(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.suggestionList)(t,n);return(0,i.didYouMean)("the enum value",r)}function Z(e,t){return B(t)||(0,r.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(B(n)||(0,r.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,a.inspect)(n)}.`),{name:(0,b.assertEnumValueName)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,f.toObjMap)(n.extensions),astNode:n.astNode})))}t.GraphQLEnumType=z;class ee{constructor(e){var t,n;this.name=(0,b.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=te.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function te(e){const t=C(e.fields);return B(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,l.mapValue)(t,((t,n)=>(!("resolve"in t)||(0,r.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,b.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode})))}t.GraphQLInputObjectType=ee},8685:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!d(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=d,t.isSpecifiedDirective=function(e){return g.some((({name:t})=>t===e.name))},t.specifiedDirectives=void 0;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),u=n(5919),c=n(3506),p=n(3754),l=n(1062);function d(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.name=(0,c.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.devAssert)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.isObjectLike)(i)&&!Array.isArray(i)||(0,r.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,p.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,p.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=f;const y=new f({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[u.DirectiveLocation.FIELD,u.DirectiveLocation.FRAGMENT_SPREAD,u.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=y;const m=new f({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[u.DirectiveLocation.FIELD,u.DirectiveLocation.FRAGMENT_SPREAD,u.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new p.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const h="No longer supported";t.DEFAULT_DEPRECATION_REASON=h;const T=new f({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[u.DirectiveLocation.FIELD_DEFINITION,u.DirectiveLocation.ARGUMENT_DEFINITION,u.DirectiveLocation.INPUT_FIELD_DEFINITION,u.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:h}}});t.GraphQLDeprecatedDirective=T;const b=new f({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[u.DirectiveLocation.SCALAR],args:{url:{type:new p.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=b;const v=new f({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[u.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=v;const g=Object.freeze([y,m,T,b,v]);t.specifiedDirectives=g},219:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return o.GraphQLOneOfDirective}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return c.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return c.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return u.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return i.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return i.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return u.validateSchema}});var r=n(4648),i=n(3754),o=n(8685),a=n(1062),s=n(8364),u=n(9873),c=n(3506)},8364:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return O.some((({name:t})=>e.name===t))};var r=n(9657),i=n(1321),o=n(5919),a=n(585),s=n(8096),u=n(3754),c=n(1062);const p=new u.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:c.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new u.GraphQLNonNull(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=p;const l=new u.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})});t.__Directive=l;const d=new u.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const f=new u.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.GraphQLNonNull(b),resolve:e=>(0,u.isScalarType)(e)?T.SCALAR:(0,u.isObjectType)(e)?T.OBJECT:(0,u.isInterfaceType)(e)?T.INTERFACE:(0,u.isUnionType)(e)?T.UNION:(0,u.isEnumType)(e)?T.ENUM:(0,u.isInputObjectType)(e)?T.INPUT_OBJECT:(0,u.isListType)(e)?T.LIST:(0,u.isNonNullType)(e)?T.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:c.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:c.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:c.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(y)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new u.GraphQLList(new u.GraphQLNonNull(f)),resolve(e){if((0,u.isObjectType)(e)||(0,u.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(f)),resolve(e,t,n,{schema:r}){if((0,u.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(h)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,u.isEnumType)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(m)),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,u.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:c.GraphQLBoolean,resolve:e=>{if((0,u.isInputObjectType)(e))return e.isOneOf}}})});t.__Type=f;const y=new u.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(m))),args:{includeDeprecated:{type:c.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new u.GraphQLNonNull(f),resolve:e=>e.type},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=y;const m=new u.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},type:{type:new u.GraphQLNonNull(f),resolve:e=>e.type},defaultValue:{type:c.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,a.print)(r):null}},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const h=new u.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.GraphQLNonNull(c.GraphQLString),resolve:e=>e.name},description:{type:c.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new u.GraphQLNonNull(c.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.GraphQLString,resolve:e=>e.deprecationReason}})});var T;t.__EnumValue=h,t.TypeKind=T,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(T||(t.TypeKind=T={}));const b=new u.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:T.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:T.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:T.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:T.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:T.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:T.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:T.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:T.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=b;const v={name:"__schema",type:new u.GraphQLNonNull(p),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=v;const g={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.GraphQLNonNull(c.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=g;const E={name:"__typename",type:new u.GraphQLNonNull(c.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=E;const O=Object.freeze([p,l,d,f,y,m,h,b]);t.introspectionTypes=O},1062:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0,t.isSpecifiedScalarType=function(e){return h.some((({name:t})=>e.name===t))},t.specifiedScalarTypes=void 0;var r=n(9657),i=n(5569),o=n(1702),a=n(7030),s=n(585),u=n(3754);const c=2147483647;t.GRAPHQL_MAX_INT=c;const p=-2147483648;t.GRAPHQL_MIN_INT=p;const l=new u.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=T(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>c||nc||ec||t{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0,t.assertSchema=function(e){if(!d(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL schema.`);return e},t.isSchema=d;var r=n(3028),i=n(9657),o=n(9527),a=n(5569),s=n(3101),u=n(6257),c=n(3754),p=n(8685),l=n(8364);function d(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.isObjectLike)(e)||(0,r.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:p.specifiedDirectives;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),y(t,o);null!=this._queryType&&y(this._queryType,o),null!=this._mutationType&&y(this._mutationType,o),null!=this._subscriptionType&&y(this._subscriptionType,o);for(const e of this._directives)if((0,p.isDirective)(e))for(const t of e.args)y(t.type,o);y(l.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,c.isInterfaceType)(e)){for(const t of e.getInterfaces())if((0,c.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,c.isObjectType)(e))for(const t of e.getInterfaces())if((0,c.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.OperationTypeNode.QUERY:return this.getQueryType();case u.OperationTypeNode.MUTATION:return this.getMutationType();case u.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,c.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,c.isUnionType)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function y(e,t){const n=(0,c.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,c.isUnionType)(n))for(const e of n.getTypes())y(e,t);else if((0,c.isObjectType)(n)||(0,c.isInterfaceType)(n)){for(const e of n.getInterfaces())y(e,t);for(const e of Object.values(n.getFields())){y(e.type,t);for(const n of e.args)y(n.type,t)}}else if((0,c.isInputObjectType)(n))for(const e of Object.values(n.getFields()))y(e.type,t);return t}t.GraphQLSchema=f},9873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=l(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.validateSchema=l;var r=n(9657),i=n(1702),o=n(6257),a=n(3448),s=n(3754),u=n(8685),c=n(8364),p=n(4648);function l(e){if((0,p.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new d(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=f(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var u;a&&!(0,s.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(u=f(t,o.OperationTypeNode.MUTATION))&&void 0!==u?u:a.astNode);const c=t.getSubscriptionType();var p;c&&!(0,s.isObjectType)(c)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(c)}.`,null!==(p=f(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==p?p:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,u.isDirective)(n)){y(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args){var t;y(e,i),(0,s.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,s.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[_(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.isNonNullType)(t.type)&&(0,s.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.isNamedType)(i)?((0,c.isIntrospectionType)(i)||y(e,i),(0,s.isObjectType)(i)||(0,s.isInterfaceType)(i)?(m(e,i),h(e,i)):(0,s.isUnionType)(i)?v(e,i):(0,s.isEnumType)(i)?g(e,i):(0,s.isInputObjectType)(i)&&(E(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class d{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}}function f(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function y(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const u of n){var i;y(e,u),(0,s.isOutputType)(u.type)||e.reportError(`The type of ${t.name}.${u.name} must be Output Type but got: ${(0,r.inspect)(u.type)}.`,null===(i=u.astNode)||void 0===i?void 0:i.type);for(const n of u.args){const i=n.name;var o,a;y(e,n),(0,s.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${u.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${u.name}(${i}:) cannot be deprecated.`,[_(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function h(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,N(t,i)):(n[i.name]=!0,b(e,t,i),T(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,N(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,N(t,i))}function T(e,t,n){const i=t.getFields();for(const l of Object.values(n.getFields())){const d=l.name,f=i[d];if(f){var o,u;(0,a.isTypeSubTypeOf)(e.schema,f.type,l.type)||e.reportError(`Interface field ${n.name}.${d} expects type ${(0,r.inspect)(l.type)} but ${t.name}.${d} is type ${(0,r.inspect)(f.type)}.`,[null===(o=l.astNode)||void 0===o?void 0:o.type,null===(u=f.astNode)||void 0===u?void 0:u.type]);for(const i of l.args){const o=i.name,s=f.args.find((e=>e.name===o));var c,p;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${d}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(c=i.astNode)||void 0===c?void 0:c.type,null===(p=s.astNode)||void 0===p?void 0:p.type]):e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!l.args.find((e=>e.name===i))&&(0,s.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${i} that is missing from the Interface field ${n.name}.${d}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function b(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...N(n,i),...N(t,n)])}function v(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,I(t,o.name)):(i[o.name]=!0,(0,s.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,I(t,String(o))))}function g(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)y(e,t)}function E(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;y(e,a),(0,s.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[_(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&O(t,a,e)}}function O(e,t,n){var r;(0,s.isNonNullType)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function N(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function I(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function _(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===u.GraphQLDeprecatedDirective.name))}},7485:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.getEnterLeaveForKind)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(6257),i=n(7030),o=n(9111),a=n(3754),s=n(8364),u=n(6693);class c{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:p,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case i.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,u.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case i.Kind.VARIABLE_DEFINITION:{const n=(0,u.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case i.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case i.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}}}function p(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=c},8426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(3028),i=n(1702),o=n(3506);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},8096:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,u.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,u.isListType)(n)){const r=n.ofType;if((0,o.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,u.isInputObjectType)(n)){if(!(0,a.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,u.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return p.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,u.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===c.GraphQLID&&p.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(9657),i=n(1321),o=n(4820),a=n(5569),s=n(7030),u=n(3754),c=n(1062);const p=/^-?(?:0|[1-9][0-9]*)$/},434:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=p,t.buildSchema=function(e,t){return p((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(3028),i=n(7030),o=n(246),a=n(8685),s=n(4648),u=n(9040),c=n(1442);function p(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,u.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,c.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const p=[...o.directives,...a.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new s.GraphQLSchema({...o,directives:p})}},6613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,r.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.inspect)(e)}.`);const n=e.__schema,y=(0,a.keyValMap)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case p.TypeKind.SCALAR:return r=e,new u.GraphQLScalarType({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case p.TypeKind.OBJECT:return n=e,new u.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>N(n),fields:()=>I(n)});case p.TypeKind.INTERFACE:return t=e,new u.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>N(t),fields:()=>I(t)});case p.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new u.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(E)})}(e);case p.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new u.GraphQLEnumType({name:e.name,description:e.description,values:(0,a.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case p.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new u.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>L(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const o=(0,i.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const e of[...l.specifiedScalarTypes,...p.introspectionTypes])y[e.name]&&(y[e.name]=e);const m=n.queryType?E(n.queryType):null,h=n.mutationType?E(n.mutationType):null,T=n.subscriptionType?E(n.subscriptionType):null,b=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new c.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:L(e.args)})})):[];return new d.GraphQLSchema({description:n.description,query:m,mutation:h,subscription:T,types:Object.values(y),directives:b,assumeValid:null==t?void 0:t.assumeValid});function v(e){if(e.kind===p.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new u.GraphQLList(v(t))}if(e.kind===p.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=v(t);return new u.GraphQLNonNull((0,u.assertNullableType)(n))}return g(e)}function g(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.inspect)(e)}.`);const n=y[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function E(e){return(0,u.assertObjectType)(g(e))}function O(e){return(0,u.assertInterfaceType)(g(e))}function N(e){if(null===e.interfaces&&e.kind===p.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(O)}function I(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.inspect)(e)}.`);return(0,a.keyValMap)(e.fields,(e=>e.name),_)}function _(e){const t=v(e.type);if(!(0,u.isOutputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:L(e.args)}}function L(e){return(0,a.keyValMap)(e,(e=>e.name),D)}function D(e){const t=v(e.type);if(!(0,u.isInputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(3028),i=n(9657),o=n(5569),a=n(5785),s=n(246),u=n(3754),c=n(8685),p=n(8364),l=n(1062),d=n(4648),f=n(2302)},4090:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=f){return y(e,t,n,void 0)};var r=n(2832),i=n(9657),o=n(1321),a=n(4820),s=n(5569),u=n(6506),c=n(636),p=n(1709),l=n(1702),d=n(3754);function f(e,t,n){let r="Invalid value "+(0,i.inspect)(t);throw e.length>0&&(r+=` at "value${(0,c.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function y(e,t,n,c){if((0,d.isNonNullType)(t))return null!=e?y(e,t.ofType,n,c):void n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected non-nullable type "${(0,i.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,d.isListType)(t)){const r=t.ofType;return(0,a.isIterableObject)(e)?Array.from(e,((e,t)=>{const i=(0,u.addPath)(c,t,void 0);return y(e,r,n,i)})):[y(e,r,n,c)]}if((0,d.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return void n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=y(a,r.type,n,(0,u.addPath)(c,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,d.isNonNullType)(r.type)){const t=(0,i.inspect)(r.type);n((0,u.pathToArray)(c),e,new l.GraphQLError(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,p.suggestionList)(i,Object.keys(t.getFields()));n((0,u.pathToArray)(c),e,new l.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}if(t.isOneOf){const r=Object.keys(o);1!==r.length&&n((0,u.pathToArray)(c),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));const i=r[0],a=o[i];null===a&&n((0,u.pathToArray)(c).concat(i),a,new l.GraphQLError(`Field "${i}" must be non-null.`))}return o}if((0,d.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof l.GraphQLError?n((0,u.pathToArray)(c),e,r):n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,u.pathToArray)(c),e,new l.GraphQLError(`Expected type "${t.name}".`)),r}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(t))}},3129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(7030)},1442:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,y.assertSchema)(e),null!=t&&t.kind===u.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,m.assertValidSDLExtension)(t,e);const i=e.toConfig(),o=b(i,t,n);return i===o?e:new y.GraphQLSchema(o)},t.extendSchemaImpl=b;var r=n(3028),i=n(9657),o=n(1321),a=n(4590),s=n(3430),u=n(7030),c=n(9187),p=n(3754),l=n(8685),d=n(8364),f=n(1062),y=n(4648),m=n(9040),h=n(8113),T=n(2302);function b(e,t,n){var r,a,y,m;const b=[],O=Object.create(null),N=[];let I;const _=[];for(const e of t.definitions)if(e.kind===u.Kind.SCHEMA_DEFINITION)I=e;else if(e.kind===u.Kind.SCHEMA_EXTENSION)_.push(e);else if((0,c.isTypeDefinitionNode)(e))b.push(e);else if((0,c.isTypeExtensionNode)(e)){const t=e.name.value,n=O[t];O[t]=n?n.concat([e]):[e]}else e.kind===u.Kind.DIRECTIVE_DEFINITION&&N.push(e);if(0===Object.keys(O).length&&0===b.length&&0===N.length&&0===_.length&&null==I)return e;const L=Object.create(null);for(const t of e.types)L[t.name]=(D=t,(0,d.isIntrospectionType)(D)||(0,f.isSpecifiedScalarType)(D)?D:(0,p.isScalarType)(D)?function(e){var t;const n=e.toConfig(),r=null!==(t=O[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=E(e))&&void 0!==o?o:i}return new p.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(D):(0,p.isObjectType)(D)?function(e){var t;const n=e.toConfig(),r=null!==(t=O[n.name])&&void 0!==t?t:[];return new p.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(P),...Q(r)],fields:()=>({...(0,s.mapValue)(n.fields,R),...G(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(D):(0,p.isInterfaceType)(D)?function(e){var t;const n=e.toConfig(),r=null!==(t=O[n.name])&&void 0!==t?t:[];return new p.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(P),...Q(r)],fields:()=>({...(0,s.mapValue)(n.fields,R),...G(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(D):(0,p.isUnionType)(D)?function(e){var t;const n=e.toConfig(),r=null!==(t=O[n.name])&&void 0!==t?t:[];return new p.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(P),...K(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(D):(0,p.isEnumType)(D)?function(e){var t;const n=e.toConfig(),r=null!==(t=O[e.name])&&void 0!==t?t:[];return new p.GraphQLEnumType({...n,values:{...n.values,...M(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(D):(0,p.isInputObjectType)(D)?function(e){var t;const n=e.toConfig(),r=null!==(t=O[n.name])&&void 0!==t?t:[];return new p.GraphQLInputObjectType({...n,fields:()=>({...(0,s.mapValue)(n.fields,(e=>({...e,type:A(e.type)}))),...C(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(D):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(D)));var D;for(const e of b){var S;const t=e.name.value;L[t]=null!==(S=v[t])&&void 0!==S?S:$(e)}const j={query:e.query&&P(e.query),mutation:e.mutation&&P(e.mutation),subscription:e.subscription&&P(e.subscription),...I&&k([I]),...k(_)};return{description:null===(r=I)||void 0===r||null===(a=r.description)||void 0===a?void 0:a.value,...j,types:Object.values(L),directives:[...e.directives.map((function(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,w)})})),...N.map((function(e){var t;return new l.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:V(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(y=I)&&void 0!==y?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(_),assumeValid:null!==(m=null==n?void 0:n.assumeValid)&&void 0!==m&&m};function A(e){return(0,p.isListType)(e)?new p.GraphQLList(A(e.ofType)):(0,p.isNonNullType)(e)?new p.GraphQLNonNull(A(e.ofType)):P(e)}function P(e){return L[e.name]}function R(e){return{...e,type:A(e.type),args:e.args&&(0,s.mapValue)(e.args,w)}}function w(e){return{...e,type:A(e.type)}}function k(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=F(n.type)}return t}function F(e){var t;const n=e.name.value,r=null!==(t=v[n])&&void 0!==t?t:L[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function x(e){return e.kind===u.Kind.LIST_TYPE?new p.GraphQLList(x(e.type)):e.kind===u.Kind.NON_NULL_TYPE?new p.GraphQLNonNull(x(e.type)):F(e)}function G(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:x(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:V(n.arguments),deprecationReason:g(n),astNode:n}}}return t}function V(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=x(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,T.valueFromAST)(e.defaultValue,t),deprecationReason:g(e),astNode:e}}return n}function C(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=x(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,T.valueFromAST)(n.defaultValue,e),deprecationReason:g(n),astNode:n}}}return t}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:g(n),astNode:n}}}return t}function Q(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(F))&&void 0!==t?t:[]}))}function K(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(F))&&void 0!==t?t:[]}))}function $(e){var t;const n=e.name.value,r=null!==(t=O[n])&&void 0!==t?t:[];switch(e.kind){case u.Kind.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new p.GraphQLObjectType({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>Q(t),fields:()=>G(t),astNode:e,extensionASTNodes:r})}case u.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new p.GraphQLInterfaceType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>Q(t),fields:()=>G(t),astNode:e,extensionASTNodes:r})}case u.Kind.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new p.GraphQLEnumType({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:M(t),astNode:e,extensionASTNodes:r})}case u.Kind.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new p.GraphQLUnionType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>K(t),astNode:e,extensionASTNodes:r})}case u.Kind.SCALAR_TYPE_DEFINITION:var c;return new p.GraphQLScalarType({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:E(e),astNode:e,extensionASTNodes:r});case u.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var d;const t=[e,...r];return new p.GraphQLInputObjectType({name:n,description:null===(d=e.description)||void 0===d?void 0:d.value,fields:()=>C(t),astNode:e,extensionASTNodes:r,isOneOf:(f=e,Boolean((0,h.getDirectiveValues)(l.GraphQLOneOfDirective,f)))})}}var f}}const v=(0,a.keyMap)([...f.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function g(e){const t=(0,h.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function E(e){const t=(0,h.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},3666:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return f(e,t).filter((e=>e.type in r))},t.findDangerousChanges=function(e,t){return f(e,t).filter((e=>e.type in i))};var r,i,o=n(9657),a=n(1321),s=n(4590),u=n(585),c=n(3754),p=n(1062),l=n(8096),d=n(1152);function f(e,t){return[...m(e,t),...y(e,t)]}function y(e,t){const n=[],i=L(e.getDirectives(),t.getDirectives());for(const e of i.removed)n.push({type:r.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of i.persisted){const i=L(e.args,t.args);for(const t of i.added)(0,c.isRequiredArgument)(t)&&n.push({type:r.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of i.removed)n.push({type:r.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:r.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const i of e.locations)t.locations.includes(i)||n.push({type:r.DIRECTIVE_LOCATION_REMOVED,description:`${i} was removed from ${e.name}.`})}return n}function m(e,t){const n=[],i=L(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of i.removed)n.push({type:r.TYPE_REMOVED,description:(0,p.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of i.persisted)(0,c.isEnumType)(e)&&(0,c.isEnumType)(t)?n.push(...b(e,t)):(0,c.isUnionType)(e)&&(0,c.isUnionType)(t)?n.push(...T(e,t)):(0,c.isInputObjectType)(e)&&(0,c.isInputObjectType)(t)?n.push(...h(e,t)):(0,c.isObjectType)(e)&&(0,c.isObjectType)(t)||(0,c.isInterfaceType)(e)&&(0,c.isInterfaceType)(t)?n.push(...g(e,t),...v(e,t)):e.constructor!==t.constructor&&n.push({type:r.TYPE_CHANGED_KIND,description:`${e.name} changed from ${I(e)} to ${I(t)}.`});return n}function h(e,t){const n=[],o=L(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of o.added)(0,c.isRequiredInputField)(t)?n.push({type:r.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:i.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of o.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of o.persisted)N(t.type,i.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function T(e,t){const n=[],o=L(e.getTypes(),t.getTypes());for(const t of o.added)n.push({type:i.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of o.removed)n.push({type:r.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function b(e,t){const n=[],o=L(e.getValues(),t.getValues());for(const t of o.added)n.push({type:i.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of o.removed)n.push({type:r.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function v(e,t){const n=[],o=L(e.getInterfaces(),t.getInterfaces());for(const t of o.added)n.push({type:i.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of o.removed)n.push({type:r.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function g(e,t){const n=[],i=L(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of i.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of i.persisted)n.push(...E(e,t,o)),O(t.type,o.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`});return n}function E(e,t,n){const o=[],a=L(t.args,n.args);for(const n of a.removed)o.push({type:r.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,s]of a.persisted)if(N(n.type,s.type)){if(void 0!==n.defaultValue)if(void 0===s.defaultValue)o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const r=_(n.defaultValue,n.type),a=_(s.defaultValue,s.type);r!==a&&o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:r.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(s.type)}.`});for(const n of a.added)(0,c.isRequiredArgument)(n)?o.push({type:r.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):o.push({type:i.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return o}function O(e,t){return(0,c.isListType)(e)?(0,c.isListType)(t)&&O(e.ofType,t.ofType)||(0,c.isNonNullType)(t)&&O(e,t.ofType):(0,c.isNonNullType)(e)?(0,c.isNonNullType)(t)&&O(e.ofType,t.ofType):(0,c.isNamedType)(t)&&e.name===t.name||(0,c.isNonNullType)(t)&&O(e,t.ofType)}function N(e,t){return(0,c.isListType)(e)?(0,c.isListType)(t)&&N(e.ofType,t.ofType):(0,c.isNonNullType)(e)?(0,c.isNonNullType)(t)&&N(e.ofType,t.ofType)||!(0,c.isNonNullType)(t)&&N(e.ofType,t):(0,c.isNamedType)(t)&&e.name===t.name}function I(e){return(0,c.isScalarType)(e)?"a Scalar type":(0,c.isObjectType)(e)?"an Object type":(0,c.isInterfaceType)(e)?"an Interface type":(0,c.isUnionType)(e)?"a Union type":(0,c.isEnumType)(e)?"an Enum type":(0,c.isInputObjectType)(e)?"an Input type":void(0,a.invariant)(!1,"Unexpected type: "+(0,o.inspect)(e))}function _(e,t){const n=(0,l.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,u.print)((0,d.sortValueNode)(n))}function L(e,t){const n=[],r=[],i=[],o=(0,s.keyMap)(e,(({name:e})=>e)),a=(0,s.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}t.BreakingChangeType=r,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(r||(t.BreakingChangeType=r={})),t.DangerousChangeType=i,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(i||(t.DangerousChangeType=i={}))},6032:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}const s=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${s}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${a("isDeprecated")}\n ${a("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},3810:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(7030)},4676:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})};var r=n(1702)},4889:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return N.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return N.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return h.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return O.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return T.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return b.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return E.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return c.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return N.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return N.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return E.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return E.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return O.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return p.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return l.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return l.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return l.printType}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return v.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return g.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return d.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return f.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return y.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return h.visitWithTypeInfo}});var r=n(6032),i=n(3810),o=n(4676),a=n(5197),s=n(6613),u=n(434),c=n(1442),p=n(7460),l=n(2254),d=n(6693),f=n(2302),y=n(8805),m=n(8096),h=n(7485),T=n(4090),b=n(3129),v=n(1070),g=n(8401),E=n(3448),O=n(8426),N=n(3666)},5197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),u=(0,o.executeSync)({schema:e,document:s});return!u.errors&&u.data||(0,r.invariant)(!1),u.data};var r=n(1321),i=n(246),o=n(6892),a=n(6032)},7460:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(d(t.types),(e=>e.name),(function(e){if((0,s.isScalarType)(e)||(0,c.isIntrospectionType)(e))return e;if((0,s.isObjectType)(e)){const t=e.toConfig();return new s.GraphQLObjectType({...t,interfaces:()=>b(t.interfaces),fields:()=>T(t.fields)})}if((0,s.isInterfaceType)(e)){const t=e.toConfig();return new s.GraphQLInterfaceType({...t,interfaces:()=>b(t.interfaces),fields:()=>T(t.fields)})}if((0,s.isUnionType)(e)){const t=e.toConfig();return new s.GraphQLUnionType({...t,types:()=>b(t.types)})}if((0,s.isEnumType)(e)){const t=e.toConfig();return new s.GraphQLEnumType({...t,values:l(t.values,(e=>e))})}if((0,s.isInputObjectType)(e)){const t=e.toConfig();return new s.GraphQLInputObjectType({...t,fields:()=>l(t.fields,(e=>({...e,type:a(e.type)})))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}));return new p.GraphQLSchema({...t,types:Object.values(n),directives:d(t.directives).map((function(e){const t=e.toConfig();return new u.GraphQLDirective({...t,locations:f(t.locations,(e=>e)),args:h(t.args)})})),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,s.isListType)(e)?new s.GraphQLList(a(e.ofType)):(0,s.isNonNullType)(e)?new s.GraphQLNonNull(a(e.ofType)):y(e)}function y(e){return n[e.name]}function m(e){return e&&y(e)}function h(e){return l(e,(e=>({...e,type:a(e.type)})))}function T(e){return l(e,(e=>({...e,type:a(e.type),args:e.args&&h(e.args)})))}function b(e){return d(e).map(y)}};var r=n(9657),i=n(1321),o=n(5785),a=n(5745),s=n(3754),u=n(8685),c=n(8364),p=n(4648);function l(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(a.naturalCompare))n[r]=t(e[r]);return n}function d(e){return f(e,(e=>e.name))}function f(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)}))}},2254:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return y(e,c.isSpecifiedDirective,p.isIntrospectionType)},t.printSchema=function(e){return y(e,(e=>!(0,c.isSpecifiedDirective)(e)),f)},t.printType=h;var r=n(9657),i=n(1321),o=n(9165),a=n(7030),s=n(585),u=n(3754),c=n(8685),p=n(8364),l=n(1062),d=n(8096);function f(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,p.isIntrospectionType)(e)}function y(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map((e=>function(e){return N(e)+"directive @"+e.name+g(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>h(e)))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),N(e)+`schema {\n${t.join("\n")}\n}`}function h(e){return(0,u.isScalarType)(e)?function(e){return N(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,s.print)({kind:a.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,u.isObjectType)(e)?function(e){return N(e)+`type ${e.name}`+T(e)+b(e)}(e):(0,u.isInterfaceType)(e)?function(e){return N(e)+`interface ${e.name}`+T(e)+b(e)}(e):(0,u.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return N(e)+"union "+e.name+n}(e):(0,u.isEnumType)(e)?function(e){const t=e.getValues().map(((e,t)=>N(e," ",!t)+" "+e.name+O(e.deprecationReason)));return N(e)+`enum ${e.name}`+v(t)}(e):(0,u.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>N(e," ",!t)+" "+E(e)));return N(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+v(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function T(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function b(e){return v(Object.values(e.getFields()).map(((e,t)=>N(e," ",!t)+" "+e.name+g(e.args," ")+": "+String(e.type)+O(e.deprecationReason))))}function v(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function g(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(E).join(", ")+")":"(\n"+e.map(((e,n)=>N(e," "+t,!n)+" "+t+E(e))).join("\n")+"\n"+t+")"}function E(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,s.print)(t)}`),n+O(e.deprecationReason)}function O(e){return null==e?"":e!==c.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,s.print)({kind:a.Kind.STRING,value:e})})`:" @deprecated"}function N(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,s.print)({kind:a.Kind.STRING,value:r,block:(0,o.isPrintableAsBlockString)(r)}).replace(/\n/g,"\n"+t)+"\n"}},1070:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return i};var r=n(7030),i=n(9111);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},1152:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sortValueNode=function e(t){switch(t.kind){case i.Kind.OBJECT:return{...t,fields:(n=t.fields,n.map((t=>({...t,value:e(t.value)}))).sort(((e,t)=>(0,r.naturalCompare)(e.name.value,t.name.value))))};case i.Kind.LIST:return{...t,values:t.values.map(e)};case i.Kind.INT:case i.Kind.FLOAT:case i.Kind.STRING:case i.Kind.BOOLEAN:case i.Kind.NULL:case i.Kind.ENUM:case i.Kind.VARIABLE:return t}var n};var r=n(5745),i=n(7030)},8401:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,o.isSource)(e)?e:new o.Source(e),n=t.body,s=new i.Lexer(t);let u="",c=!1;for(;s.advance().kind!==a.TokenKind.EOF;){const e=s.token,t=e.kind,o=!(0,i.isPunctuatorTokenKind)(e.kind);c&&(o||e.kind===a.TokenKind.SPREAD)&&(u+=" ");const p=n.slice(e.start,e.end);t===a.TokenKind.BLOCK_STRING?u+=(0,r.printBlockString)(e.value,{minimize:!0}):u+=p,c=o}return u};var r=n(9165),i=n(6083),o=n(6876),a=n(3038)},3448:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(3754)},6693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){switch(n.kind){case r.Kind.LIST_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLList(r)}case r.Kind.NON_NULL_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLNonNull(r)}case r.Kind.NAMED_TYPE:return t.getType(n.name.value)}};var r=n(7030),i=n(3754)},2302:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,c){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==c||void 0===c[e])return;const r=c[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,c)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(u(i,c)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,c);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,c);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const r=Object.create(null),i=(0,o.keyMap)(t.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const n=i[t.name];if(!n||u(n.value,c)){if(void 0!==t.defaultValue)r[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const o=e(n.value,t.type,c);if(void 0===o)return;r[t.name]=o}if(n.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,c)}catch(e){return}if(void 0===e)return;return e}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))}};var r=n(9657),i=n(1321),o=n(4590),a=n(7030),s=n(3754);function u(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},8805:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case i.Kind.NULL:return null;case i.Kind.INT:return parseInt(t.value,10);case i.Kind.FLOAT:return parseFloat(t.value);case i.Kind.STRING:case i.Kind.ENUM:case i.Kind.BOOLEAN:return t.value;case i.Kind.LIST:return t.values.map((t=>e(t,n)));case i.Kind.OBJECT:return(0,r.keyValMap)(t.fields,(e=>e.name.value),(t=>e(t.value,n)));case i.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}};var r=n(5785),i=n(7030)},4782:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(7030),i=n(9111),o=n(7485);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class u extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=u},4360:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return u.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return p.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return l.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return f.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return w.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return R.MaxIntrospectionDepthRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Q.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return y.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return K.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return h.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return T.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return b.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return v.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return M.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return g.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return E.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return O.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return V.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return N.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return C.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return I.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return x.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return G.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return _.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return L.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return D.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return k.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return F.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return S.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return j.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return A.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return P.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"recommendedRules",{enumerable:!0,get:function(){return o.recommendedRules}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9040),i=n(4782),o=n(7283),a=n(2988),s=n(9284),u=n(6514),c=n(7372),p=n(7999),l=n(9093),d=n(5117),f=n(9130),y=n(944),m=n(1350),h=n(6072),T=n(4472),b=n(2457),v=n(6839),g=n(1672),E=n(1843),O=n(3618),N=n(5566),I=n(9529),_=n(7091),L=n(7027),D=n(5988),S=n(3191),j=n(7909),A=n(964),P=n(4281),R=n(2128),w=n(502),k=n(105),F=n(3171),x=n(1813),G=n(3084),V=n(1066),C=n(5972),M=n(817),Q=n(4555),K=n(5588)},2988:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}};var r=n(1702),i=n(7030),o=n(9187)},9284:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const u=e.getSchema(),c=t.name.value;let p=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,i.naturalCompare)(t.name,n.name)})).map((e=>e.name))}(u,n,c));""===p&&(p=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,o.suggestionList)(t,n)}return[]}(n,c))),e.reportError(new a.GraphQLError(`Cannot query field "${c}" on type "${n.name}".`+p,{nodes:t}))}}}};var r=n(2832),i=n(5745),o=n(1709),a=n(1702),s=n(3754)},6514:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},7372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=u,t.KnownArgumentNamesRule=function(e){return{...u(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,u=a.args.map((e=>e.name)),c=(0,i.suggestionList)(n,u);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(c),{nodes:t}))}}}};var r=n(2832),i=n(1709),o=n(1702),a=n(7030),s=n(8685);function u(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():s.specifiedDirectives;for(const e of u)t[e.name]=e.args.map((e=>e.name));const c=e.getDocument().definitions;for(const e of c)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var p;const n=null!==(p=e.arguments)&&void 0!==p?p:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const u=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(u),{nodes:t}))}}return!1}}}},7999:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),p=n?n.getDirectives():c.specifiedDirectives;for(const e of p)t[e.name]=e.locations;const l=e.getDocument().definitions;for(const e of l)e.kind===u.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,c,p,l,d){const f=n.name.value,y=t[f];if(!y)return void e.reportError(new o.GraphQLError(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case u.Kind.OPERATION_DEFINITION:return function(e){switch(e){case a.OperationTypeNode.QUERY:return s.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return s.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return s.DirectiveLocation.SUBSCRIPTION}}(t.operation);case u.Kind.FIELD:return s.DirectiveLocation.FIELD;case u.Kind.FRAGMENT_SPREAD:return s.DirectiveLocation.FRAGMENT_SPREAD;case u.Kind.INLINE_FRAGMENT:return s.DirectiveLocation.INLINE_FRAGMENT;case u.Kind.FRAGMENT_DEFINITION:return s.DirectiveLocation.FRAGMENT_DEFINITION;case u.Kind.VARIABLE_DEFINITION:return s.DirectiveLocation.VARIABLE_DEFINITION;case u.Kind.SCHEMA_DEFINITION:case u.Kind.SCHEMA_EXTENSION:return s.DirectiveLocation.SCHEMA;case u.Kind.SCALAR_TYPE_DEFINITION:case u.Kind.SCALAR_TYPE_EXTENSION:return s.DirectiveLocation.SCALAR;case u.Kind.OBJECT_TYPE_DEFINITION:case u.Kind.OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.OBJECT;case u.Kind.FIELD_DEFINITION:return s.DirectiveLocation.FIELD_DEFINITION;case u.Kind.INTERFACE_TYPE_DEFINITION:case u.Kind.INTERFACE_TYPE_EXTENSION:return s.DirectiveLocation.INTERFACE;case u.Kind.UNION_TYPE_DEFINITION:case u.Kind.UNION_TYPE_EXTENSION:return s.DirectiveLocation.UNION;case u.Kind.ENUM_TYPE_DEFINITION:case u.Kind.ENUM_TYPE_EXTENSION:return s.DirectiveLocation.ENUM;case u.Kind.ENUM_VALUE_DEFINITION:return s.DirectiveLocation.ENUM_VALUE;case u.Kind.INPUT_OBJECT_TYPE_DEFINITION:case u.Kind.INPUT_OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.INPUT_OBJECT;case u.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===u.Kind.INPUT_OBJECT_TYPE_DEFINITION?s.DirectiveLocation.INPUT_FIELD_DEFINITION:s.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,i.invariant)(!1,"Unexpected kind: "+(0,r.inspect)(t.kind))}}(d);m&&!y.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}};var r=n(9657),i=n(1321),o=n(1702),a=n(6257),s=n(5919),u=n(7030),c=n(8685)},9093:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}};var r=n(1702)},5117:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const c=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,p,l,d,f){const y=t.name.value;if(!n[y]&&!s[y]){var m;const n=null!==(m=f[2])&&void 0!==m?m:l,s=null!=n&&"kind"in(h=n)&&((0,a.isTypeSystemDefinitionNode)(h)||(0,a.isTypeSystemExtensionNode)(h));if(s&&u.includes(y))return;const p=(0,i.suggestionList)(y,s?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${y}".`+(0,r.didYouMean)(p),{nodes:t}))}var h}}};var r=n(2832),i=n(1709),o=n(1702),a=n(9187),s=n(8364);const u=[...n(1062).specifiedScalarTypes,...s.introspectionTypes].map((e=>e.name))},9130:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.Kind.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}};var r=n(1702),i=n(7030)},502:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",{nodes:t})),++s)}}};var r=n(1702)},2128:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MaxIntrospectionDepthRule=function(e){function t(n,r=Object.create(null),a=0){if(n.kind===i.Kind.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const o=e.getFragment(i);if(!o)return!1;try{return r[i]=!0,t(o,r,a)}finally{r[i]=void 0}}if(n.kind===i.Kind.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++a>=o)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,a))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new r.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}};var r=n(1702),i=n(7030);const o=3},944:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const u=e.getFragmentSpreads(a.selectionSet);if(0!==u.length){i[s]=n.length;for(const t of u){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}};var r=n(1702)},1350:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(1702)},6072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,{nodes:t}))}}}}};var r=n(1702)},4472:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}};var r=n(1702)},2457:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new g,n=new E,r=new Map;return{SelectionSet(o){const a=function(e,t,n,r,i,o){const a=[],[s,u]=T(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o`subfields "${e}" conflict because `+p(t))).join(" and "):e}function l(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);const u=e.getFragment(s);if(!u)return;const[c,p]=b(e,n,u);if(a!==c){f(e,t,n,r,i,o,a,c);for(const s of p)l(e,t,n,r,i,o,a,s)}}function d(e,t,n,r,i,o,a,s){if(a===s)return;if(i.has(a,s,o))return;i.add(a,s,o);const u=e.getFragment(a),c=e.getFragment(s);if(!u||!c)return;const[p,l]=b(e,n,u),[y,m]=b(e,n,c);f(e,t,n,r,i,o,p,y);for(const s of m)d(e,t,n,r,i,o,a,s);for(const a of l)d(e,t,n,r,i,o,a,s)}function f(e,t,n,r,i,o,a,s){for(const[u,c]of Object.entries(a)){const a=s[u];if(a)for(const s of c)for(const c of a){const a=y(e,n,r,i,o,u,s,c);a&&t.push(a)}}}function y(e,t,n,i,o,a,u,c){const[p,y,b]=u,[v,g,E]=c,O=o||p!==v&&(0,s.isObjectType)(p)&&(0,s.isObjectType)(v);if(!O){const e=y.name.value,t=g.name.value;if(e!==t)return[[a,`"${e}" and "${t}" are different fields`],[y],[g]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((({name:e,value:t})=>[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&m(t)===m(n)}))}(y,g))return[[a,"they have differing arguments"],[y],[g]]}const N=null==b?void 0:b.type,I=null==E?void 0:E.type;if(N&&I&&h(N,I))return[[a,`they return conflicting types "${(0,r.inspect)(N)}" and "${(0,r.inspect)(I)}"`],[y],[g]];const _=y.selectionSet,L=g.selectionSet;if(_&&L){const r=function(e,t,n,r,i,o,a,s,u){const c=[],[p,y]=T(e,t,o,a),[m,h]=T(e,t,s,u);f(e,c,t,n,r,i,p,m);for(const o of h)l(e,c,t,n,r,i,p,o);for(const o of y)l(e,c,t,n,r,i,m,o);for(const o of y)for(const a of h)d(e,c,t,n,r,i,o,a);return c}(e,t,n,i,O,(0,s.getNamedType)(N),_,(0,s.getNamedType)(I),L);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,a,y,g)}}function m(e){return(0,a.print)((0,u.sortValueNode)(e))}function h(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||h(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||h(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function T(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);v(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function b(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,c.typeFromAST)(e.getSchema(),n.typeCondition);return T(e,t,i,n.selectionSet)}function v(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,c.typeFromAST)(e.getSchema(),n):t;v(e,o,a.selectionSet,r,i);break}}}class g{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class E{constructor(){this._orderedPairSet=new g}has(e,t,n){return e{Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleFragmentSpreadsRule=function(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s),a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,u=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t))return t}}(e,n),c=e.getParentType();if(u&&c&&!(0,a.doTypesOverlap)(e.getSchema(),u,c)){const o=(0,r.inspect)(c),a=(0,r.inspect)(u);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754),a=n(3448),s=n(6693)},817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleTypeExtensionsRule=function(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,c.isTypeDefinitionNode)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:d,ObjectTypeExtension:d,InterfaceTypeExtension:d,UnionTypeExtension:d,EnumTypeExtension:d,InputObjectTypeExtension:d};function d(c){const d=c.name.value,f=n[d],y=null==t?void 0:t.getType(d);let m;if(f?m=l[f.kind]:y&&(h=y,m=(0,p.isScalarType)(h)?u.Kind.SCALAR_TYPE_EXTENSION:(0,p.isObjectType)(h)?u.Kind.OBJECT_TYPE_EXTENSION:(0,p.isInterfaceType)(h)?u.Kind.INTERFACE_TYPE_EXTENSION:(0,p.isUnionType)(h)?u.Kind.UNION_TYPE_EXTENSION:(0,p.isEnumType)(h)?u.Kind.ENUM_TYPE_EXTENSION:(0,p.isInputObjectType)(h)?u.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(h))),m){if(m!==c.kind){const t=function(e){switch(e){case u.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case u.Kind.OBJECT_TYPE_EXTENSION:return"object";case u.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case u.Kind.UNION_TYPE_EXTENSION:return"union";case u.Kind.ENUM_TYPE_EXTENSION:return"enum";case u.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.invariant)(!1,"Unexpected kind: "+(0,i.inspect)(e))}}(c.kind);e.reportError(new s.GraphQLError(`Cannot extend non-${t} type "${d}".`,{nodes:f?[f,c]:c}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,a.suggestionList)(d,i);e.reportError(new s.GraphQLError(`Cannot extend type "${d}" because it is not defined.`+(0,r.didYouMean)(o),{nodes:c.name}))}var h}};var r=n(2832),i=n(9657),o=n(1321),a=n(1709),s=n(1702),u=n(7030),c=n(9187),p=n(3754);const l={[u.Kind.SCALAR_TYPE_DEFINITION]:u.Kind.SCALAR_TYPE_EXTENSION,[u.Kind.OBJECT_TYPE_DEFINITION]:u.Kind.OBJECT_TYPE_EXTENSION,[u.Kind.INTERFACE_TYPE_DEFINITION]:u.Kind.INTERFACE_TYPE_EXTENSION,[u.Kind.UNION_TYPE_DEFINITION]:u.Kind.UNION_TYPE_EXTENSION,[u.Kind.ENUM_TYPE_DEFINITION]:u.Kind.ENUM_TYPE_EXTENSION,[u.Kind.INPUT_OBJECT_TYPE_DEFINITION]:u.Kind.INPUT_OBJECT_TYPE_EXTENSION}},1672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedRequiredArgumentsOnDirectivesRule=p,t.ProvidedRequiredArgumentsRule=function(e){return{...p(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of i.args)if(!a.has(n.name)&&(0,u.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}};var r=n(9657),i=n(4590),o=n(1702),a=n(7030),s=n(585),u=n(3754),c=n(8685);function p(e){var t;const n=Object.create(null),p=e.getSchema(),d=null!==(t=null==p?void 0:p.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of d)n[e.name]=(0,i.keyMap)(e.args.filter(u.isRequiredArgument),(e=>e.name));const f=e.getDocument().definitions;for(const e of f)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var y;const t=null!==(y=e.arguments)&&void 0!==y?y:[];n[e.name.value]=(0,i.keyMap)(t.filter(l),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var c;const n=null!==(c=t.arguments)&&void 0!==c?c:[],p=new Set(n.map((e=>e.name.value)));for(const[n,c]of Object.entries(a))if(!p.has(n)){const a=(0,u.isType)(c.type)?(0,r.inspect)(c.type):(0,s.print)(c.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}}function l(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},1843:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(a){if(0===a.selections.length){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have at least one field selected.`,{nodes:t}))}}else{const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}};var r=n(9657),i=n(1702),o=n(3754)},3618:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,u=Object.create(null),c=e.getDocument(),p=Object.create(null);for(const e of c.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(p[e.name.value]=e);const l=(0,o.collectFields)(n,p,u,a,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}};var r=n(1702),i=n(7030),o=n(1516)},1066:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,(e=>e.name.value));for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map((e=>e.name))}));return!1}};var r=n(4947),i=n(1702)},5566:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}};var r=n(4947),i=n(1702)},5972:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}};var r=n(1702)},9529:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const u=e.getDocument().definitions;for(const e of u)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const c=Object.create(null),p=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=c;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=p[e],void 0===a&&(p[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}};var r=n(1702),i=n(7030),o=n(9187),a=n(8685)},1813:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const u=null!==(a=t.values)&&void 0!==a?a:[],c=o[s];for(const t of u){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,{nodes:[c[o],t.name]})):c[o]=t.name}return!1}};var r=n(1702),i=n(3754)},3084:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const u=null!==(a=t.fields)&&void 0!==a?a:[],c=i[s];for(const t of u){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,{nodes:[c[i],t.name]})):c[i]=t.name}return!1}};var r=n(1702),i=n(3754);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},7091:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}};var r=n(1702)},7027:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}};var r=n(1321),i=n(1702)},5988:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(1702)},105:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[a,t]})):n[o]=t}return!1}};var r=n(1702)},3171:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}};var r=n(1702)},3191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,(e=>e.variable.name.value));for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}};var r=n(4947),i=n(1702)},7909:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const n=(0,p.getNullableType)(e.getParentInputType());if(!(0,p.isListType)(n))return l(e,t),!1},ObjectValue(n){const r=(0,p.getNamedType)(e.getInputType());if(!(0,p.isInputObjectType)(r))return l(e,n),!1;const a=(0,o.keyMap)(n.fields,(e=>e.name.value));for(const t of Object.values(r.getFields()))if(!a[t.name]&&(0,p.isRequiredInputField)(t)){const o=(0,i.inspect)(t.type);e.reportError(new s.GraphQLError(`Field "${r.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:n}))}r.isOneOf&&function(e,t,n,r,i){var o;const a=Object.keys(r);if(1!==a.length)return void e.reportError(new s.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const c=null===(o=r[a[0]])||void 0===o?void 0:o.value,p=!c||c.kind===u.Kind.NULL,l=(null==c?void 0:c.kind)===u.Kind.VARIABLE;if(p)e.reportError(new s.GraphQLError(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));else if(l){const r=c.name.value;i[r].type.kind!==u.Kind.NON_NULL_TYPE&&e.reportError(new s.GraphQLError(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,r,a,t)},ObjectField(t){const n=(0,p.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,p.isInputObjectType)(n)){const i=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.didYouMean)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,p.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,c.print)(t)}.`,{nodes:t}))},EnumValue:t=>l(e,t),IntValue:t=>l(e,t),FloatValue:t=>l(e,t),StringValue:t=>l(e,t),BooleanValue:t=>l(e,t)}};var r=n(2832),i=n(9657),o=n(4590),a=n(1709),s=n(1702),u=n(7030),c=n(585),p=n(3754);function l(e,t){const n=e.getInputType();if(!n)return;const r=(0,p.getNamedType)(n);if((0,p.isLeafType)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,c.print)(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,c.print)(t)}.`,{nodes:t}))}}},964:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}};var r=n(1702),i=n(585),o=n(3754),a=n(6693)},4281:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:s}of o){const o=n.name.value,p=t[o];if(p&&a){const t=e.getSchema(),l=(0,u.typeFromAST)(t,p.type);if(l&&!c(t,l,p.defaultValue,a,s)){const t=(0,r.inspect)(l),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,{nodes:[p,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(9657),i=n(1702),o=n(7030),a=n(3754),s=n(3448),u=n(6693);function c(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){if((null==n||n.kind===o.Kind.NULL)&&void 0===i)return!1;const a=r.ofType;return(0,s.isTypeSubTypeOf)(e,t,a)}return(0,s.isTypeSubTypeOf)(e,t,r)}},4555:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}};var r=n(1321),i=n(1702),o=n(3754)},5588:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}};var r=n(1702),i=n(3754),o=n(8364)},7283:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var r=n(2988),i=n(9284),o=n(6514),a=n(7372),s=n(7999),u=n(9093),c=n(5117),p=n(9130),l=n(502),d=n(2128),f=n(944),y=n(1350),m=n(6072),h=n(4472),T=n(2457),b=n(6839),v=n(817),g=n(1672),E=n(1843),O=n(3618),N=n(1066),I=n(5566),_=n(5972),L=n(9529),D=n(1813),S=n(3084),j=n(7091),A=n(7027),P=n(5988),R=n(105),w=n(3171),k=n(3191),F=n(7909),x=n(964),G=n(4281);const V=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=V;const C=Object.freeze([r.ExecutableDefinitionsRule,P.UniqueOperationNamesRule,p.LoneAnonymousOperationRule,O.SingleFieldSubscriptionsRule,c.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,x.VariablesAreInputTypesRule,E.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,j.UniqueFragmentNamesRule,u.KnownFragmentNamesRule,m.NoUnusedFragmentsRule,b.PossibleFragmentSpreadsRule,f.NoFragmentCyclesRule,k.UniqueVariableNamesRule,y.NoUndefinedVariablesRule,h.NoUnusedVariablesRule,s.KnownDirectivesRule,L.UniqueDirectivesPerLocationRule,a.KnownArgumentNamesRule,I.UniqueArgumentNamesRule,F.ValuesOfCorrectTypeRule,g.ProvidedRequiredArgumentsRule,G.VariablesInAllowedPositionRule,T.OverlappingFieldsCanBeMergedRule,A.UniqueInputFieldNamesRule,...V]);t.specifiedRules=C;const M=Object.freeze([l.LoneSchemaDefinitionRule,R.UniqueOperationTypesRule,w.UniqueTypeNamesRule,D.UniqueEnumValueNamesRule,S.UniqueFieldDefinitionNamesRule,N.UniqueArgumentDefinitionNamesRule,_.UniqueDirectiveNamesRule,c.KnownTypeNamesRule,s.KnownDirectivesRule,L.UniqueDirectivesPerLocationRule,v.PossibleTypeExtensionsRule,a.KnownArgumentNamesOnDirectivesRule,I.UniqueArgumentNamesRule,A.UniqueInputFieldNamesRule,g.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=M},9040:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=p(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))},t.validate=function(e,t,n=u.specifiedRules,p,l=new s.TypeInfo(e)){var d;const f=null!==(d=null==p?void 0:p.maxErrors)&&void 0!==d?d:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const y=Object.freeze({}),m=[],h=new c.ValidationContext(e,t,l,(e=>{if(m.length>=f)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),y;m.push(e)})),T=(0,o.visitInParallel)(n.map((e=>e(h))));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(l,T))}catch(e){if(e!==y)throw e}return m},t.validateSDL=p;var r=n(3028),i=n(1702),o=n(9111),a=n(9873),s=n(7485),u=n(7283),c=n(4782);function p(e,t,n=u.specifiedSDLRules){const r=[],i=new c.SDLValidationContext(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},4274:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.10.0";const n=Object.freeze({major:16,minor:10,patch:0,preReleaseTag:null});t.versionInfo=n},1609:e=>{e.exports=window.React},6087:e=>{e.exports=window.wp.element}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(3408)})(); \ No newline at end of file diff --git a/lib/wp-graphql/build/style-app-rtl.css b/lib/wp-graphql/build/style-app-rtl.css new file mode 100644 index 000000000..fefda03aa --- /dev/null +++ b/lib/wp-graphql/build/style-app-rtl.css @@ -0,0 +1 @@ +#graphiql{display:flex;flex:1}#graphiql .spinner{background:none;visibility:visible}#wp-graphiql-wrapper .doc-explorer-title,#wp-graphiql-wrapper .history-title{overflow-x:visible;padding-top:7px}#wp-graphiql-wrapper .docExplorerWrap,#wp-graphiql-wrapper .historyPaneWrap{background:#fff;box-shadow:0 0 8px rgba(0,0,0,.15);position:relative;z-index:3}#wp-graphiql-wrapper .graphiql-container .doc-explorer-back{overflow:hidden} diff --git a/lib/wp-graphql/build/updates-rtl.css b/lib/wp-graphql/build/updates-rtl.css new file mode 100644 index 000000000..470455d83 --- /dev/null +++ b/lib/wp-graphql/build/updates-rtl.css @@ -0,0 +1 @@ +#wp-graphql-update .hidden,#wp-graphql-update .updating-message .wp-graphql-update-notice{display:none}#wp-graphql-update .wp-graphql-update-notice{background:#fff8e5!important;border-right:4px solid #ffb900;border-top:1px solid #ffb900;font-weight:400;margin:0 -16px 0 -12px!important;padding:9px 12px 9px 0!important}#wp-graphql-update p:before{content:unset}#wp-graphql-update .warning:before{content:""}#wp-graphql-update table{margin:.75em 0 0}#wp-graphql-update table tr{background:transparent none;border:0}#wp-graphql-update table td,#wp-graphql-update table th{background:transparent none!important;border:0!important;box-shadow:none;font-size:1em;margin:0;padding:.75em 20px 0}#wp-graphql-update table th{font-weight:700}#wp-graphql-update-modal{display:none}.wp-graphql-update-modal__container{border-radius:4px;padding:0}.wp-graphql-update-modal__container #TB_closeAjaxWindow,.wp-graphql-update-modal__container #TB_title{display:none}.wp-graphql-update-modal__container #TB_ajaxContent{height:100%!important;margin:0;padding:0;width:100%!important}.wp-graphql-update-modal__container #TB_ajaxContent p{margin:0 0 1em}.wp-graphql-update-modal__container #TB_ajaxContent .message{padding:0 2em}.wp-graphql-update-modal__content h1{background:#e9e9e9;border-bottom:1px solid #eee;border-top-right-radius:4px;border-top-left-radius:4px;font-size:1.6em;line-height:1.5em;margin:0 0 .5em;padding:.75em 1em}.wp-graphql-update-modal__content .wp-graphql-update-notice{padding:0 2em}.wp-graphql-update-modal__content .plugin-details-table-container{max-height:40vh;overflow-y:auto}.wp-graphql-update-modal__content table{margin:0 0 1.25em}.wp-graphql-update-modal__content th{font-weight:700;margin-top:0}.wp-graphql-update-modal__content td,.wp-graphql-update-modal__content th{background:transparent none;border:0;box-shadow:none;font-size:1em;margin:0;padding:.75em 1.25em 0}.wp-graphql-update-modal__content .actions{border-top:1px solid #eee;margin:0;overflow:hidden;padding:1em 0 2em}.wp-graphql-update-modal__content .actions a.button-primary{float:left} diff --git a/lib/wp-graphql/build/updates.asset.php b/lib/wp-graphql/build/updates.asset.php new file mode 100644 index 000000000..f5860010f --- /dev/null +++ b/lib/wp-graphql/build/updates.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'c512025433cfc6193570'); diff --git a/lib/wp-graphql/build/updates.css b/lib/wp-graphql/build/updates.css new file mode 100644 index 000000000..d8519eedd --- /dev/null +++ b/lib/wp-graphql/build/updates.css @@ -0,0 +1 @@ +#wp-graphql-update .hidden,#wp-graphql-update .updating-message .wp-graphql-update-notice{display:none}#wp-graphql-update .wp-graphql-update-notice{background:#fff8e5!important;border-left:4px solid #ffb900;border-top:1px solid #ffb900;font-weight:400;margin:0 -12px 0 -16px!important;padding:9px 0 9px 12px!important}#wp-graphql-update p:before{content:unset}#wp-graphql-update .warning:before{content:""}#wp-graphql-update table{margin:.75em 0 0}#wp-graphql-update table tr{background:transparent none;border:0}#wp-graphql-update table td,#wp-graphql-update table th{background:transparent none!important;border:0!important;box-shadow:none;font-size:1em;margin:0;padding:.75em 20px 0}#wp-graphql-update table th{font-weight:700}#wp-graphql-update-modal{display:none}.wp-graphql-update-modal__container{border-radius:4px;padding:0}.wp-graphql-update-modal__container #TB_closeAjaxWindow,.wp-graphql-update-modal__container #TB_title{display:none}.wp-graphql-update-modal__container #TB_ajaxContent{height:100%!important;margin:0;padding:0;width:100%!important}.wp-graphql-update-modal__container #TB_ajaxContent p{margin:0 0 1em}.wp-graphql-update-modal__container #TB_ajaxContent .message{padding:0 2em}.wp-graphql-update-modal__content h1{background:#e9e9e9;border-bottom:1px solid #eee;border-top-left-radius:4px;border-top-right-radius:4px;font-size:1.6em;line-height:1.5em;margin:0 0 .5em;padding:.75em 1em}.wp-graphql-update-modal__content .wp-graphql-update-notice{padding:0 2em}.wp-graphql-update-modal__content .plugin-details-table-container{max-height:40vh;overflow-y:auto}.wp-graphql-update-modal__content table{margin:0 0 1.25em}.wp-graphql-update-modal__content th{font-weight:700;margin-top:0}.wp-graphql-update-modal__content td,.wp-graphql-update-modal__content th{background:transparent none;border:0;box-shadow:none;font-size:1em;margin:0;padding:.75em 1.25em 0}.wp-graphql-update-modal__content .actions{border-top:1px solid #eee;margin:0;overflow:hidden;padding:1em 0 2em}.wp-graphql-update-modal__content .actions a.button-primary{float:right} diff --git a/lib/wp-graphql/cli/wp-cli.php b/lib/wp-graphql/cli/wp-cli.php index 002e60c10..adca66e28 100644 --- a/lib/wp-graphql/cli/wp-cli.php +++ b/lib/wp-graphql/cli/wp-cli.php @@ -12,22 +12,36 @@ class WPGraphQL_CLI_Command extends WP_CLI_Command { * Defaults to creating a schema.graphql file in the IDL format at the root * of the plugin. * - * @todo: Provide alternative formats (AST? INTROSPECTION JSON?) and options for output location/file-type? + * [--output=] + * : The file path to save the schema to. + * + * @todo: Provide alternative formats (AST? INTROSPECTION JSON?) and options for output file-type? * @todo: Add Unit Tests * * ## EXAMPLE * + * # Generate a static schema * $ wp graphql generate-static-schema * + * # Generate a static schema and save it to a specific file + * $ wp graphql generate-static-schema --output=/path/to/file.graphql + * * @alias generate * @subcommand generate-static-schema */ public function generate_static_schema( $args, $assoc_args ) { - /** - * Set the file path for where to save the static schema - */ - $file_path = get_temp_dir() . 'schema.graphql'; + // Check if the output flag is set + if ( isset( $assoc_args['output'] ) ) { + // Check if the output file path is writable and its parent directory exists + if ( ! is_writable( dirname( $assoc_args['output'] ) ) ) { + WP_CLI::error( 'The output file path is not writable or its parent directory does not exist.' ); + return; + } + $file_path = $assoc_args['output']; + } else { + $file_path = get_temp_dir() . 'schema.graphql'; + } if ( ! defined( 'GRAPHQL_REQUEST' ) ) { define( 'GRAPHQL_REQUEST', true ); diff --git a/lib/wp-graphql/constants.php b/lib/wp-graphql/constants.php index c52ea8d19..6b5785a64 100644 --- a/lib/wp-graphql/constants.php +++ b/lib/wp-graphql/constants.php @@ -18,7 +18,7 @@ function graphql_setup_constants() { // Plugin version. if ( ! defined( 'WPGRAPHQL_VERSION' ) ) { - define( 'WPGRAPHQL_VERSION', '1.29.3' ); + define( 'WPGRAPHQL_VERSION', '1.32.1' ); } // Plugin Folder Path. diff --git a/lib/wp-graphql/readme.txt b/lib/wp-graphql/readme.txt index d74e7df08..be0243a62 100644 --- a/lib/wp-graphql/readme.txt +++ b/lib/wp-graphql/readme.txt @@ -2,14 +2,12 @@ Contributors: jasonbahl, tylerbarnes1, ryankanner, chopinbach, kidunot89, justlevine Tags: GraphQL, Headless, REST API, Decoupled, React Requires at least: 5.0 -Tested up to: 6.6 +Tested up to: 6.7.1 Requires PHP: 7.1 -Stable tag: 1.30.0 +Stable tag: 1.32.1 License: GPL-3 License URI: https://www.gnu.org/licenses/gpl-3.0.html -=== Short Description === - WPGraphQL adds a flexible and powerful GraphQL API to WordPress, enabling efficient querying and interaction with your site's data. === Description === @@ -74,11 +72,23 @@ Learn more about how [Appsero collects and uses this data](https://appsero.com/p == Upgrade Notice == += 1.32.0 = + +In #3293 a bug was fixed in how the `MediaDetails.file` field resolves. The previous behavior was a bug, but might have been used as a feature. If you need the field to behave the same as it did prior to this bugfix, you can [follow the instructions here](https://github.com/wp-graphql/wp-graphql/pull/3293) to override the field's resolver to how it worked before. + += 1.30.0 = + +This release includes a new feature to implement a SemVer-compliant update checker, which will prevent auto-updates for major releases that include breaking changes. + +It also exposes the `EnqueuedAsset.group` and `EnqueuedScript.location` fields to the schema. Additionally, it adds a WPGraphQL Extensions page to the WordPress admin. + +There are no known breaking changes in this release, however, we recommend testing on staging servers to ensure the changes don't negatively impact your projects. + = 1.28.0 = This release contains an internal refactor for how the Type Registry is generated which should lead to significant performance improvements for most users. -While there are no intentional breaking changes, because this change impacts every suser we highly recommend testing this release thoroughly on staging servers to ensure the changes don't negatively impact your projects. +While there are no intentional breaking changes, because this change impacts every user we highly recommend testing this release thoroughly on staging servers to ensure the changes don't negatively impact your projects. = 1.26.0 = @@ -263,6 +273,62 @@ Composer dependencies are no longer versioned in Github. Recommended install sou == Changelog == += 1.32.1 = + +**Chores / Bugfixes** + +- [#3308](https://github.com/wp-graphql/wp-graphql/pull/3308): fix: update term mutation was preventing terms from removing the parentId + + += 1.32.0 = + +**New Features** + +- [#3294](https://github.com/wp-graphql/wp-graphql/pull/3294): feat: introduce new fields for getting mediaItem files and filePaths + +**Chores / Bugfixes** + +- [#3293](https://github.com/wp-graphql/wp-graphql/pull/3293): fix: correct the resolver for the MediaDetails.file field to return the file name +- [#3299](https://github.com/wp-graphql/wp-graphql/pull/3299): chore: restore excluded PHPCS rules +- [#3301](https://github.com/wp-graphql/wp-graphql/pull/3301): fix: React backwards-compatibility with WP < 6.6 +- [#3302](https://github.com/wp-graphql/wp-graphql/pull/3302): chore: update NPM dependencies +- [#3297](https://github.com/wp-graphql/wp-graphql/pull/3297): fix: typo in `Extensions\Registry\get_extensions()` method name +- [#3303](https://github.com/wp-graphql/wp-graphql/pull/3303): chore: cleanup git cache +- [#3298](https://github.com/wp-graphql/wp-graphql/pull/3298): chore: submit GF, Rank Math, and Headless Login plugins +- [#3287](https://github.com/wp-graphql/wp-graphql/pull/3287): chore: fixes the syntax of the readme.txt so that the short description is shown on WordPress.org +- [#3284](https://github.com/wp-graphql/wp-graphql/pull/3284): fix: Updated docs link for example of hierarchical data + + +- update stable tag + += 1.31.0 = + +**New Features** + +- [#3278](https://github.com/wp-graphql/wp-graphql/pull/3278): feat: add option to provide custom file path for static schemas when using the `wp graphql generate-static-schema` command + +**Chores / Bugfixes** + +- [#3284](https://github.com/wp-graphql/wp-graphql/pull/3284): fix: fix: Updated docs link for example of hierarchical data +- [#3283](https://github.com/wp-graphql/wp-graphql/pull/3283): fix: Error in update checker when WPGraphQL is active as an mu-plugin + + += 1.30.0 = + +**Chores / Bugfixes** + +- [#3250](https://github.com/wp-graphql/wp-graphql/pull/3250): fix: receiving post for Incorrect uri +- [#3268](https://github.com/wp-graphql/wp-graphql/pull/3268): ci: trigger PR workflows on release/* branches +- [#3267](https://github.com/wp-graphql/wp-graphql/pull/3267): chore: fix bleeding edge/deprecated PHPStan smells [first pass] +- [#3270](https://github.com/wp-graphql/wp-graphql/pull/3270): build(deps): bump the npm_and_yarn group across 1 directory with 3 updates +- [#3271](https://github.com/wp-graphql/wp-graphql/pull/3271): fix: default cat should not be added when other categories are added + +**New Features** + +- [#3251](https://github.com/wp-graphql/wp-graphql/pull/3251): feat: implement SemVer-compliant update checker +- [#3196](https://github.com/wp-graphql/wp-graphql/pull/3196): feat: expose EnqueuedAsset.group and EnqueuedScript.location to schema +- [#3188](https://github.com/wp-graphql/wp-graphql/pull/3188): feat: Add WPGraphQL Extensions page to the WordPress admin + = 1.29.3 = **Chores / Bugfixes** diff --git a/lib/wp-graphql/src/Admin/Admin.php b/lib/wp-graphql/src/Admin/Admin.php index 2250ba91c..a2ebaecac 100644 --- a/lib/wp-graphql/src/Admin/Admin.php +++ b/lib/wp-graphql/src/Admin/Admin.php @@ -2,6 +2,7 @@ namespace WPGraphQL\Admin; +use WPGraphQL\Admin\Extensions\Extensions; use WPGraphQL\Admin\GraphiQL\GraphiQL; use WPGraphQL\Admin\Settings\Settings; @@ -31,6 +32,11 @@ class Admin { */ protected $settings; + /** + * @var \WPGraphQL\Admin\Extensions\Extensions + */ + protected $extensions; + /** * Initialize Admin functionality for WPGraphQL * @@ -68,5 +74,8 @@ static function () { $graphiql = new GraphiQL(); $graphiql->init(); } + + $this->extensions = new Extensions(); + $this->extensions->init(); } } diff --git a/lib/wp-graphql/src/Admin/Extensions/Extensions.php b/lib/wp-graphql/src/Admin/Extensions/Extensions.php new file mode 100644 index 000000000..52a015614 --- /dev/null +++ b/lib/wp-graphql/src/Admin/Extensions/Extensions.php @@ -0,0 +1,374 @@ +'; + echo '

' . esc_html( get_admin_page_title() ) . '

'; + echo '
'; + echo ''; + } + + /** + * Enqueue the necessary scripts and styles for the extensions page. + * + * @param string $hook_suffix The current admin page. + * + * @return void + */ + public function enqueue_scripts( $hook_suffix ) { + if ( 'graphql_page_wpgraphql-extensions' !== $hook_suffix ) { + return; + } + + $asset_file = include WPGRAPHQL_PLUGIN_DIR . 'build/extensions.asset.php'; + + wp_enqueue_style( + 'wpgraphql-extensions', + WPGRAPHQL_PLUGIN_URL . 'build/extensions.css', + [ 'wp-components' ], + $asset_file['version'] + ); + + wp_enqueue_script( + 'wpgraphql-extensions', + WPGRAPHQL_PLUGIN_URL . 'build/extensions.js', + $asset_file['dependencies'], + $asset_file['version'], + true + ); + + wp_localize_script( + 'wpgraphql-extensions', + 'wpgraphqlExtensions', + [ + 'nonce' => wp_create_nonce( 'wp_rest' ), + 'graphqlEndpoint' => trailingslashit( site_url() ) . 'index.php?' . graphql_get_endpoint(), + 'extensions' => $this->get_extensions(), + 'pluginsInstalled' => $this->get_installed_plugins(), + ] + ); + } + + /** + * Register custom REST API routes. + * + * @return void + */ + public function register_rest_routes() { + register_rest_route( + 'wp/v2', + '/plugins/(?P.+)', + [ + 'methods' => 'PUT', + 'callback' => [ $this, 'activate_plugin' ], + 'permission_callback' => static function () { + return current_user_can( 'activate_plugins' ); + }, + 'args' => [ + 'plugin' => [ + 'required' => true, + 'validate_callback' => static function ( $param, $request, $key ) { + return is_string( $param ); + }, + ], + ], + ] + ); + } + + /** + * Activate a plugin. + * + * @param \WP_REST_Request> $request The REST request. + * @return \WP_REST_Response The REST response. + */ + public function activate_plugin( WP_REST_Request $request ): WP_REST_Response { + $plugin = $request->get_param( 'plugin' ); + $result = activate_plugin( $plugin ); + + if ( is_wp_error( $result ) ) { + return new WP_REST_Response( + [ + 'status' => 'error', + 'message' => $result->get_error_message(), + ], + 500 + ); + } + + return new WP_REST_Response( + [ + 'status' => 'active', + 'plugin' => $plugin, + ], + 200 + ); + } + + /** + * Get the list of installed plugins. + * + * @return array> List of installed plugins. + */ + private function get_installed_plugins() { + if ( ! function_exists( 'get_plugins' ) ) { + require_once ABSPATH . 'wp-admin/includes/plugin.php'; + } + + $plugins = get_plugins(); + $active_plugins = get_option( 'active_plugins' ); + $installed_plugins = []; + + foreach ( $plugins as $plugin_path => $plugin_info ) { + $slug = dirname( $plugin_path ); + + $installed_plugins[ $slug ] = [ + 'is_active' => in_array( $plugin_path, $active_plugins, true ), + 'name' => $plugin_info['Name'], + 'description' => $plugin_info['Description'], + 'author' => $plugin_info['Author'], + ]; + } + + return $installed_plugins; + } + + /** + * Sanitizes extension values before they are used. + * + * @param array $extension The extension to sanitize. + * @return array The sanitized extension. + */ + private function sanitize_extension( array $extension ) { + return [ + 'name' => ! empty( $extension['name'] ) ? sanitize_text_field( $extension['name'] ) : null, + 'description' => ! empty( $extension['description'] ) ? sanitize_text_field( $extension['description'] ) : null, + 'plugin_url' => ! empty( $extension['plugin_url'] ) ? esc_url_raw( $extension['plugin_url'] ) : null, + 'support_url' => ! empty( $extension['support_url'] ) ? esc_url_raw( $extension['support_url'] ) : null, + 'documentation_url' => ! empty( $extension['documentation_url'] ) ? esc_url_raw( $extension['documentation_url'] ) : null, + 'repo_url' => ! empty( $extension['repo_url'] ) ? esc_url_raw( $extension['repo_url'] ) : null, + 'author' => [ + 'name' => ! empty( $extension['author']['name'] ) ? sanitize_text_field( $extension['author']['name'] ) : null, + 'homepage' => ! empty( $extension['author']['homepage'] ) ? esc_url_raw( $extension['author']['homepage'] ) : null, + ], + ]; + } + + /** + * Validate an extension. + * + * Sanitization ensures that the values are correctly types, so we just need to check if the required fields are present. + * + * @param array $extension The extension to validate. + * + * @return true|\WP_Error True if the extension is valid, otherwise an error. + * + * @phpstan-assert-if-true Extension $extension + */ + public function is_valid_extension( array $extension ) { + $error_code = 'invalid_extension'; + // translators: First placeholder is the extension name. Second placeholder is the property that is missing from the extension. + $error_message = __( 'Invalid extension %1$s is missing a valid value for %2$s.', 'wp-graphql' ); + + // First handle the name field, since we'll use it in other error messages. + if ( empty( $extension['name'] ) ) { + return new \WP_Error( $error_code, esc_html__( 'Invalid extension. All extensions must have a `name`.', 'wp-graphql' ) ); + } + + // Handle the Top-Level fields. + $required_fields = [ + 'description', + 'plugin_url', + 'support_url', + 'documentation_url', + ]; + foreach ( $required_fields as $property ) { + if ( empty( $extension[ $property ] ) ) { + return new \WP_Error( + $error_code, + sprintf( $error_message, $extension['name'], $property ) + ); + } + } + + // Ensure Author has the required name field. + if ( empty( $extension['author']['name'] ) ) { + return new \WP_Error( + $error_code, + sprintf( $error_message, $extension['name'], 'author.name' ) + ); + } + + return true; + } + + /** + * Populate the extensions list with installation data. + * + * @param Extension[] $extensions The extensions to populate. + * + * @return PopulatedExtension[] The populated extensions. + */ + private function populate_installation_data( $extensions ) { + $installed_plugins = $this->get_installed_plugins(); + + $populated_extensions = []; + + foreach ( $extensions as $extension ) { + $slug = basename( rtrim( $extension['plugin_url'], '/' ) ); + $extension['installed'] = false; + $extension['active'] = false; + + // If the plugin is installed, populate the installation data. + if ( isset( $installed_plugins[ $slug ] ) ) { + $extension['installed'] = true; + $extension['active'] = $installed_plugins[ $slug ]['is_active']; + $extension['author'] = $installed_plugins[ $slug ]['author']; + } + + // @todo Where does this come from? + if ( isset( $extension['settings_path'] ) && true === $extension['active'] ) { + $extension['settings_url'] = is_multisite() && is_network_admin() + ? network_admin_url( $extension['settings_path'] ) + : admin_url( $extension['settings_path'] ); + } + + $populated_extensions[] = $extension; + } + + /** + * Sort the extensions by the following criteria: + * 1. Plugins grouped by WordPress.org plugins first, non WordPress.org plugins after + * 2. Sort by plugin name in alphabetical order within the above groups, prioritizing "WPGraphQL" authored plugins + */ + usort( + $populated_extensions, + static function ( $a, $b ) { + if ( false !== strpos( $a['plugin_url'], 'wordpress.org' ) && false === strpos( $b['plugin_url'], 'wordpress.org' ) ) { + return -1; + } + if ( false === strpos( $a['plugin_url'], 'wordpress.org' ) && false !== strpos( $b['plugin_url'], 'wordpress.org' ) ) { + return 1; + } + if ( ! empty( $a['author']['name'] ) && ( 'WPGraphQL' === $a['author']['name'] && ( ! empty( $b['author']['name'] ) && 'WPGraphQL' !== $b['author']['name'] ) ) ) { + return -1; + } + if ( ! empty( $a['author']['name'] ) && 'WPGraphQL' !== $a['author']['name'] && ( ! empty( $b['author']['name'] ) && 'WPGraphQL' === $b['author']['name'] ) ) { + return 1; + } + return strcasecmp( $a['name'], $b['name'] ); + } + ); + + return $populated_extensions; + } + + /** + * Get the list of WPGraphQL extensions. + * + * @return PopulatedExtension[] The list of extensions. + */ + public function get_extensions(): array { + if ( ! isset( $this->extensions ) ) { + // @todo Replace with a call to the WPGraphQL server. + $extensions = Registry::get_extensions(); + + /** + * Filter the list of extensions, allowing other plugins to add or remove extensions. + * + * @see Admin\Extensions\Registry::get_extensions() for the correct format of the extensions. + * + * @param array $extensions The list of extensions. + */ + $extensions = apply_filters( 'graphql_get_extensions', $extensions ); + + $valid_extensions = []; + foreach ( $extensions as $extension ) { + $sanitized = $this->sanitize_extension( $extension ); + + if ( true === $this->is_valid_extension( $sanitized ) ) { + $valid_extensions[] = $sanitized; + } + } + + // If we have valid extensions, populate the installation data. + if ( ! empty( $valid_extensions ) ) { + $valid_extensions = $this->populate_installation_data( $valid_extensions ); + } + + $this->extensions = $valid_extensions; + } + + return $this->extensions; + } +} diff --git a/lib/wp-graphql/src/Admin/Extensions/Registry.php b/lib/wp-graphql/src/Admin/Extensions/Registry.php new file mode 100644 index 000000000..ef876a0b6 --- /dev/null +++ b/lib/wp-graphql/src/Admin/Extensions/Registry.php @@ -0,0 +1,120 @@ + + */ + public static function get_extensions(): array { + return [ + 'wp-graphql/wp-graphql-smart-cache' => [ + 'name' => 'WPGraphQL Smart Cache', + 'description' => 'A smart cache for WPGraphQL that caches only the data you need.', + 'documentation_url' => 'https://github.com/wp-graphql/wp-graphql-smart-cache', + 'plugin_url' => 'https://wordpress.org/plugins/wp-graphql-smart-cache/', + 'support_url' => 'https://github.com/wp-graphql/wp-graphql-smart-cache/issues/new/choose', + 'author' => [ + 'name' => 'WPGraphQL', + 'homepage' => 'https://wpgraphql.com', + ], + ], + 'wp-graphql/wpgraphql-acf' => [ + 'name' => 'WPGraphQL for Advanced Custom Fields', + 'description' => 'WPGraphQL for ACF is a FREE, open source WordPress plugin that exposes ACF Field Groups and Fields to the WPGraphQL Schema, enabling powerful decoupled solutions with modern frontends.', + 'documentation_url' => 'https://acf.wpgraphql.com/', + 'plugin_url' => 'https://wordpress.org/plugins/wpgraphql-acf/', + 'support_url' => 'https://github.com/wp-graphql/wpgraphql-acf/issues/new/choose', + 'author' => [ + 'name' => 'WPGraphQL', + 'homepage' => 'https://wpgraphql.com', + ], + ], + 'ashhitch/wp-graphql-yoast-seo' => [ + 'name' => 'WPGraphQL Yoast SEO Addon', + 'description' => 'This plugin enables Yoast SEO Support for WPGraphQL', + 'documentation_url' => 'https://github.com/ashhitch/wp-graphql-yoast-seo', + 'plugin_url' => 'https://wordpress.org/plugins/add-wpgraphql-seo/', + 'support_url' => 'https://github.com/wp-graphql/wpgraphql-acf/issues/new/choose', + 'author' => [ + 'name' => 'Ash Hitchcock', + 'homepage' => 'https://www.ashleyhitchcock.com/', + ], + ], + 'axepress/wp-graphql-gravity-forms' => [ + 'name' => 'WPGraphQL for Gravity Forms', + 'description' => 'Adds Gravity Forms support to WPGraphQL', + 'documentation_url' => 'https://github.com/axewp/wp-graphql-gravity-forms', + 'plugin_url' => 'https://github.com/axewp/wp-graphql-gravity-forms', + 'support_url' => 'https://github.com/axewp/wp-graphql-gravity-forms/issues/new/choose', + 'author' => [ + 'name' => 'AxePress Development', + 'homepage' => 'https://axepress.dev', + ], + ], + 'axepress/wp-graphql-headless-login' => [ + 'name' => 'Headless Login for WPGraphQL', + 'description' => 'A WordPress plugin that provides headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OIDC, JWT, cookies, header management, and more.', + 'documentation_url' => 'https://github.com/axewp/wp-graphql-headless-login', + 'plugin_url' => 'https://github.com/axewp/wp-graphql-headless-login', + 'support_url' => 'https://github.com/axewp/wp-graphql-headless-login/issues/new/choose', + 'author' => [ + 'name' => 'AxePress Development', + 'homepage' => 'https://axepress.dev', + ], + ], + 'axepress/wp-graphql-rank-math' => [ + 'name' => 'WPGraphQL for Rank Math SEO', + 'description' => 'Adds Rank Math SEO support to WPGraphQL', + 'documentation_url' => 'https://github.com/axewp/wp-graphql-rank-math', + 'plugin_url' => 'https://github.com/axewp/wp-graphql-rank-math', + 'support_url' => 'https://github.com/axewp/wp-graphql-rank-math/issues', + 'author' => [ + 'name' => 'AxePress Development', + 'homepage' => 'https://axepress.dev', + ], + ], + ]; + } +} diff --git a/lib/wp-graphql/src/Admin/Updates/PluginsScreenLoader.php b/lib/wp-graphql/src/Admin/Updates/PluginsScreenLoader.php new file mode 100644 index 000000000..cf426fcaa --- /dev/null +++ b/lib/wp-graphql/src/Admin/Updates/PluginsScreenLoader.php @@ -0,0 +1,130 @@ + $args The plugin update message arguments. + * @param object $response The plugin update response. + */ + public function in_plugin_update_message( $args, $response ): void { + $this->update_checker = new UpdateChecker( $response ); + + if ( $this->update_checker->should_autoupdate( true ) ) { + return; + } + + // @todo - maybe show upgrade notice? + $update_message = ''; + + $untested_plugins = $this->update_checker->get_untested_plugins( 'major' ); + + if ( ! empty( $untested_plugins ) ) { + $update_message .= $this->get_untested_plugins_message( $untested_plugins ); + $update_message .= $this->update_checker->get_untested_plugins_modal( $untested_plugins ); + } + + // Handle dangling

tags from the default update message. + $update_message = sprintf( '

%s
+

+ update_checker->get_compatibility_warning_message( $untested_plugins ) ); ?> +
+ + + + + update_checker->modal_js(); + } +} diff --git a/lib/wp-graphql/src/Admin/Updates/SemVer.php b/lib/wp-graphql/src/Admin/Updates/SemVer.php new file mode 100644 index 000000000..9facf69f8 --- /dev/null +++ b/lib/wp-graphql/src/Admin/Updates/SemVer.php @@ -0,0 +1,107 @@ +0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/'; + + if ( ! preg_match( $regex, $version, $matches ) ) { + return null; + } + + $prerelease = ! empty( $matches['prerelease'] ) ? self::parse_prerelease_version( $matches['prerelease'] ) : null; + + return [ + 'major' => (int) $matches['major'], + 'minor' => (int) $matches['minor'], + 'patch' => (int) $matches['patch'], + 'prerelease' => $prerelease, + 'buildmetadata' => ! empty( $matches['buildmetadata'] ) ? $matches['buildmetadata'] : null, + 'version' => sprintf( '%d.%d.%d', $matches['major'], $matches['minor'], $matches['patch'] ), + ]; + } + + /** + * Parse the prerelease version string. + * + * @param string $version The version string. + */ + protected static function parse_prerelease_version( string $version ): ?string { + $separator = ''; + $release_string = ''; + + $version_parts = explode( '.', $version ); + + if ( empty( $version_parts ) ) { + return null; + } + + foreach ( $version_parts as $part ) { + // Leading zero is invalid. + if ( ctype_digit( $part ) ) { + $part = (int) $part; + } + + $release_string .= $separator . (string) $part; + // If this isnt the first round, the separator is a dot. + $separator = '.'; + } + + return $release_string; + } +} diff --git a/lib/wp-graphql/src/Admin/Updates/UpdateChecker.php b/lib/wp-graphql/src/Admin/Updates/UpdateChecker.php new file mode 100644 index 000000000..f9cc78b52 --- /dev/null +++ b/lib/wp-graphql/src/Admin/Updates/UpdateChecker.php @@ -0,0 +1,628 @@ +> + */ + private $all_plugins; + + /** + * The array of plugins that use WPGraphQL as a dependency. + * + * @var ?array> + */ + private $dependents; + + /** + * The array of plugins that *maybe* use WPGraphQL as a dependency. + * + * @var ?array> + */ + private $possible_dependents; + + /** + * The WPGraphQL plugin data object. + * + * @var object + */ + private $plugin_data; + + + /** + * The release type of the new version of WPGraphQL. + * + * @var 'major'|'minor'|'patch'|'prerelease'|'unknown' + */ + private $release_type; + + /** + * UpdateChecker constructor. + * + * @param object $plugin_data The plugin data object from the update check. + */ + public function __construct( $plugin_data ) { + $this->plugin_data = $plugin_data; + $this->new_version = property_exists( $plugin_data, 'new_version' ) ? $plugin_data->new_version : ''; + $this->release_type = SemVer::get_release_type( $this->current_version, $this->new_version ); + } + + /** + * Checks whether any untested or incompatible WPGraphQL extensions should prevent an autoupdate. + * + * @param bool $default_value Whether to allow the update by default. + */ + public function should_autoupdate( bool $default_value ): bool { + // If this is a major release, and we have those disabled, don't allow the autoupdate. + if ( 'major' === $this->release_type && ! $this->should_allow_major_autoupdates() ) { + return false; + } + + // If there are active incompatible plugins, don't allow the update. + $incompatible_plugins = $this->get_incompatible_plugins( $this->new_version, true ); + + if ( ! empty( $incompatible_plugins ) ) { + return false; + } + + // If allow untested autoupdates enabled, allow the update. + if ( $this->should_allow_untested_autoupdates() ) { + return $default_value; + } + + $untested_release_type = $this->get_untested_release_type(); + $untested_plugins = $this->get_untested_plugins( $untested_release_type ); + + if ( ! empty( $untested_plugins ) ) { + return false; + } + + return $default_value; + } + /** + * Gets a list of plugins that use WPGraphQL as a dependency and are not tested with the current version of WPGraphQL. + * + * @param string $release_type The release type of the current version of WPGraphQL. + * + * @return array> The array of untested plugin data. + * @throws \InvalidArgumentException If the WPGraphQL version is invalid. + */ + public function get_untested_plugins( string $release_type ): array { + $version = SemVer::parse( $this->new_version ); + + if ( null === $version ) { + throw new \InvalidArgumentException( esc_html__( 'Invalid WPGraphQL version', 'wp-graphql' ) ); + } + + $dependents = array_merge( + $this->get_dependents(), + $this->get_possible_dependents() + ); + + $untested_plugins = []; + foreach ( $dependents as $file => $plugin ) { + // If the plugin doesn't have a version header, it's compatibility is unknown. + if ( empty( $plugin[ self::TESTED_UP_TO_HEADER ] ) ) { + $plugin[ self::TESTED_UP_TO_HEADER ] = __( 'Unknown', 'wp-graphql' ); + + $untested_plugins[ $file ] = $plugin; + continue; + } + + // Parse the tested version. + $tested_version = SemVer::parse( $plugin[ self::TESTED_UP_TO_HEADER ] ); + if ( null === $tested_version ) { + continue; + } + + // If the major version is greater, the plugin is untested. + if ( $version['major'] > $tested_version['major'] ) { + $untested_plugins[ $file ] = $plugin; + continue; + } + + // If the minor version is greater, the plugin is untested. + if ( 'major' !== $release_type && $version['minor'] > $tested_version['minor'] ) { + $untested_plugins[ $file ] = $plugin; + continue; + } + + // If the patch version is greater, the plugin is untested. + if ( 'major' !== $release_type && 'minor' !== $release_type && $version['patch'] > $tested_version['patch'] ) { + $untested_plugins[ $file ] = $plugin; + continue; + } + } + + return $untested_plugins; + } + + /** + * Get incompatible plugins. + * + * @param string $version The current plugin version. + * @param bool $active_only Whether to only return active plugins. Default false. + * + * @return array> The array of incompatible plugins. + */ + public function get_incompatible_plugins( string $version = WPGRAPHQL_VERSION, bool $active_only = false ): array { + $dependents = $this->get_dependents(); + $plugins = []; + + foreach ( $dependents as $file => $plugin ) { + // Skip if the plugin is not active or is not incompatible. + if ( ! $this->is_incompatible_dependent( $file, $version ) ) { + continue; + } + + // If we only want active plugins, skip if the plugin is not active. + if ( $active_only && ! is_plugin_active( $file ) ) { + continue; + } + + $plugins[ $file ] = $plugin; + } + + return $plugins; + } + + /** + * Get the shared modal HTML for the update checkers. + * + * @param array> $untested_plugins The untested plugins. + */ + public function get_untested_plugins_modal( array $untested_plugins ): string { + $plugins = array_map( + static function ( $plugin ) { + return $plugin['Name']; + }, + $untested_plugins + ); + + if ( empty( $plugins ) ) { + return ''; + } + + ob_start(); + ?> + +
+
+ +

+ +
+ get_compatibility_warning_message( $untested_plugins ) ); ?> + + +
+ + +
+ +
+
+
+ + + + new_version, $this->current_version, $this->plugin_data ); + } + + /** + * Returns whether to allow plugin autoupdates when plugin dependencies are untested and might be incompatible. + * + * @uses `wpgraphql_untested_release_type` filter to determine the release type to use when checking for untested plugins. + * + * @uses 'wpgraphql_enable_untested_autoupdates' filter. + */ + protected function should_allow_untested_autoupdates(): bool { + $should_allow = $this->get_untested_release_type() !== $this->release_type; + + /** + * Filter whether to allow autoupdates with untested plugins. + * + * @param bool $should_allow Whether to allow autoupdates with untested plugins. + * @param string $release_type The release type of the current version of WPGraphQL. Either 'major', 'minor', 'patch', or 'prerelease'. + * @param string $new_version The new WPGraphQL version number. + * @param string $current_version The current WPGraphQL version number. + * @param object $plugin_data The plugin data object. + */ + return apply_filters( 'wpgraphql_enable_untested_autoupdates', $should_allow, $this->release_type, $this->new_version, $this->current_version, $this->plugin_data ); + } + + /** + * Gets the release type to use when checking for untested plugins. + * + * @return 'major'|'minor'|'patch'|'prerelease' The release type to use when checking for untested plugins. + */ + protected function get_untested_release_type(): string { + /** + * Filter the release type to use when checking for untested plugins. + * This is used to prevent autoupdates when a plugin is untested with the specified channel. I.e. major > minor > patch > prerelease. + * + * @param 'major'|'minor'|'patch'|'prerelease' $release_type The release type to use when checking for untested plugins. Defaults to 'major'. + */ + $release_type = (string) apply_filters( 'wpgraphql_untested_release_type', 'major' ); + + if ( ! in_array( $release_type, [ 'major', 'minor', 'patch', 'prerelease' ], true ) ) { + $release_type = 'major'; + } + + return $release_type; + } + /** + * Gets the plugins that use WPGraphQL as a dependency. + * + * @return array> The array of plugins that use WPGraphQL as a dependency, keyed by plugin path. + */ + protected function get_dependents(): array { + if ( isset( $this->dependents ) ) { + return $this->dependents; + } + + $all_plugins = $this->get_all_plugins(); + $plugins = []; + + foreach ( $all_plugins as $plugin_path => $plugin ) { + // If they're explicitly using a header, it's a dependent. + if ( ! $this->is_versioned_dependent( $plugin_path ) && ! $this->is_wpapi_dependent( $plugin_path ) ) { + continue; + } + + $plugins[ $plugin_path ] = $plugin; + } + + /** + * Filters the list of plugins that use WPGraphQL as a dependency. + * + * @param array> $plugins The array of plugins that use WPGraphQL as a dependency. + * @param array> $all_plugins The array of all plugins. + */ + $this->dependents = apply_filters( 'graphql_get_dependents', $plugins, $all_plugins ); + + return $this->dependents; + } + + /** + * Gets the plugins that *maybe* use WPGraphQL as a dependency. + * + * @return array> The array of plugins that maybe use WPGraphQL as a dependency, keyed by plugin path. + */ + protected function get_possible_dependents(): array { + // Bail early if we've already fetched the possible plugins. + if ( isset( $this->possible_dependents ) ) { + return $this->possible_dependents; + } + + $all_plugins = $this->get_all_plugins(); + $plugins = []; + + foreach ( $all_plugins as $plugin_path => $plugin ) { + // Skip the WPGraphQL plugin. + if ( 'WPGraphQL' === $plugin['Name'] ) { + continue; + } + + if ( ! $this->is_possible_dependent( $plugin_path ) ) { + continue; + } + + $plugins[ $plugin_path ] = $plugin; + } + + /** + * Filters the list of plugins that use WPGraphQL as a dependency. + * + * Can be used to hide false positives or to add additional plugins that may use WPGraphQL as a dependency. + * + * @param array> $plugins The array of plugins that maybe use WPGraphQL as a dependency. + * @param array> $all_plugins The array of all plugins. + */ + $this->possible_dependents = apply_filters( 'graphql_get_possible_dependents', $plugins, $all_plugins ); + + return $this->possible_dependents; + } + + /** + * Gets all plugins, priming the cache if necessary. + * + * @return array> The array of all plugins, keyed by plugin path. + */ + private function get_all_plugins(): array { + if ( ! isset( $this->all_plugins ) ) { + $this->all_plugins = get_plugins(); + } + + return $this->all_plugins; + } + + /** + * Checks whether a dependency is incompatible with a specific version of WPGraphQL. + * + * @param string $plugin_path The plugin path used as the key in the plugins array. + * @param string $version The current version to check against. + */ + private function is_incompatible_dependent( string $plugin_path, string $version = WPGRAPHQL_VERSION ): bool { + $current_version = SemVer::parse( $version ); + + if ( null === $current_version ) { + return false; + } + + $all_plugins = $this->get_all_plugins(); + $plugin_data = $all_plugins[ $plugin_path ] ?? null; + + // If the plugin doesn't have a version header, it's compatibility is unknown. + if ( empty( $plugin_data[ self::VERSION_HEADER ] ) ) { + return false; + } + + // Parse the version. + $minimum_version = SemVer::parse( $plugin_data[ self::VERSION_HEADER ] ); + + if ( null === $minimum_version ) { + return false; + } + + // Check if the plugin is incompatible. + if ( $minimum_version['major'] > $current_version['major'] ) { + return true; + } + + if ( $minimum_version['minor'] > $current_version['minor'] ) { + return true; + } + + if ( $minimum_version['patch'] > $current_version['patch'] ) { + return true; + } + + // The plugin is compatible. + return false; + } + + /** + * Checks whether the plugin is "possibly" using WPGraphQL as a dependency. + * + * I.e if it's in the plugin name or description. + * + * @param string $plugin_path The plugin path used as the key in the plugins array. + */ + private function is_possible_dependent( string $plugin_path ): bool { + $all_plugins = $this->get_all_plugins(); + $plugin_data = $all_plugins[ $plugin_path ] ?? null; + + // Bail early if the plugin doesn't exist. + if ( empty( $plugin_data ) ) { + return false; + } + + return stristr( $plugin_data['Name'], 'WPGraphQL' ) || stristr( $plugin_data['Description'], 'WPGraphQL' ); + } + + /** + * Checks whether the plugin uses our version headers. + * + * @param string $plugin_path The plugin path used as the key in the plugins array. + */ + private function is_versioned_dependent( string $plugin_path ): bool { + $all_plugins = $this->get_all_plugins(); + $plugin_data = $all_plugins[ $plugin_path ] ?? null; + + // Bail early if the plugin doesn't exist. + if ( empty( $plugin_data ) ) { + return false; + } + + return ! empty( $plugin_data[ self::VERSION_HEADER ] ) || ! empty( $plugin_data[ self::TESTED_UP_TO_HEADER ] ); + } + + /** + * Whether the plugin lists WPGraphQL in its `Requires Plugins` header. + * + * @param string $plugin_path The plugin path used as the key in the plugins array. + */ + private function is_wpapi_dependent( string $plugin_path ): bool { + $all_plugins = $this->get_all_plugins(); + + $plugin_data = $all_plugins[ $plugin_path ] ?? null; + + // Bail early if the plugin doesn't exist. + if ( empty( $plugin_data ) || empty( $plugin_data['RequiresPlugins'] ) ) { + return false; + } + + // Normalize the required plugins. + $required_plugins = array_map( + static function ( $slug ) { + return strtolower( trim( $slug ) ); + }, + explode( ',', $plugin_data['RequiresPlugins'] ) ?: [] + ); + + return in_array( 'wp-graphql', $required_plugins, true ); + } + + /** + * Gets the complete compatibility warning message including the plugins table and follow-up text. + * + * @param array> $untested_plugins The untested plugins. + * @return string The formatted HTML message. + */ + public function get_compatibility_warning_message( array $untested_plugins ): string { + ob_start(); + ?> +

+ WPGraphQL v%s', $this->new_version ) + ) + ); + ?> +

+ +
    +
  1. + WPGraphQL v%s', $this->new_version ) + ) + ); + ?> +
  2. +
  3. + WPGraphQL v%s', $this->new_version ) + ) + ); + ?> +
  4. +
+ +
+ + + + + + + + + + + + + + + +
+
+ +

+ +

+ plugin ) || ! isset( $plugin->new_version ) || 'wp-graphql/wp-graphql.php' !== $plugin->plugin ) { + return $should_update; + } + + // If autoupdates are already disabled we don't need to check further. + if ( false === $should_update ) { + return $should_update; + } + + $new_version = sanitize_text_field( $plugin->new_version ); + + if ( '' === $new_version ) { + return $should_update; + } + + // Store the sanitized version in the plugin object. + $plugin->new_version = $new_version; + + $plugin_updates = new UpdateChecker( $plugin ); + + return $plugin_updates->should_autoupdate( (bool) $should_update ); + } + + /** + * Maybe loads the Update Checker for the current admin screen. + */ + public function load_screen_checker(): void { + $screen = get_current_screen(); + + // Bail if we're not on a screen. + if ( ! $screen ) { + return; + } + + // Loaders for the different WPAdmin Screens. + $loaders = [ + 'plugins' => PluginsScreenLoader::class, + 'update-core' => UpdatesScreenLoader::class, + ]; + + // Bail if the current screen doesn't need an update checker. + if ( ! in_array( $screen->id, array_keys( $loaders ), true ) ) { + return; + } + + // Load the update checker for the current screen. + new $loaders[ $screen->id ](); + } + + /** + * Registers the admin assets. + */ + public function register_assets(): void { + $screen = get_current_screen(); + $allowed_screens = [ + 'plugins', + 'update-core', + ]; + + // Bail if we're not on a screen. + if ( ! $screen || ! in_array( $screen->id, $allowed_screens, true ) ) { + return; + } + + $asset_file = include WPGRAPHQL_PLUGIN_DIR . 'build/updates.asset.php'; + + wp_enqueue_style( + 'wp-graphql-admin-updates', + WPGRAPHQL_PLUGIN_URL . 'build/updates.css', + $asset_file['dependencies'], + $asset_file['version'] + ); + } + + /** + * Disables plugins that don't meet the minimum `Requires WPGraphQL` version. + */ + public function disable_incompatible_plugins(): void { + + // Get the plugin data. + $plugin_data = get_plugin_data( WPGRAPHQL_PLUGIN_DIR . '/wp-graphql.php' ); + + // Initialize the Update Checker. + $update_checker = new UpdateChecker( (object) $plugin_data ); + + // Get the incompatible plugins. + $incompatible_plugins = $update_checker->get_incompatible_plugins( WPGRAPHQL_VERSION, true ); + + // Deactivate the incompatible plugins. + $notice_data = []; + foreach ( $incompatible_plugins as $file => $plugin ) { + $notice_data[] = [ + 'name' => $plugin['Name'], + 'version' => $plugin[ UpdateChecker::VERSION_HEADER ], + ]; + deactivate_plugins( $file ); + } + + // Display a notice to the user. + if ( ! empty( $notice_data ) ) { + set_transient( 'wpgraphql_incompatible_plugins', $notice_data ); + } + } + + /** + * Displays a one-time notice to the user if incompatible plugins were deactivated. + */ + public function disable_incompatible_plugins_notice(): void { + $incompatible_plugins = get_transient( 'wpgraphql_incompatible_plugins' ); + + if ( empty( $incompatible_plugins ) ) { + return; + } + + $notice = sprintf( + '

%s

', + __( 'The following plugins were deactivated because they require a newer version of WPGraphQL. Please update WPGraphQL to a newer version to reactivate these plugins.', 'wp-graphql' ) + ); + + $notice .= '
    '; + foreach ( $incompatible_plugins as $plugin ) { + $notice .= sprintf( + '
  • %s (requires at least WPGraphQL: v%s)
  • ', + esc_html( $plugin['name'] ), + esc_html( $plugin['version'] ) + ); + } + $notice .= '
'; + + echo wp_kses_post( sprintf( '
%s
', $notice ) ); + + // Delete once the notice is displayed. + delete_transient( 'wpgraphql_incompatible_plugins' ); + } +} diff --git a/lib/wp-graphql/src/Admin/Updates/UpdatesScreenLoader.php b/lib/wp-graphql/src/Admin/Updates/UpdatesScreenLoader.php new file mode 100644 index 000000000..284f742a6 --- /dev/null +++ b/lib/wp-graphql/src/Admin/Updates/UpdatesScreenLoader.php @@ -0,0 +1,109 @@ +update->new_version ) ) { + return; + } + + $this->update_checker = new UpdateChecker( $updateable_plugins['wp-graphql/wp-graphql.php']->update ); + + if ( $this->update_checker->should_autoupdate( true ) ) { + return; + } + + $untested_plugins = $this->update_checker->get_untested_plugins( 'major' ); + + if ( empty( $untested_plugins ) ) { + return; + } + + // Output the modal. + echo wp_kses_post( $this->update_checker->get_untested_plugins_modal( $untested_plugins ) ); + + $this->modal_js(); + } + + /** + * The modal JS for the plugin update message. + */ + public function modal_js(): void { + ?> + + + update_checker->modal_js(); + } +} diff --git a/lib/wp-graphql/src/Data/Connection/AbstractConnectionResolver.php b/lib/wp-graphql/src/Data/Connection/AbstractConnectionResolver.php index aed9a6598..9bbe6ca50 100644 --- a/lib/wp-graphql/src/Data/Connection/AbstractConnectionResolver.php +++ b/lib/wp-graphql/src/Data/Connection/AbstractConnectionResolver.php @@ -462,7 +462,7 @@ public function should_execute() { * * @return int|mixed */ - public function get_offset_for_cursor( string $cursor = null ) { // phpcs:ignore PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated -- This is a breaking change to fix. + public function get_offset_for_cursor( string $cursor = null ) { // phpcs:ignore PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated,SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue -- This is a breaking change to fix. $offset = false; // We avoid using ArrayConnection::cursorToOffset() because it assumes an `int` offset. diff --git a/lib/wp-graphql/src/Data/Connection/CommentConnectionResolver.php b/lib/wp-graphql/src/Data/Connection/CommentConnectionResolver.php index 14d272f6a..641b125d8 100644 --- a/lib/wp-graphql/src/Data/Connection/CommentConnectionResolver.php +++ b/lib/wp-graphql/src/Data/Connection/CommentConnectionResolver.php @@ -73,7 +73,6 @@ protected function prepare_query_args( array $args ): array { * If the current user cannot moderate comments, do not include unapproved comments */ if ( ! current_user_can( 'moderate_comments' ) ) { - $query_args['status'] = [ 'approve' ]; $query_args['include_unapproved'] = get_current_user_id() ? [ get_current_user_id() ] : []; if ( empty( $query_args['include_unapproved'] ) ) { unset( $query_args['include_unapproved'] ); @@ -160,7 +159,7 @@ public function get_ids_from_query() { $queried = isset( $this->query ) ? $this->query : $this->get_query(); $comments = $queried->get_comments(); - /** @var int[]|string[] $ids */ + /** @var int[] $ids */ $ids = ! empty( $comments ) ? $comments : []; // If we're going backwards, we need to reverse the array. @@ -275,6 +274,7 @@ public function sanitize_input_fields( array $args ) { 'includeUnapproved' => 'include_unapproved', 'parentIn' => 'parent__in', 'parentNotIn' => 'parent__not_in', + 'statusIn' => 'status', 'userId' => 'user_id', ]; diff --git a/lib/wp-graphql/src/Data/Connection/TermObjectConnectionResolver.php b/lib/wp-graphql/src/Data/Connection/TermObjectConnectionResolver.php index 9f0d7faea..1349f51f1 100644 --- a/lib/wp-graphql/src/Data/Connection/TermObjectConnectionResolver.php +++ b/lib/wp-graphql/src/Data/Connection/TermObjectConnectionResolver.php @@ -16,14 +16,14 @@ class TermObjectConnectionResolver extends AbstractConnectionResolver { /** * The name of the Taxonomy the resolver is intended to be used for * - * @var string + * @var array|string */ protected $taxonomy; /** * {@inheritDoc} * - * @param mixed|string|null $taxonomy The name of the Taxonomy the resolver is intended to be used for. + * @param mixed|array|string|null $taxonomy The name of the Taxonomy the resolver is intended to be used for. */ public function __construct( $source, array $args, AppContext $context, ResolveInfo $info, $taxonomy = null ) { $this->taxonomy = $taxonomy; @@ -226,7 +226,7 @@ public function sanitize_input_fields() { * * @param array $query_args Array of mapped query args * @param array $where_args Array of query "where" args - * @param string $taxonomy The name of the taxonomy + * @param array|string $taxonomy The name of the taxonomy * @param mixed $source The query results * @param array $all_args All of the query arguments (not just the "where" args) * @param \WPGraphQL\AppContext $context The AppContext object diff --git a/lib/wp-graphql/src/Data/Cursor/AbstractCursor.php b/lib/wp-graphql/src/Data/Cursor/AbstractCursor.php index c5fab4017..115863560 100644 --- a/lib/wp-graphql/src/Data/Cursor/AbstractCursor.php +++ b/lib/wp-graphql/src/Data/Cursor/AbstractCursor.php @@ -307,7 +307,7 @@ protected function compare_with_id_field(): void { * * This is cached internally so it should not generate additionl queries. * - * @return mixed|null; + * @return mixed|null */ abstract public function get_cursor_node(); diff --git a/lib/wp-graphql/src/Data/Loader/AbstractDataLoader.php b/lib/wp-graphql/src/Data/Loader/AbstractDataLoader.php index 48676ed0e..885516013 100644 --- a/lib/wp-graphql/src/Data/Loader/AbstractDataLoader.php +++ b/lib/wp-graphql/src/Data/Loader/AbstractDataLoader.php @@ -504,5 +504,5 @@ protected function get_model( $entry, $key ) { * * @return array */ - abstract protected function loadKeys( array $keys ); + abstract protected function loadKeys( array $keys ); // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid -- @todo deprecate for `::load_keys()` } diff --git a/lib/wp-graphql/src/Data/NodeResolver.php b/lib/wp-graphql/src/Data/NodeResolver.php index 7e0d45ca0..9eeebb0cf 100644 --- a/lib/wp-graphql/src/Data/NodeResolver.php +++ b/lib/wp-graphql/src/Data/NodeResolver.php @@ -21,6 +21,11 @@ class NodeResolver { */ protected $context; + /** + * @var string + */ + protected $route; + /** * NodeResolver constructor. * @@ -31,7 +36,8 @@ class NodeResolver { public function __construct( AppContext $context ) { global $wp; $this->wp = $wp; - $this->wp->matched_rule = Router::$route . '/?$'; + $this->route = Router::$route . '/?$'; + $this->wp->matched_rule = $this->route; $this->context = $context; } @@ -51,22 +57,6 @@ public function validate_post( WP_Post $post ) { return null; } - /** - * Disabling the following code for now, since add_rewrite_uri() would cause a request to direct to a different valid permalink. - */ - /* phpcs:disable - if ( ! isset( $this->wp->query_vars['uri'] ) ) { - return $post; - } - $permalink = get_permalink( $post ); - $parsed_path = $permalink ? wp_parse_url( $permalink, PHP_URL_PATH ) : null; - $trimmed_path = $parsed_path ? rtrim( ltrim( $parsed_path, '/' ), '/' ) : null; - $uri_path = rtrim( ltrim( $this->wp->query_vars['uri'], '/' ), '/' ); - if ( $trimmed_path !== $uri_path ) { - return null; - } - phpcs:enable */ - if ( empty( $this->wp->query_vars['uri'] ) ) { return $post; } @@ -222,6 +212,7 @@ public function resolve_uri( string $uri, $extra_query_vars = '' ) { // Resolve Post Objects. if ( $queried_object instanceof WP_Post ) { + // If Page for Posts is set, we need to return the Page archive, not the page. if ( $query->is_posts_page ) { // If were intentionally querying for a something other than a ContentType, we need to return null instead of the archive. @@ -243,6 +234,10 @@ public function resolve_uri( string $uri, $extra_query_vars = '' ) { return null; } + if ( empty( $extra_query_vars ) && isset( $this->wp->query_vars['error'] ) && '404' === $this->wp->query_vars['error'] ) { + return null; + } + $post_id = $queried_object->ID; $as_preview = false; @@ -485,7 +480,7 @@ public function parse_request( string $uri, $extra_query_vars = '' ) { } } - if ( ! empty( $this->wp->matched_rule ) ) { + if ( ! empty( $this->wp->matched_rule ) && $this->wp->matched_rule !== $this->route ) { // Trim the query of everything up to the '?'. $query = preg_replace( '!^.+\?!', '', $query ); diff --git a/lib/wp-graphql/src/Data/PostObjectMutation.php b/lib/wp-graphql/src/Data/PostObjectMutation.php index cbb867196..e077db2dc 100644 --- a/lib/wp-graphql/src/Data/PostObjectMutation.php +++ b/lib/wp-graphql/src/Data/PostObjectMutation.php @@ -355,6 +355,13 @@ protected static function set_object_terms( int $post_id, array $input, WP_Post_ return; } + if ( $append && 'category' === $tax_object->name ) { + $default_category_id = absint( get_option( 'default_category' ) ); + if ( ! in_array( $default_category_id, $terms_to_connect, true ) ) { + wp_remove_object_terms( $post_id, $default_category_id, 'category' ); + } + } + wp_set_object_terms( $post_id, $terms_to_connect, $tax_object->name, $append ); } } diff --git a/lib/wp-graphql/src/Data/TermObjectMutation.php b/lib/wp-graphql/src/Data/TermObjectMutation.php index 26fb0c8de..64af96195 100644 --- a/lib/wp-graphql/src/Data/TermObjectMutation.php +++ b/lib/wp-graphql/src/Data/TermObjectMutation.php @@ -48,17 +48,22 @@ public static function prepare_object( array $input, WP_Taxonomy $taxonomy, stri } /** - * If the parentId argument was entered, we need to validate that it's actually a legit term that can - * be set as a parent + * If both parentId and parentDatabaseId are provided, throw an error */ - if ( ! empty( $input['parentId'] ) ) { + if ( isset( $input['parentId'] ) && isset( $input['parentDatabaseId'] ) ) { + throw new UserError( esc_html__( 'Please provide only one of parentId or parentDatabaseId', 'wp-graphql' ) ); + } + /** + * Handle parentId input + */ + if ( isset( $input['parentId'] ) ) { /** * Convert parent ID to WordPress ID */ $parent_id = Utils::get_database_id_from_id( $input['parentId'] ); - if ( empty( $parent_id ) ) { + if ( false === $parent_id ) { throw new UserError( esc_html__( 'The parent ID is not a valid ID', 'wp-graphql' ) ); } @@ -67,11 +72,29 @@ public static function prepare_object( array $input, WP_Taxonomy $taxonomy, stri */ $parent_term = get_term( absint( $parent_id ), $taxonomy->name ); - if ( ! $parent_term instanceof \WP_Term ) { + if ( 0 !== $parent_id && ! $parent_term instanceof \WP_Term ) { throw new UserError( esc_html__( 'The parent does not exist', 'wp-graphql' ) ); } - $insert_args['parent'] = $parent_term->term_id; + $insert_args['parent'] = 0 !== $parent_id ? $parent_term->term_id : 0; + } + + /** + * Handle parentDatabaseId input + */ + if ( isset( $input['parentDatabaseId'] ) ) { + $parent_id = absint( $input['parentDatabaseId'] ); + + // If parent_id is not 0, verify the term exists + if ( 0 !== $parent_id ) { + $parent_term = get_term( $parent_id, $taxonomy->name ); + + if ( ! $parent_term instanceof \WP_Term ) { + throw new UserError( esc_html__( 'The parent does not exist', 'wp-graphql' ) ); + } + } + + $insert_args['parent'] = $parent_id; } /** diff --git a/lib/wp-graphql/src/Data/UserMutation.php b/lib/wp-graphql/src/Data/UserMutation.php index 47d7ca04d..46d2e69d4 100644 --- a/lib/wp-graphql/src/Data/UserMutation.php +++ b/lib/wp-graphql/src/Data/UserMutation.php @@ -98,7 +98,7 @@ public static function input_fields() { /** * Filters all of the fields available for input * - * @var array> $input_fields + * @param array> $input_fields */ self::$input_fields = apply_filters( 'graphql_user_mutation_input_fields', $input_fields ); } diff --git a/lib/wp-graphql/src/Model/Menu.php b/lib/wp-graphql/src/Model/Menu.php index accda0868..f8b4a037d 100644 --- a/lib/wp-graphql/src/Model/Menu.php +++ b/lib/wp-graphql/src/Model/Menu.php @@ -50,12 +50,12 @@ public function is_private() { return false; } - $locations = get_theme_mod( 'nav_menu_locations' ); + $locations = get_nav_menu_locations(); if ( empty( $locations ) ) { return true; } $location_ids = array_values( $locations ); - if ( empty( $location_ids ) || ! in_array( $this->data->term_id, array_values( $location_ids ), true ) ) { + if ( empty( $location_ids ) || ! in_array( $this->data->term_id, $location_ids, true ) ) { return true; } diff --git a/lib/wp-graphql/src/Model/Post.php b/lib/wp-graphql/src/Model/Post.php index 0343b3506..5a2b2b4c6 100644 --- a/lib/wp-graphql/src/Model/Post.php +++ b/lib/wp-graphql/src/Model/Post.php @@ -695,7 +695,7 @@ protected function init() { return ! empty( $uri ) ? str_ireplace( home_url(), '', $uri ) : null; }, 'commentCount' => function () { - return ! empty( $this->data->comment_count ) ? absint( $this->data->comment_count ) : null; + return ! empty( $this->data->comment_count ) ? absint( $this->data->comment_count ) : 0; }, 'featuredImageId' => function () { return ! empty( $this->featuredImageDatabaseId ) ? Relay::toGlobalId( 'post', (string) $this->featuredImageDatabaseId ) : null; diff --git a/lib/wp-graphql/src/Model/Term.php b/lib/wp-graphql/src/Model/Term.php index e760226b9..61c6eb132 100644 --- a/lib/wp-graphql/src/Model/Term.php +++ b/lib/wp-graphql/src/Model/Term.php @@ -22,7 +22,6 @@ * @property string $link * @property string $parentId * @property int $parentDatabaseId - * @property array $ancestors * * @package WPGraphQL\Model */ diff --git a/lib/wp-graphql/src/Model/Theme.php b/lib/wp-graphql/src/Model/Theme.php index 3492f3c76..49fac0665 100644 --- a/lib/wp-graphql/src/Model/Theme.php +++ b/lib/wp-graphql/src/Model/Theme.php @@ -15,7 +15,7 @@ * @property string $description * @property string $author * @property string $authorUri - * @property array $tags + * @property ?string[] $tags * @property string|int $version * * @package WPGraphQL\Model diff --git a/lib/wp-graphql/src/Mutation/MediaItemCreate.php b/lib/wp-graphql/src/Mutation/MediaItemCreate.php index d304e2027..59e14bf3e 100644 --- a/lib/wp-graphql/src/Mutation/MediaItemCreate.php +++ b/lib/wp-graphql/src/Mutation/MediaItemCreate.php @@ -230,7 +230,7 @@ public static function mutate_and_get_payload() { 'type' => ! empty( $input['fileType'] ) ? $input['fileType'] : wp_check_filetype( $temp_file ), 'tmp_name' => $temp_file, 'error' => 0, - 'size' => filesize( $temp_file ), + 'size' => (int) filesize( $temp_file ), ]; /** diff --git a/lib/wp-graphql/src/Mutation/TermObjectCreate.php b/lib/wp-graphql/src/Mutation/TermObjectCreate.php index 51cc4acb2..6ad76b3af 100644 --- a/lib/wp-graphql/src/Mutation/TermObjectCreate.php +++ b/lib/wp-graphql/src/Mutation/TermObjectCreate.php @@ -69,10 +69,15 @@ public static function get_input_fields( WP_Taxonomy $taxonomy ) { * Add a parentId field to hierarchical taxonomies to allow parents to be set */ if ( true === $taxonomy->hierarchical ) { - $fields['parentId'] = [ + $fields['parentId'] = [ 'type' => 'ID', // translators: The placeholder is the name of the taxonomy for the object being mutated - 'description' => sprintf( __( 'The ID of the %1$s that should be set as the parent', 'wp-graphql' ), $taxonomy->name ), + 'description' => sprintf( __( 'The ID of the %1$s that should be set as the parent. This field cannot be used in conjunction with parentDatabaseId', 'wp-graphql' ), $taxonomy->name ), + ]; + $fields['parentDatabaseId'] = [ + 'type' => 'Int', + // translators: The placeholder is the name of the taxonomy for the object being mutated + 'description' => sprintf( __( 'The database ID of the %1$s that should be set as the parent. This field cannot be used in conjunction with parentId', 'wp-graphql' ), $taxonomy->name ), ]; } diff --git a/lib/wp-graphql/src/Registry/TypeRegistry.php b/lib/wp-graphql/src/Registry/TypeRegistry.php index 2d8bc844c..b28ce16af 100644 --- a/lib/wp-graphql/src/Registry/TypeRegistry.php +++ b/lib/wp-graphql/src/Registry/TypeRegistry.php @@ -54,6 +54,7 @@ use WPGraphQL\Type\Enum\PostObjectsConnectionOrderbyEnum; use WPGraphQL\Type\Enum\PostStatusEnum; use WPGraphQL\Type\Enum\RelationEnum; +use WPGraphQL\Type\Enum\ScriptLoadingGroupLocationEnum; use WPGraphQL\Type\Enum\ScriptLoadingStrategyEnum; use WPGraphQL\Type\Enum\TaxonomyEnum; use WPGraphQL\Type\Enum\TaxonomyIdTypeEnum; @@ -356,6 +357,7 @@ public function init_type_registry( self $type_registry ) { PostStatusEnum::register_type(); RelationEnum::register_type(); ScriptLoadingStrategyEnum::register_type(); + ScriptLoadingGroupLocationEnum::register_type(); TaxonomyEnum::register_type(); TaxonomyIdTypeEnum::register_type(); TermNodeIdTypeEnum::register_type(); @@ -371,9 +373,10 @@ public function init_type_registry( self $type_registry ) { PostObjectsConnectionOrderbyInput::register_type(); UsersConnectionOrderbyInput::register_type(); - MenuItemObjectUnion::register_type( $this ); - PostObjectUnion::register_type( $this ); - TermObjectUnion::register_type( $this ); + // Deprecated types. + MenuItemObjectUnion::register_type( $this ); /* @phpstan-ignore staticMethod.deprecatedClass */ + PostObjectUnion::register_type( $this ); /* @phpstan-ignore staticMethod.deprecatedClass */ + TermObjectUnion::register_type( $this ); /* @phpstan-ignore staticMethod.deprecatedClass */ /** * Register core connections diff --git a/lib/wp-graphql/src/Registry/Utils/PostObject.php b/lib/wp-graphql/src/Registry/Utils/PostObject.php index 9da5434f4..84b6608a4 100644 --- a/lib/wp-graphql/src/Registry/Utils/PostObject.php +++ b/lib/wp-graphql/src/Registry/Utils/PostObject.php @@ -198,14 +198,14 @@ protected static function get_connections( WP_Post_Type $post_type_object ) { ), 'resolve' => static function ( Post $post, $args, AppContext $context, ResolveInfo $info ) { $taxonomies = \WPGraphQL::get_allowed_taxonomies(); - $terms = wp_get_post_terms( $post->ID, $taxonomies, [ 'fields' => 'ids' ] ); + $object_id = true === $post->isPreview && ! empty( $post->parentDatabaseId ) ? $post->parentDatabaseId : $post->ID; - if ( empty( $terms ) || is_wp_error( $terms ) ) { + if ( empty( $object_id ) ) { return null; } - $resolver = new TermObjectConnectionResolver( $post, $args, $context, $info, $taxonomies ); - $resolver->set_query_arg( 'include', $terms ); + $resolver = new TermObjectConnectionResolver( $post, $args, $context, $info, $taxonomies ); + $resolver->set_query_arg( 'object_ids', absint( $object_id ) ); return $resolver->get_connection(); }, ]; @@ -585,6 +585,70 @@ private static function register_attachment_fields( WP_Post_Type $post_type_obje return $image->get_source_url_by_size( $size ); }, ], + 'file' => [ + 'type' => 'String', + 'description' => __( 'The filename of the mediaItem for the specified size (default size is full)', 'wp-graphql' ), + 'args' => [ + 'size' => [ + 'type' => 'MediaItemSizeEnum', + 'description' => __( 'Size of the MediaItem to return', 'wp-graphql' ), + ], + ], + 'resolve' => static function ( $source, $args ) { + // If a size is specified, get the size-specific filename + if ( ! empty( $args['size'] ) ) { + $size = 'full' === $args['size'] ? 'large' : $args['size']; + + // Get the metadata which contains size information + $metadata = wp_get_attachment_metadata( $source->databaseId ); + + if ( ! empty( $metadata['sizes'][ $size ]['file'] ) ) { + return $metadata['sizes'][ $size ]['file']; + } + } + + // Default to original file + $attached_file = get_post_meta( $source->databaseId, '_wp_attached_file', true ); + return ! empty( $attached_file ) ? basename( $attached_file ) : null; + }, + ], + 'filePath' => [ + 'type' => 'String', + 'description' => __( 'The path to the original file relative to the uploads directory', 'wp-graphql' ), + 'args' => [ + 'size' => [ + 'type' => 'MediaItemSizeEnum', + 'description' => __( 'Size of the MediaItem to return', 'wp-graphql' ), + ], + ], + 'resolve' => static function ( $source, $args ) { + // Get the upload directory info + $upload_dir = wp_upload_dir(); + $relative_upload_path = wp_make_link_relative( $upload_dir['baseurl'] ); + + // If a size is specified, get the size-specific path + if ( ! empty( $args['size'] ) ) { + $size = 'full' === $args['size'] ? 'large' : $args['size']; + + // Get the metadata which contains size information + $metadata = wp_get_attachment_metadata( $source->databaseId ); + + if ( ! empty( $metadata['sizes'][ $size ]['file'] ) ) { + $file_path = $metadata['file']; + return path_join( $relative_upload_path, dirname( $file_path ) . '/' . $metadata['sizes'][ $size ]['file'] ); + } + } + + // Default to original file path + $attached_file = get_post_meta( $source->databaseId, '_wp_attached_file', true ); + + if ( empty( $attached_file ) ) { + return null; + } + + return path_join( $relative_upload_path, $attached_file ); + }, + ], 'fileSize' => [ 'type' => 'Int', 'description' => __( 'The filesize in bytes of the resource', 'wp-graphql' ), diff --git a/lib/wp-graphql/src/Request.php b/lib/wp-graphql/src/Request.php index 699c2a91c..1ea4d70dc 100644 --- a/lib/wp-graphql/src/Request.php +++ b/lib/wp-graphql/src/Request.php @@ -587,7 +587,7 @@ private function do_action( OperationParams $params ) { * @param ?string $operation The name of the operation * @param ?array $variables Variables to be passed to your GraphQL request * @param \GraphQL\Server\OperationParams $params The Operation Params. This includes any extra params, - * such as extenions or any other modifications to the request body + * such as extensions or any other modifications to the request body */ do_action( 'do_graphql_request', $params->query, $params->operation, $params->variables, $params ); } diff --git a/lib/wp-graphql/src/Type/Connection/Comments.php b/lib/wp-graphql/src/Type/Connection/Comments.php index 26c061d89..80a031ded 100644 --- a/lib/wp-graphql/src/Type/Connection/Comments.php +++ b/lib/wp-graphql/src/Type/Connection/Comments.php @@ -251,8 +251,13 @@ public static function get_connection_args() { 'description' => __( 'Search term(s) to retrieve matching comments for.', 'wp-graphql' ), ], 'status' => [ - 'type' => 'String', - 'description' => __( 'Comment status to limit results by.', 'wp-graphql' ), + 'type' => 'String', + 'description' => __( 'Comment status to limit results by.', 'wp-graphql' ), + 'deprecationReason' => __( 'Deprecated in favor of statusIn which accepts a list of one or more CommentStatusEnum values instead of a string', 'wp-graphql' ), + ], + 'statusIn' => [ + 'type' => [ 'list_of' => 'CommentStatusEnum' ], + 'description' => __( 'One or more Comment Statuses to limit results by', 'wp-graphql' ), ], 'userId' => [ 'type' => 'ID', diff --git a/lib/wp-graphql/src/Type/Enum/ScriptLoadingGroupLocationEnum.php b/lib/wp-graphql/src/Type/Enum/ScriptLoadingGroupLocationEnum.php new file mode 100644 index 000000000..035d0f089 --- /dev/null +++ b/lib/wp-graphql/src/Type/Enum/ScriptLoadingGroupLocationEnum.php @@ -0,0 +1,39 @@ + __( 'Location in the document where the script to be loaded', 'wp-graphql' ), + 'values' => [ + 'HEADER' => [ + 'value' => 0, + 'description' => __( 'A script to be loaded in document `` tag', 'wp-graphql' ), + ], + 'FOOTER' => [ + 'value' => 1, + 'description' => __( 'A script to be loaded in document at right before the closing `` tag', 'wp-graphql' ), + ], + ], + ] + ); + } +} diff --git a/lib/wp-graphql/src/Type/InterfaceType/EnqueuedAsset.php b/lib/wp-graphql/src/Type/InterfaceType/EnqueuedAsset.php index 01c1263dc..89a722fea 100644 --- a/lib/wp-graphql/src/Type/InterfaceType/EnqueuedAsset.php +++ b/lib/wp-graphql/src/Type/InterfaceType/EnqueuedAsset.php @@ -124,6 +124,13 @@ static function ( $before ) { return isset( $asset->extra['data'] ) ? $asset->extra['data'] : null; }, ], + 'group' => [ + 'type' => 'Int', + 'description' => __( 'The loading group to which this asset belongs.', 'wp-graphql' ), + 'resolve' => static function ( $asset ) { + return isset( $asset->extra['group'] ) ? (int) $asset->extra['group'] : null; + }, + ], ], ] ); diff --git a/lib/wp-graphql/src/Type/ObjectType/EnqueuedScript.php b/lib/wp-graphql/src/Type/ObjectType/EnqueuedScript.php index cf5969918..c3f9cf04c 100644 --- a/lib/wp-graphql/src/Type/ObjectType/EnqueuedScript.php +++ b/lib/wp-graphql/src/Type/ObjectType/EnqueuedScript.php @@ -23,18 +23,18 @@ public static function register_type() { 'description' => __( 'Script enqueued by the CMS', 'wp-graphql' ), 'interfaces' => [ 'Node', 'EnqueuedAsset' ], 'fields' => [ - 'id' => [ + 'id' => [ 'type' => [ 'non_null' => 'ID' ], 'description' => __( 'The global ID of the enqueued script', 'wp-graphql' ), 'resolve' => static function ( $asset ) { return isset( $asset->handle ) ? Relay::toGlobalId( 'enqueued_script', $asset->handle ) : null; }, ], - 'dependencies' => [ + 'dependencies' => [ 'type' => [ 'list_of' => 'EnqueuedScript' ], 'description' => __( 'Dependencies needed to use this asset', 'wp-graphql' ), ], - 'extraData' => [ + 'extraData' => [ 'type' => 'String', 'description' => __( 'Extra data supplied to the enqueued script', 'wp-graphql' ), 'resolve' => static function ( \_WP_Dependency $script ) { @@ -45,7 +45,7 @@ public static function register_type() { return $script->extra['data']; }, ], - 'strategy' => [ + 'strategy' => [ 'type' => 'ScriptLoadingStrategyEnum', 'description' => __( 'The loading strategy to use on the script tag', 'wp-graphql' ), 'resolve' => static function ( \_WP_Dependency $script ) { @@ -56,7 +56,14 @@ public static function register_type() { return $script->extra['strategy']; }, ], - 'version' => [ + 'groupLocation' => [ + 'type' => 'ScriptLoadingGroupLocationEnum', + 'description' => __( 'The location where this script should be loaded', 'wp-graphql' ), + 'resolve' => static function ( \_WP_Dependency $script ) { + return isset( $script->extra['group'] ) ? (int) $script->extra['group'] : 0; + }, + ], + 'version' => [ 'description' => __( 'The version of the enqueued script', 'wp-graphql' ), 'resolve' => static function ( \_WP_Dependency $script ) { /** @var \WP_Scripts $wp_scripts */ diff --git a/lib/wp-graphql/src/Type/ObjectType/MediaDetails.php b/lib/wp-graphql/src/Type/ObjectType/MediaDetails.php index dff2b1318..bc398fc36 100644 --- a/lib/wp-graphql/src/Type/ObjectType/MediaDetails.php +++ b/lib/wp-graphql/src/Type/ObjectType/MediaDetails.php @@ -15,19 +15,37 @@ public static function register_type() { [ 'description' => __( 'File details for a Media Item', 'wp-graphql' ), 'fields' => [ - 'width' => [ + 'width' => [ 'type' => 'Int', 'description' => __( 'The width of the mediaItem', 'wp-graphql' ), ], - 'height' => [ + 'height' => [ 'type' => 'Int', 'description' => __( 'The height of the mediaItem', 'wp-graphql' ), ], - 'file' => [ + 'file' => [ 'type' => 'String', 'description' => __( 'The filename of the mediaItem', 'wp-graphql' ), + 'resolve' => static function ( $media_details ) { + return ! empty( $media_details['file'] ) ? basename( $media_details['file'] ) : null; + }, + ], + 'filePath' => [ + 'type' => 'String', + 'description' => __( 'The path to the mediaItem relative to the uploads directory', 'wp-graphql' ), + 'resolve' => static function ( $media_details ) { + // Get the upload directory info + $upload_dir = wp_upload_dir(); + $relative_upload_path = wp_make_link_relative( $upload_dir['baseurl'] ); + + if ( ! empty( $media_details['file'] ) ) { + return path_join( $relative_upload_path, $media_details['file'] ); + } + + return null; + }, ], - 'sizes' => [ + 'sizes' => [ 'type' => [ 'list_of' => 'MediaSize', ], @@ -69,7 +87,7 @@ public static function register_type() { return ! empty( $sizes ) ? $sizes : null; }, ], - 'meta' => [ + 'meta' => [ 'type' => 'MediaItemMeta', 'description' => __( 'Meta information associated with the mediaItem', 'wp-graphql' ), 'resolve' => static function ( $media_details ) { diff --git a/lib/wp-graphql/src/Type/ObjectType/MediaSize.php b/lib/wp-graphql/src/Type/ObjectType/MediaSize.php index ddd44bd8d..0f258393a 100644 --- a/lib/wp-graphql/src/Type/ObjectType/MediaSize.php +++ b/lib/wp-graphql/src/Type/ObjectType/MediaSize.php @@ -23,6 +23,25 @@ public static function register_type() { 'type' => 'String', 'description' => __( 'The filename of the referenced size', 'wp-graphql' ), ], + 'filePath' => [ + 'type' => 'String', + 'description' => __( 'The path of the file for the referenced size (default size is full)', 'wp-graphql' ), + 'resolve' => static function ( $image ) { + if ( ! empty( $image['ID'] ) ) { + $original_file = get_attached_file( absint( $image['ID'] ) ); + $attachment_url = wp_get_attachment_url( $image['ID'] ); + + if ( ! empty( $original_file ) && ! empty( $image['file'] ) && ! empty( $attachment_url ) ) { + // Return the relative path for the specific size + return path_join( dirname( wp_make_link_relative( $attachment_url ) ), $image['file'] ); + } + } elseif ( ! empty( $image['file'] ) ) { + return wp_make_link_relative( $image['file'] ); + } + + return null; + }, + ], 'width' => [ 'type' => 'String', 'description' => __( 'The width of the referenced size', 'wp-graphql' ), diff --git a/lib/wp-graphql/src/Utils/InstrumentSchema.php b/lib/wp-graphql/src/Utils/InstrumentSchema.php index 52a9e661f..18c0536e3 100644 --- a/lib/wp-graphql/src/Utils/InstrumentSchema.php +++ b/lib/wp-graphql/src/Utils/InstrumentSchema.php @@ -263,7 +263,7 @@ public static function check_field_permissions( $source, array $args, AppContext if ( isset( $field->config['auth']['allowedRoles'] ) && is_array( $field->config['auth']['allowedRoles'] ) ) { $roles = ! empty( wp_get_current_user()->roles ) ? wp_get_current_user()->roles : []; $allowed_roles = array_values( $field->config['auth']['allowedRoles'] ); - if ( empty( array_intersect( array_values( $roles ), array_values( $allowed_roles ) ) ) ) { + if ( empty( array_intersect( array_values( $roles ), $allowed_roles ) ) ) { throw new UserError( esc_html( $auth_error ) ); } } diff --git a/lib/wp-graphql/src/Utils/QueryAnalyzer.php b/lib/wp-graphql/src/Utils/QueryAnalyzer.php index 18b148071..dfd26cd45 100644 --- a/lib/wp-graphql/src/Utils/QueryAnalyzer.php +++ b/lib/wp-graphql/src/Utils/QueryAnalyzer.php @@ -499,7 +499,7 @@ public function set_list_types( ?Schema $schema, ?string $query ): array { ]; Visitor::visit( $ast, Visitor::visitWithTypeInfo( $type_info, $visitor ) ); - $map = array_values( array_unique( array_filter( $type_map ) ) ); + $map = array_values( array_unique( $type_map ) ); return apply_filters( 'graphql_cache_collection_get_list_types', $map, $schema, $query, $type_info ); } diff --git a/lib/wp-graphql/src/Utils/Utils.php b/lib/wp-graphql/src/Utils/Utils.php index d4dfa9490..533ca1616 100644 --- a/lib/wp-graphql/src/Utils/Utils.php +++ b/lib/wp-graphql/src/Utils/Utils.php @@ -344,7 +344,7 @@ public static function get_database_id_from_id( $id ) { $id_parts = Relay::fromGlobalId( $id ); - return ! empty( $id_parts['id'] ) && is_numeric( $id_parts['id'] ) ? absint( $id_parts['id'] ) : false; + return isset( $id_parts['id'] ) && is_numeric( $id_parts['id'] ) ? absint( $id_parts['id'] ) : false; } /** diff --git a/lib/wp-graphql/src/WPGraphQL.php b/lib/wp-graphql/src/WPGraphQL.php index a3c6783de..688ad3ab1 100644 --- a/lib/wp-graphql/src/WPGraphQL.php +++ b/lib/wp-graphql/src/WPGraphQL.php @@ -82,6 +82,7 @@ public static function instance() { self::$instance->includes(); self::$instance->actions(); self::$instance->filters(); + self::$instance->upgrade(); } /** @@ -156,7 +157,7 @@ public static function is_graphql_request(): bool { * * @param bool $is_introspection_query * - * @since todo + * @since 1.28.0 */ public static function set_is_introspection_query( bool $is_introspection_query = false ): void { self::$is_introspection_query = $is_introspection_query; @@ -165,7 +166,7 @@ public static function set_is_introspection_query( bool $is_introspection_query /** * Whether the request is an introspection query or not (query for __type or __schema) * - * @since todo + * @since 1.28.0 */ public static function is_introspection_query(): bool { return self::$is_introspection_query; @@ -177,7 +178,7 @@ public static function is_introspection_query(): bool { */ private function actions(): void { /** - * Init WPGraphQL after themes have been setup, + * Init WPGraphQL after themes have been set up, * allowing for both plugins and themes to register * things before graphql_init */ @@ -243,6 +244,9 @@ static function () { $query_log->init(); } ); + + // Initialize Update functionality. + ( new \WPGraphQL\Admin\Updates\Updates() )->init(); } /** @@ -323,7 +327,7 @@ public function setup_plugin_url() { */ public function setup_types() { /** - * Setup the settings, post_types and taxonomies to show_in_graphql + * Set up the settings, post_types and taxonomies to show_in_graphql */ self::show_in_graphql(); } @@ -416,6 +420,78 @@ static function ( bool $is_redirect ) { ); } + /** + * Upgrade routine + * + * @return void + */ + public function upgrade() { + $version = get_option( 'wp_graphql_version', null ); + + // If the version is not set, this is a fresh install, not an update. + // set the version and return. + if ( ! $version ) { + update_option( 'wp_graphql_version', WPGRAPHQL_VERSION ); + return; + } + + // If the version is less than the current version, run the update routine + if ( version_compare( $version, WPGRAPHQL_VERSION, '<' ) ) { + $this->run_update_routines( $version ); + update_option( 'wp_graphql_version', WPGRAPHQL_VERSION ); + } + } + + /** + * Executes update routines based on the previously stored version. + * + * This triggers an action that passes the previous version and new version and allows for specific actions or + * modifications needed to bring installations up-to-date with the current plugin version. + * + * Each update routine (callback that hooks into "graphql_do_update_routine") should handle backward compatibility as gracefully as possible. + * + * @since 1.2.3 + * @param string|null $stored_version The version number currently stored in the database. + * Null if no version has been previously stored. + */ + public function run_update_routines( ?string $stored_version = null ): void { + + // bail if the stored version is empty, or the WPGRAPHQL_VERSION constant is not set + if ( ! defined( 'WPGRAPHQL_VERSION' ) || ! $stored_version ) { + return; + } + + // If the stored version is less than the current version, run the upgrade routine + if ( version_compare( $stored_version, WPGRAPHQL_VERSION, '<' ) ) { + + // Clear the extensions cache + $this->clear_extensions_cache(); + + /** + * Fires the update routine. + * + * @param string $stored_version The version number currently stored in the database. + * @param string $new_version The version number of the current plugin. + */ + do_action( 'graphql_do_update_routine', $stored_version, WPGRAPHQL_VERSION ); + } + } + + /** + * Clear all caches in the "wpgraphql_extensions" cache group. + * + * @return void + */ + public function clear_extensions_cache() { + global $wp_object_cache; + + if ( isset( $wp_object_cache->cache['wpgraphql_extensions'] ) ) { + foreach ( $wp_object_cache->cache['wpgraphql_extensions'] as $key => $value ) { + wp_cache_delete( $key, 'wpgraphql_extensions' ); + } + } + } + /** * Initialize admin functionality * diff --git a/lib/wp-graphql/vendor/autoload.php b/lib/wp-graphql/vendor/autoload.php index 90967aae9..a9ddfccaa 100644 --- a/lib/wp-graphql/vendor/autoload.php +++ b/lib/wp-graphql/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit44de4e5f0aa4b88b3af8f8f2bf13a294::getLoader(); +return ComposerAutoloaderInita283aaa5719896325f79aace2afd105c::getLoader(); diff --git a/lib/wp-graphql/vendor/composer/InstalledVersions.php b/lib/wp-graphql/vendor/composer/InstalledVersions.php index 51e734a77..6d29bff66 100644 --- a/lib/wp-graphql/vendor/composer/InstalledVersions.php +++ b/lib/wp-graphql/vendor/composer/InstalledVersions.php @@ -32,6 +32,11 @@ class InstalledVersions */ private static $installed; + /** + * @var bool + */ + private static $installedIsLocalDir; + /** * @var bool|null */ @@ -309,6 +314,12 @@ public static function reload($data) { self::$installed = $data; self::$installedByVendor = array(); + + // when using reload, we disable the duplicate protection to ensure that self::$installed data is + // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, + // so we have to assume it does not, and that may result in duplicate data being returned when listing + // all installed packages for example + self::$installedIsLocalDir = false; } /** @@ -322,19 +333,27 @@ private static function getInstalled() } $installed = array(); + $copiedLocalDir = false; if (self::$canGetVendors) { + $selfDir = strtr(__DIR__, '\\', '/'); foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + $vendorDir = strtr($vendorDir, '\\', '/'); if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { - self::$installed = $installed[count($installed) - 1]; + self::$installedByVendor[$vendorDir] = $required; + $installed[] = $required; + if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { + self::$installed = $required; + self::$installedIsLocalDir = true; } } + if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { + $copiedLocalDir = true; + } } } @@ -350,7 +369,7 @@ private static function getInstalled() } } - if (self::$installed !== array()) { + if (self::$installed !== array() && !$copiedLocalDir) { $installed[] = self::$installed; } diff --git a/lib/wp-graphql/vendor/composer/autoload_classmap.php b/lib/wp-graphql/vendor/composer/autoload_classmap.php index 4d81d316a..0c56e1034 100644 --- a/lib/wp-graphql/vendor/composer/autoload_classmap.php +++ b/lib/wp-graphql/vendor/composer/autoload_classmap.php @@ -213,9 +213,16 @@ 'WPGraphQL' => $baseDir . '/src/WPGraphQL.php', 'WPGraphQL\\Admin\\Admin' => $baseDir . '/src/Admin/Admin.php', 'WPGraphQL\\Admin\\AdminNotices' => $baseDir . '/src/Admin/AdminNotices.php', + 'WPGraphQL\\Admin\\Extensions\\Extensions' => $baseDir . '/src/Admin/Extensions/Extensions.php', + 'WPGraphQL\\Admin\\Extensions\\Registry' => $baseDir . '/src/Admin/Extensions/Registry.php', 'WPGraphQL\\Admin\\GraphiQL\\GraphiQL' => $baseDir . '/src/Admin/GraphiQL/GraphiQL.php', 'WPGraphQL\\Admin\\Settings\\Settings' => $baseDir . '/src/Admin/Settings/Settings.php', 'WPGraphQL\\Admin\\Settings\\SettingsRegistry' => $baseDir . '/src/Admin/Settings/SettingsRegistry.php', + 'WPGraphQL\\Admin\\Updates\\PluginsScreenLoader' => $baseDir . '/src/Admin/Updates/PluginsScreenLoader.php', + 'WPGraphQL\\Admin\\Updates\\SemVer' => $baseDir . '/src/Admin/Updates/SemVer.php', + 'WPGraphQL\\Admin\\Updates\\UpdateChecker' => $baseDir . '/src/Admin/Updates/UpdateChecker.php', + 'WPGraphQL\\Admin\\Updates\\Updates' => $baseDir . '/src/Admin/Updates/Updates.php', + 'WPGraphQL\\Admin\\Updates\\UpdatesScreenLoader' => $baseDir . '/src/Admin/Updates/UpdatesScreenLoader.php', 'WPGraphQL\\AppContext' => $baseDir . '/src/AppContext.php', 'WPGraphQL\\Connection\\Comments' => $baseDir . '/src/Connection/Comments.php', 'WPGraphQL\\Connection\\MenuItems' => $baseDir . '/src/Connection/MenuItems.php', @@ -334,6 +341,7 @@ 'WPGraphQL\\Type\\Enum\\PostObjectsConnectionOrderbyEnum' => $baseDir . '/src/Type/Enum/PostObjectsConnectionOrderbyEnum.php', 'WPGraphQL\\Type\\Enum\\PostStatusEnum' => $baseDir . '/src/Type/Enum/PostStatusEnum.php', 'WPGraphQL\\Type\\Enum\\RelationEnum' => $baseDir . '/src/Type/Enum/RelationEnum.php', + 'WPGraphQL\\Type\\Enum\\ScriptLoadingGroupLocationEnum' => $baseDir . '/src/Type/Enum/ScriptLoadingGroupLocationEnum.php', 'WPGraphQL\\Type\\Enum\\ScriptLoadingStrategyEnum' => $baseDir . '/src/Type/Enum/ScriptLoadingStrategyEnum.php', 'WPGraphQL\\Type\\Enum\\TaxonomyEnum' => $baseDir . '/src/Type/Enum/TaxonomyEnum.php', 'WPGraphQL\\Type\\Enum\\TaxonomyIdTypeEnum' => $baseDir . '/src/Type/Enum/TaxonomyIdTypeEnum.php', diff --git a/lib/wp-graphql/vendor/composer/autoload_real.php b/lib/wp-graphql/vendor/composer/autoload_real.php index 014393acc..2998be6e6 100644 --- a/lib/wp-graphql/vendor/composer/autoload_real.php +++ b/lib/wp-graphql/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit44de4e5f0aa4b88b3af8f8f2bf13a294 +class ComposerAutoloaderInita283aaa5719896325f79aace2afd105c { private static $loader; @@ -24,12 +24,12 @@ public static function getLoader() require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit44de4e5f0aa4b88b3af8f8f2bf13a294', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInita283aaa5719896325f79aace2afd105c', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit44de4e5f0aa4b88b3af8f8f2bf13a294', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInita283aaa5719896325f79aace2afd105c', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInita283aaa5719896325f79aace2afd105c::getInitializer($loader)); $loader->register(true); diff --git a/lib/wp-graphql/vendor/composer/autoload_static.php b/lib/wp-graphql/vendor/composer/autoload_static.php index d2e1e1360..b82052488 100644 --- a/lib/wp-graphql/vendor/composer/autoload_static.php +++ b/lib/wp-graphql/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294 +class ComposerStaticInita283aaa5719896325f79aace2afd105c { public static $prefixLengthsPsr4 = array ( 'W' => @@ -244,9 +244,16 @@ class ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294 'WPGraphQL' => __DIR__ . '/../..' . '/src/WPGraphQL.php', 'WPGraphQL\\Admin\\Admin' => __DIR__ . '/../..' . '/src/Admin/Admin.php', 'WPGraphQL\\Admin\\AdminNotices' => __DIR__ . '/../..' . '/src/Admin/AdminNotices.php', + 'WPGraphQL\\Admin\\Extensions\\Extensions' => __DIR__ . '/../..' . '/src/Admin/Extensions/Extensions.php', + 'WPGraphQL\\Admin\\Extensions\\Registry' => __DIR__ . '/../..' . '/src/Admin/Extensions/Registry.php', 'WPGraphQL\\Admin\\GraphiQL\\GraphiQL' => __DIR__ . '/../..' . '/src/Admin/GraphiQL/GraphiQL.php', 'WPGraphQL\\Admin\\Settings\\Settings' => __DIR__ . '/../..' . '/src/Admin/Settings/Settings.php', 'WPGraphQL\\Admin\\Settings\\SettingsRegistry' => __DIR__ . '/../..' . '/src/Admin/Settings/SettingsRegistry.php', + 'WPGraphQL\\Admin\\Updates\\PluginsScreenLoader' => __DIR__ . '/../..' . '/src/Admin/Updates/PluginsScreenLoader.php', + 'WPGraphQL\\Admin\\Updates\\SemVer' => __DIR__ . '/../..' . '/src/Admin/Updates/SemVer.php', + 'WPGraphQL\\Admin\\Updates\\UpdateChecker' => __DIR__ . '/../..' . '/src/Admin/Updates/UpdateChecker.php', + 'WPGraphQL\\Admin\\Updates\\Updates' => __DIR__ . '/../..' . '/src/Admin/Updates/Updates.php', + 'WPGraphQL\\Admin\\Updates\\UpdatesScreenLoader' => __DIR__ . '/../..' . '/src/Admin/Updates/UpdatesScreenLoader.php', 'WPGraphQL\\AppContext' => __DIR__ . '/../..' . '/src/AppContext.php', 'WPGraphQL\\Connection\\Comments' => __DIR__ . '/../..' . '/src/Connection/Comments.php', 'WPGraphQL\\Connection\\MenuItems' => __DIR__ . '/../..' . '/src/Connection/MenuItems.php', @@ -365,6 +372,7 @@ class ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294 'WPGraphQL\\Type\\Enum\\PostObjectsConnectionOrderbyEnum' => __DIR__ . '/../..' . '/src/Type/Enum/PostObjectsConnectionOrderbyEnum.php', 'WPGraphQL\\Type\\Enum\\PostStatusEnum' => __DIR__ . '/../..' . '/src/Type/Enum/PostStatusEnum.php', 'WPGraphQL\\Type\\Enum\\RelationEnum' => __DIR__ . '/../..' . '/src/Type/Enum/RelationEnum.php', + 'WPGraphQL\\Type\\Enum\\ScriptLoadingGroupLocationEnum' => __DIR__ . '/../..' . '/src/Type/Enum/ScriptLoadingGroupLocationEnum.php', 'WPGraphQL\\Type\\Enum\\ScriptLoadingStrategyEnum' => __DIR__ . '/../..' . '/src/Type/Enum/ScriptLoadingStrategyEnum.php', 'WPGraphQL\\Type\\Enum\\TaxonomyEnum' => __DIR__ . '/../..' . '/src/Type/Enum/TaxonomyEnum.php', 'WPGraphQL\\Type\\Enum\\TaxonomyIdTypeEnum' => __DIR__ . '/../..' . '/src/Type/Enum/TaxonomyIdTypeEnum.php', @@ -455,9 +463,9 @@ class ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit44de4e5f0aa4b88b3af8f8f2bf13a294::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInita283aaa5719896325f79aace2afd105c::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInita283aaa5719896325f79aace2afd105c::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInita283aaa5719896325f79aace2afd105c::$classMap; }, null, ClassLoader::class); } diff --git a/lib/wp-graphql/vendor/composer/installed.php b/lib/wp-graphql/vendor/composer/installed.php index 82031e49f..b2230b1f1 100644 --- a/lib/wp-graphql/vendor/composer/installed.php +++ b/lib/wp-graphql/vendor/composer/installed.php @@ -1,9 +1,9 @@ array( 'name' => 'wp-graphql/wp-graphql', - 'pretty_version' => 'v1.29.3', - 'version' => '1.29.3.0', - 'reference' => 'e8b265b4cd3e33c3631defbd5ee63f71a8936f41', + 'pretty_version' => 'v1.32.1', + 'version' => '1.32.1.0', + 'reference' => '0c0000985c967f90bcca38276923a7d018d310e3', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -38,9 +38,9 @@ 'dev_requirement' => false, ), 'wp-graphql/wp-graphql' => array( - 'pretty_version' => 'v1.29.3', - 'version' => '1.29.3.0', - 'reference' => 'e8b265b4cd3e33c3631defbd5ee63f71a8936f41', + 'pretty_version' => 'v1.32.1', + 'version' => '1.32.1.0', + 'reference' => '0c0000985c967f90bcca38276923a7d018d310e3', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/lib/wp-graphql/wp-graphql.php b/lib/wp-graphql/wp-graphql.php index 6b5e7a9ad..fd4aefe77 100644 --- a/lib/wp-graphql/wp-graphql.php +++ b/lib/wp-graphql/wp-graphql.php @@ -6,11 +6,11 @@ * Description: GraphQL API for WordPress * Author: WPGraphQL * Author URI: http://www.wpgraphql.com - * Version: 1.29.3 + * Version: 1.32.1 * Text Domain: wp-graphql * Domain Path: /languages/ * Requires at least: 5.9 - * Tested up to: 6.6 + * Tested up to: 6.7.1 * Requires PHP: 7.1 * License: GPL-3 * License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -18,7 +18,7 @@ * @package WPGraphQL * @category Core * @author WPGraphQL - * @version 1.29.3 + * @version 1.32.1 */ // Exit if accessed directly. @@ -62,7 +62,7 @@ function graphql_require_bootstrap_files(): void { * * Bedrock * - WPGRAPHQL_AUTOLOAD: not defined - * - composer deps installed outside of the plugin + * - composer deps installed outside the plugin * * Normal (.org repo install) * - WPGRAPHQL_AUTOLOAD: not defined diff --git a/vip-decoupled.php b/vip-decoupled.php index cde4e16d0..c9b8fe7f4 100644 --- a/vip-decoupled.php +++ b/vip-decoupled.php @@ -5,9 +5,9 @@ * Description: Plugin bundle to quickly provide a decoupled WordPress setup. * Author: WordPress VIP * Text Domain: vip-decoupled-bundle - * Version: 1.2.4 + * Version: 1.2.5 * Requires at least: 5.9.0 - * Tested up to: 6.7.0 + * Tested up to: 6.8.0 * Requires PHP: 7.4 * License: GPL-3 * License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -30,7 +30,7 @@ require_once __DIR__ . '/settings/settings.php'; /** - * WPGraphQL 1.19.0. + * WPGraphQL 1.32.1. */ if ( is_plugin_enabled( 'wpgraphql' ) ) { require_once __DIR__ . '/lib/wp-graphql/wp-graphql.php';