Repository: wp-graphql/wp-graphql (language: php)

Issue:
Regression: GraphiQL IDE + Extensions screen don't work in WP <6.6
### Description

Since v1.30.0, the GraphQL IDE and the (new) Extensions screen do not work in versions below WordPress 6.6

This is due to #3270 which bumped @wordpress/scripts above v28 (where things move to the [new JSX runtime](https://make.wordpress.org/core/2024/06/06/jsx-in-wordpress-6-6/) )

Combined with the `createRoot()` used by `extensions.js`, we also cant just revert to an earlier version. 

### Steps to reproduce

1. Download a version of WordPress before WP 6.6 (wp 6.0 is a good candidate since that's the 2.0 bump)
2. Checkout `develop` or `release/v2.0`
3. See GraphiQL doesnt load + See Extensions screen doesnt load.
 

### Additional context

I've said this before, but ROBOTS ARE BAD. We should disable dependabot unless/until we have CI to actually and thoroughly test the frontend.

### WPGraphQL Version

1.30+

### WordPress Version

6.0-6.5

### PHP Version

8.2.26

### Additional environment details

_No response_

### Please confirm that you have searched existing issues in the repo.

- [x] Yes

### Please confirm that you have disabled ALL plugins except for WPGraphQL.

- [x] Yes
- [ ] My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.


Discussion / hints:

Fix patch:
diff --git a/build/app.asset.php b/build/app.asset.php
index c5488b491..af33f5977 100644
--- a/build/app.asset.php
+++ b/build/app.asset.php
@@ -1,1 +1,1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-element', 'wp-hooks'), 'version' => 'd588252bb51abdac55bb');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-hooks'), 'version' => '0c7a97fa7eb69d21de33');
diff --git a/build/app.js b/build/app.js
index 3b89107df..9e2015c38 100644
--- a/build/app.js
+++ b/build/app.js
@@ -1,7 +1,7 @@
-(()=>{var e,t={6612:(e,t,n)=>{"use strict";var r=n(6087);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}const o=window.React;var a=n.n(o);const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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)?l(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function f(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.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+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:a,l:s}}function S(e,t,n){return n<0&&(n+=1),n>1&&(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<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}function x(e,t,n,r){var i=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function O(e){return C(e)/255}function C(e){return parseInt(e,16)}var _={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function N(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(_[e])e=_[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=D.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=D.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=D.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=D.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=D.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=D.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=D.hex8.exec(e))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),a:O(n[4]),format:t?"name":"hex8"}:(n=D.hex6.exec(e))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),format:t?"name":"hex"}:(n=D.hex4.exec(e))?{r:C(n[1]+n[1]),g:C(n[2]+n[2]),b:C(n[3]+n[3]),a:O(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=D.hex3.exec(e))&&{r:C(n[1]+n[1]),g:C(n[2]+n[2]),b:C(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(j(e.r)&&j(e.g)&&j(e.b)?(t=function(e,t,n){return{r:255*v(e,255),g:255*v(t,255),b:255*v(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):j(e.h)&&j(e.s)&&j(e.v)?(r=E(e.s),i=E(e.v),t=function(e,t,n){e=6*v(e,360),t=v(t,100),n=v(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,r,i),a=!0,s="hsv"):j(e.h)&&j(e.s)&&j(e.l)&&(r=E(e.s),o=E(e.l),t=function(e,t,n){var r,i,o;if(e=v(e,360),t=v(t,100),n=v(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=S(s,a,e+1/3),i=S(s,a,e),o=S(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=b(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var I="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),L="[\\s|\\(]+(".concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")\\s*\\)?"),A="[\\s|\\(]+(".concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")\\s*\\)?"),D={CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function j(e){return Boolean(D.CSS_UNIT.exec(String(e)))}var P=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function R(e){var t=k(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function M(e){var t=e.r,n=e.g,r=e.b;return"#".concat(x(t,n,r,!1))}function F(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 $(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),Number(r.toFixed(2)));var r}function V(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function B(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=N(e),i=5;i>0;i-=1){var o=R(r),a=M(N({h:F(o,i,!0),s:$(o,i,!0),v:V(o,i,!0)}));n.push(a)}n.push(M(r));for(var s=1;s<=4;s+=1){var l=R(r),c=M(N({h:F(l,s),s:$(l,s),v:V(l,s)}));n.push(c)}return"dark"===t.theme?P.map((function(e){var r,i,o,a=e.index,s=e.opacity;return M((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 q=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];q.primary=q[5];var z=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];z.primary=z[5];var G=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];G.primary=G[5];var Q=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Q.primary=Q[5];var U=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];U.primary=U[5];var H=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];H.primary=H[5];var K=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];K.primary=K[5];var W=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];W.primary=W[5];var Y=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Y.primary=Y[5];var X=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];X.primary=X[5];var J=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];J.primary=J[5];var Z=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Z.primary=Z[5];var ee=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ee.primary=ee[5];var te=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];te.primary=te[5];var ne=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ne.primary=ne[5];var re=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];re.primary=re[5];var ie=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];ie.primary=ie[5];var oe=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];oe.primary=oe[5];var ae=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ae.primary=ae[5];var se=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];se.primary=se[5];var le=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];le.primary=le[5];var ce=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];ce.primary=ce[5];var ue=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];ue.primary=ue[5];var de=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];de.primary=de[5];var pe=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];pe.primary=pe[5];var fe=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];fe.primary=fe[5];const he=(0,o.createContext)({});function me(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 ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ye="data-rc-order",be="data-rc-priority",Ee=new Map;function we(){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 Te(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){return Array.from((Ee.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ve())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(ye,a),s&&o&&l.setAttribute(be,"".concat(o)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Te(t),u=c.firstChild;if(r){if(s){var d=(t.styles||Se(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ye)))return!1;var t=Number(e.getAttribute(be)||0);return o>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Te(t);return(t.styles||Se(n)).find((function(n){return n.getAttribute(we(t))===e}))}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xe(e,t);n&&Te(t).removeChild(n)}function Ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Te(n),i=Se(r),o=ge(ge({},n),{},{styles:i});!function(e,t){var n=Ee.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=ke("",t),i=r.parentNode;Ee.set(e,i),e.removeChild(r)}}(r,o);var a,s,l,c=xe(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=ke(e,o);return u.setAttribute(we(o),t),u}function _e(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ne(e){return function(e){return _e(e)instanceof ShadowRoot}(e)?_e(e):null}var Ie={},Le=[];function Ae(e,t){}function De(e,t){}function je(e,t,n){t||Ie[n]||(e(!1,n),Ie[n]=!0)}function Pe(e,t){je(Ae,e,t)}Pe.preMessage=function(e){Le.push(e)},Pe.resetWarned=function(){Ie={}},Pe.noteOnce=function(e,t){je(De,e,t)};const Re=Pe;function Me(e){return"object"===d(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===d(e.icon)||"function"==typeof e.icon)}function Fe(){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 $e(e,t,n){return n?a().createElement(e.tag,ge(ge({key:t},Fe(e.attrs)),n),(e.children||[]).map((function(n,r){return $e(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):a().createElement(e.tag,ge({key:t},Fe(e.attrs)),(e.children||[]).map((function(n,r){return $e(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Ve(e){return B(e)[0]}function Be(e){return e?Array.isArray(e)?e:[e]:[]}var qe=["icon","className","onClick","style","primaryColor","secondaryColor"],ze={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ge=function(e){var t,n,r,i,a,s,l,c=e.icon,u=e.className,d=e.onClick,p=e.style,f=e.primaryColor,m=e.secondaryColor,g=h(e,qe),v=o.useRef(),y=ze;if(f&&(y={primaryColor:f,secondaryColor:m||Ve(f)}),t=v,n=(0,o.useContext)(he),r=n.csp,i=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",i&&(a=a.replace(/anticon/g,i)),(0,o.useEffect)((function(){var e=Ne(t.current);Ce(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),s=Me(c),l="icon should be icon definiton, but got ".concat(c),Re(s,"[@ant-design/icons] ".concat(l)),!Me(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=ge(ge({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),$e(b.icon,"svg-".concat(b.name),ge(ge({className:u,onClick:d,style:p,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};Ge.displayName="IconReact",Ge.getTwoToneColors=function(){return ge({},ze)},Ge.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ze.primaryColor=t,ze.secondaryColor=n||Ve(t),ze.calculated=!!n};const Qe=Ge;function Ue(e){var t=u(Be(e),2),n=t[0],r=t[1];return Qe.setTwoToneColors({primaryColor:n,secondaryColor:r})}var He=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ue(Y.primary);var Ke=o.forwardRef((function(e,t){var n=e.className,r=e.icon,a=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,d=e.twoToneColor,p=h(e,He),m=o.useContext(he),v=m.prefixCls,y=void 0===v?"anticon":v,b=m.rootClassName,E=g()(b,y,f(f({},"".concat(y,"-").concat(r.name),!!r.name),"".concat(y,"-spin"),!!a||"loading"===r.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(Be(d),2),k=S[0],x=S[1];return o.createElement("span",i({role:"img","aria-label":r.name},p,{ref:t,tabIndex:w,onClick:c,className:E}),o.createElement(Qe,{icon:r,primaryColor:k,secondaryColor:x,style:T}))}));Ke.displayName="AntdIcon",Ke.getTwoToneColor=function(){var e=Qe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ke.setTwoToneColor=Ue;const We=Ke;var Ye=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:s}))};const Xe=o.forwardRef(Ye),Je={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 o.createElement(We,i({},e,{ref:t,icon:Je}))};const et=o.forwardRef(Ze),tt={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 nt=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:tt}))};const rt=o.forwardRef(nt),it={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 ot=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:it}))};const at=o.forwardRef(ot);function st(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 lt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const ct=o.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:ut}=ct,dt=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var pt=n(4363);function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ft(e)):(0,pt.isFragment)(e)&&e.props?n=n.concat(ft(e.props.children,t)):n.push(e))})),n}const ht={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 mt=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:ht}))};const gt=o.forwardRef(mt);const vt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},yt=o.createContext({}),bt=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Et=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:p=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:E}=(0,o.useContext)(dt),[w,T]=(0,o.useState)("collapsed"in e?e.collapsed:s),[S,k]=(0,o.useState)(!1);(0,o.useEffect)((()=>{"collapsed"in e&&T(e.collapsed)}),[e.collapsed]);const x=(t,n)=>{"collapsed"in e||T(t),null==v||v(t,n)},O=(0,o.useRef)();O.current=e=>{k(e.matches),null==y||y(e.matches),w!==e.matches&&x(e.matches,"responsive")},(0,o.useEffect)((()=>{function e(e){return O.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&m&&m in vt){t=n(`screen and (max-width: ${vt[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,o.useEffect)((()=>{const e=bt("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const C=()=>{x(!w,"clickTrigger")},{getPrefixCls:_}=(0,o.useContext)(ct),N=o.useMemo((()=>({siderCollapsed:w})),[w]);return o.createElement(yt.Provider,{value:N},(()=>{const e=_("layout-sider",n),s=lt(b,["collapsed"]),m=w?f:p,v=(O=m,!isNaN(parseFloat(O))&&isFinite(O)?`${m}px`:String(m)),y=0===parseFloat(String(f||0))?o.createElement("span",{onClick:C,className:g()(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${d?"right":"left"}`),style:h},i||o.createElement(gt,null)):null,E={expanded:d?o.createElement(rt,null):o.createElement(at,null),collapsed:d?o.createElement(at,null):o.createElement(rt,null)}[w?"collapsed":"expanded"],T=null!==i?y||o.createElement("div",{className:`${e}-trigger`,onClick:C,style:{width:v}},i||E):null,k=Object.assign(Object.assign({},c),{flex:`0 0 ${v}`,maxWidth:v,minWidth:v,width:v}),x=g()(e,`${e}-${l}`,{[`${e}-collapsed`]:!!w,[`${e}-has-trigger`]:u&&null!==i&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(v)},r);var O;return o.createElement("aside",Object.assign({className:x},s,{style:k,ref:t}),o.createElement("div",{className:`${e}-children`},a),u||S&&y?T:null)})())})),wt=Et,Tt=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 St(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}const kt=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(Re(!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;l<t.length;l++)if(!e(t[l],i[l],s))return!1;return!0}if(t&&i&&"object"===d(t)&&"object"===d(i)){var c=Object.keys(t);return c.length===Object.keys(i).length&&c.every((function(n){return e(t[n],i[n],s)}))}return!1}(e,t)};function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function Ct(e,t,n){return t&&Ot(e.prototype,t),n&&Ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _t(e){return e.join("%")}const Nt=function(){function e(t){xt(this,e),f(this,"instanceId",void 0),f(this,"cache",new Map),this.instanceId=t}return Ct(e,[{key:"get",value:function(e){return this.opGet(_t(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(_t(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 It="data-token-hash",Lt="data-css-hash",At="__cssinjs_instance__";var Dt=o.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(Lt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[At]=t[At]||e,t[At]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Lt,"]"))).forEach((function(t){var n,i=t.getAttribute(Lt);r[i]?t[At]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0}))}return new Nt(e)}(),defaultCache:!0});const jt=Dt;new RegExp("CALC_UNIT","g");var Pt=function(){function e(){xt(this,e),f(this,"cache",void 0),f(this,"keys",void 0),f(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ct(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],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]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),o=u(i,1)[0];this.delete(o)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,i){if(i===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();f(Pt,"MAX_CACHE_SIZE",20),f(Pt,"MAX_CACHE_OFFSET",5);var Rt=0,Mt=function(){function e(t){xt(this,e),f(this,"derivatives",void 0),f(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Rt,0===t.length&&t.length,Rt+=1}return Ct(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Ft=new Pt,$t=new WeakMap,Vt={},Bt=new WeakMap;function qt(e){var t=Bt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Mt?t+=r.id:r&&"object"===d(r)?t+=qt(r):t+=r})),t=Tt(t),Bt.set(e,t)),t}function zt(e,t){return Tt("".concat(t,"_").concat(qt(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Gt=ve();function Qt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ut(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var i=ge(ge({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(f(r={},It,t),f(r,Lt,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"<style ".concat(o,">").concat(e,"</style>")}var Ht=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()},Kt=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(""),"}"):""},Wt=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,d=Ht(s,null==n?void 0:n.prefix);r[d]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(d,")")}})),[i,Kt(r,t,{scope:null==n?void 0:n.scope})]},Yt=ve()?o.useLayoutEffect:o.useEffect,Xt=function(e,t){var n=o.useRef(!0);Yt((function(){return e(n.current)}),t),Yt((function(){return n.current=!1,function(){n.current=!0}}),[])},Jt=function(e,t){Xt((function(t){if(!t)return e()}),t)};const Zt=Xt;var en=ge({},o).useInsertionEffect;const tn=en?function(e,t,n){return en((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),Zt((function(){return t(!0)}),n)},nn=void 0!==ge({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.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 rn(e,t,n,r,i){var a=o.useContext(jt).cache,s=_t([e].concat(st(t))),l=nn([s]),c=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}))};o.useMemo((function(){c()}),[s]);var d=a.opGet(s)[1];return tn((function(){null==i||i(d)}),(function(e){return c((function(t){var n=u(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(d)),[r+1,o]})),function(){a.opUpdate(s,(function(t){var n=u(t||[],2),i=n[0],o=void 0===i?0:i,c=n[1];return 0==o-1?(l((function(){!e&&a.opGet(s)||null==r||r(c,!1)})),null):[o-1,c]}))}}),[s]),d}var on={},an=new Map;var sn="token";function ln(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,o.useContext)(jt),i=r.cache.instanceId,a=r.container,s=n.salt,l=void 0===s?"":s,c=n.override,d=void 0===c?on:c,p=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=function(e,n){for(var r=$t,i=0;i<n.length;i+=1){var o=n[i];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Vt)||r.set(Vt,Object.assign.apply(Object,[{}].concat(st(t)))),r.get(Vt)}(0,t),g=qt(m),v=qt(d),y=h?qt(h):"",b=rn(sn,[l,e.id,g,v,y],(function(){var t,n=f?f(m,d,e):function(e,t,n,r){var i=ge(ge({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i}(m,d,e,p),r=ge({},n),i="";if(h){var o=u(Wt(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=o[0],i=o[1]}var a=zt(n,l);n._tokenKey=a,r._tokenKey=zt(r,l);var s=null!==(t=null==h?void 0:h.key)&&void 0!==t?t:a;n._themeKey=s,function(e){an.set(e,(an.get(e)||0)+1)}(s);var c="".concat("css","-").concat(Tt(a));return n._hashId=c,[n,c,r,i,(null==h?void 0:h.key)||""]}),(function(e){!function(e,t){an.set(e,(an.get(e)||0)-1);var n=Array.from(an.keys()),r=n.filter((function(e){return(an.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(It,'="').concat(e,'"]')).forEach((function(e){var n;e[At]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),an.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=u(e,4),n=t[0],r=t[3];if(h&&r){var o=Ce(r,Tt("css-variables-".concat(n._themeKey)),{mark:Lt,prepend:"queue",attachTo:a,priority:-999});o[At]=i,o.setAttribute(It,n._themeKey)}}));return b}const cn={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 un="comm",dn="rule",pn="decl",fn=Math.abs,hn=String.fromCharCode;function mn(e){return e.trim()}function gn(e,t,n){return e.replace(t,n)}function vn(e,t,n){return e.indexOf(t,n)}function yn(e,t){return 0|e.charCodeAt(t)}function bn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function wn(e,t){return t.push(e),e}function Tn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Sn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pn:return e.return=e.return||e.value;case un:return"";case"@keyframes":return e.return=e.value+"{"+Tn(e.children,r)+"}";case dn:if(!En(e.value=e.props.join(",")))return""}return En(n=Tn(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var kn=1,xn=1,On=0,Cn=0,Nn=0,In="";function Ln(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:kn,column:xn,length:a,return:"",siblings:s}}function An(){return Nn=Cn>0?yn(In,--Cn):0,xn--,10===Nn&&(xn=1,kn--),Nn}function Dn(){return Nn=Cn<On?yn(In,Cn++):0,xn++,10===Nn&&(xn=1,kn++),Nn}function jn(){return yn(In,Cn)}function Pn(){return Cn}function Rn(e,t){return bn(In,e,t)}function Mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fn(e){return mn(Rn(Cn-1,Bn(91===e?e+2:40===e?e+1:e)))}function $n(e){for(;(Nn=jn())&&Nn<33;)Dn();return Mn(e)>2||Mn(Nn)>3?"":" "}function Vn(e,t){for(;--t&&Dn()&&!(Nn<48||Nn>102||Nn>57&&Nn<65||Nn>70&&Nn<97););return Rn(e,Pn()+(t<6&&32==jn()&&32==Dn()))}function Bn(e){for(;Dn();)switch(Nn){case e:return Cn;case 34:case 39:34!==e&&39!==e&&Bn(Nn);break;case 40:41===e&&Bn(e);break;case 92:Dn()}return Cn}function qn(e,t){for(;Dn()&&e+Nn!==57&&(e+Nn!==84||47!==jn()););return"/*"+Rn(t,Cn-1)+"*"+hn(47===e?e:Dn())}function zn(e){for(;!Mn(jn());)Dn();return Rn(e,Cn)}function Gn(e){return function(e){return In="",e}(Qn("",null,null,null,[""],e=function(e){return kn=xn=1,On=En(In=e),Cn=0,[]}(e),0,[0],e))}function Qn(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=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=Dn()){case 40:if(108!=h&&58==yn(S,d-1)){-1!=vn(S+=gn(Fn(y),"&","&\f"),"&\f",fn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Fn(y);break;case 9:case 10:case 13:case 32:S+=$n(h);break;case 92:S+=Vn(Pn()-1,7);continue;case 47:switch(jn()){case 42:case 47:wn(Hn(qn(Dn(),Pn()),t,n,l),l),5!=Mn(h||1)&&5!=Mn(jn()||1)||!En(S)||" "===bn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=En(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=gn(S,/\f/g,"")),f>0&&(En(S)-d||0===m&&47===h)&&wn(f>32?Kn(S+";",r,n,d-1,l):Kn(gn(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(wn(T=Un(S,t,n,c,u,i,s,b,E=[],w=[],d,o),o),123===y)if(0===u)Qn(S,t,T,T,E,o,d,s,w);else switch(99===p&&110===yn(S,3)?100:p){case 100:case 108:case 109:case 115:Qn(e,T,T,r&&wn(Un(e,T,T,0,0,i,s,b,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:Qn(S,T,T,T,[""],w,0,s,w)}}c=u=f=0,m=v=1,b=S="",d=a;break;case 58:d=1+En(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==An())continue;switch(S+=hn(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(En(S)-1)*v,v=1;break;case 64:45===jn()&&(S+=Fn(Dn())),p=jn(),u=d=En(b=S+=zn(Pn())),y++;break;case 45:45===h&&2==En(S)&&(m=0)}}return o}function Un(e,t,n,r,i,o,a,s,l,c,u,d){for(var p=i-1,f=0===i?o:[""],h=function(e){return e.length}(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=bn(e,p+1,p=fn(g=a[m])),E=e;y<h;++y)(E=mn(g>0?f[y]+" "+b:gn(b,/&\f/g,f[y])))&&(l[v++]=E);return Ln(e,t,n,0===i?dn:s,l,c,u,d)}function Hn(e,t,n,r){return Ln(e,t,n,un,hn(Nn),bn(e,2,-2),0,r)}function Kn(e,t,n,r,i){return Ln(e,t,n,pn,bn(e,0,r),bn(e,r+1,-1),r,i)}var Wn,Yn="data-ant-cssinjs-cache-path",Xn="_FILE_STYLE__",Jn=!0;var Zn="_multi_value_";function er(e){return Tn(Gn(e),Sn).replace(/\{%%%\:[^;];}/g,";")}var tr=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),p=n.transformers,f=void 0===p?[]:p,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]);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 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"!==d(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===d(e)&&e&&("_skip_check_"in e||Zn in e)}(r)){var p;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;cn[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!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===d(r)&&null!=r&&r[Zn]&&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(st(n.slice(1))).join(" ")}));return o.join(",")}("&"===y?"":t,s,c):!i||s||"&"!==y&&""!==y||(y="",b=!0);var E=u(e(r,n,{root:b,injectHash:v,parentSelectors:[].concat(st(a),[y])}),2),w=E[0],T=E[1];m=ge(ge({},m),T),h+="".concat(y).concat(w)}}))}})),i?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):h="{".concat(h,"}"),[h,m]};function nr(e,t){return Tt("".concat(e.join("%")).concat(t))}function rr(){return null}var ir="style";function or(e,t){var n=e.token,r=e.path,a=e.hashId,s=e.layer,l=e.nonce,c=e.clientOnly,d=e.order,p=void 0===d?0:d,h=o.useContext(jt),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=h.layer,k=n._tokenKey,x=[k];S&&x.push("layer"),x.push.apply(x,st(r));var O=Gt,C=rn(ir,x,(function(){var e=x.join("|");if(function(e){return function(){if(!Wn&&(Wn={},ve())){var e=document.createElement("div");e.className=Yn,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];Wn[n]=r}));var n,r=document.querySelector("style[".concat(Yn,"]"));r&&(Jn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Wn[e]}(e)){var n=function(e){var t=Wn[e],n=null;if(t&&ve())if(Jn)n=Xn;else{var r=document.querySelector("style[".concat(Lt,'="').concat(Wn[e],'"]'));r?n=r.innerHTML:delete Wn[e]}return[n,t]}(e),i=u(n,2),o=i[0],l=i[1];if(o)return[o,k,l,{},c,p]}var d=t(),f=u(tr(d,{hashId:a,hashPriority:v,layer:S?s:void 0,path:r.join("-"),transformers:E,linters:w}),2),h=f[0],m=f[1],g=er(h),y=nr(x,g);return[g,k,y,m,c,p]}),(function(e,t){var n=u(e,3)[2];(t||m)&&Gt&&Oe(n,{mark:Lt})}),(function(e){var t=u(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(O&&n!==Xn){var o={mark:Lt,prepend:!S&&"queue",attachTo:y,priority:p},a="function"==typeof l?l():l;a&&(o.csp={nonce:a});var s=[],c=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?s.push(e):c.push(e)})),s.forEach((function(e){Ce(er(i[e]),"_layer-".concat(e),ge(ge({},o),{},{prepend:!0}))}));var d=Ce(n,r,o);d[At]=T.instanceId,d.setAttribute(It,k),c.forEach((function(e){Ce(er(i[e]),"_effect-".concat(e),o)}))}})),_=u(C,3),N=_[0],I=_[1],L=_[2];return function(e){var t,n;return t=b&&!O&&g?o.createElement("style",i({},(f(n={},It,I),f(n,Lt,L),n),{dangerouslySetInnerHTML:{__html:N}})):o.createElement(rr,null),o.createElement(o.Fragment,null,t,e)}}var ar="cssVar";var sr;f(sr={},ir,(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],d=(n||{}).plain;if(l)return null;var p=i,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return p=Ut(i,o,a,f,d),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ut(er(s[e]),o,"_effect-".concat(e),f,d);e.startsWith("@layer")?p=n+p:p+=n}})),[c,a,p]})),f(sr,sn,(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,Ut(o,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),f(sr,ar,(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,Ut(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var lr=function(){function e(t,n){xt(this,e),f(this,"name",void 0),f(this,"style",void 0),f(this,"_keyframe",!0),this.name=t,this.style=n}return Ct(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 cr=lr;function ur(e){return e.notSplit=!0,e}function dr(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function pr(e){var t=o.useRef(!1),n=u(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function fr(e){return void 0!==e}function hr(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=u(pr((function(){return fr(i)?i:fr(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],d=void 0!==i?i:l,p=a?a(d):d,f=dr(o),h=u(pr([d]),2),m=h[0],g=h[1];return Jt((function(){var e=m[0];l!==e&&f(l,e)}),[m]),Jt((function(){fr(i)||c(i)}),[i]),[p,dr((function(e,t){c(e,t),g([d],t)}))]}ur(["borderTop","borderBottom"]),ur(["borderTop"]),ur(["borderBottom"]),ur(["borderLeft","borderRight"]),ur(["borderLeft"]),ur(["borderRight"]);var mr=function(e,t){"function"==typeof e?e(t):"object"===d(e)&&e&&"current"in e&&(e.current=t)},gr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){mr(t,e)}))}},vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return St((function(){return gr.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},yr=function(e){var t,n,r=(0,pt.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===pt.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===pt.ForwardRef)};Number(o.version.split(".")[0]),"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const br={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Er=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}},wr=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"}}}),Tr=(e,t,n)=>{const{fontFamily:r,fontSize:i}=e,o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o;return{[a]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Sr=e=>({outline:`${Qt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),kr=e=>({"&:focus-visible":Object.assign({},Sr(e))}),xr={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"},Or=Object.assign(Object.assign({},xr),{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 Cr=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),x(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="#"+x(this.r,this.g,this.b,!1),t=0,n=Object.entries(_);t<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const _r=(e,t)=>new Cr(e).setAlpha(t).toRgbString(),Nr=(e,t)=>new Cr(e).darken(t).toHexString(),Ir=e=>{const t=B(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]}},Lr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:_r(r,.88),colorTextSecondary:_r(r,.65),colorTextTertiary:_r(r,.45),colorTextQuaternary:_r(r,.25),colorFill:_r(r,.15),colorFillSecondary:_r(r,.06),colorFillTertiary:_r(r,.04),colorFillQuaternary:_r(r,.02),colorBgLayout:Nr(n,4),colorBgContainer:Nr(n,0),colorBgElevated:Nr(n,0),colorBgSpotlight:_r(r,.85),colorBgBlur:"transparent",colorBorder:Nr(n,15),colorBorderSecondary:Nr(n,6)}};function Ar(e){return(e+8)/e}const Dr=(jr=function(e){const t=Object.keys(xr).map((t=>{const n=B(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,d=n(l),p=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: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],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 Cr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Ir,generateNeutralColorPalettes:Lr})),(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:Ar(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))},Pr=Array.isArray(jr)?jr:[jr],Ft.has(Pr)||Ft.set(Pr,new Mt(Pr)),Ft.get(Pr));var jr,Pr;const Rr={token:Or,override:{override:Or},hashed:!0},Mr=a().createContext(Rr);function Fr(e){return e>=0&&e<=255}const $r=function(e,t){const{r:n,g:r,b:i,a:o}=new Cr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Cr(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(Fr(t)&&Fr(o)&&Fr(c))return new Cr({r:t,g:o,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Cr({r:n,g:r,b:i,a:1}).toRgbString()};function Vr(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(Or).forEach((e=>{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:$r(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:$r(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:$r(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:$r(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 Cr("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Cr("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Cr("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 Br=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const qr={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},zr={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Gr={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Qr=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Br(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=Vr(a),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,i=Br(n,["theme"]);let o=i;r&&(o=Qr(Object.assign(Object.assign({},a),i),{override:i},r)),a[t]=o})),a};function Ur(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=a().useContext(Mr),o=`5.15.4-${t||""}`,s=n||Dr,[l,c,u]=ln(s,[Or,e],{salt:o,override:r,getComputedToken:Qr,formatToken:Vr,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:qr,ignore:zr,preserve:Gr}});return[s,u,t?c:"",l,i]}function Hr(e){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hr(e)}function Kr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kr=function(){return!!e})()}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wr(e)}function Xr(e,t,n){return t=Hr(t),Yr(e,Kr()?Reflect.construct(t,n||[],Hr(e).constructor):t.apply(e,n))}function Jr(e,t){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jr(e,t)}function Zr(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&&Jr(e,t)}const ei=Ct((function e(){xt(this,e)}));let ti=function(e){function t(e){var n;return xt(this,t),(n=Xr(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Zr(t,e),Ct(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}}])}(ei);const ni="CALC_UNIT";function ri(e){return"number"==typeof e?`${e}${ni}`:e}let ii=function(e){function t(e){var n;return xt(this,t),(n=Xr(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ri(e):"string"==typeof e&&(n.result=e),n}return Zr(t,e),Ct(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} + ${ri(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} - ${ri(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(`${ni}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(ei);const oi="undefined"!=typeof CSSINJS_STATISTIC;let ai=!0;function si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!oi)return Object.assign.apply(Object,[{}].concat(t));ai=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ai=!0,r}const li={};function ci(){}const ui=(e,t,n)=>{var r;return"function"==typeof n?n(si(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},di=(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 pi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[a]=i,s=i.join("-");return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[l,c,u,d,p]=Ur(),{getPrefixCls:f,iconPrefixCls:h,csp:m}=(0,o.useContext)(ct),g=f(),v=p?"css":"js",y=(e=>{const t="css"===e?ii:ti;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;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Qt(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Qt(e))).join(",")})`}}}(v),w={theme:l,token:d,hashId:u,nonce:()=>null==m?void 0:m.nonce,clientOnly:r.clientOnly,order:r.order||-999};or(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":wr(d)}])),((e,t)=>{const[n,r]=Ur();or({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=or(Object.assign(Object.assign({},w),{path:[s,e,h]}),(()=>{if(!1===r.injectStyle)return[];const{token:o,flush:s}=(e=>{let t,n=e,r=ci;return oi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ai&&t.add(n),e[n])}),r=(e,n)=>{var r;li[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=li[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(d),l=ui(a,c,n),f=`.${e}`,m=di(a,c,l,{deprecatedTokens:r.deprecatedTokens});p&&Object.keys(l).forEach((e=>{l[e]=`var(${Ht(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,p.prefix))})`}));const v=si(o,{componentCls:f,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:y,max:b,min:E},p?l:m),w=t(v,{hashId:u,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return s(a,m),[!1===r.resetStyle?null:Tr(v,e,i),w]}));return[T,u]}}const fi=(e,t,n,r)=>{const i=pi(e,t,n,r),s=((e,t,n)=>{function r(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:i={},injectStyle:s=!0}=null!=n?n:{},l={[r("zIndexPopup")]:!0};Object.keys(i).forEach((e=>{l[r(e)]=i[e]}));const c=i=>{let{rootCls:a,cssVar:s}=i;const[,c]=Ur();return function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,s=e.token,l=e.scope,c=void 0===l?"":l,d=(0,o.useContext)(jt),p=d.cache.instanceId,f=d.container,h=s._tokenKey,m=[].concat(st(e.path),[n,c,h]),g=rn(ar,m,(function(){var e=t(),o=u(Wt(e,n,{prefix:r,unitless:i,ignore:a,scope:c}),2),s=o[0],l=o[1];return[s,l,nr(m,l),n]}),(function(e){var t=u(e,3)[2];Gt&&Oe(t,{mark:Lt})}),(function(e){var t=u(e,3),r=t[1],i=t[2];if(r){var o=Ce(r,i,{mark:Lt,prepend:"queue",attachTo:f,priority:-999});o[At]=p,o.setAttribute(It,n)}}))}({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},qr),l),ignore:zr,token:c,scope:a},(()=>{const i=ui(e,c,t),o=di(e,c,i,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(i).forEach((e=>{o[r(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=Ur();return[r=>s&&n?a().createElement(a().Fragment,null,a().createElement(c,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=i(e,t),[r,o]=s(t);return[r,n,o]}},hi=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}}}},mi=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:p,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:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:i,lineHeight:Qt(d),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:p,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}}}}},hi(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Qt(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}}},gi=fi("Layout",(e=>[mi(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 vi=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function yi(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef(((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r))))}const bi=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,s=vi(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=o.useContext(ct),c=l("layout",n),[u,d,p]=gi(c),f=r?`${c}-${r}`:c;return u(o.createElement(a,Object.assign({className:g()(n||f,i,d,p),ref:t},s)))})),Ei=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(ct),[r,i]=o.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=e,f=lt(vi(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:m}=o.useContext(ct),v=h("layout",a),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||ft(t).some((e=>e.type===wt))}(r,c,u),[b,E,w]=gi(v),T=g()(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:"rtl"===n},null==m?void 0:m.className,s,l,E,w),S=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(st(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(o.createElement(dt.Provider,{value:S},o.createElement(d,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},null==m?void 0:m.style),p)},f),c)))})),wi=yi({tagName:"div",displayName:"Layout"})(Ei),Ti=yi({suffixCls:"header",tagName:"header",displayName:"Header"})(bi),Si=yi({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(bi),ki=yi({suffixCls:"content",tagName:"main",displayName:"Content"})(bi),xi=wi;xi.Header=Ti,xi.Footer=Si,xi.Content=ki,xi.Sider=wt,xi._InternalSiderContext=yt;const Oi=xi,Ci=window.ReactDOM;var _i=n.n(Ci);function Ni(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ii(e){var t,n=function(e){return e&&"object"===d(e)&&Ni(e.nativeElement)?e.nativeElement:Ni(e)?e:null}(e);return n||(e instanceof a().Component?null===(t=_i().findDOMNode)||void 0===t?void 0:t.call(_i(),e):null)}var Li=o.createContext(null),Ai=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__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Di="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ji=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Pi="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ji):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Ri=["top","right","bottom","left","width","height","size","weight"],Mi="undefined"!=typeof MutationObserver,Fi=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function i(){t&&(t=!1,e()),n&&a()}function o(){Pi(i)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Di&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Mi?(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(){Di&&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;Ri.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}(),$i=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Vi=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ji},Bi=Ui(0,0,0,0);function qi(e){return parseFloat(e)||0}function zi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+qi(e["border-"+n+"-width"])}),0)}var Gi="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Vi(e).SVGGraphicsElement}:function(e){return e instanceof Vi(e).SVGElement&&"function"==typeof e.getBBox};function Qi(e){return Di?Gi(e)?function(e){var t=e.getBBox();return Ui(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Bi;var r=Vi(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=qi(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=qi(r.width),l=qi(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=zi(r,"left","right")+o),Math.round(l+a)!==n&&(l-=zi(r,"top","bottom")+a)),!function(e){return e===Vi(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Ui(i.left,i.top,s,l)}(e):Bi}function Ui(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Hi=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ui(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Qi(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ki=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return $i(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);$i(this,{target:e,contentRect:n})},Wi=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ai,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Vi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Hi(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Vi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ki(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yi="undefined"!=typeof WeakMap?new WeakMap:new Ai,Xi=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=Fi.getInstance(),r=new Wi(t,n,this);Yi.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Xi.prototype[e]=function(){var t;return(t=Yi.get(this))[e].apply(t,arguments)}}));const Ji=void 0!==ji.ResizeObserver?ji.ResizeObserver:Xi;var Zi=new Map,eo=new Ji((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Zi.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function to(e){var t=Kr();return function(){var n,r=Hr(e);if(t){var i=Hr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yr(this,n)}}var no=function(e){Zr(n,e);var t=to(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function ro(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),s=o.useContext(Li),l="function"==typeof n,c=l?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&o.isValidElement(c)&&yr(c),f=p?c.ref:null,h=vr(f,i),m=function(){var e;return Ii(i.current)||(i.current&&"object"===d(i.current)?Ii(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Ii(a.current)};o.useImperativeHandle(t,(function(){return m()}));var g=o.useRef(e);g.current=e;var v=o.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,a=i.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(o),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=f;var h=l===Math.round(o)?o:l,m=c===Math.round(a)?a:c,v=ge(ge({},f),{},{offsetWidth:h,offsetHeight:m});null==s||s(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e,t,n=m();return n&&!r&&(e=n,t=v,Zi.has(e)||(Zi.set(e,new Set),eo.observe(e)),Zi.get(e).add(t)),function(){return function(e,t){Zi.has(e)&&(Zi.get(e).delete(t),Zi.get(e).size||(eo.unobserve(e),Zi.delete(e)))}(n,v)}}),[i.current,r]),o.createElement(no,{ref:a},p?o.cloneElement(c,{ref:h}):c)}const io=o.forwardRef(ro);function oo(e,t){var n=e.children;return("function"==typeof n?[n]:ft(n)).map((function(n,r){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(io,i({},e,{key:a,ref:0===r?t:void 0}),n)}))}var ao=o.forwardRef(oo);ao.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(Li),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(Li.Provider,{value:s},t)};const so=ao;var lo=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],co=void 0;function uo(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,s=e.renderItem,l=e.responsive,c=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,p=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,lo),T=l&&!v;function S(e){u(d,e)}o.useEffect((function(){return function(){S(null)}}),[]);var k,x=s&&a!==co?s(a):m;r||(k={opacity:T?0:1,height:T?0:co,overflowY:T?"hidden":co,order:l?y:co,pointerEvents:T?"none":co,position:T?"absolute":co});var O={};T&&(O["aria-hidden"]=!0);var C=o.createElement(E,i({className:g()(!r&&n,p),style:ge(ge({},k),f)},O,w,{ref:t}),x);return l&&(C=o.createElement(so,{onResize:function(e){S(e.offsetWidth)},disabled:c},C)),C}var po=o.forwardRef(uo);po.displayName="Item";const fo=po;var ho=function(e){return+setTimeout(e,16)},mo=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ho=function(e){return window.requestAnimationFrame(e)},mo=function(e){return window.cancelAnimationFrame(e)});var go=0,vo=new Map;function yo(e){vo.delete(e)}var bo=function(e){var t=go+=1;return function n(r){if(0===r)yo(t),e();else{var i=ho((function(){n(r-1)}));vo.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};bo.cancel=function(e){var t=vo.get(e);return yo(e),mo(t)};const Eo=bo;function wo(e,t){var n=u(o.useState(t),2),r=n[0],i=n[1];return[r,dr((function(t){e((function(){i(t)}))}))]}var To=a().createContext(null),So=["component"],ko=["className"],xo=["className"],Oo=function(e,t){var n=o.useContext(To);if(!n){var r=e.component,a=void 0===r?"div":r,s=h(e,So);return o.createElement(a,i({},s,{ref:t}))}var l=n.className,c=h(n,ko),u=e.className,d=h(e,xo);return o.createElement(To.Provider,{value:null},o.createElement(fo,i({ref:t,className:g()(l,u)},c,d)))},Co=o.forwardRef(Oo);Co.displayName="RawItem";const _o=Co;var No=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Io="responsive",Lo="invalidate";function Ao(e){return"+ ".concat(e.length," ...")}function Do(e,t){var n,r=e.prefixCls,a=void 0===r?"rc-overflow":r,s=e.data,l=void 0===s?[]:s,c=e.renderItem,d=e.renderRawItem,p=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,x=void 0===k?"div":k,O=e.itemComponent,C=e.onVisibleChange,_=h(e,No),N="full"===v,I=(n=o.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Eo(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Ci.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),L=u(wo(I,null),2),A=L[0],D=L[1],j=A||0,P=u(wo(I,new Map),2),R=P[0],M=P[1],F=u(wo(I,0),2),$=F[0],V=F[1],B=u(wo(I,0),2),q=B[0],z=B[1],G=u(wo(I,0),2),Q=G[0],U=G[1],H=u((0,o.useState)(null),2),K=H[0],W=H[1],Y=u((0,o.useState)(null),2),X=Y[0],J=Y[1],Z=o.useMemo((function(){return null===X&&N?Number.MAX_SAFE_INTEGER:X||0}),[X,A]),ee=u((0,o.useState)(!1),2),te=ee[0],ne=ee[1],re="".concat(a,"-item"),ie=Math.max($,q),oe=E===Io,ae=l.length&&oe,se=E===Lo,le=ae||"number"==typeof E&&l.length>E,ce=(0,o.useMemo)((function(){var e=l;return ae?e=null===A&&N?l:l.slice(0,Math.min(l.length,j/m)):"number"==typeof E&&(e=l.slice(0,E)),e}),[l,m,A,E,ae]),ue=(0,o.useMemo)((function(){return ae?l.slice(Z+1):l.slice(ce.length)}),[l,ce,ae,Z]),de=(0,o.useCallback)((function(e,t){var n;return"function"==typeof p?p(e):null!==(n=p&&(null==e?void 0:e[p]))&&void 0!==n?n:t}),[p]),pe=(0,o.useCallback)(c||function(e){return e},[c]);function fe(e,t,n){(X!==e||void 0!==t&&t!==K)&&(J(e),n||(ne(e<l.length-1),null==C||C(e)),void 0!==t&&W(t))}function he(e,t){M((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return R.get(de(ce[e],e))}Zt((function(){if(j&&"number"==typeof ie&&ce){var e=Q,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var i=me(r);if(N&&(i=i||0),void 0===i){fe(r-1,void 0,!0);break}if(e+=i,0===n&&e<=j||r===n-1&&e+me(n)<=j){fe(n,null);break}if(e+ie>j){fe(r-1,e-i-Q+q);break}}S&&me(0)+Q>j&&W(null)}}),[j,R,q,Q,de,ce]);var ve=te&&!!ue.length,ye={};null!==K&&ae&&(ye={position:"absolute",left:K,top:0});var be,Ee={prefixCls:re,responsive:ae,component:O,invalidate:se},we=d?function(e,t){var n=de(e,t);return o.createElement(To.Provider,{key:n,value:ge(ge({},Ee),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=Z})},d(e,t))}:function(e,t){var n=de(e,t);return o.createElement(fo,i({},Ee,{order:t,key:n,item:e,renderItem:pe,itemKey:n,registerSize:he,display:t<=Z}))},Te={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){z(t),V(q)},display:ve};if(T)T&&(be=o.createElement(To.Provider,{value:ge(ge({},Ee),Te)},T(ue)));else{var Se=w||Ao;be=o.createElement(fo,i({},Ee,Te),"function"==typeof Se?Se(ue):Se)}var ke=o.createElement(x,i({className:g()(!se&&a,b),style:y,ref:t},_),ce.map(we),le?be:null,S&&o.createElement(fo,i({},Ee,{responsive:oe,responsiveDisabled:!ae,order:Z,className:"".concat(re,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:ye}),S));return oe&&(ke=o.createElement(so,{onResize:function(e,t){D(t.clientWidth)},disabled:!ae},ke)),ke}var jo=o.forwardRef(Do);jo.displayName="Overflow",jo.Item=_o,jo.RESPONSIVE=Io,jo.INVALIDATE=Lo;const Po=jo;var Ro=o.createContext(null);function Mo(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Fo(e){return Mo(o.useContext(Ro),e)}var $o=["children","locked"],Vo=o.createContext(null);function Bo(e){var t=e.children,n=e.locked,r=h(e,$o),i=o.useContext(Vo),a=St((function(){return e=r,t=ge({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,r],(function(e,t){return!(n||e[0]===t[0]&&kt(e[1],t[1],!0))}));return o.createElement(Vo.Provider,{value:a},t)}var qo=[],zo=o.createContext(null);function Go(){return o.useContext(zo)}var Qo=o.createContext(qo);function Uo(e){var t=o.useContext(Qo);return o.useMemo((function(){return void 0!==e?[].concat(st(t),[e]):t}),[t,e])}var Ho=o.createContext(null);const Ko=o.createContext({}),Wo=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 Yo(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Wo(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 Xo={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>=Xo.F1&&t<=Xo.F12)return!1;switch(t){case Xo.ALT:case Xo.CAPS_LOCK:case Xo.CONTEXT_MENU:case Xo.CTRL:case Xo.DOWN:case Xo.END:case Xo.ESC:case Xo.HOME:case Xo.INSERT:case Xo.LEFT:case Xo.MAC_FF_META:case Xo.META:case Xo.NUMLOCK:case Xo.NUM_CENTER:case Xo.PAGE_DOWN:case Xo.PAGE_UP:case Xo.PAUSE:case Xo.PRINT_SCREEN:case Xo.RIGHT:case Xo.SHIFT:case Xo.UP:case Xo.WIN_KEY:case Xo.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Xo.ZERO&&e<=Xo.NINE)return!0;if(e>=Xo.NUM_ZERO&&e<=Xo.NUM_MULTIPLY)return!0;if(e>=Xo.A&&e<=Xo.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Xo.SPACE:case Xo.QUESTION_MARK:case Xo.NUM_PLUS:case Xo.NUM_MINUS:case Xo.NUM_PERIOD:case Xo.NUM_DIVISION:case Xo.SEMICOLON:case Xo.DASH:case Xo.EQUALS:case Xo.COMMA:case Xo.PERIOD:case Xo.SLASH:case Xo.APOSTROPHE:case Xo.SINGLE_QUOTE:case Xo.OPEN_SQUARE_BRACKET:case Xo.BACKSLASH:case Xo.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Jo=Xo;var Zo=Jo.LEFT,ea=Jo.RIGHT,ta=Jo.UP,na=Jo.DOWN,ra=Jo.ENTER,ia=Jo.ESC,oa=Jo.HOME,aa=Jo.END,sa=[ta,na,Zo,ea];function la(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=st(e.querySelectorAll("*")).filter((function(e){return Yo(e,t)}));return Yo(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function ca(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=la(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 ua=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(Mo(t,e),"']"));o&&(n.add(o),i.set(o,e),r.set(e,o))})),{elements:n,key2element:r,element2key:i}};var da="__RC_UTIL_PATH_SPLIT__",pa=function(e){return e.join(da)},fa="rc-menu-more";function ha(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var ma=Math.random().toFixed(5).toString().slice(2),ga=0;function va(e,t,n,r){var i=o.useContext(Vo),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function ya(e){var t=o.useContext(Vo),n=t.mode,r=t.rtl,i=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*i}:{paddingLeft:e*i}}function ba(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=o.createElement(n,ge({},r)):"boolean"!=typeof n&&(t=n),t||i||null)}var Ea=["item"];function wa(e){var t=e.item,n=h(e,Ea);return Object.defineProperty(n,"item",{get:function(){return Re(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Ta=["title","attribute","elementRef"],Sa=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ka=["active"],xa=function(e){Zr(n,e);var t=to(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,a=lt(h(e,Ta),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Re(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(Po.Item,i({},n,{title:"string"==typeof t?t:void 0},a,{ref:r}))}}]),n}(o.Component),Oa=o.forwardRef((function(e,t){var n=e.style,r=e.className,a=e.eventKey,s=(e.warnKey,e.disabled),l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,p=e.onMouseLeave,m=e.onClick,v=e.onKeyDown,y=e.onFocus,b=h(e,Sa),E=Fo(a),w=o.useContext(Vo),T=w.prefixCls,S=w.onItemClick,k=w.disabled,x=w.overflowDisabled,O=w.itemIcon,C=w.selectedKeys,_=w.onActive,N=o.useContext(Ko)._internalRenderMenuItem,I="".concat(T,"-item"),L=o.useRef(),A=o.useRef(),D=k||s,j=vr(t,A),P=Uo(a),R=function(e){return{key:a,keyPath:st(P).reverse(),item:L.current,domEvent:e}},M=l||O,F=va(a,D,d,p),$=F.active,V=h(F,ka),B=C.includes(a),q=ya(P.length),z={};"option"===e.role&&(z["aria-selected"]=B);var G=o.createElement(xa,i({ref:L,elementRef:j,role:null===u?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&E?null:E},b,V,z,{component:"li","aria-disabled":s,style:ge(ge({},q),n),className:g()(I,f(f(f({},"".concat(I,"-active"),$),"".concat(I,"-selected"),B),"".concat(I,"-disabled"),D),r),onClick:function(e){if(!D){var t=R(e);null==m||m(wa(t)),S(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===Jo.ENTER){var t=R(e);null==m||m(wa(t)),S(t)}},onFocus:function(e){_(a),null==y||y(e)}}),c,o.createElement(ba,{props:ge(ge({},e),{},{isSelected:B}),icon:M}));return N&&(G=N(G,e,{selected:B})),G}));function Ca(e,t){var n=e.eventKey,r=Go(),a=Uo(n);return o.useEffect((function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}}),[a]),r?null:o.createElement(Oa,i({},e,{ref:t}))}const _a=o.forwardRef(Ca);var Na=["className","children"],Ia=function(e,t){var n=e.className,r=e.children,a=h(e,Na),s=o.useContext(Vo),l=s.prefixCls,c=s.mode,u=s.rtl;return o.createElement("ul",i({className:g()(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},a,{"data-menu-list":!0,ref:t}),r)},La=o.forwardRef(Ia);La.displayName="SubMenuList";const Aa=La;function Da(e,t){return ft(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,s=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a;null==s&&(s="tmp_key-".concat([].concat(st(t),[n]).join("-")));var l={key:s,eventKey:s};return o.cloneElement(e,l)}return e}))}const ja=o.createContext(null);var Pa=[];var Ra="rc-util-locker-".concat(Date.now()),Ma=0;function Fa(e){var t=!!e,n=u(o.useState((function(){return Ma+=1,"".concat(Ra,"_").concat(Ma)})),1)[0];Zt((function(){if(t){var e=(i=document.body,"undefined"!=typeof document&&i&&i 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,i,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";Ce("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=l,i=c}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,f=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Oe(t),{width:p,height:f}}(i):{width:0,height:0}).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ce("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Oe(n);var i;return function(){Oe(n)}}),[t,n])}var $a=!1,Va=function(e){return!1!==e&&(ve()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ba=o.forwardRef((function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),s=void 0===a||a,l=e.children,c=u(o.useState(n),2),d=c[0],p=c[1],f=d||n;o.useEffect((function(){(s||n)&&p(n)}),[n,s]);var h=u(o.useState((function(){return Va(i)})),2),m=h[0],g=h[1];o.useEffect((function(){var e=Va(i);g(null!=e?e:null)}));var v=function(e){var t=u(o.useState((function(){return ve()?document.createElement("div"):null})),1)[0],n=o.useRef(!1),r=o.useContext(ja),i=u(o.useState(Pa),2),a=i[0],s=i[1],l=r||(n.current?void 0:function(e){s((function(t){return[e].concat(st(t))}))});function c(){t.parentElement||document.body.appendChild(t),n.current=!0}function d(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Zt((function(){return e?r?r(c):c():d(),d}),[e]),Zt((function(){a.length&&(a.forEach((function(e){return e()})),s(Pa))}),[a]),[t,l]}(f&&!m),y=u(v,2),b=y[0],E=y[1],w=null!=m?m:b;Fa(r&&n&&ve()&&(w===b||w===document.body));var T=null;l&&yr(l)&&t&&(T=l.ref);var S=vr(T,t);if(!f||!ve()||void 0===m)return null;var k=!1===w||$a,x=l;return t&&(x=o.cloneElement(l,{ref:S})),o.createElement(ja.Provider,{value:E},k?x:(0,Ci.createPortal)(x,w))}));const qa=Ba;var za=0,Ga=ge({},o).useId;const Qa=Ga?function(e){var t=Ga();return e||t}:function(e){var t=u(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=za;za+=1,r("rc_unique_".concat(e))}),[]),e||n},Ua=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 Ha=o.createContext({}),Ka=function(e){Zr(n,e);var t=to(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);const Wa=Ka;var Ya="none",Xa="appear",Ja="enter",Za="leave",es="none",ts="prepare",ns="start",rs="active",is="end",os="prepared";function as(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 ss,ls,cs,us=(ss=ve(),ls="undefined"!=typeof window?window:{},cs={animationend:as("Animation","AnimationEnd"),transitionend:as("Transition","TransitionEnd")},ss&&("AnimationEvent"in ls||delete cs.animationend.animation,"TransitionEvent"in ls||delete cs.transitionend.transition),cs),ds={};if(ve()){var ps=document.createElement("div");ds=ps.style}var fs={};function hs(e){if(fs[e])return fs[e];var t=us[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in ds)return fs[e]=t[o],fs[e]}return""}var ms=hs("animationend"),gs=hs("transitionend"),vs=!(!ms||!gs),ys=ms||"animationend",bs=gs||"transitionend";function Es(e,t){return e?"object"===d(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const ws=ve()?o.useLayoutEffect:o.useEffect;var Ts=[ts,ns,rs,is],Ss=[ts,os],ks=!1;function xs(e){return e===rs||e===is}function Os(e,t,n,r){var i,a,s,l,c=r.motionEnter,d=void 0===c||c,p=r.motionAppear,h=void 0===p||p,m=r.motionLeave,g=void 0===m||m,v=r.motionDeadline,y=r.motionLeaveImmediately,b=r.onAppearPrepare,E=r.onEnterPrepare,w=r.onLeavePrepare,T=r.onAppearStart,S=r.onEnterStart,k=r.onLeaveStart,x=r.onAppearActive,O=r.onEnterActive,C=r.onLeaveActive,_=r.onAppearEnd,N=r.onEnterEnd,I=r.onLeaveEnd,L=r.onVisibleChanged,A=u(pr(),2),D=A[0],j=A[1],P=(i=Ya,a=o.useReducer((function(e){return e+1}),0),s=u(a,2)[1],l=o.useRef(i),[dr((function(){return l.current})),dr((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),R=u(P,2),M=R[0],F=R[1],$=u(pr(null),2),V=$[0],B=$[1],q=M(),z=(0,o.useRef)(!1),G=(0,o.useRef)(null);function Q(){return n()}var U=(0,o.useRef)(!1);function H(){F(Ya),B(null,!0)}var K=dr((function(e){var t=M();if(t!==Ya){var n=Q();if(!e||e.deadline||e.target===n){var r,i=U.current;t===Xa&&i?r=null==_?void 0:_(n,e):t===Ja&&i?r=null==N?void 0:N(n,e):t===Za&&i&&(r=null==I?void 0:I(n,e)),i&&!1!==r&&H()}}})),W=function(e){var t=(0,o.useRef)();function n(t){t&&(t.removeEventListener(bs,e),t.removeEventListener(ys,e))}return o.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(bs,e),r.addEventListener(ys,e),t.current=r)},n]}(K),Y=u(W,1)[0],X=function(e){switch(e){case Xa:return f(f(f({},ts,b),ns,T),rs,x);case Ja:return f(f(f({},ts,E),ns,S),rs,O);case Za:return f(f(f({},ts,w),ns,k),rs,C);default:return{}}},J=o.useMemo((function(){return X(q)}),[q]),Z=u(function(e,t,n){var r=u(pr(es),2),i=r[0],a=r[1],s=function(){var e=o.useRef(null);function t(){Eo.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Eo((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],d=l[1],p=t?Ss:Ts;return ws((function(){if(i!==es&&i!==is){var e=p.indexOf(i),t=p[e+1],r=n(i);r===ks?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){d()}}),[]),[function(){a(ts,!0)},i]}(q,!e,(function(e){if(e===ts){var t=J[ts];return t?t(Q()):ks}var n;return te in J&&B((null===(n=J[te])||void 0===n?void 0:n.call(J,Q(),null))||null),te===rs&&q!==Ya&&(Y(Q()),v>0&&(clearTimeout(G.current),G.current=setTimeout((function(){K({deadline:!0})}),v))),te===os&&H(),!0})),2),ee=Z[0],te=Z[1],ne=xs(te);U.current=ne,ws((function(){j(t);var n,r=z.current;z.current=!0,!r&&t&&h&&(n=Xa),r&&t&&d&&(n=Ja),(r&&!t&&g||!r&&y&&!t&&g)&&(n=Za);var i=X(n);n&&(e||i[ts])?(F(n),ee()):F(Ya)}),[t]),(0,o.useEffect)((function(){(q===Xa&&!h||q===Ja&&!d||q===Za&&!g)&&F(Ya)}),[h,d,g]),(0,o.useEffect)((function(){return function(){z.current=!1,clearTimeout(G.current)}}),[]);var re=o.useRef(!1);(0,o.useEffect)((function(){D&&(re.current=!0),void 0!==D&&q===Ya&&((re.current||D)&&(null==L||L(D)),re.current=!0)}),[D,q]);var ie=V;return J[ts]&&te===ns&&(ie=ge({transition:"none"},ie)),[q,te,ie,null!=D?D:t]}const Cs=function(e){var t=e;"object"===d(e)&&(t=e.transitionSupport);var n=o.forwardRef((function(e,n){var r=e.visible,i=void 0===r||r,a=e.removeOnLeave,s=void 0===a||a,l=e.forceRender,c=e.children,d=e.motionName,p=e.leavedClassName,h=e.eventProps,m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,o.useContext(Ha).motion),v=(0,o.useRef)(),y=(0,o.useRef)(),b=u(Os(m,i,(function(){try{return v.current instanceof HTMLElement?v.current:Ii(y.current)}catch(e){return null}}),e),4),E=b[0],w=b[1],T=b[2],S=b[3],k=o.useRef(S);S&&(k.current=!0);var x,O=o.useCallback((function(e){v.current=e,mr(n,e)}),[n]),C=ge(ge({},h),{},{visible:i});if(c)if(E===Ya)x=S?c(ge({},C),O):!s&&k.current&&p?c(ge(ge({},C),{},{className:p}),O):l||!s&&!p?c(ge(ge({},C),{},{style:{display:"none"}}),O):null;else{var _;w===ts?_="prepare":xs(w)?_="active":w===ns&&(_="start");var N=Es(d,"".concat(E,"-").concat(_));x=c(ge(ge({},C),{},{className:g()(Es(d,E),f(f({},N,N&&_),d,"string"==typeof d)),style:T}),O)}else x=null;return o.isValidElement(x)&&yr(x)&&(x.ref||(x=o.cloneElement(x,{ref:O}))),o.createElement(Wa,{ref:y},x)}));return n.displayName="CSSMotion",n}(vs);var _s="add",Ns="keep",Is="remove",Ls="removed";function As(e){var t;return ge(ge({},t=e&&"object"===d(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ds(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(As)}var js=["component","children","onVisibleChanged","onAllRemoved"],Ps=["status"],Rs=["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]:Cs,t=function(t){Zr(r,t);var n=to(r);function r(){var e;xt(this,r);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return f(Wr(e=n.call.apply(n,[this].concat(i))),"state",{keyEntities:[]}),f(Wr(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:ge(ge({},e),{},{status:Ls})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Ls})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Ct(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,a=r.component,s=r.children,l=r.onVisibleChanged,c=(r.onAllRemoved,h(r,js)),u=a||o.Fragment,d={};return Rs.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,o.createElement(u,c,n.map((function(n,r){var a=n.status,c=h(n,Ps),u=a===_s||a===Ns;return o.createElement(e,i({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){null==l||l(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return s(ge(ge({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=Ds(n),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Ds(e),a=Ds(t);o.forEach((function(e){for(var t=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===e.key){r<o&&(n=n.concat(a.slice(r,o).map((function(e){return ge(ge({},e),{},{status:_s})}))),r=o),n.push(ge(ge({},s),{},{status:Ns})),r+=1,t=!0;break}}t||n.push(ge(ge({},e),{},{status:Is}))})),r<i&&(n=n.concat(a.slice(r).map((function(e){return ge(ge({},e),{},{status:_s})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Is}))).forEach((function(t){t.key===e&&(t.status=Ns)}))})),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!==Ls||e.status!==Is}))}}}]),r}(o.Component);f(t,"defaultProps",{component:"div"})}(vs);const Ms=Cs;function Fs(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,p=void 0===d?0:d,f=o.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=p,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return o.createElement("div",{ref:f,className:g()("".concat(t,"-arrow"),s),style:h},l)}function $s(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,s=e.motion;return a?o.createElement(Ms,i({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:g()("".concat(t,"-mask"),n)})})):null}var Vs=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Bs=Vs;var qs=o.forwardRef((function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,s=e.style,l=e.target,c=e.onVisibleChanged,d=e.open,p=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,x=e.portal,O=e.zIndex,C=e.onMouseEnter,_=e.onMouseLeave,N=e.onPointerEnter,I=e.onPointerDownCapture,L=e.ready,A=e.offsetX,D=e.offsetY,j=e.offsetR,P=e.offsetB,R=e.onAlign,M=e.onPrepare,F=e.stretch,$=e.targetWidth,V=e.targetHeight,B="function"==typeof n?n():n,q=d||p,z=(null==S?void 0:S.length)>0,G=u(o.useState(!S||!z),2),Q=G[0],U=G[1];if(Zt((function(){!Q&&z&&l&&U(!0)}),[Q,z,l]),!Q)return null;var H="auto",K={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(L||!d){var W,Y=b.points,X=b.dynamicInset||(null===(W=b._experimental)||void 0===W?void 0:W.dynamicInset),J=X&&"r"===Y[0][1],Z=X&&"b"===Y[0][0];J?(K.right=j,K.left=H):(K.left=A,K.right=H),Z?(K.bottom=P,K.top=H):(K.top=D,K.bottom=H)}var ee={};return F&&(F.includes("height")&&V?ee.height=V:F.includes("minHeight")&&V&&(ee.minHeight=V),F.includes("width")&&$?ee.width=$:F.includes("minWidth")&&$&&(ee.minWidth=$)),d||(ee.pointerEvents="none"),o.createElement(x,{open:T||q,getContainer:S&&function(){return S(l)},autoDestroy:k},o.createElement($s,{prefixCls:a,open:d,zIndex:O,mask:m,motion:w}),o.createElement(so,{onResize:R,disabled:!d},(function(e){return o.createElement(Ms,i({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(a,"-hidden")},E,{onAppearPrepare:M,onEnterPrepare:M,visible:d,onVisibleChanged:function(e){var t;null==E||null===(t=E.onVisibleChanged)||void 0===t||t.call(E,e),c(e)}}),(function(n,i){var l=n.className,c=n.style,u=g()(a,l,r);return o.createElement("div",{ref:gr(e,t,i),className:u,style:ge(ge(ge(ge({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},K),ee),c),{},{boxSizing:"border-box",zIndex:O},s),onMouseEnter:C,onMouseLeave:_,onPointerEnter:N,onClick:h,onPointerDownCapture:I},v&&o.createElement(Fs,{prefixCls:a,arrow:v,arrowPos:y,align:b}),o.createElement(Bs,{cache:!d&&!f},B))}))})))}));const zs=qs;var Gs=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=yr(n),a=o.useCallback((function(e){mr(t,r?r(e):e)}),[r]),s=vr(a,n.ref);return i?o.cloneElement(n,{ref:s}):n}));const Qs=Gs,Us=o.createContext(null);function Hs(e){return e?Array.isArray(e)?e:[e]:[]}function Ks(){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 Ws(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ys(e){return e.ownerDocument.defaultView}function Xs(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Ys(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 Js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Zs(e){return Js(parseFloat(e),0)}function el(e,t){var n=ge({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Ys(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,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=Zs(o),m=Zs(a),g=Zs(s),v=Zs(l),y=Js(Math.round(c.width/p*1e3)/1e3),b=Js(Math.round(c.height/u*1e3)/1e3),E=(p-f-g-v)*y,w=(u-d-h-m)*b,T=h*b,S=m*b,k=g*y,x=v*y,O=0,C=0;if("clip"===r){var _=Zs(i);O=_*y,C=_*b}var N=c.x+k-O,I=c.y+T-C,L=N+c.width+2*O-k-x-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 tl(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 nl(e,t){var n=u(t||[],2),r=n[0],i=n[1];return[tl(e.width,r),tl(e.height,i)]}function rl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function il(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 ol(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 al=["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 sl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qa,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,d=t.hideAction,p=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,x=void 0===k||k,O=t.getPopupContainer,C=t.forceRender,_=t.autoDestroy,N=t.destroyPopupOnHide,I=t.popup,L=t.popupClassName,A=t.popupStyle,D=t.popupPlacement,j=t.builtinPlacements,P=void 0===j?{}:j,R=t.popupAlign,M=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,al),ee=_||N||!1,te=u(o.useState(!1),2),ne=te[0],re=te[1];Zt((function(){re(Ua())}),[]);var ie=o.useRef({}),oe=o.useContext(Us),ae=o.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==oe||oe.registerSubPopup(e,t)}}}),[oe]),se=Qa(),le=u(o.useState(null),2),ce=le[0],ue=le[1],de=o.useRef(null),pe=dr((function(e){de.current=e,Ni(e)&&ce!==e&&ue(e),null==oe||oe.registerSubPopup(se,e)})),fe=u(o.useState(null),2),he=fe[0],me=fe[1],ve=o.useRef(null),ye=dr((function(e){Ni(e)&&he!==e&&(me(e),ve.current=e)})),be=o.Children.only(a),Ee=(null==be?void 0:be.props)||{},we={},Te=dr((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=Ne(r))||void 0===t?void 0:t.host)===e||e===r||(null==ce?void 0:ce.contains(e))||(null===(n=Ne(ce))||void 0===n?void 0:n.host)===e||e===ce||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=Ws(i,Q,K,H),ke=Ws(i,U,Y,W),xe=u(o.useState(f||!1),2),Oe=xe[0],Ce=xe[1],_e=null!=p?p:Oe,Ie=dr((function(e){void 0===p&&Ce(e)}));Zt((function(){Ce(p||!1)}),[p]);var Le=o.useRef(_e);Le.current=_e;var Ae=o.useRef([]);Ae.current=[];var De=dr((function(e){var t;Ie(e),(null!==(t=Ae.current[Ae.current.length-1])&&void 0!==t?t:_e)!==e&&(Ae.current.push(e),null==m||m(e))})),je=o.useRef(),Pe=function(){clearTimeout(je.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Pe(),0===t?De(e):je.current=setTimeout((function(){De(e)}),1e3*t)};o.useEffect((function(){return Pe}),[]);var Me=u(o.useState(!1),2),Fe=Me[0],$e=Me[1];Zt((function(e){e&&!_e||$e(!0)}),[_e]);var Ve=u(o.useState(null),2),Be=Ve[0],qe=Ve[1],ze=u(o.useState(null),2),Ge=ze[0],Qe=ze[1],Ue=function(e){Qe([e.clientX,e.clientY])},He=function(e,t,n,r,i,a,s){var l=u(o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),c=l[0],d=l[1],p=o.useRef(0),f=o.useMemo((function(){return t?Xs(t):[]}),[t]),h=o.useRef({});e||(h.current={});var m=dr((function(){if(t&&n&&e){var o,l,c,p,m,g=t,v=g.ownerDocument,y=Ys(g).getComputedStyle(g),b=y.width,E=y.height,w=y.position,T=g.style.left,S=g.style.top,k=g.style.right,x=g.style.bottom,O=g.style.overflow,C=ge(ge({},i[r]),a),_=v.createElement("div");if(null===(o=g.parentElement)||void 0===o||o.appendChild(_),_.style.left="".concat(g.offsetLeft,"px"),_.style.top="".concat(g.offsetTop,"px"),_.style.position=w,_.style.height="".concat(g.offsetHeight,"px"),_.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,I,L=n.getBoundingClientRect();L.x=null!==(N=L.x)&&void 0!==N?N:L.left,L.y=null!==(I=L.y)&&void 0!==I?I:L.top,m={x:L.x,y:L.y,width:L.width,height:L.height}}var A=g.getBoundingClientRect();A.x=null!==(l=A.x)&&void 0!==l?l:A.left,A.y=null!==(c=A.y)&&void 0!==c?c:A.top;var D=v.documentElement,j=D.clientWidth,P=D.clientHeight,R=D.scrollWidth,M=D.scrollHeight,F=D.scrollTop,$=D.scrollLeft,V=A.height,B=A.width,q=m.height,z=m.width,G={left:0,top:0,right:j,bottom:P},Q={left:-$,top:-F,right:R-$,bottom:M-F},U=C.htmlRegion,H="visible",K="visibleFirst";"scroll"!==U&&U!==K&&(U=H);var W=U===K,Y=el(Q,f),X=el(G,f),J=U===H?X:Y,Z=W?X:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ee=g.getBoundingClientRect();g.style.left=T,g.style.top=S,g.style.right=k,g.style.bottom=x,g.style.overflow=O,null===(p=g.parentElement)||void 0===p||p.removeChild(_);var te=Js(Math.round(B/parseFloat(b)*1e3)/1e3),ne=Js(Math.round(V/parseFloat(E)*1e3)/1e3);if(0===te||0===ne||Ni(n)&&!Wo(n))return;var re=C.offset,ie=C.targetOffset,oe=u(nl(A,re),2),ae=oe[0],se=oe[1],le=u(nl(m,ie),2),ce=le[0],ue=le[1];m.x-=ce,m.y-=ue;var de=u(C.points||[],2),pe=de[0],fe=rl(de[1]),he=rl(pe),me=il(m,fe),ve=il(A,he),ye=ge({},C),be=me.x-ve.x+ae,Ee=me.y-ve.y+se;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,i=A.y+t,o=r+B,a=i+V,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 we,Te,Se,ke,xe=ft(be,Ee),Oe=ft(be,Ee,X),Ce=il(m,["t","l"]),_e=il(A,["t","l"]),Ne=il(m,["b","r"]),Ie=il(A,["b","r"]),Le=C.overflow||{},Ae=Le.adjustX,De=Le.adjustY,je=Le.shiftX,Pe=Le.shiftY,Re=function(e){return"boolean"==typeof e?e:e>=0};function ht(){we=A.y+Ee,Te=we+V,Se=A.x+be,ke=Se+B}ht();var Me=Re(De),Fe=he[0]===fe[0];if(Me&&"t"===he[0]&&(Te>Z.bottom||h.current.bt)){var $e=Ee;Fe?$e-=V-q:$e=Ce.y-Ie.y-se;var Ve=ft(be,$e),Be=ft(be,$e,X);Ve>xe||Ve===xe&&(!W||Be>=Oe)?(h.current.bt=!0,Ee=$e,se=-se,ye.points=[ol(he,0),ol(fe,0)]):h.current.bt=!1}if(Me&&"b"===he[0]&&(we<Z.top||h.current.tb)){var qe=Ee;Fe?qe+=V-q:qe=Ne.y-_e.y-se;var ze=ft(be,qe),Ge=ft(be,qe,X);ze>xe||ze===xe&&(!W||Ge>=Oe)?(h.current.tb=!0,Ee=qe,se=-se,ye.points=[ol(he,0),ol(fe,0)]):h.current.tb=!1}var Qe=Re(Ae),Ue=he[1]===fe[1];if(Qe&&"l"===he[1]&&(ke>Z.right||h.current.rl)){var He=be;Ue?He-=B-z:He=Ce.x-Ie.x-ae;var Ke=ft(He,Ee),We=ft(He,Ee,X);Ke>xe||Ke===xe&&(!W||We>=Oe)?(h.current.rl=!0,be=He,ae=-ae,ye.points=[ol(he,1),ol(fe,1)]):h.current.rl=!1}if(Qe&&"r"===he[1]&&(Se<Z.left||h.current.lr)){var Ye=be;Ue?Ye+=B-z:Ye=Ne.x-_e.x-ae;var Xe=ft(Ye,Ee),Je=ft(Ye,Ee,X);Xe>xe||Xe===xe&&(!W||Je>=Oe)?(h.current.lr=!0,be=Ye,ae=-ae,ye.points=[ol(he,1),ol(fe,1)]):h.current.lr=!1}ht();var Ze=!0===je?0:je;"number"==typeof Ze&&(Se<X.left&&(be-=Se-X.left-ae,m.x+z<X.left+Ze&&(be+=m.x-X.left+z-Ze)),ke>X.right&&(be-=ke-X.right-ae,m.x>X.right-Ze&&(be+=m.x-X.right+Ze)));var et=!0===Pe?0:Pe;"number"==typeof et&&(we<X.top&&(Ee-=we-X.top-se,m.y+q<X.top+et&&(Ee+=m.y-X.top+q-et)),Te>X.bottom&&(Ee-=Te-X.bottom-se,m.y>X.bottom-et&&(Ee+=m.y-X.bottom+et)));var tt=A.x+be,nt=tt+B,rt=A.y+Ee,it=rt+V,ot=m.x,at=ot+z,st=m.y,lt=st+q,ct=(Math.max(tt,ot)+Math.min(nt,at))/2-tt,ut=(Math.max(rt,st)+Math.min(it,lt))/2-rt;null==s||s(t,ye);var dt=ee.right-A.x-(be+A.width),pt=ee.bottom-A.y-(Ee+A.height);1===te&&(be=Math.round(be),dt=Math.round(dt)),1===ne&&(Ee=Math.round(Ee),pt=Math.round(pt)),d({ready:!0,offsetX:be/te,offsetY:Ee/ne,offsetR:dt/te,offsetB:pt/ne,arrowX:ct/te,arrowY:ut/ne,scaleX:te,scaleY:ne,align:ye})}})),g=function(){d((function(e){return ge(ge({},e),{},{ready:!1})}))};return Zt(g,[r]),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(){p.current+=1;var e=p.current;Promise.resolve().then((function(){p.current===e&&m()}))}]}(_e,ce,B&&null!==Ge?Ge:he,D,P,R,z),Ke=u(He,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,r){return o.useMemo((function(){var i=Hs(null!=n?n:t),o=Hs(null!=r?r:t),a=new Set(i),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,r])}(ne,l,c,d),lt=u(at,2),ct=lt[0],ut=lt[1],dt=ct.has("click"),pt=ut.has("click")||ut.has("contextMenu"),ft=dr((function(){Fe||ot()}));!function(e,t,n,r){Zt((function(){if(e&&t&&n){var i=n,o=Xs(t),a=Xs(i),s=Ys(i),l=new Set([s].concat(st(o),st(a)));function c(){r(),Le.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,ce,ft),Zt((function(){ft()}),[Ge,D]),Zt((function(){!_e||null!=P&&P[D]||ft()}),[JSON.stringify(R)]);var ht=o.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(Ks(null===(s=e[l])||void 0===s?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}(P,i,it,B);return g()(e,null==$?void 0:$(it))}),[it,$,P,i,B]);o.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:de.current,forceAlign:ft}}));var mt=u(o.useState(0),2),gt=mt[0],vt=mt[1],yt=u(o.useState(0),2),bt=yt[0],Et=yt[1],wt=function(){if(F&&he){var e=he.getBoundingClientRect();vt(e.width),Et(e.height)}};function Tt(e,t,n,r){we[e]=function(i){var o;null==r||r(i),Re(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(o=Ee[e])||void 0===o||o.call.apply(o,[Ee,i].concat(s))}}Zt((function(){Be&&(ot(),Be(),qe(null))}),[Be]),(dt||pt)&&(we.onClick=function(e){var t;Le.current&&pt?Re(!1):!Le.current&&dt&&(Ue(e),Re(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Ee.onClick)||void 0===t||t.call.apply(t,[Ee,e].concat(r))});var St,kt,xt=function(e,t,n,r,i,a,s,l){var c=o.useRef(e);c.current=e;var u=o.useRef(!1);return o.useEffect((function(){if(t&&r&&(!i||a)){var e=function(){u.current=!1},o=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},d=Ys(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",o,!0),d.addEventListener("contextmenu",o,!0);var p=Ne(n);return p&&(p.addEventListener("mousedown",o,!0),p.addEventListener("contextmenu",o,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",o,!0),d.removeEventListener("contextmenu",o,!0),p&&(p.removeEventListener("mousedown",o,!0),p.removeEventListener("contextmenu",o,!0))}}}),[t,n,r,i,a]),function(){u.current=!0}}(_e,pt,he,ce,S,x,Te,Re),Ot=ct.has("hover"),Ct=ut.has("hover");Ot&&(Tt("onMouseEnter",!0,y,(function(e){Ue(e)})),Tt("onPointerEnter",!0,y,(function(e){Ue(e)})),St=function(e){(_e||Fe)&&null!=ce&&ce.contains(e.target)&&Re(!0,y)},B&&(we.onMouseMove=function(e){var t;null===(t=Ee.onMouseMove)||void 0===t||t.call(Ee,e)})),Ct&&(Tt("onMouseLeave",!1,E),Tt("onPointerLeave",!1,E),kt=function(){Re(!1,E)}),ct.has("focus")&&Tt("onFocus",!0,w),ut.has("focus")&&Tt("onBlur",!1,T),ct.has("contextMenu")&&(we.onContextMenu=function(e){var t;Le.current&&ut.has("contextMenu")?Re(!1):(Ue(e),Re(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Ee.onContextMenu)||void 0===t||t.call.apply(t,[Ee,e].concat(r))}),X&&(we.className=g()(Ee.className,X));var _t=ge(ge({},Ee),we),Nt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Z[e]&&(Nt[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=_t[e])||void 0===t||t.call.apply(t,[_t].concat(r)),Z[e].apply(Z,r)})}));var It=o.cloneElement(be,ge(ge({},_t),Nt)),Lt={x:et,y:tt},At=G?ge({},!0!==G?G:{}):null;return o.createElement(o.Fragment,null,o.createElement(so,{disabled:!_e,ref:ye,onResize:function(){wt(),ft()}},o.createElement(Qs,{getTriggerDOMNode:J},It)),o.createElement(Us.Provider,{value:ae},o.createElement(zs,{portal:e,ref:pe,prefixCls:i,popup:I,className:g()(L,ht),style:A,target:he,onMouseEnter:St,onMouseLeave:kt,onPointerEnter:St,zIndex:M,open:_e,keepDom:Fe,fresh:V,onClick:q,onPointerDownCapture:xt,mask:S,motion:Se,maskMotion:ke,onVisibleChanged:function(e){$e(!1),ot(),null==v||v(e)},onPrepare:function(){return new Promise((function(e){wt(),qe((function(){return e}))}))},forceRender:C,autoDestroy:ee,getPopupContainer:O,align:it,arrow:At,arrowPos:Lt,ready:We,offsetX:Ye,offsetY:Xe,offsetR:Je,offsetB:Ze,onAlign:ft,stretch:F,targetWidth:gt/nt,targetHeight:bt/rt})))}));return t}(qa);var ll={adjustX:1,adjustY:1},cl={topLeft:{points:["bl","tl"],overflow:ll},topRight:{points:["br","tr"],overflow:ll},bottomLeft:{points:["tl","bl"],overflow:ll},bottomRight:{points:["tr","br"],overflow:ll},leftTop:{points:["tr","tl"],overflow:ll},leftBottom:{points:["br","bl"],overflow:ll},rightTop:{points:["tl","tr"],overflow:ll},rightBottom:{points:["bl","br"],overflow:ll}},ul={topLeft:{points:["bl","tl"],overflow:ll},topRight:{points:["br","tr"],overflow:ll},bottomLeft:{points:["tl","bl"],overflow:ll},bottomRight:{points:["tr","br"],overflow:ll},rightTop:{points:["tr","tl"],overflow:ll},rightBottom:{points:["br","bl"],overflow:ll},leftTop:{points:["tl","tr"],overflow:ll},leftBottom:{points:["bl","br"],overflow:ll}};function dl(e,t,n){return t||(n?n[e]||n.other:void 0)}var pl={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fl(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,d=e.mode,p=e.onVisibleChange,h=o.useContext(Vo),m=h.getPopupContainer,v=h.rtl,y=h.subMenuOpenDelay,b=h.subMenuCloseDelay,E=h.builtinPlacements,w=h.triggerSubMenuAction,T=h.forceSubMenuRender,S=h.rootClassName,k=h.motion,x=h.defaultMotions,O=u(o.useState(!1),2),C=O[0],_=O[1],N=ge(ge({},v?ul:cl),E),I=pl[d],L=dl(d,k,x),A=o.useRef(L);"inline"!==d&&(A.current=L);var D=ge(ge({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),j=o.useRef();return o.useEffect((function(){return j.current=Eo((function(){_(n)})),function(){Eo.cancel(j.current)}}),[n]),o.createElement(sl,{prefixCls:t,popupClassName:g()("".concat(t,"-popup"),f({},"".concat(t,"-rtl"),v),s,S),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:m,builtinPlacements:N,popupPlacement:I,popupVisible:C,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:T,popupMotion:D,fresh:!0},r)}function hl(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,s="inline",l=o.useContext(Vo),c=l.prefixCls,d=l.forceSubMenuRender,p=l.motion,f=l.defaultMotions,h=l.mode,m=o.useRef(!1);m.current=h===s;var g=u(o.useState(!m.current),2),v=g[0],y=g[1],b=!!m.current&&n;o.useEffect((function(){m.current&&y(!1)}),[h]);var E=ge({},dl(s,p,f));r.length>1&&(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:o.createElement(Bo,{mode:s,locked:!m.current},o.createElement(Ms,i({visible:b},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(Aa,{id:t,className:n,style:r},a)})))}var ml=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gl=["active"],vl=function(e){var t=e.style,n=e.className,r=e.title,a=e.eventKey,s=(e.warnKey,e.disabled),l=e.internalPopupClose,c=e.children,d=e.itemIcon,p=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,x=h(e,ml),O=Fo(a),C=o.useContext(Vo),_=C.prefixCls,N=C.mode,I=C.openKeys,L=C.disabled,A=C.overflowDisabled,D=C.activeKey,j=C.selectedKeys,P=C.itemIcon,R=C.expandIcon,M=C.onItemClick,F=C.onOpenChange,$=C.onActive,V=o.useContext(Ko)._internalRenderSubMenuItem,B=o.useContext(Ho).isSubPathKey,q=Uo(),z="".concat(_,"-submenu"),G=L||s,Q=o.useRef(),U=o.useRef(),H=null!=d?d:P,K=null!=p?p:R,W=I.includes(a),Y=!A&&W,X=B(j,a),J=va(a,G,S,k),Z=J.active,ee=h(J,gl),te=u(o.useState(!1),2),ne=te[0],re=te[1],ie=function(e){G||re(e)},oe=o.useMemo((function(){return Z||"inline"!==N&&(ne||B([D],a))}),[N,Z,D,ne,a,B]),ae=ya(q.length),se=ha((function(e){null==b||b(wa(e)),M(e)})),le=O&&"".concat(O,"-popup"),ce=o.createElement("div",i({role:"menuitem",style:ae,className:"".concat(z,"-title"),tabIndex:G?null:-1,ref:Q,title:"string"==typeof r?r:null,"data-menu-id":A&&O?null:O,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":G,onClick:function(e){G||(null==T||T({key:a,domEvent:e}),"inline"===N&&F(a,!W))},onFocus:function(){$(a)}},ee),r,o.createElement(ba,{icon:"horizontal"!==N?K:void 0,props:ge(ge({},e),{},{isOpen:Y,isSubMenu:!0})},o.createElement("i",{className:"".concat(z,"-arrow")}))),ue=o.useRef(N);if("inline"!==N&&q.length>1?ue.current="vertical":ue.current=N,!A){var de=ue.current;ce=o.createElement(fl,{mode:de,prefixCls:z,visible:!l&&Y&&"inline"!==N,popupClassName:m,popupOffset:v,popupStyle:y,popup:o.createElement(Bo,{mode:"horizontal"===de?"vertical":de},o.createElement(Aa,{id:le,ref:U},c)),disabled:G,onVisibleChange:function(e){"inline"!==N&&F(a,e)}},ce)}var pe=o.createElement(Po.Item,i({role:"none"},x,{component:"li",style:t,className:g()(z,"".concat(z,"-").concat(N),n,f(f(f(f({},"".concat(z,"-open"),Y),"".concat(z,"-active"),oe),"".concat(z,"-selected"),X),"".concat(z,"-disabled"),G)),onMouseEnter:function(e){ie(!0),null==E||E({key:a,domEvent:e})},onMouseLeave:function(e){ie(!1),null==w||w({key:a,domEvent:e})}}),ce,!A&&o.createElement(hl,{id:le,open:Y,keyPath:q},c));return V&&(pe=V(pe,e,{selected:X,active:oe,open:Y,disabled:G})),o.createElement(Bo,{onItemClick:se,mode:"horizontal"===N?"vertical":N,itemIcon:H,expandIcon:K},pe)};function yl(e){var t,n=e.eventKey,r=e.children,i=Uo(n),a=Da(r,i),s=Go();return o.useEffect((function(){if(s)return s.registerPath(n,i),function(){s.unregisterPath(n,i)}}),[i]),t=s?a:o.createElement(vl,e,a),o.createElement(Qo.Provider,{value:i},t)}var bl=["className","title","eventKey","children"],El=["children"],wl=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),a=h(e,bl),s=o.useContext(Vo).prefixCls,l="".concat(s,"-item-group");return o.createElement("li",i({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:g()(l,t)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},r))};function Tl(e){var t=e.children,n=h(e,El),r=Da(t,Uo(n.eventKey));return Go()?r:o.createElement(wl,lt(n,["warnKey"]),r)}function Sl(e){var t=e.className,n=e.style,r=o.useContext(Vo).prefixCls;return Go()?null:o.createElement("li",{role:"separator",className:g()("".concat(r,"-item-divider"),t),style:n})}var kl=["label","children","key","type"];function xl(e){return(e||[]).map((function(e,t){if(e&&"object"===d(e)){var n=e,r=n.label,a=n.children,s=n.key,l=n.type,c=h(n,kl),u=null!=s?s:"tmp-".concat(t);return a||"group"===l?"group"===l?o.createElement(Tl,i({key:u},c,{title:r}),xl(a)):o.createElement(yl,i({key:u},c,{title:r}),xl(a)):"divider"===l?o.createElement(Sl,i({key:u},c)):o.createElement(_a,i({key:u},c),r)}return null})).filter((function(e){return e}))}function Ol(e,t,n){var r=e;return t&&(r=xl(t)),Da(r,n)}var Cl=["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"],_l=[],Nl=o.forwardRef((function(e,t){var n,r=e,a=r.prefixCls,s=void 0===a?"rc-menu":a,l=r.rootClassName,c=r.style,d=r.className,p=r.tabIndex,m=void 0===p?0:p,v=r.items,y=r.children,b=r.direction,E=r.id,w=r.mode,T=void 0===w?"vertical":w,S=r.inlineCollapsed,k=r.disabled,x=r.disabledOverflow,O=r.subMenuOpenDelay,C=void 0===O?.1:O,_=r.subMenuCloseDelay,N=void 0===_?.1:_,I=r.forceSubMenuRender,L=r.defaultOpenKeys,A=r.openKeys,D=r.activeKey,j=r.defaultActiveFirst,P=r.selectable,R=void 0===P||P,M=r.multiple,F=void 0!==M&&M,$=r.defaultSelectedKeys,V=r.selectedKeys,B=r.onSelect,q=r.onDeselect,z=r.inlineIndent,G=void 0===z?24:z,Q=r.motion,U=r.defaultMotions,H=r.triggerSubMenuAction,K=void 0===H?"hover":H,W=r.builtinPlacements,Y=r.itemIcon,X=r.expandIcon,J=r.overflowedIndicator,Z=void 0===J?"...":J,ee=r.overflowedIndicatorPopupClassName,te=r.getPopupContainer,ne=r.onClick,re=r.onOpenChange,ie=r.onKeyDown,oe=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ae=r._internalRenderSubMenuItem,se=h(r,Cl),le=o.useMemo((function(){return Ol(y,v,_l)}),[y,v]),ce=u(o.useState(!1),2),ue=ce[0],de=ce[1],pe=o.useRef(),fe=function(e){var t=u(hr(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){ga+=1;var e="".concat(ma,"-").concat(ga);r("rc-menu-uuid-".concat(e))}),[]),n}(E),he="rtl"===b,me=u(hr(L,{value:A,postState:function(e){return e||_l}}),2),ve=me[0],ye=me[1],be=function(e){function t(){ye(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ci.flushSync)(t):t()},Ee=u(o.useState(ve),2),we=Ee[0],Te=Ee[1],Se=o.useRef(!1),ke=u(o.useMemo((function(){return"inline"!==T&&"vertical"!==T||!S?[T,!1]:["vertical",S]}),[T,S]),2),xe=ke[0],Oe=ke[1],Ce="inline"===xe,_e=u(o.useState(xe),2),Ne=_e[0],Ie=_e[1],Le=u(o.useState(Oe),2),Ae=Le[0],De=Le[1];o.useEffect((function(){Ie(xe),De(Oe),Se.current&&(Ce?ye(we):be(_l))}),[xe,Oe]);var je=u(o.useState(0),2),Pe=je[0],Re=je[1],Me=Pe>=le.length-1||"horizontal"!==Ne||x;o.useEffect((function(){Ce&&Te(ve)}),[ve]),o.useEffect((function(){return Se.current=!0,function(){Se.current=!1}}),[]);var Fe=function(){var e=u(o.useState({}),2)[1],t=(0,o.useRef)(new Map),n=(0,o.useRef)(new Map),r=u(o.useState([]),2),i=r[0],a=r[1],s=(0,o.useRef)(0),l=(0,o.useRef)(!1),c=(0,o.useCallback)((function(r,i){var o=pa(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)}),[]),d=(0,o.useCallback)((function(e,r){var i=pa(r);n.current.delete(i),t.current.delete(e)}),[]),p=(0,o.useCallback)((function(e){a(e)}),[]),f=(0,o.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(da);return n&&i.includes(r[0])&&r.unshift(fa),r}),[i]),h=(0,o.useCallback)((function(e,t){return e.some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,o.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(da),i=new Set;return st(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return o.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:c,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:f,getKeys:function(){var e=st(t.current.keys());return i.length&&e.push(fa),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=o.useMemo((function(){return{registerPath:$e,unregisterPath:Ve}}),[$e,Ve]),He=o.useMemo((function(){return{isSubPathKey:qe}}),[qe]);o.useEffect((function(){Be(Me?_l:le.slice(Pe+1).map((function(e){return e.key})))}),[Pe,Me]);var Ke=u(hr(D||j&&(null===(n=le[0])||void 0===n?void 0:n.key),{value:D}),2),We=Ke[0],Ye=Ke[1],Xe=ha((function(e){Ye(e)})),Je=ha((function(){Ye(void 0)}));(0,o.useImperativeHandle)(t,(function(){return{list:pe.current,focus:function(e){var t,n,r=Ge(),i=ua(r,fe),o=i.elements,a=i.key2element,s=i.element2key,l=la(pe.current,o),c=null!=We?We:l[0]?s.get(l[0]):null===(t=le.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 Ze=u(hr($||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?_l:[e]}}),2),et=Ze[0],tt=Ze[1],nt=ha((function(e){null==ne||ne(wa(e)),function(e){if(R){var t,n=e.key,r=et.includes(n);t=F?r?et.filter((function(e){return e!==n})):[].concat(st(et),[n]):[n],tt(t);var i=ge(ge({},e),{},{selectedKeys:t});r?null==q||q(i):null==B||B(i)}!F&&ve.length&&"inline"!==Ne&&be(_l)}(e)})),rt=ha((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)}))}kt(ve,n,!0)||be(n,!0)})),it=function(e,t,n,r,i,a,s,l,c,u){var d=o.useRef(),p=o.useRef();p.current=t;var h=function(){Eo.cancel(d.current)};return o.useEffect((function(){return function(){h()}}),[]),function(o){var m=o.which;if([].concat(sa,[ra,ia,oa,aa]).includes(m)){var g=a(),v=ua(g,r),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===ra)return{inlineTrigger:!0};var c=f(f({},ta,o),na,a),u=f(f(f(f({},Zo,n?a:o),ea,n?o:a),na,s),ra,s),d=f(f(f(f(f(f({},ta,o),na,a),ra,s),ia,l),Zo,n?s:l),ea,n?l:s);switch(null===(i={inline:c,horizontal:u,vertical:d,inlineSub:c,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 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!==oa&&m!==aa)return;(sa.includes(m)||[oa,aa].includes(m))&&o.preventDefault();var x=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(),d.current=Eo((function(){p.current===r&&t.focus()}))}};if([oa,aa].includes(m)||k.sibling||!T){var O,C,_=la(O=T&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(T):i.current,b);C=m===oa?_[0]:m===aa?_[_.length-1]:ca(O,b,T,k.offset),x(C)}else if(k.inlineTrigger)c(S);else if(k.offset>0)c(S,!0),h(),d.current=Eo((function(){v=ua(g,r);var e=T.getAttribute("aria-controls"),t=ca(document.getElementById(e),v.elements);x(t)}),5);else if(k.offset<0){var N=s(S,!0),I=N[N.length-2],L=E.get(I);c(I,!1),x(L)}}null==u||u(o)}}(Ne,We,he,fe,pe,Ge,ze,Ye,(function(e,t){var n=null!=t?t:!ve.includes(e);rt(e,n)}),ie);o.useEffect((function(){de(!0)}),[]);var ot=o.useMemo((function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:ae}}),[oe,ae]),at="horizontal"!==Ne||x?le:le.map((function(e,t){return o.createElement(Bo,{key:e.key,overflowDisabled:t>Pe},e)})),lt=o.createElement(Po,i({id:E,ref:pe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:_a,className:g()(s,"".concat(s,"-root"),"".concat(s,"-").concat(Ne),d,f(f({},"".concat(s,"-inline-collapsed"),Ae),"".concat(s,"-rtl"),he),l),dir:b,style:c,role:"menu",tabIndex:m,data:at,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?le.slice(-t):null;return o.createElement(yl,{eventKey:fa,title:Z,disabled:Me,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Ne||x?Po.INVALIDATE:Po.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Re(e)},onKeyDown:it},se));return o.createElement(Ko.Provider,{value:ot},o.createElement(Ro.Provider,{value:fe},o.createElement(Bo,{prefixCls:s,rootClassName:l,mode:Ne,openKeys:ve,rtl:he,disabled:k,motion:ue?Q:null,defaultMotions:ue?U:null,activeKey:We,onActive:Xe,onInactive:Je,selectedKeys:et,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:N,forceSubMenuRender:I,builtinPlacements:W,triggerSubMenuAction:K,getPopupContainer:te,itemIcon:Y,expandIcon:X,onItemClick:nt,onOpenChange:rt},o.createElement(Ho.Provider,{value:He},lt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(zo.Provider,{value:Ue},le)))))})),Il=Nl;Il.Item=_a,Il.SubMenu=yl,Il.ItemGroup=Tl,Il.Divider=Sl;const Ll=Il,Al={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 Dl=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:Al}))};const jl=o.forwardRef(Dl),Pl=()=>({height:0,opacity:0}),Rl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ml=e=>({height:e?e.offsetHeight:0}),Fl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,$l=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Vl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Pl,onEnterStart:Pl,onAppearActive:Rl,onEnterActive:Rl,onLeaveStart:Ml,onLeaveActive:Pl,onAppearEnd:Fl,onEnterEnd:Fl,onLeaveEnd:Fl,motionDeadline:500}};function Bl(e){return e&&a().isValidElement(e)&&e.type===a().Fragment}function ql(e,t){return((e,t,n)=>a().isValidElement(e)?a().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}const zl=e=>{const[,,,,t]=Ur();return t?`${e}-css-var`:""};const Gl=e=>{const{prefixCls:t,className:n,dashed:r}=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(ct),s=a("menu",t),l=g()({[`${s}-item-divider-dashed`]:!!r},n);return o.createElement(Sl,Object.assign({className:l},i))};function Ql(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,s=e.style;return o.createElement("div",{className:g()("".concat(n,"-content"),a),style:s},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var Ul={shiftX:64,adjustY:1},Hl={adjustX:1,shiftY:!0},Kl=[0,0],Wl={left:{points:["cr","cl"],overflow:Hl,offset:[-4,0],targetOffset:Kl},right:{points:["cl","cr"],overflow:Hl,offset:[4,0],targetOffset:Kl},top:{points:["bc","tc"],overflow:Ul,offset:[0,-4],targetOffset:Kl},bottom:{points:["tc","bc"],overflow:Ul,offset:[0,4],targetOffset:Kl},topLeft:{points:["bl","tl"],overflow:Ul,offset:[0,-4],targetOffset:Kl},leftTop:{points:["tr","tl"],overflow:Hl,offset:[-4,0],targetOffset:Kl},topRight:{points:["br","tr"],overflow:Ul,offset:[0,-4],targetOffset:Kl},rightTop:{points:["tl","tr"],overflow:Hl,offset:[4,0],targetOffset:Kl},bottomRight:{points:["tr","br"],overflow:Ul,offset:[0,4],targetOffset:Kl},rightBottom:{points:["bl","br"],overflow:Hl,offset:[4,0],targetOffset:Kl},bottomLeft:{points:["tl","bl"],overflow:Ul,offset:[0,4],targetOffset:Kl},leftBottom:{points:["br","bl"],overflow:Hl,offset:[-4,0],targetOffset:Kl}},Yl=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Xl=function(e,t){var n=e.overlayClassName,r=e.trigger,a=void 0===r?["hover"]:r,s=e.mouseEnterDelay,l=void 0===s?0:s,c=e.mouseLeaveDelay,u=void 0===c?.1:c,d=e.overlayStyle,p=e.prefixCls,f=void 0===p?"rc-tooltip":p,m=e.children,g=e.onVisibleChange,v=e.afterVisibleChange,y=e.transitionName,b=e.animation,E=e.motion,w=e.placement,T=void 0===w?"right":w,S=e.align,k=void 0===S?{}:S,x=e.destroyTooltipOnHide,O=void 0!==x&&x,C=e.defaultVisible,_=e.getTooltipContainer,N=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),L=e.id,A=e.showArrow,D=void 0===A||A,j=h(e,Yl),P=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return P.current}));var R=ge({},j);return"visible"in e&&(R.popupVisible=e.visible),o.createElement(sl,i({popupClassName:n,prefixCls:f,popup:function(){return o.createElement(Ql,{key:"content",prefixCls:f,id:L,overlayInnerStyle:N},I)},action:a,builtinPlacements:Wl,popupPlacement:T,ref:P,popupAlign:k,getPopupContainer:_,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:b,popupMotion:E,defaultPopupVisible:C,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:D},R),m)};const Jl=(0,o.forwardRef)(Xl),Zl=a().createContext(void 0),ec=100,tc={Modal:ec,Drawer:ec,Popover:ec,Popconfirm:ec,Tooltip:ec,Tour:ec},nc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function rc(e,t){const[,n]=Ur(),r=a().useContext(Zl);if(void 0!==t)return[t,t];let i=null!=r?r:0;return e in tc?(i+=(r?0:n.zIndexPopupBase)+tc[e],i=Math.min(i,n.zIndexPopupBase+1e3)):i+=nc[e],[void 0===r?t:i,i]}const ic=(e,t,n)=>{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 ${Qt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function oc(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function ac(e,t){return e?t:{}}function sc(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"},ic(e,t,i)),{"&:before":{background:t}})]},ac(!!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}}})),ac(!!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}}})),ac(!!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}})),ac(!!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 lc={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"]}},cc={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"]}},uc=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dc(){}const pc=o.createContext(null),fc=e=>{let{children:t}=e;return o.createElement(pc.Provider,{value:null},t)},hc=e=>({animationDuration:e,animationFillMode:"both"}),mc=e=>({animationDuration:e,animationFillMode:"both"}),gc=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({},hc(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},mc(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"}}},vc=new cr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yc=new cr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bc=new cr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ec=new cr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wc=new cr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Tc=new cr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Sc={zoom:{inKeyframes:vc,outKeyframes:yc},"zoom-big":{inKeyframes:bc,outKeyframes:Ec},"zoom-big-fast":{inKeyframes:bc,outKeyframes:Ec},"zoom-left":{inKeyframes:new cr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new cr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new cr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new cr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:wc,outKeyframes:Tc},"zoom-down":{inKeyframes:new cr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new cr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},kc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Sc[t];return[gc(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}}]},xc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Oc(e,t){return xc.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 Cc=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({},Er(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:`${Qt(e.calc(c).div(2).equal())} ${Qt(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,8)}},[`${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"}})},sc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},_c=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},oc({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,d=c,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 ${l} ${c} 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%)`}}(si(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Nc=function(e){const t=fi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,i=si(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Cc(i),kc(e,"zoom-big-fast")]}),_c,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Ic=xc.map((e=>`${e}-inverse`));function Lc(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?xc.includes(e):[].concat(st(Ic),st(xc)).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 Ac=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:m=!0,title:v,overlay:y,builtinPlacements:b,arrowPointAtCenter:E=!1,autoAdjustOverflow:w=!0}=e,T=!!m,[,S]=Ur(),{getPopupContainer:k,getPrefixCls:x,direction:O}=o.useContext(ct),C=(()=>{const e=()=>{};return e.deprecated=dc,e})(),_=o.useRef(null),N=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>({forceAlign:N,forcePopupAlign:()=>{C.deprecated(!1,"forcePopupAlign","forceAlign"),N()}})));const[I,L]=hr(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),A=!v&&!y&&0!==v,D=o.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(lc).forEach((e=>{const c=r&&cc[e]||lc[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,uc.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=oc({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]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=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")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:T?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[E,m,b,S]),j=o.useMemo((()=>0===v?v:y||v||""),[y,v]),P=o.createElement(fc,null,"function"==typeof j?j():j),{getPopupContainer:R,placement:M="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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=x("tooltip",i),G=x(),Q=e["data-popover-inject"];let U=I;"open"in e||"visible"in e||!A||(U=!1);const H=o.isValidElement(d)&&!Bl(d)?d:o.createElement("span",null,d),K=H.props,W=K.className&&"string"!=typeof K.className?K.className:g()(K.className,a||`${z}-open`),[Y,X,J]=Nc(z,!Q),Z=Lc(z,c),ee=Z.arrowStyle,te=Object.assign(Object.assign({},u),Z.overlayStyle),ne=g()(l,{[`${z}-rtl`]:"rtl"===O},Z.className,B,X,J),[re,ie]=rc("Tooltip",q.zIndex),oe=o.createElement(Jl,Object.assign({},q,{zIndex:re,showArrow:T,placement:M,mouseEnterDelay:F,mouseLeaveDelay:$,prefixCls:z,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),V),getTooltipContainer:R||s||k,ref:_,builtinPlacements:D,overlay:P,visible:U,onVisibleChange:t=>{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!=p?p:f,overlayInnerStyle:te,arrowContent:o.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:$l(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?ql(H,{className:W}):H);return Y(o.createElement(Zl.Provider,{value:ie},oe))}));Ac._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=o.useContext(ct),c=l("tooltip",t),[u,d,p]=Nc(c),f=Lc(c,a),h=f.arrowStyle,m=Object.assign(Object.assign({},s),f.overlayStyle),v=g()(d,p,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return u(o.createElement("div",{className:v,style:h},o.createElement("div",{className:`${c}-arrow`}),o.createElement(Ql,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),i)))};const Dc=Ac,jc=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Pc=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=o.useContext(jc),{siderCollapsed:f}=o.useContext(yt);let h=a;void 0===a?h=c?r:"":!1===a&&(h="");const m={title:h};f||p||(m.title=null,m.open=!1);const v=ft(r).length;let y=o.createElement(_a,Object.assign({},lt(e,["title","icon","danger"]),{className:g()({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?v+1:v)},n),title:"string"==typeof a?a:void 0}),ql(i,{className:g()(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${l}-title-content`},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(p));return d||(y=o.createElement(Dc,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},Rc=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,s=o.useContext(jc),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Uo();let p;if(r){const e=o.isValidElement(i)&&"span"===i.type;p=o.createElement(o.Fragment,null,ql(r,{className:g()(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?i:o.createElement("span",{className:`${l}-title-content`},i))}else p=c&&!d.length&&i&&"string"==typeof i?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${l}-title-content`},i);const f=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[h]=rc("Menu");return o.createElement(jc.Provider,{value:f},o.createElement(yl,Object.assign({},lt(e,["icon"]),{title:p,popupClassName:g()(l,n,`${l}-${a||u}`),popupStyle:{zIndex:h}})))};function Mc(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:i,key:a,type:s}=n,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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["label","children","key","type"]),c=null!=a?a:`tmp-${t}`;return i||"group"===s?"group"===s?o.createElement(Tl,Object.assign({key:c},l,{title:r}),Mc(i)):o.createElement(Rc,Object.assign({key:c},l,{title:r}),Mc(i)):"divider"===s?o.createElement(Gl,Object.assign({key:c},l)):o.createElement(Pc,Object.assign({key:c},l),r)}return null})).filter((e=>e))}const Fc=o.createContext(null),$c=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`}}}),Vc={"slide-up":{inKeyframes:new cr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new cr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new cr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new cr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new cr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new cr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new cr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new cr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Bc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Vc[t];return[gc(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}}]},qc=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:`${Qt(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"}}}},zc=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(${Qt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Qt(n)})`}}}}},Gc=e=>Object.assign({},Sr(e)),Qc=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:o,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,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:x,popupBg:O,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({},Gc(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({},Gc(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:x}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${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:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${Qt(c)} solid transparent`,transition:`border-color ${p} ${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:`${Qt(d)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Qt(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(",")}}}}}},Uc=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:Qt(n),paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Qt(n)},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:c}}},Hc=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:Qt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Uc(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Uc(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Qt(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 ${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: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% - ${Qt(e.calc(d).div(2).equal())} - ${Qt(u)})`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Qt(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})}}]},Kc=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"}}}},Wc=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(${Qt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Qt(a)})`}}}}},Yc=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,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({},Er(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:`${Qt(s)} ${Qt(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"}}}),Kc(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Qt(e.calc(r).mul(2).equal())} ${Qt(l)}`}}},"&-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},Kc(e)),Wc(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}}}),Wc(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Qt(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Qt(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Qt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Qt(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Qt(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Xc=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,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:x,colorErrorHover:O}=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 Cr(x).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: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:_,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 Cr(x).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:x,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:o,itemWidth:C?`calc(100% + ${_}px)`:`calc(100% - ${2*N}px)`}},Jc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=fi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,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(),w=si(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=si(w,{itemColor:i,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:l,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:o,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Yc(w),qc(w),Hc(w),Qc(w,"light"),Qc(T,"dark"),zc(w),$c(w),Bc(w,"slide-up"),Bc(w,"slide-down"),kc(w,"zoom-big")]}),Xc,{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 Zc(e){return null===e||!1===e}const eu=(0,o.forwardRef)(((e,t)=>{var n;const r=o.useContext(Fc),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=o.useContext(ct),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:y,siderCollapsed:b,items:E,children:w,rootClassName:T,mode:S,selectable:k,onClick:x,overflowedIndicatorPopupClassName:O}=e,C=lt(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),_=function(e){return o.useMemo((()=>e?Mc(e):e),[e])}(E)||w;null===(n=i.validator)||void 0===n||n.call(i,{mode:S});const N=dr((function(){var e;null==x||x.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),I=i.mode||S,L=null!=k?k:i.selectable,A=o.useMemo((()=>void 0!==b?b:y),[y,b]),D={horizontal:{motionName:`${u}-slide-up`},inline:Vl(u),other:{motionName:`${u}-zoom-big`}},j=a("menu",d||i.prefixCls),P=zl(j),[R,M,F]=Jc(j,P,!r),$=g()(`${j}-${h}`,null==c?void 0:c.className,p),V=o.useMemo((()=>{var e,t;if("function"==typeof m||Zc(m))return m||null;if("function"==typeof i.expandIcon||Zc(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Zc(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const n=null!==(e=null!=m?m:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==c?void 0:c.expandIcon;return ql(n,{className:g()(`${j}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,j]),B=o.useMemo((()=>({prefixCls:j,inlineCollapsed:A||!1,direction:l,firstLevel:!0,theme:h,mode:I,disableMenuItemTitleTooltip:v})),[j,A,l,v,h]);return R(o.createElement(Fc.Provider,{value:null},o.createElement(jc.Provider,{value:B},o.createElement(Ll,Object.assign({getPopupContainer:s,overflowedIndicator:o.createElement(jl,null),overflowedIndicatorPopupClassName:g()(j,`${j}-${h}`,O),mode:I,selectable:L,onClick:N},C,{inlineCollapsed:A,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:$,prefixCls:j,direction:l,defaultMotions:D,expandIcon:V,ref:t,rootClassName:g()(T,M,i.rootClassName,F,P)}),_))))})),tu=eu,nu=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(yt);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(tu,Object.assign({ref:n},e,r))}));nu.Item=Pc,nu.SubMenu=Rc,nu.Divider=Gl,nu.ItemGroup=Tl;const ru=nu;var iu=n(2833),ou=n.n(iu);const au=function(e){function t(e,r,l,c,p){for(var f,h,m,g,E,T=0,S=0,k=0,x=0,O=0,A=0,j=m=f=0,R=0,M=0,F=0,$=0,V=l.length,B=V-1,q="",z="",G="",Q="";R<V;){if(h=l.charCodeAt(R),R===B&&0!==S+x+k+T&&(0!==S&&(h=47===S?10:47),x=k=T=0,V++,B++),0===S+x+k+T){if(R===B&&(0<M&&(q=q.replace(d,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(R)}h=59}switch(h){case 123:for(f=(q=q.trim()).charCodeAt(0),m=1,$=++R;R<V;){switch(h=l.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(R+1)){case 42:case 47:e:{for(j=R+1;j<B;++j)switch(l.charCodeAt(j)){case 47:if(42===h&&42===l.charCodeAt(j-1)&&R+2!==j){R=j+1;break e}break;case 10:if(47===h){R=j+1;break e}}R=j}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<B&&l.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=l.substring($,R),0===f&&(f=(q=q.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<M&&(q=q.replace(d,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:M=r;break;default:M=L}if($=(m=t(r,M,m,h,p+1)).length,0<D&&(E=s(3,m,M=n(L,q,F),r,_,C,$,h,p,c),q=M.join(""),void 0!==E&&0===($=(m=E.trim()).length)&&(h=0,m="")),0<$)switch(h){case 115:q=q.replace(w,a);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(v,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===c&&(z+=m,m="")}else m=""}else m=t(r,n(r,q,F),m,c,p+1);G+=m,m=F=M=j=f=0,q="",h=l.charCodeAt(++R);break;case 125:case 59:if(1<($=(q=(0<M?q.replace(d,""):q).trim()).length))switch(0===j&&(f=q.charCodeAt(0),45===f||96<f&&123>f)&&($=(q=q.replace(" ",":")).length),0<D&&void 0!==(E=s(1,q,r,e,_,C,z.length,c,p,c))&&0===($=(q=E.trim()).length)&&(q="\0\0"),f=q.charCodeAt(0),h=q.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){Q+=q+l.charAt(R);break}default:58!==q.charCodeAt($-1)&&(z+=i(q,f,h,q.charCodeAt(2)))}F=M=j=f=0,q="",h=l.charCodeAt(++R)}}switch(h){case 13:case 10:47===S?S=0:0===1+f&&107!==c&&0<q.length&&(M=1,q+="\0"),0<D*P&&s(0,q,r,e,_,C,z.length,c,p,c),C=1,_++;break;case 59:case 125:if(0===S+x+k+T){C++;break}default:switch(C++,g=l.charAt(R),h){case 9:case 32:if(0===x+T+S)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+S+T&&(M=F=1,g="\f"+g);break;case 108:if(0===x+S+T+N&&0<j)switch(R-j){case 2:112===O&&58===l.charCodeAt(R-3)&&(N=O);case 8:111===A&&(N=A)}break;case 58:0===x+S+T&&(j=R);break;case 44:0===S+k+x+T&&(M=1,g+="\r");break;case 34:case 39:0===S&&(x=x===h?0:0===x?h:x);break;case 91:0===x+S+k&&T++;break;case 93:0===x+S+k&&T--;break;case 41:0===x+S+T&&k--;break;case 40:0===x+S+T&&(0===f&&(2*O+3*A==533||(f=1)),k++);break;case 64:0===S+k+x+T+j+m&&(m=1);break;case 42:case 47:if(!(0<x+T+k))switch(S){case 0:switch(2*h+3*l.charCodeAt(R+1)){case 235:S=47;break;case 220:$=R,S=42}break;case 42:47===h&&42===O&&$+2!==R&&(33===l.charCodeAt($+2)&&(z+=l.substring($,R+1)),g="",S=0)}}0===S&&(q+=g)}A=O,O=h,R++}if(0<($=z.length)){if(M=r,0<D&&void 0!==(E=s(2,z,M,e,_,C,$,c,p,c))&&0===(z=E).length)return Q+z+G;if(z=M.join(",")+"{"+z+"}",0!=I*N){switch(2!==I||o(z,2)||(N=0),N){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(y,"::-webkit-input-$1")+z.replace(y,"::-moz-$1")+z.replace(y,":-ms-input-$1")+z}N=0}}return Q+z+G}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(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&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===I||2===I&&o(l,1)?"-webkit-"+l+l:l}if(0===I||2===I&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(E,"tb");break;case 232:l=a.replace(E,"tb-rl");break;case 220:l=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),j(2!==t?r:r.replace(k,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(T," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,p=0,f=t;p<D;++p)switch(d=A[p].call(c,e,f,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?I=1:(I=2,j=e):I=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=s(-1,n,r,r,_,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(L,r,n,0,0);return 0<D&&void 0!==(i=s(-2,o,r,r,_,C,o.length,0,0,0))&&(o=i),N=0,C=_=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C=1,_=1,N=0,I=1,L=[],A=[],D=0,j=null,P=0;return c.use=function e(t){switch(t){case void 0:case null:D=A.length=0;break;default:if("function"==typeof t)A[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else P=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},su={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};function lu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cu=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uu=lu((function(e){return cu.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),du=n(4146),pu=n.n(du);function fu(){return(fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var hu=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},mu=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,pt.typeOf)(e)},gu=Object.freeze([]),vu=Object.freeze({});function yu(e){return"function"==typeof e}function bu(e){return e.displayName||e.name||"Component"}function Eu(e){return e&&"string"==typeof e.styledComponentId}var wu="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tu="undefined"!=typeof window&&"HTMLElement"in window,Su=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function ku(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var xu=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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=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<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),Ou=new Map,Cu=new Map,_u=1,Nu=function(e){if(Ou.has(e))return Ou.get(e);for(;Cu.has(_u);)_u++;var t=_u++;return Ou.set(e,t),Cu.set(t,e),t},Iu=function(e){return Cu.get(e)},Lu=function(e,t){t>=_u&&(_u=t+1),Ou.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-]+)"\\].*?"([^"]*)'),ju=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},Pu=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(Du);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Lu(c,l),ju(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},Ru=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Mu=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=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=Ru();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Fu=function(){function e(e){var t=this.element=Mu(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<r;n++){var i=t[n];if(i.ownerNode===e)return i}ku(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$u=function(){function e(e){var t=this.element=Mu(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),Vu=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Bu=Tu,qu={isServer:!Tu,useCSSOMInjection:!Su},zu=function(){function e(e,t,n){void 0===e&&(e=vu),void 0===t&&(t={}),this.options=fu({},qu,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Tu&&Bu&&(Bu=!1,function(e){for(var t=document.querySelectorAll(Au),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(wu)&&(Pu(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Nu(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(fu({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new Vu(i):r?new Fu(i):new $u(i),new xu(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Nu(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Nu(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Nu(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=Iu(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=wu+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(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<e.length;t+=1){var n=e[t];if(yu(n)&&!Eu(n))return!1}return!0}var Yu=Ku("5.3.5"),Xu=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Wu(e),this.componentId=t,this.baseHash=Hu(Yu,t),this.baseStyle=n,zu.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=hd(this.rules,e,t,n).join(""),a=Uu(Hu(this.baseHash,o)>>>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="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=hd(p,e,t,n),h=Array.isArray(f)?f.join(""):f;c=Hu(c,h+d),u+=h}}if(u){var m=Uu(c>>>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 ed(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 au(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,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(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!==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))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=c.length?c.reduce((function(e,t){return t.name||ku(15),Hu(e,t.name)}),5381).toString():"",h}var td=a().createContext(),nd=(td.Consumer,a().createContext()),rd=(nd.Consumer,new zu),id=ed();function od(){return(0,o.useContext)(td)||rd}function ad(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=od(),s=(0,o.useMemo)((function(){var t=i;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,o.useMemo)((function(){return ed({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){ou()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a().createElement(td.Provider,{value:s},a().createElement(nd.Provider,{value:l},e.children))}var sd=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=id);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=id),this.name+e.hash},e}(),ld=/([A-Z])/,cd=/([A-Z])/g,ud=/^ms-/,dd=function(e){return"-"+e.toLowerCase()};function pd(e){return ld.test(e)?e.replace(cd,dd).replace(ud,"-ms-"):e}var fd=function(e){return null==e||!1===e||""===e};function hd(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=hd(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return fd(e)?"":Eu(e)?"."+e.styledComponentId:yu(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:hd(e(t),t,n,r):e instanceof sd?n?(e.inject(n,r),e.getName(r)):e:mu(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!fd(t[a])&&(Array.isArray(t[a])&&t[a].isCss||yu(t[a])?o.push(pd(a)+":",t[a],";"):mu(t[a])?o.push.apply(o,e(t[a],a)):o.push(pd(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in su?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var md=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function gd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return yu(e)||mu(e)?md(hd(hu(gu,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:md(hd(hu(e,n)))}new Set;var vd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yd=/(^-|-$)/g;function bd(e){return e.replace(vd,"-").replace(yd,"")}function Ed(e){return"string"==typeof e&&!0}var wd=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Td=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Sd(e,t,n){var r=e[n];wd(t)&&wd(r)?kd(r,t):e[n]=t}function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(wd(a))for(var s in a)Td(s)&&Sd(e,a[s],s)}return e}var xd=a().createContext();xd.Consumer;var Od={};function Cd(e,t,n){var r=Eu(e),i=!Ed(e),s=t.attrs,l=void 0===s?gu:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":bd(e);Od[n]=(Od[n]||0)+1;var r=n+"-"+function(e){return Uu(Ku(e)>>>0)}("5.3.5"+n+Od[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return Ed(e)?"styled."+e:"Styled("+bu(e)+")"}(e):d,f=t.displayName&&t.componentId?bd(t.displayName)+"-"+t.componentId:t.componentId||u,h=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,m=t.shouldForwardProp;r&&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,r?e.componentStyle:void 0),y=v.isStatic&&0===l.length,b=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=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,o.useContext)(xd),s)||vu,t,i),f=p[0],h=p[1],m=function(e,t,n){var r=od(),i=(0,o.useContext)(nd)||id;return t?e.generateAndInjectStyles(vu,r,i):e.generateAndInjectStyles(n,r,i)}(a,r,f),g=n,v=h.$as||t.$as||h.as||t.as||d,y=Ed(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,o.createElement)(v,E)}(g,e,t,y)};return b.displayName=p,(g=a().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=p,g.shouldForwardProp=m,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):gu,g.styledComponentId=f,g.target=r?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<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ed(e)?e:bd(bu(e)));return Cd(e,fu({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?kd({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},i&&pu()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var _d,Nd=function(e){return function e(t,n,r){if(void 0===r&&(r=vu),!(0,pt.isValidElementType)(n))return ku(1,String(n));var i=function(){return t(n,r,gd.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}(Cd,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){Nd[e]=Nd(e)})),(_d=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(hd(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},_d.removeStyles=function(e,t){t.clearRules(this.componentId+e)},_d.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=Ru();return"<style "+[n&&'nonce="'+n+'"',wu+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},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=Ru();return r&&(n.nonce=r),[a().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):a().createElement(ad,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return ku(3)}}();const Id=Nd;var Ld=n(3408);const Ad=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Er(e)),{borderBlockStart:`${Qt(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Qt(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Qt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Qt(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:`${Qt(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:`${Qt(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}}})}},Dd=fi("Divider",(e=>{const t=si(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Ad(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const jd=e=>{const{getPrefixCls:t,direction:n,divider:r}=o.useContext(ct),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:p,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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",i),[y,b,E]=Dd(v),w=s.length>0?`-${s}`:s,T=!!d,S="left"===s&&null!=l,k="right"===s&&null!=l,x=g()(v,null==r?void 0:r.className,b,E,`${v}-${a}`,{[`${v}-with-text`]:T,[`${v}-with-text${w}`]:T,[`${v}-dashed`]:!!p,[`${v}-plain`]:!!f,[`${v}-rtl`]:"rtl"===n,[`${v}-no-default-orientation-margin-left`]:S,[`${v}-no-default-orientation-margin-right`]:k},c,u),O=o.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),C=Object.assign(Object.assign({},S&&{marginLeft:O}),k&&{marginRight:O});return y(o.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},m,{role:"separator"}),d&&"vertical"!==a&&o.createElement("span",{className:`${v}-inner-text`,style:C},d)))},Pd=["xxl","xl","lg","md","sm","xs"];const Rd=(0,o.createContext)({}),Md=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Fd=(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),$d=fi("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"}}}}),(()=>({}))),Vd=fi("Grid",(e=>{const t=si(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Md(t),Fd(t,""),Fd(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Qt(t)})`]:Object.assign({},Fd(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function Bd(e,t){const[n,r]=o.useState("string"==typeof e?e:"");return o.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<Pd.length;n++){const i=Pd[n];if(!t[i])continue;const o=e[i];if(void 0!==o)return void r(o)}})()}),[JSON.stringify(e),t]),n}const qd=o.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:i,className:s,style:l,children:c,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=o.useContext(ct),[m,v]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,b]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=Bd(i,y),w=Bd(r,y),T=o.useRef(u),S=function(){const[,e]=Ur(),t=(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(Pd).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<n.length-1){const e=`screen${i}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const o=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[o]))throw new Error(`${e}<=${o} fails : !(${t[e]}<=${t[o]})`)}})),e})(e));return a().useMemo((()=>{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])}();o.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),[x,O,C]=$d(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;r<Pd.length;r++){const i=Pd[r];if(m[i]&&void 0!==t[i]){e[n]=t[i];break}}else e[n]=t})),e})(),N=g()(k,{[`${k}-no-wrap`]:!1===d,[`${k}-${w}`]:w,[`${k}-${E}`]:E,[`${k}-rtl`]:"rtl"===h},s,O,C),I={},L=null!=_[0]&&_[0]>0?_[0]/-2:void 0;L&&(I.marginLeft=L,I.marginRight=L);const[A,D]=_;I.rowGap=D;const j=o.useMemo((()=>({gutter:[A,D],wrap:d})),[A,D,d]);return x(o.createElement(Rd.Provider,{value:j},o.createElement("div",Object.assign({},p,{className:N,style:Object.assign(Object.assign({},I),l),ref:t}),c)))})),zd=qd;function Gd(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Qd=["xs","sm","md","lg","xl","xxl"],Ud=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(ct),{gutter:i,wrap:a}=o.useContext(Rd),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",s),[E,w,T]=Vd(b),S={};let k={};Qd.forEach((t=>{let n={};const i=e[t];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),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"===r}),n.flex&&(k[`${b}-${t}-flex`]=!0,S[`--${b}-${t}-flex`]=Gd(n.flex))}));const x=g()(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${p}`]:p},f,k,w,T),O={};if(i&&i[0]>0){const e=i[0]/2;O.paddingLeft=e,O.paddingRight=e}return m&&(O.flex=Gd(m),!1!==a||O.minWidth||(O.minWidth=0)),E(o.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},O),v),S),className:x,ref:t}),h))})),Hd=Ud,Kd=o.createContext(void 0),Wd=e=>{const t=a().useContext(Kd);return a().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Yd=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,s=g()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),l=g()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),c=o.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return o.createElement("span",{className:g()(t,s,l,n),style:Object.assign(Object.assign({},c),r)})},Xd=new cr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Jd=e=>({height:e,lineHeight:Qt(e)}),Zd=e=>Object.assign({width:e},Jd(e)),ep=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Xd,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),tp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Jd(e)),np=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Zd(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Zd(i)),[`${t}${t}-sm`]:Object.assign({},Zd(o))}},rp=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},tp(t,s)),[`${r}-lg`]:Object.assign({},tp(i,s)),[`${r}-sm`]:Object.assign({},tp(o,s))}},ip=e=>Object.assign({width:e},Jd(e)),op=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},ip(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},ip(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%"}}},ap=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},sp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Jd(e)),lp=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()},sp(r,s))},ap(e,r,n)),{[`${n}-lg`]:Object.assign({},sp(i,s))}),ap(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},sp(o,s))}),ap(e,o,`${n}-sm`))},cp=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,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},Zd(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Zd(c)),[`${n}-sm`]:Object.assign({},Zd(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"},lp(e)),np(e)),rp(e)),op(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({},ep(e))}}},up=fi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=si(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[cp(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"]]}),dp={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 pp=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:dp}))};const fp=o.forwardRef(pp),hp=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},mp=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=st(Array(i)).map(((t,n)=>o.createElement("li",{key:n,style:{width:hp(n,e)}})));return o.createElement("ul",{className:g()(t,n),style:r},a)},gp=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:g()(t,n),style:Object.assign({width:r},i)})};function vp(e){return e&&"object"==typeof e?e:{}}const yp=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:f,direction:h,skeleton:m}=o.useContext(ct),v=f("skeleton",t),[y,b,E]=up(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)),vp(l));s=o.createElement("div",{className:`${v}-header`},o.createElement(Yd,Object.assign({},e)))}if(t||n){let r,i;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)),vp(c));r=o.createElement(gp,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)),vp(u));i=o.createElement(mp,Object.assign({},n))}f=o.createElement("div",{className:`${v}-content`},r,i)}const w=g()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:p},null==m?void 0:m.className,r,i,b,E);return y(o.createElement("div",{className:w,style:Object.assign(Object.assign({},null==m?void 0:m.style),a)},s,f))}return null!=s?s:null};yp.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=o.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=lt(e,["prefixCls"]),h=g()(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},n,r,d,p);return u(o.createElement("div",{className:h},o.createElement(Yd,Object.assign({prefixCls:`${c}-button`,size:s},f))))},yp.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=o.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=lt(e,["prefixCls","className"]),h=g()(c,`${c}-element`,{[`${c}-active`]:i},n,r,d,p);return u(o.createElement("div",{className:h},o.createElement(Yd,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},f))))},yp.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:s="default"}=e,{getPrefixCls:l}=o.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=lt(e,["prefixCls"]),h=g()(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},n,r,d,p);return u(o.createElement("div",{className:h},o.createElement(Yd,Object.assign({prefixCls:`${c}-input`,size:s},f))))},yp.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:s}=o.useContext(ct),l=s("skeleton",t),[c,u,d]=up(l),p=g()(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(o.createElement("div",{className:p},o.createElement("div",{className:g()(`${l}-image`,n),style:i},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},o.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`})))))},yp.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:s}=e,{getPrefixCls:l}=o.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=g()(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,p),h=null!=s?s:o.createElement(fp,null);return u(o.createElement("div",{className:f},o.createElement("div",{className:g()(`${c}-image`,n),style:i},h)))};const bp=yp,Ep={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 wp=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:Ep}))};const Tp=o.forwardRef(wp),Sp={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 kp=function(e,t){return o.createElement(We,i({},e,{ref:t,icon:Sp}))};const xp=o.forwardRef(kp),Op=(0,o.createContext)(null);var Cp={width:0,height:0,left:0,top:0};function _p(e,t){var n=o.useRef(e),r=u(o.useState({}),2)[1];return[n.current,function(e){var i="function"==typeof e?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}]}var Np=Math.pow(.995,20);function Ip(e){var t=u((0,o.useState)(0),2),n=t[0],r=t[1],i=(0,o.useRef)(0),a=(0,o.useRef)();return a.current=e,Jt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}var Lp={width:0,height:0,left:0,top:0,right:0};function Ap(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Dp(e){return String(e).replace(/"/g,"TABS_DQ")}function jp(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Pp=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));const Rp=Pp;var Mp=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==d(a)||o.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));const Fp=Mp;var $p=Jo.ESC,Vp=Jo.TAB;const Bp=(0,o.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,s=(0,o.useMemo)((function(){return"function"==typeof n?n():n}),[n]),l=gr(t,null==s?void 0:s.ref);return a().createElement(a().Fragment,null,r&&a().createElement("div",{className:"".concat(i,"-arrow")}),a().cloneElement(s,{ref:yr(s)?l:void 0}))}));var qp={adjustX:1,adjustY:1},zp=[0,0];const Gp={topLeft:{points:["bl","tl"],overflow:qp,offset:[0,-4],targetOffset:zp},top:{points:["bc","tc"],overflow:qp,offset:[0,-4],targetOffset:zp},topRight:{points:["br","tr"],overflow:qp,offset:[0,-4],targetOffset:zp},bottomLeft:{points:["tl","bl"],overflow:qp,offset:[0,4],targetOffset:zp},bottom:{points:["tc","bc"],overflow:qp,offset:[0,4],targetOffset:zp},bottomRight:{points:["tr","br"],overflow:qp,offset:[0,4],targetOffset:zp}};var Qp=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Up(e,t){var n,r=e.arrow,s=void 0!==r&&r,l=e.prefixCls,c=void 0===l?"rc-dropdown":l,d=e.transitionName,p=e.animation,m=e.align,v=e.placement,y=void 0===v?"bottomLeft":v,b=e.placements,E=void 0===b?Gp:b,w=e.getPopupContainer,T=e.showAction,S=e.hideAction,k=e.overlayClassName,x=e.overlayStyle,O=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,Qp),j=u(a().useState(),2),P=j[0],R=j[1],M="visible"in e?O:P,F=a().useRef(null),$=a().useRef(null),V=a().useRef(null);a().useImperativeHandle(t,(function(){return F.current}));var B=function(e){R(e),null==A||A(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,s=o.useRef(!1),l=function(){var e,i;t&&(null===(e=n.current)||void 0===e||null===(i=e.focus)||void 0===i||i.call(e),null==r||r(!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 $p:l();break;case Vp:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Eo(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:M,triggerRef:V,onVisibleChange:B,autoFocus:N,overlayRef:$});var q,z,G,Q=function(){return a().createElement(Bp,{ref:$,overlay:I,prefixCls:c,arrow:s})},U=a().cloneElement(L,{className:g()(null===(n=L.props)||void 0===n?void 0:n.className,M&&(q=e.openClassName,void 0!==q?q:"".concat(c,"-open"))),ref:yr(L)?gr(V,L.ref):void 0}),H=S;return H||-1===_.indexOf("contextMenu")||(H=["click"]),a().createElement(sl,i({builtinPlacements:E},D,{prefixCls:c,ref:F,popupClassName:g()(k,f({},"".concat(c,"-show-arrow"),s)),popupStyle:x,action:_,showAction:T,hideAction:H,popupPlacement:y,popupAlign:m,popupTransitionName:d,popupAnimation:p,popupVisible:M,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;R(!1),n&&n(t)},getPopupContainer:w}),U)}const Hp=a().forwardRef(Up);var Kp=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,s=e.mobile,l=e.moreIcon,c=void 0===l?"More":l,d=e.moreTransitionName,p=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,o.useState)(!1),2),k=S[0],x=S[1],O=u((0,o.useState)(null),2),C=O[0],_=O[1],N="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),L=null!==C?"".concat(N,"-").concat(C):null,A=null==a?void 0:a.dropdownAriaLabel,D=o.createElement(Ll,{onClick:function(e){var t=e.key,n=e.domEvent;E(t,n),x(!1)},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[C],"aria-label":void 0!==A?A:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,s=e.label,l=jp(t,i,m,n);return o.createElement(_a,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,s),l&&o.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)}},i||m.removeIcon||"×"))})));function j(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===C}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void _(a.key)}}(0,o.useEffect)((function(){var e=document.getElementById(L);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[C]),(0,o.useEffect)((function(){k||_(null)}),[k]);var P=f({},y?"marginRight":"marginLeft",v);i.length||(P.visibility="hidden",P.order=1);var R=g()(f({},"".concat(I,"-rtl"),y)),M=s?null:o.createElement(Hp,{prefixCls:I,overlay:D,trigger:["hover"],visible:!!i.length&&k,transitionName:d,onVisibleChange:x,overlayClassName:g()(R,T),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:P,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(r,"-more"),"aria-expanded":k,onKeyDown:function(e){var t=e.which;if(k)switch(t){case Jo.UP:j(-1),e.preventDefault();break;case Jo.DOWN:j(1),e.preventDefault();break;case Jo.ESC:x(!1);break;case Jo.SPACE:case Jo.ENTER:null!==C&&E(C,e)}else[Jo.DOWN,Jo.SPACE,Jo.ENTER].includes(t)&&(x(!0),e.preventDefault())}},c));return o.createElement("div",{className:g()("".concat(n,"-nav-operations"),h),style:p,ref:t},M,o.createElement(Rp,{prefixCls:n,locale:a,editable:m}))}));const Wp=o.memo(Kp,(function(e,t){return t.tabMoving})),Yp=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=e.closable,p=e.renderWrapper,h=e.removeAriaLabel,m=e.editable,v=e.onClick,y=e.onFocus,b=e.style,E="".concat(t,"-tab"),w=jp(d,c,m,l);function T(e){l||v(e)}var S=o.useMemo((function(){return u&&"string"==typeof s?o.createElement("span",null,s):s}),[s,u]),k=o.createElement("div",{key:a,"data-node-key":Dp(a),className:g()(E,f(f(f({},"".concat(E,"-with-remove"),w),"".concat(E,"-active"),r),"".concat(E,"-disabled"),l)),style:b,onClick:T},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(E,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),T(e)},onKeyDown:function(e){[Jo.SPACE,Jo.ENTER].includes(e.which)&&(e.preventDefault(),T(e))},onFocus:y},u&&o.createElement("span",{className:"".concat(E,"-icon")},u),s&&S),w&&o.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},c||m.removeIcon||"×"));return p?p(k):k};var Xp=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,i=t.offsetHeight,o=void 0===i?0:i;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-r)<1)return[s,l]}return[r,o]},Jp=function(e,t){return e[t?0:1]},Zp=o.forwardRef((function(e,t){var n,r,s,l,c,d=e.className,p=e.style,h=e.id,m=e.animated,v=e.activeKey,y=e.rtl,b=e.extra,E=e.editable,w=e.locale,T=e.tabPosition,S=e.tabBarGutter,k=e.children,x=e.onTabClick,O=e.onTabScroll,C=e.indicator,_=o.useContext(Op),N=_.prefixCls,I=_.tabs,L=(0,o.useRef)(null),A=(0,o.useRef)(null),D=(0,o.useRef)(null),j=(0,o.useRef)(null),P=(0,o.useRef)(null),R=(0,o.useRef)(null),M=(0,o.useRef)(null),F="top"===T||"bottom"===T,$=_p(0,(function(e,t){F&&O&&O({direction:e>t?"left":"right"})})),V=u($,2),B=V[0],q=V[1],z=_p(0,(function(e,t){!F&&O&&O({direction:e>t?"top":"bottom"})})),G=u(z,2),Q=G[0],U=G[1],H=u((0,o.useState)([0,0]),2),K=H[0],W=H[1],Y=u((0,o.useState)([0,0]),2),X=Y[0],J=Y[1],Z=u((0,o.useState)([0,0]),2),ee=Z[0],te=Z[1],ne=u((0,o.useState)([0,0]),2),re=ne[0],ie=ne[1],oe=(n=new Map,r=(0,o.useRef)([]),s=u((0,o.useState)({}),2)[1],l=(0,o.useRef)("function"==typeof n?n():n),c=Ip((function(){var e=l.current;r.current.forEach((function(t){e=t(e)})),r.current=[],l.current=e,s({})})),[l.current,function(e){r.current.push(e),c()}]),ae=u(oe,2),se=ae[0],le=ae[1],ce=function(e,t,n){return(0,o.useMemo)((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Cp,o=i.left+i.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||Cp);var u=r.get(l)||ge({},c);u.right=o-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(I,se,X[0]),ue=Jp(K,F),de=Jp(X,F),pe=Jp(ee,F),fe=Jp(re,F),he=ue<de+pe,me=he?ue-fe:ue-pe,ve="".concat(N,"-nav-operations-hidden"),ye=0,be=0;function Ee(e){return e<ye?ye:e>be?be:e}F&&y?(ye=0,be=Math.max(0,de-me)):(ye=Math.min(0,me-de),be=0);var we=(0,o.useRef)(null),Te=u((0,o.useState)(),2),Se=Te[0],ke=Te[1];function xe(){ke(Date.now())}function Oe(){we.current&&clearTimeout(we.current)}!function(e,t){var n=u((0,o.useState)(),2),r=n[0],i=n[1],a=u((0,o.useState)(0),2),s=a[0],l=a[1],c=u((0,o.useState)(0),2),d=c[0],p=c[1],f=u((0,o.useState)(),2),h=f[0],m=f[1],g=(0,o.useRef)(),v=(0,o.useRef)(),y=(0,o.useRef)(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],o=n.screenX,a=n.screenY;i({x:o,y:a});var c=o-r.x,u=a-r.y;t(c,u);var d=Date.now();l(d),p(d-s),m({x:c,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),h)){var e=h.x/d,n=h.y/d,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,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*=Np),20*(l*=Np))}),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()}},o.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)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return Ee(e+t)}))}return!!he&&(F?n(q,e):n(U,t),Oe(),xe(),!0)})),(0,o.useEffect)((function(){return Oe(),Se&&(we.current=setTimeout((function(){ke(0)}),100)),Oe}),[Se]);var Ce=function(e,t,n,r,i,a,s){var l,c,u,d=s.tabs,p=s.tabPosition,f=s.rtl;return["top","bottom"].includes(p)?(l="width",c=f?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),(0,o.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,i=0;i<n;i+=1){var o=e.get(d[i].key)||Lp;if(o[c]+o[l]>u+t){r=i-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(d[s].key)||Lp)[c]<u){a=s+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,i,a,u,p,d.map((function(e){return e.key})).join("_"),f])}(ce,me,F?B:Q,de,pe,fe,ge(ge({},e),{},{tabs:I})),_e=u(Ce,2),Ne=_e[0],Ie=_e[1],Le=dr((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(F){var n=B;y?t.right<B?n=t.right:t.right+t.width>B+me&&(n=t.right+t.width-me):t.left<-B?n=-t.left:t.left+t.width>-B+me&&(n=-(t.left+t.width-me)),U(0),q(Ee(n))}else{var r=Q;t.top<-Q?r=-t.top:t.top+t.height>-Q+me&&(r=-(t.top+t.height-me)),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 o.createElement(Yp,{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){x(n,e)},onFocus:function(){Le(n),xe(),j.current&&(y||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),je=function(){return le((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var r,i=e.key,o=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Dp(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],d=s[2],p=s[3];t.set(i,{width:l,height:c,left:d,top:p})}})),t}))};(0,o.useEffect)((function(){je()}),[I.map((function(e){return e.key})).join("_")]);var Pe=Ip((function(){var e=Xp(L),t=Xp(A),n=Xp(D);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Xp(M);te(r);var i=Xp(R);ie(i);var o=Xp(P);J([o[0]-r[0],o[1]-r[1]]),je()})),Re=I.slice(0,Ne),Me=I.slice(Ie+1),Fe=[].concat(st(Re),st(Me)),$e=ce.get(v),Ve=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,i=e.indicator,s=void 0===i?{}:i,l=s.size,c=s.align,d=void 0===c?"center":c,p=u((0,o.useState)(),2),f=p[0],h=p[1],m=(0,o.useRef)(),g=a().useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){Eo.cancel(m.current)}return(0,o.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var i=r?"right":"left";"start"===d&&(e[i]=t[i]),"center"===d&&(e[i]=t[i]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===d&&(e[i]=t[i]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===d&&(e.top=t.top),"center"===d&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===d&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=Eo((function(){h(e)})),v}),[t,n,r,d,g]),{style:f}}({activeTabOffset:$e,horizontal:F,indicator:C,rtl:y}).style;(0,o.useEffect)((function(){Le()}),[v,ye,be,Ap($e),Ap(ce),F]),(0,o.useEffect)((function(){Pe()}),[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),o.createElement(so,{onResize:Pe},o.createElement("div",{ref:vr(t,L),role:"tablist",className:g()("".concat(N,"-nav"),d),style:p,onKeyDown:function(){xe()}},o.createElement(Fp,{ref:A,position:"left",extra:b,prefixCls:N}),o.createElement(so,{onResize:Pe},o.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:j},o.createElement(so,{onResize:Pe},o.createElement("div",{ref:P,className:"".concat(N,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(Q,"px)"),transition:Se?"none":void 0}},De,o.createElement(Rp,{ref:M,prefixCls:N,locale:w,editable:E,style:ge(ge({},0===De.length?void 0:Ae),{},{visibility:Qe?"hidden":null})}),o.createElement("div",{className:g()("".concat(N,"-ink-bar"),f({},"".concat(N,"-ink-bar-animated"),m.inkBar)),style:Ve}))))),o.createElement(Wp,i({},e,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:R,prefixCls:N,tabs:Fe,className:!Qe&&ve,tabMoving:!!Se})),o.createElement(Fp,{ref:D,position:"right",extra:b,prefixCls:N})))}));const ef=Zp;var tf=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return o.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:i,className:g()(n,s&&"".concat(n,"-active"),r),ref:t},c)}));const nf=tf;var rf=["renderTabBar"],of=["label","key"];const af=function(e){var t=e.renderTabBar,n=h(e,rf),r=o.useContext(Op).tabs;return t?t(ge(ge({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=h(e,of);return o.createElement(nf,i({tab:t,key:n,tabKey:n},r))}))}),ef):o.createElement(ef,n)};var sf=["key","forceRender","style","className","destroyInactiveTabPane"];const lf=function(e){var t=e.id,n=e.activeKey,r=e.animated,a=e.tabPosition,s=e.destroyInactiveTabPane,l=o.useContext(Op),c=l.prefixCls,u=l.tabs,d=r.tabPane,p="".concat(c,"-tabpane");return o.createElement("div",{className:g()("".concat(c,"-content-holder"))},o.createElement("div",{className:g()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),f({},"".concat(c,"-content-animated"),d))},u.map((function(e){var a=e.key,l=e.forceRender,c=e.style,u=e.className,f=e.destroyInactiveTabPane,m=h(e,sf),v=a===n;return o.createElement(Ms,i({key:a,visible:v,forceRender:l,removeOnLeave:!(!s&&!f),leavedClassName:"".concat(p,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,s=e.className;return o.createElement(nf,i({},m,{prefixCls:p,id:t,tabKey:a,animated:d,active:v,style:ge(ge({},c),r),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,df=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,a=void 0===r?"rc-tabs":r,s=e.className,l=e.items,c=e.direction,p=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,x=e.moreIcon,O=e.moreTransitionName,C=e.destroyInactiveTabPane,_=e.renderTabBar,N=e.onChange,I=e.onTabClick,L=e.onTabScroll,A=e.getPopupContainer,D=e.popupClassName,j=e.indicator,P=h(e,cf),R=o.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===d(e)&&"key"in e}))}),[l]),M="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}:ge({inkBar:!0},"object"===d(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(y),$=u((0,o.useState)(!1),2),V=$[0],B=$[1];(0,o.useEffect)((function(){B(Ua())}),[]);var q=u(hr((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:p,defaultValue:m}),2),z=q[0],G=q[1],Q=u((0,o.useState)((function(){return R.findIndex((function(e){return e.key===z}))})),2),U=Q[0],H=Q[1];(0,o.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(U,R.length-1)),G(null===(e=R[t])||void 0===e?void 0:e.key)),H(t)}),[R.map((function(e){return e.key})).join("_"),z,U]);var K=u(hr(null,{value:n}),2),W=K[0],Y=K[1];(0,o.useEffect)((function(){n||(Y("rc-tabs-".concat(uf)),uf+=1)}),[]);var X={id:W,activeKey:z,animated:F,tabPosition:E,rtl:M,mobile:V},J=ge(ge({},X),{},{editable:v,locale:k,moreIcon:x,moreTransitionName:O,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:j});return o.createElement(Op.Provider,{value:{tabs:R,prefixCls:a}},o.createElement("div",i({ref:t,id:n,className:g()(a,"".concat(a,"-").concat(E),f(f(f({},"".concat(a,"-mobile"),V),"".concat(a,"-editable"),v),"".concat(a,"-rtl"),M),s)},P),o.createElement(af,i({},J,{renderTabBar:_})),o.createElement(lf,i({destroyInactiveTabPane:C},X,{animated:F}))))}));const pf=df,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}`}}}}},[Bc(e,"slide-up"),Bc(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:`${Qt(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:Qt(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Qt(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt(e.borderRadiusLG)} 0 0 ${Qt(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 ${Qt(e.borderRadiusLG)} ${Qt(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({},Er(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:`${Qt(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:`${Qt(e.paddingXXS)} ${Qt(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:`${Qt(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:Qt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Qt(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:`${Qt(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 ${Qt(e.borderRadius)} ${Qt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Qt(e.borderRadius)} ${Qt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt(e.borderRadius)} ${Qt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt(e.borderRadius)} 0 0 ${Qt(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}},kr(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,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:Qt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Qt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Qt(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({},Er(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 ${Qt(e.paddingXS)}`,background:"transparent",border:`${Qt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(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}},kr(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=fi("Tabs",(e=>{const t=si(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Qt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Qt(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,r,i,a,s,l,c;const{type:u,className:d,rootClassName:p,size:f,onEdit:h,hideAdd:m,centered:v,addIcon:y,removeIcon:b,moreIcon:E,popupClassName:w,children:T,items:S,animated:k,style:x,indicatorSize:O,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:N}=_,{direction:I,tabs:L,getPrefixCls:A,getPopupContainer:D}=o.useContext(ct),j=A("tabs",N),P=zl(j),[R,M,F]=Tf(j,P);let $;"editable-card"===u&&($={onEdit:(e,t)=>{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:o.createElement(Tp,null),addIcon:(null!=y?y:null==L?void 0:L.addIcon)||o.createElement(xp,null),showAdd:!0!==m});const V=A(),B=Wd(f),q=function(e,t){if(e)return e;const n=ft(t).map((e=>{if(o.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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},o),{label:i})}return null}));return function(e){return e.filter((e=>e))}(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:$l(e,"switch")})),t}(j,k),G=Object.assign(Object.assign({},null==L?void 0:L.style),x),Q={align:null!==(n=null==C?void 0:C.align)&&void 0!==n?n:null===(r=null==L?void 0:L.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==C?void 0:C.size)&&void 0!==i?i:O)&&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 R(o.createElement(pf,Object.assign({direction:I,getPopupContainer:D,moreTransitionName:`${V}-slide-up`},_,{items:q,className:g()({[`${j}-${B}`]:B,[`${j}-card`]:["card","editable-card"].includes(u),[`${j}-editable-card`]:"editable-card"===u,[`${j}-centered`]:v},null==L?void 0:L.className,d,p,M,F,P),popupClassName:g()(w,M,F,P),style:G,editable:$,moreIcon:null!==(c=null!=E?E:null==L?void 0:L.moreIcon)&&void 0!==c?c:o.createElement(jl,null),prefixCls:j,animated:z,indicator:Q})))};Sf.TabPane=()=>null;const kf=Sf;const xf=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=o.useContext(ct),s=a("card",t),l=g()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},i,{className:l}))},Of=e=>{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 ${Qt(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(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:`${Qt(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      ${Qt(i)} 0 0 0 ${n},\n      0 ${Qt(i)} 0 0 ${n},\n      ${Qt(i)} ${Qt(i)} 0 0 ${n},\n      ${Qt(i)} 0 0 0 ${n} inset,\n      0 ${Qt(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:`${Qt(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(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:Qt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Qt(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Qt(e.lineWidth)} ${e.lineType} ${o}`}}})},Nf=e=>Object.assign(Object.assign({margin:`${Qt(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}}),If=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Qt(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Qt(e.padding)} ${Qt(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({},Er(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:Of(e),[`${n}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:` 0 0 ${Qt(e.borderRadiusLG)} ${Qt(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:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:_f(e),[`${n}-meta`]:Nf(e)}),[`${n}-bordered`]:{border:`${Qt(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:`${Qt(e.borderRadiusLG)} ${Qt(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 ${Qt(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"}}}}},jf=fi("Card",(e=>{const t=si(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 Pf=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Rf=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return o.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return o.createElement("li",{style:{width:100/n.length+"%"},key:r},o.createElement("span",null,e))})))},Mf=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:f,type:h,cover:m,actions:v,tabList:y,children:b,activeTabKey:E,defaultActiveTabKey:w,tabBarExtraContent:T,hoverable:S,tabProps:k={},classNames:x,styles:O}=e,C=Pf(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}=o.useContext(ct),L=e=>{var t;return g()(null===(t=null==I?void 0:I.classNames)||void 0===t?void 0:t[e],null==x?void 0:x[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==O?void 0:O[e])},D=o.useMemo((()=>{let e=!1;return o.Children.forEach(b,(t=>{t&&t.type&&t.type===xf&&(e=!0)})),e}),[b]),j=_("card",n),[P,R,M]=jf(j),F=o.createElement(bp,{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=Wd(f),z=q&&"default"!==q?q:"large",G=y?o.createElement(kf,Object.assign({size:z},V,{className:`${j}-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=Pf(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||s||G){const e=g()(`${j}-head`,L("header")),t=g()(`${j}-head-title`,L("title")),n=g()(`${j}-extra`,L("extra")),r=Object.assign(Object.assign({},l),A("header"));B=o.createElement("div",{className:e,style:r},o.createElement("div",{className:`${j}-head-wrapper`},u&&o.createElement("div",{className:t,style:A("title")},u),s&&o.createElement("div",{className:n,style:A("extra")},s)),G)}const Q=g()(`${j}-cover`,L("cover")),U=m?o.createElement("div",{className:Q,style:A("cover")},m):null,H=g()(`${j}-body`,L("body")),K=Object.assign(Object.assign({},c),A("body")),W=o.createElement("div",{className:H,style:K},d?F:b),Y=g()(`${j}-actions`,L("actions")),X=v&&v.length?o.createElement(Rf,{actionClasses:Y,actionStyle:A("actions"),actions:v}):null,J=lt(C,["onTabChange"]),Z=g()(j,null==I?void 0:I.className,{[`${j}-loading`]:d,[`${j}-bordered`]:p,[`${j}-hoverable`]:S,[`${j}-contain-grid`]:D,[`${j}-contain-tabs`]:y&&y.length,[`${j}-${q}`]:q,[`${j}-type-${h}`]:!!h,[`${j}-rtl`]:"rtl"===N},r,i,R,M),ee=Object.assign(Object.assign({},null==I?void 0:I.style),a);return P(o.createElement("div",Object.assign({ref:t},J,{className:Z,style:ee}),B,U,W,X))}));const Ff=Mf;Ff.Grid=xf,Ff.Meta=e=>{const{prefixCls:t,className:n,avatar:r,title:i,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=o.useContext(ct),c=l("card",t),u=g()(`${c}-meta`,n),d=r?o.createElement("div",{className:`${c}-meta-avatar`},r):null,p=i?o.createElement("div",{className:`${c}-meta-title`},i):null,f=a?o.createElement("div",{className:`${c}-meta-description`},a):null,h=p||f?o.createElement("div",{className:`${c}-meta-detail`},p,f):null;return o.createElement("div",Object.assign({},s,{className:u}),d,h)};const $f=Ff,Vf=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(",")}}}}},Bf=pi("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 p(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 x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(i,o,a,s){var l=p(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==d(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=p(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=p(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<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(d(t)+" is not iterable")}return b.prototype=E,i(k,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:b,configurable:!0}),b.displayName=c(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(O.prototype),c(O.prototype,s,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new O(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=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<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=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=ge({},Ci),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"===d(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:r}=e,i=o.useRef(null),[a,s]=o.useState(null),[l,c]=o.useState([]),[u,d]=o.useState(0),[p,f]=o.useState(0),[h,m]=o.useState(0),[v,y]=o.useState(0),[b,E]=o.useState(!1),w={left:u,top:p,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;d(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),o.useEffect((()=>{if(n){const e=Eo((()=>{T(),E(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(T),t.observe(n)),()=>{Eo.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const S=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(rh));return o.createElement(Ms,{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 th.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return o.createElement("div",{ref:i,className:g()(t,{"wave-quick":S},n),style:w})}))},ah=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,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)}(o.createElement(oh,Object.assign({},t,{target:e})),i)},sh=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,o.useContext)(ct),s=(0,o.useRef)(null),l=i("wave"),[,c]=Bf(l),u=function(e,t,n){const{wave:r}=o.useContext(ct),[,i,a]=Ur(),s=dr((o=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${rh}`)||s,{showEffect:c}=r||{};(c||ah)(l,{className:t,token:i,component:n,event:o,hashId:a})})),l=o.useRef();return e=>{Eo.cancel(l.current),l.current=Eo((()=>{s(e)}))}}(s,g()(l,c),r);return a().useEffect((()=>{const e=s.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Wo(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]),a().isValidElement(t)?ql(t,{ref:yr(t)?gr(t.ref,s):s}):null!=t?t:null},lh=o.createContext(!1);const ch=o.createContext(void 0),uh=/^[\u4e00-\u9fa5]{2}$/,dh=uh.test.bind(uh);function ph(e){return"string"==typeof e}function fh(e){return"text"===e||"link"===e}const hh=(0,o.forwardRef)(((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,s=g()(`${o}-icon`,n);return a().createElement("span",{ref:t,className:s,style:r},i)})),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 o.createElement(We,i({},e,{ref:t,icon:gh}))};const yh=o.forwardRef(vh),bh=(0,o.forwardRef)(((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:o}=e;const s=g()(`${n}-loading-icon`,r);return a().createElement(mh,{prefixCls:n,className:s,style:i,ref:t},a().createElement(yh,{className:o}))})),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:i,style:o}=e,s=!!n;return r?a().createElement(bh,{prefixCls:t,className:i,style:o}):a().createElement(Ms,{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 a().createElement(bh,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),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)]}},xh=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return si(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Oh=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:Ar(s),d=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:Ar(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Ar(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:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/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:`${Qt(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({},kr(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))}),jh=e=>Object.assign({},Dh(e)),Ph=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Rh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jh(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))}),Mh=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jh(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({},Rh(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})),Ph(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},_h(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ph(e))}),Vh=e=>Object.assign(Object.assign(Object.assign({},_h(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ph(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ph(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`]:Rh(e),[`${t}-primary`]:Mh(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:`${Qt(c)} ${Qt(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=si(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return qh(t,e.componentCls)},Gh=e=>{const t=si(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=si(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=fi("Button",(e=>{const t=xh(e);return[Ch(t),zh(t),Gh(t),Qh(t),Uh(t),Bh(t),kh(t)]}),Oh,{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% + ${Qt(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% + ${Qt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},em=((e,t,n)=>{const r=pi(["Button","compact"],(e=>{const t=xh(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 r(t,n),null}})(0,0,Oh);const tm=(e,t)=>{var n,r;const{loading:i=!1,prefixCls:s,type:l,danger:c,shape:u="default",size:d,styles:p,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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),x=l||"default",{getPrefixCls:O,autoInsertSpaceInButton:C,direction:_,button:N}=(0,o.useContext)(ct),I=O("btn",s),[L,A,D]=Hh(I),j=(0,o.useContext)(lh),P=null!=f?f:j,R=(0,o.useContext)(ch),M=(0,o.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}}(i)),[i]),[F,$]=(0,o.useState)(M.loading),[V,B]=(0,o.useState)(!1),q=gr(t,(0,o.createRef)()),z=1===o.Children.count(v)&&!y&&!fh(x);(0,o.useEffect)((()=>{let e=null;return M.delay>0?e=setTimeout((()=>{e=null,$(!0)}),M.delay):$(M.loading),function(){e&&(clearTimeout(e),e=null)}}),[M]),(0,o.useEffect)((()=>{if(!q||!q.current||!1===C)return;const e=q.current.textContent;z&&dh(e)?V||B(!0):V&&B(!1)}),[q]);const G=t=>{const{onClick:n}=e;F||P?t.preventDefault():null==n||n(t)},Q=!1!==C,{compactSize:U,compactItemClassnames:H}=((e,t)=>{const n=o.useContext(pc),r=o.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:r}})(I,_),K=Wd((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:U)&&void 0!==t?t:R)&&void 0!==n?n:e})),W=K&&{large:"lg",small:"sm",middle:void 0}[K]||"",Y=F?"loading":y,X=lt(k,["navigate"]),J=g()(I,A,D,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${x}`]:x,[`${I}-${W}`]:W,[`${I}-icon-only`]:!v&&0!==v&&!!Y,[`${I}-background-ghost`]:b&&!fh(x),[`${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==p?void 0:p.icon)||{}),(null===(r=null==N?void 0:N.styles)||void 0===r?void 0:r.icon)||{}),ne=y&&!F?a().createElement(mh,{prefixCls:I,className:ee,style:te},y):a().createElement(Th,{existIcon:!!y,prefixCls:I,loading:!!F}),re=v||0===v?function(e,t){let n=!1;const r=[];return a().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})),a().Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&ph(e.type)&&dh(e.props.children)?ql(e,{children:e.props.children.split("").join(n)}):ph(e)?dh(e)?a().createElement("span",null,e.split("").join(n)):a().createElement("span",null,e):Bl(e)?a().createElement("span",null,e):e}(e,t)))}(v,z&&Q):null;if(void 0!==X.href)return L(a().createElement("a",Object.assign({},X,{className:g()(J,{[`${I}-disabled`]:P}),href:P?void 0:X.href,style:Z,onClick:G,ref:q,tabIndex:P?-1:0}),ne,re));let ie=a().createElement("button",Object.assign({},k,{type:w,className:J,style:Z,onClick:G,disabled:P,ref:q}),ne,re,!!H&&a().createElement(em,{key:"compact",prefixCls:I}));return fh(x)||(ie=a().createElement(sh,{component:"Button",disabled:!!F},ie)),L(ie)},nm=(0,o.forwardRef)(tm);nm.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ct),{prefixCls:r,size:i,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Ur();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const d=g()(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return o.createElement(ch.Provider,{value:i},o.createElement("div",Object.assign({},s,{className:d})))},nm.__ANT_BUTTON=!0;const rm=nm;var im=n(790);const om=Id.div`
+(()=>{var e,t={8633:(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;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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)?l(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function f(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.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+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:a,l:s}}function S(e,t,n){return n<0&&(n+=1),n>1&&(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<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}function O(e,t,n,r){var i=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function x(e){return C(e)/255}function C(e){return parseInt(e,16)}var _={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function N(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(_[e])e=_[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=D.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=D.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=D.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=D.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=D.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=D.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=D.hex8.exec(e))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),a:x(n[4]),format:t?"name":"hex8"}:(n=D.hex6.exec(e))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),format:t?"name":"hex"}:(n=D.hex4.exec(e))?{r:C(n[1]+n[1]),g:C(n[2]+n[2]),b:C(n[3]+n[3]),a:x(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=D.hex3.exec(e))&&{r:C(n[1]+n[1]),g:C(n[2]+n[2]),b:C(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(P(e.r)&&P(e.g)&&P(e.b)?(t=function(e,t,n){return{r:255*v(e,255),g:255*v(t,255),b:255*v(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):P(e.h)&&P(e.s)&&P(e.v)?(r=E(e.s),i=E(e.v),t=function(e,t,n){e=6*v(e,360),t=v(t,100),n=v(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,r,i),a=!0,s="hsv"):P(e.h)&&P(e.s)&&P(e.l)&&(r=E(e.s),o=E(e.l),t=function(e,t,n){var r,i,o;if(e=v(e,360),t=v(t,100),n=v(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=S(s,a,e+1/3),i=S(s,a,e),o=S(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=b(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var I="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),L="[\\s|\\(]+(".concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")\\s*\\)?"),A="[\\s|\\(]+(".concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")[,|\\s]+(").concat(I,")\\s*\\)?"),D={CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function P(e){return Boolean(D.CSS_UNIT.exec(String(e)))}var R=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function M(e){var t=k(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function j(e){var t=e.r,n=e.g,r=e.b;return"#".concat(O(t,n,r,!1))}function F(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 $(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),Number(r.toFixed(2)));var r}function V(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function B(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=N(e),i=5;i>0;i-=1){var o=M(r),a=j(N({h:F(o,i,!0),s:$(o,i,!0),v:V(o,i,!0)}));n.push(a)}n.push(j(r));for(var s=1;s<=4;s+=1){var l=M(r),c=j(N({h:F(l,s),s:$(l,s),v:V(l,s)}));n.push(c)}return"dark"===t.theme?R.map((function(e){var r,i,o,a=e.index,s=e.opacity;return j((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 q=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];q.primary=q[5];var z=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];z.primary=z[5];var G=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];G.primary=G[5];var Q=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Q.primary=Q[5];var U=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];U.primary=U[5];var H=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];H.primary=H[5];var K=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];K.primary=K[5];var W=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];W.primary=W[5];var Y=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Y.primary=Y[5];var X=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];X.primary=X[5];var J=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];J.primary=J[5];var Z=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Z.primary=Z[5];var ee=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ee.primary=ee[5];var te=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];te.primary=te[5];var ne=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ne.primary=ne[5];var re=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];re.primary=re[5];var ie=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];ie.primary=ie[5];var oe=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];oe.primary=oe[5];var ae=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ae.primary=ae[5];var se=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];se.primary=se[5];var le=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];le.primary=le[5];var ce=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];ce.primary=ce[5];var ue=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];ue.primary=ue[5];var de=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];de.primary=de[5];var pe=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];pe.primary=pe[5];var fe=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];fe.primary=fe[5];const he=(0,r.createContext)({});function me(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 ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ye="data-rc-order",be="data-rc-priority",Ee=new Map;function we(){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 Te(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){return Array.from((Ee.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ve())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(ye,a),s&&o&&l.setAttribute(be,"".concat(o)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Te(t),u=c.firstChild;if(r){if(s){var d=(t.styles||Se(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ye)))return!1;var t=Number(e.getAttribute(be)||0);return o>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Te(t);return(t.styles||Se(n)).find((function(n){return n.getAttribute(we(t))===e}))}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Oe(e,t);n&&Te(t).removeChild(n)}function Ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Te(n),i=Se(r),o=ge(ge({},n),{},{styles:i});!function(e,t){var n=Ee.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=ke("",t),i=r.parentNode;Ee.set(e,i),e.removeChild(r)}}(r,o);var a,s,l,c=Oe(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=ke(e,o);return u.setAttribute(we(o),t),u}function _e(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ne(e){return function(e){return _e(e)instanceof ShadowRoot}(e)?_e(e):null}var Ie={},Le=[];function Ae(e,t){}function De(e,t){}function Pe(e,t,n){t||Ie[n]||(e(!1,n),Ie[n]=!0)}function Re(e,t){Pe(Ae,e,t)}Re.preMessage=function(e){Le.push(e)},Re.resetWarned=function(){Ie={}},Re.noteOnce=function(e,t){Pe(De,e,t)};const Me=Re;function je(e){return"object"===d(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===d(e.icon)||"function"==typeof e.icon)}function Fe(){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 $e(e,t,n){return n?i().createElement(e.tag,ge(ge({key:t},Fe(e.attrs)),n),(e.children||[]).map((function(n,r){return $e(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):i().createElement(e.tag,ge({key:t},Fe(e.attrs)),(e.children||[]).map((function(n,r){return $e(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Ve(e){return B(e)[0]}function Be(e){return e?Array.isArray(e)?e:[e]:[]}var qe=["icon","className","onClick","style","primaryColor","secondaryColor"],ze={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ge=function(e){var t,n,i,o,a,s,l,c=e.icon,u=e.className,d=e.onClick,p=e.style,f=e.primaryColor,m=e.secondaryColor,g=h(e,qe),v=r.useRef(),y=ze;if(f&&(y={primaryColor:f,secondaryColor:m||Ve(f)}),t=v,n=(0,r.useContext)(he),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=Ne(t.current);Ce(a,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=je(c),l="icon should be icon definiton, but got ".concat(c),Me(s,"[@ant-design/icons] ".concat(l)),!je(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=ge(ge({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),$e(b.icon,"svg-".concat(b.name),ge(ge({className:u,onClick:d,style:p,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};Ge.displayName="IconReact",Ge.getTwoToneColors=function(){return ge({},ze)},Ge.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ze.primaryColor=t,ze.secondaryColor=n||Ve(t),ze.calculated=!!n};const Qe=Ge;function Ue(e){var t=u(Be(e),2),n=t[0],r=t[1];return Qe.setTwoToneColors({primaryColor:n,secondaryColor:r})}var He=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ue(Y.primary);var Ke=r.forwardRef((function(e,t){var n=e.className,i=e.icon,o=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,d=e.twoToneColor,p=h(e,He),m=r.useContext(he),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(Be(d),2),k=S[0],O=S[1];return r.createElement("span",a({role:"img","aria-label":i.name},p,{ref:t,tabIndex:w,onClick:c,className:E}),r.createElement(Qe,{icon:i,primaryColor:k,secondaryColor:O,style:T}))}));Ke.displayName="AntdIcon",Ke.getTwoToneColor=function(){var e=Qe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ke.setTwoToneColor=Ue;const We=Ke;var Ye=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:s}))};const Xe=r.forwardRef(Ye),Je={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(We,a({},e,{ref:t,icon:Je}))};const et=r.forwardRef(Ze),tt={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 nt=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:tt}))};const rt=r.forwardRef(nt),it={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 ot=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:it}))};const at=r.forwardRef(ot);function st(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 lt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const ct=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:ut}=ct,dt=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var pt=n(4363);function ft(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(ft(e)):(0,pt.isFragment)(e)&&e.props?n=n.concat(ft(e.props.children,t)):n.push(e))})),n}const ht={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 mt=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:ht}))};const gt=r.forwardRef(mt);const vt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},yt=r.createContext({}),bt=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Et=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:d=!1,width:p=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:E}=(0,r.useContext)(dt),[w,T]=(0,r.useState)("collapsed"in e?e.collapsed:s),[S,k]=(0,r.useState)(!1);(0,r.useEffect)((()=>{"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 vt){t=n(`screen and (max-width: ${vt[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=bt("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const C=()=>{O(!w,"clickTrigger")},{getPrefixCls:_}=(0,r.useContext)(ct),N=r.useMemo((()=>({siderCollapsed:w})),[w]);return r.createElement(yt.Provider,{value:N},(()=>{const e=_("layout-sider",n),s=lt(b,["collapsed"]),m=w?f:p,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-${d?"right":"left"}`),style:h},o||r.createElement(gt,null)):null,E={expanded:d?r.createElement(rt,null):r.createElement(at,null),collapsed:d?r.createElement(at,null):r.createElement(rt,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)})())})),wt=Et,Tt=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 St(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 kt=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(Me(!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;l<t.length;l++)if(!e(t[l],i[l],s))return!1;return!0}if(t&&i&&"object"===d(t)&&"object"===d(i)){var c=Object.keys(t);return c.length===Object.keys(i).length&&c.every((function(n){return e(t[n],i[n],s)}))}return!1}(e,t)};function Ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function Ct(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _t(e){return e.join("%")}const Nt=function(){function e(t){Ot(this,e),f(this,"instanceId",void 0),f(this,"cache",new Map),this.instanceId=t}return Ct(e,[{key:"get",value:function(e){return this.opGet(_t(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(_t(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 It="data-token-hash",Lt="data-css-hash",At="__cssinjs_instance__";var Dt=r.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(Lt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[At]=t[At]||e,t[At]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Lt,"]"))).forEach((function(t){var n,i=t.getAttribute(Lt);r[i]?t[At]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0}))}return new Nt(e)}(),defaultCache:!0});const Pt=Dt;new RegExp("CALC_UNIT","g");var Rt=function(){function e(){Ot(this,e),f(this,"cache",void 0),f(this,"keys",void 0),f(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ct(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],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]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),o=u(i,1)[0];this.delete(o)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,i){if(i===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();f(Rt,"MAX_CACHE_SIZE",20),f(Rt,"MAX_CACHE_OFFSET",5);var Mt=0,jt=function(){function e(t){Ot(this,e),f(this,"derivatives",void 0),f(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Mt,0===t.length&&t.length,Mt+=1}return Ct(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Ft=new Rt,$t=new WeakMap,Vt={},Bt=new WeakMap;function qt(e){var t=Bt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof jt?t+=r.id:r&&"object"===d(r)?t+=qt(r):t+=r})),t=Tt(t),Bt.set(e,t)),t}function zt(e,t){return Tt("".concat(t,"_").concat(qt(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Gt=ve();function Qt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ut(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var i=ge(ge({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(f(r={},It,t),f(r,Lt,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"<style ".concat(o,">").concat(e,"</style>")}var Ht=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()},Kt=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(""),"}"):""},Wt=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,d=Ht(s,null==n?void 0:n.prefix);r[d]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(d,")")}})),[i,Kt(r,t,{scope:null==n?void 0:n.scope})]},Yt=ve()?r.useLayoutEffect:r.useEffect,Xt=function(e,t){var n=r.useRef(!0);Yt((function(){return e(n.current)}),t),Yt((function(){return n.current=!1,function(){n.current=!0}}),[])},Jt=function(e,t){Xt((function(t){if(!t)return e()}),t)};const Zt=Xt;var en=ge({},r).useInsertionEffect;const tn=en?function(e,t,n){return en((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Zt((function(){return t(!0)}),n)},nn=void 0!==ge({},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 rn(e,t,n,i,o){var a=r.useContext(Pt).cache,s=_t([e].concat(st(t))),l=nn([s]),c=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 d=a.opGet(s)[1];return tn((function(){null==o||o(d)}),(function(e){return c((function(t){var n=u(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(d)),[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]),d}var on={},an=new Map;var sn="token";function ln(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,r.useContext)(Pt),o=i.cache.instanceId,a=i.container,s=n.salt,l=void 0===s?"":s,c=n.override,d=void 0===c?on:c,p=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=function(e,n){for(var r=$t,i=0;i<n.length;i+=1){var o=n[i];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Vt)||r.set(Vt,Object.assign.apply(Object,[{}].concat(st(t)))),r.get(Vt)}(0,t),g=qt(m),v=qt(d),y=h?qt(h):"",b=rn(sn,[l,e.id,g,v,y],(function(){var t,n=f?f(m,d,e):function(e,t,n,r){var i=ge(ge({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i}(m,d,e,p),r=ge({},n),i="";if(h){var o=u(Wt(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=o[0],i=o[1]}var a=zt(n,l);n._tokenKey=a,r._tokenKey=zt(r,l);var s=null!==(t=null==h?void 0:h.key)&&void 0!==t?t:a;n._themeKey=s,function(e){an.set(e,(an.get(e)||0)+1)}(s);var c="".concat("css","-").concat(Tt(a));return n._hashId=c,[n,c,r,i,(null==h?void 0:h.key)||""]}),(function(e){!function(e,t){an.set(e,(an.get(e)||0)-1);var n=Array.from(an.keys()),r=n.filter((function(e){return(an.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(It,'="').concat(e,'"]')).forEach((function(e){var n;e[At]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),an.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=u(e,4),n=t[0],r=t[3];if(h&&r){var i=Ce(r,Tt("css-variables-".concat(n._themeKey)),{mark:Lt,prepend:"queue",attachTo:a,priority:-999});i[At]=o,i.setAttribute(It,n._themeKey)}}));return b}const cn={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 un="comm",dn="rule",pn="decl",fn=Math.abs,hn=String.fromCharCode;function mn(e){return e.trim()}function gn(e,t,n){return e.replace(t,n)}function vn(e,t,n){return e.indexOf(t,n)}function yn(e,t){return 0|e.charCodeAt(t)}function bn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function wn(e,t){return t.push(e),e}function Tn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Sn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pn:return e.return=e.return||e.value;case un:return"";case"@keyframes":return e.return=e.value+"{"+Tn(e.children,r)+"}";case dn:if(!En(e.value=e.props.join(",")))return""}return En(n=Tn(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var kn=1,On=1,xn=0,Cn=0,Nn=0,In="";function Ln(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:kn,column:On,length:a,return:"",siblings:s}}function An(){return Nn=Cn>0?yn(In,--Cn):0,On--,10===Nn&&(On=1,kn--),Nn}function Dn(){return Nn=Cn<xn?yn(In,Cn++):0,On++,10===Nn&&(On=1,kn++),Nn}function Pn(){return yn(In,Cn)}function Rn(){return Cn}function Mn(e,t){return bn(In,e,t)}function jn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fn(e){return mn(Mn(Cn-1,Bn(91===e?e+2:40===e?e+1:e)))}function $n(e){for(;(Nn=Pn())&&Nn<33;)Dn();return jn(e)>2||jn(Nn)>3?"":" "}function Vn(e,t){for(;--t&&Dn()&&!(Nn<48||Nn>102||Nn>57&&Nn<65||Nn>70&&Nn<97););return Mn(e,Rn()+(t<6&&32==Pn()&&32==Dn()))}function Bn(e){for(;Dn();)switch(Nn){case e:return Cn;case 34:case 39:34!==e&&39!==e&&Bn(Nn);break;case 40:41===e&&Bn(e);break;case 92:Dn()}return Cn}function qn(e,t){for(;Dn()&&e+Nn!==57&&(e+Nn!==84||47!==Pn()););return"/*"+Mn(t,Cn-1)+"*"+hn(47===e?e:Dn())}function zn(e){for(;!jn(Pn());)Dn();return Mn(e,Cn)}function Gn(e){return function(e){return In="",e}(Qn("",null,null,null,[""],e=function(e){return kn=On=1,xn=En(In=e),Cn=0,[]}(e),0,[0],e))}function Qn(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=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=Dn()){case 40:if(108!=h&&58==yn(S,d-1)){-1!=vn(S+=gn(Fn(y),"&","&\f"),"&\f",fn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Fn(y);break;case 9:case 10:case 13:case 32:S+=$n(h);break;case 92:S+=Vn(Rn()-1,7);continue;case 47:switch(Pn()){case 42:case 47:wn(Hn(qn(Dn(),Rn()),t,n,l),l),5!=jn(h||1)&&5!=jn(Pn()||1)||!En(S)||" "===bn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=En(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=gn(S,/\f/g,"")),f>0&&(En(S)-d||0===m&&47===h)&&wn(f>32?Kn(S+";",r,n,d-1,l):Kn(gn(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(wn(T=Un(S,t,n,c,u,i,s,b,E=[],w=[],d,o),o),123===y)if(0===u)Qn(S,t,T,T,E,o,d,s,w);else switch(99===p&&110===yn(S,3)?100:p){case 100:case 108:case 109:case 115:Qn(e,T,T,r&&wn(Un(e,T,T,0,0,i,s,b,i,E=[],d,w),w),i,w,d,s,r?E:w);break;default:Qn(S,T,T,T,[""],w,0,s,w)}}c=u=f=0,m=v=1,b=S="",d=a;break;case 58:d=1+En(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==An())continue;switch(S+=hn(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(En(S)-1)*v,v=1;break;case 64:45===Pn()&&(S+=Fn(Dn())),p=Pn(),u=d=En(b=S+=zn(Rn())),y++;break;case 45:45===h&&2==En(S)&&(m=0)}}return o}function Un(e,t,n,r,i,o,a,s,l,c,u,d){for(var p=i-1,f=0===i?o:[""],h=function(e){return e.length}(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=bn(e,p+1,p=fn(g=a[m])),E=e;y<h;++y)(E=mn(g>0?f[y]+" "+b:gn(b,/&\f/g,f[y])))&&(l[v++]=E);return Ln(e,t,n,0===i?dn:s,l,c,u,d)}function Hn(e,t,n,r){return Ln(e,t,n,un,hn(Nn),bn(e,2,-2),0,r)}function Kn(e,t,n,r,i){return Ln(e,t,n,pn,bn(e,0,r),bn(e,r+1,-1),r,i)}var Wn,Yn="data-ant-cssinjs-cache-path",Xn="_FILE_STYLE__",Jn=!0;var Zn="_multi_value_";function er(e){return Tn(Gn(e),Sn).replace(/\{%%%\:[^;];}/g,";")}var tr=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),p=n.transformers,f=void 0===p?[]:p,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]);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 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"!==d(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===d(e)&&e&&("_skip_check_"in e||Zn in e)}(r)){var p;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;cn[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!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===d(r)&&null!=r&&r[Zn]&&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(st(n.slice(1))).join(" ")}));return o.join(",")}("&"===y?"":t,s,c):!i||s||"&"!==y&&""!==y||(y="",b=!0);var E=u(e(r,n,{root:b,injectHash:v,parentSelectors:[].concat(st(a),[y])}),2),w=E[0],T=E[1];m=ge(ge({},m),T),h+="".concat(y).concat(w)}}))}})),i?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):h="{".concat(h,"}"),[h,m]};function nr(e,t){return Tt("".concat(e.join("%")).concat(t))}function rr(){return null}var ir="style";function or(e,t){var n=e.token,i=e.path,o=e.hashId,s=e.layer,l=e.nonce,c=e.clientOnly,d=e.order,p=void 0===d?0:d,h=r.useContext(Pt),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=h.layer,k=n._tokenKey,O=[k];S&&O.push("layer"),O.push.apply(O,st(i));var x=Gt,C=rn(ir,O,(function(){var e=O.join("|");if(function(e){return function(){if(!Wn&&(Wn={},ve())){var e=document.createElement("div");e.className=Yn,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];Wn[n]=r}));var n,r=document.querySelector("style[".concat(Yn,"]"));r&&(Jn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Wn[e]}(e)){var n=function(e){var t=Wn[e],n=null;if(t&&ve())if(Jn)n=Xn;else{var r=document.querySelector("style[".concat(Lt,'="').concat(Wn[e],'"]'));r?n=r.innerHTML:delete Wn[e]}return[n,t]}(e),r=u(n,2),a=r[0],l=r[1];if(a)return[a,k,l,{},c,p]}var d=t(),f=u(tr(d,{hashId:o,hashPriority:v,layer:S?s:void 0,path:i.join("-"),transformers:E,linters:w}),2),h=f[0],m=f[1],g=er(h),y=nr(O,g);return[g,k,y,m,c,p]}),(function(e,t){var n=u(e,3)[2];(t||m)&&Gt&&xe(n,{mark:Lt})}),(function(e){var t=u(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(x&&n!==Xn){var o={mark:Lt,prepend:!S&&"queue",attachTo:y,priority:p},a="function"==typeof l?l():l;a&&(o.csp={nonce:a});var s=[],c=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?s.push(e):c.push(e)})),s.forEach((function(e){Ce(er(i[e]),"_layer-".concat(e),ge(ge({},o),{},{prepend:!0}))}));var d=Ce(n,r,o);d[At]=T.instanceId,d.setAttribute(It,k),c.forEach((function(e){Ce(er(i[e]),"_effect-".concat(e),o)}))}})),_=u(C,3),N=_[0],I=_[1],L=_[2];return function(e){var t,n;return t=b&&!x&&g?r.createElement("style",a({},(f(n={},It,I),f(n,Lt,L),n),{dangerouslySetInnerHTML:{__html:N}})):r.createElement(rr,null),r.createElement(r.Fragment,null,t,e)}}var ar="cssVar";var sr;f(sr={},ir,(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],d=(n||{}).plain;if(l)return null;var p=i,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return p=Ut(i,o,a,f,d),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ut(er(s[e]),o,"_effect-".concat(e),f,d);e.startsWith("@layer")?p=n+p:p+=n}})),[c,a,p]})),f(sr,sn,(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,Ut(o,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),f(sr,ar,(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,Ut(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var lr=function(){function e(t,n){Ot(this,e),f(this,"name",void 0),f(this,"style",void 0),f(this,"_keyframe",!0),this.name=t,this.style=n}return Ct(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 cr=lr;function ur(e){return e.notSplit=!0,e}function dr(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<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function pr(e){var t=r.useRef(!1),n=u(r.useState(e),2),i=n[0],o=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,function(e,n){n&&t.current||o(e)}]}function fr(e){return void 0!==e}function hr(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=u(pr((function(){return fr(i)?i:fr(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],d=void 0!==i?i:l,p=a?a(d):d,f=dr(o),h=u(pr([d]),2),m=h[0],g=h[1];return Jt((function(){var e=m[0];l!==e&&f(l,e)}),[m]),Jt((function(){fr(i)||c(i)}),[i]),[p,dr((function(e,t){c(e,t),g([d],t)}))]}ur(["borderTop","borderBottom"]),ur(["borderTop"]),ur(["borderBottom"]),ur(["borderLeft","borderRight"]),ur(["borderLeft"]),ur(["borderRight"]);var mr=function(e,t){"function"==typeof e?e(t):"object"===d(e)&&e&&"current"in e&&(e.current=t)},gr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){mr(t,e)}))}},vr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return St((function(){return gr.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},yr=function(e){var t,n,r=(0,pt.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===pt.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===pt.ForwardRef)};Number(r.version.split(".")[0]),"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const br={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Er=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}},wr=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"}}}),Tr=(e,t,n)=>{const{fontFamily:r,fontSize:i}=e,o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o;return{[a]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Sr=e=>({outline:`${Qt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),kr=e=>({"&:focus-visible":Object.assign({},Sr(e))}),Or={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"},xr=Object.assign(Object.assign({},Or),{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 Cr=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<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const _r=(e,t)=>new Cr(e).setAlpha(t).toRgbString(),Nr=(e,t)=>new Cr(e).darken(t).toHexString(),Ir=e=>{const t=B(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]}},Lr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:_r(r,.88),colorTextSecondary:_r(r,.65),colorTextTertiary:_r(r,.45),colorTextQuaternary:_r(r,.25),colorFill:_r(r,.15),colorFillSecondary:_r(r,.06),colorFillTertiary:_r(r,.04),colorFillQuaternary:_r(r,.02),colorBgLayout:Nr(n,4),colorBgContainer:Nr(n,0),colorBgElevated:Nr(n,0),colorBgSpotlight:_r(r,.85),colorBgBlur:"transparent",colorBorder:Nr(n,15),colorBorderSecondary:Nr(n,6)}};function Ar(e){return(e+8)/e}const Dr=(Pr=function(e){const t=Object.keys(Or).map((t=>{const n=B(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,d=n(l),p=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: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],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 Cr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Ir,generateNeutralColorPalettes:Lr})),(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:Ar(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))},Rr=Array.isArray(Pr)?Pr:[Pr],Ft.has(Rr)||Ft.set(Rr,new jt(Rr)),Ft.get(Rr));var Pr,Rr;const Mr={token:xr,override:{override:xr},hashed:!0},jr=i().createContext(Mr);function Fr(e){return e>=0&&e<=255}const $r=function(e,t){const{r:n,g:r,b:i,a:o}=new Cr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Cr(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(Fr(t)&&Fr(o)&&Fr(c))return new Cr({r:t,g:o,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Cr({r:n,g:r,b:i,a:1}).toRgbString()};function Vr(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(xr).forEach((e=>{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:$r(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:$r(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:$r(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:$r(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 Cr("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Cr("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Cr("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 Br=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const qr={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},zr={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Gr={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Qr=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Br(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=Vr(a),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,i=Br(n,["theme"]);let o=i;r&&(o=Qr(Object.assign(Object.assign({},a),i),{override:i},r)),a[t]=o})),a};function Ur(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=i().useContext(jr),a=`5.15.4-${t||""}`,s=n||Dr,[l,c,u]=ln(s,[xr,e],{salt:a,override:r,getComputedToken:Qr,formatToken:Vr,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:qr,ignore:zr,preserve:Gr}});return[s,u,t?c:"",l,o]}function Hr(e){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hr(e)}function Kr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kr=function(){return!!e})()}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wr(e)}function Xr(e,t,n){return t=Hr(t),Yr(e,Kr()?Reflect.construct(t,n||[],Hr(e).constructor):t.apply(e,n))}function Jr(e,t){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jr(e,t)}function Zr(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&&Jr(e,t)}const ei=Ct((function e(){Ot(this,e)}));let ti=function(e){function t(e){var n;return Ot(this,t),(n=Xr(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Zr(t,e),Ct(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}}])}(ei);const ni="CALC_UNIT";function ri(e){return"number"==typeof e?`${e}${ni}`:e}let ii=function(e){function t(e){var n;return Ot(this,t),(n=Xr(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ri(e):"string"==typeof e&&(n.result=e),n}return Zr(t,e),Ct(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} + ${ri(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} - ${ri(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(`${ni}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(ei);const oi="undefined"!=typeof CSSINJS_STATISTIC;let ai=!0;function si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!oi)return Object.assign.apply(Object,[{}].concat(t));ai=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ai=!0,r}const li={};function ci(){}const ui=(e,t,n)=>{var r;return"function"==typeof n?n(si(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},di=(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 pi(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,d,p]=Ur(),{getPrefixCls:f,iconPrefixCls:h,csp:m}=(0,r.useContext)(ct),g=f(),v=p?"css":"js",y=(e=>{const t="css"===e?ii:ti;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;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Qt(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Qt(e))).join(",")})`}}}(v),w={theme:l,token:d,hashId:u,nonce:()=>null==m?void 0:m.nonce,clientOnly:i.clientOnly,order:i.order||-999};or(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":wr(d)}])),((e,t)=>{const[n,r]=Ur();or({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=or(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=ci;return oi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ai&&t.add(n),e[n])}),r=(e,n)=>{var r;li[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=li[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(d),l=ui(a,c,n),f=`.${e}`,m=di(a,c,l,{deprecatedTokens:i.deprecatedTokens});p&&Object.keys(l).forEach((e=>{l[e]=`var(${Ht(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,p.prefix))})`}));const v=si(r,{componentCls:f,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:y,max:b,min:E},p?l:m),w=t(v,{hashId:u,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return s(a,m),[!1===i.resetStyle?null:Tr(v,e,o),w]}));return[T,u]}}const fi=(e,t,n,o)=>{const a=pi(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]=Ur();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,d=(0,r.useContext)(Pt),p=d.cache.instanceId,f=d.container,h=s._tokenKey,m=[].concat(st(e.path),[n,c,h]),g=rn(ar,m,(function(){var e=t(),r=u(Wt(e,n,{prefix:i,unitless:o,ignore:a,scope:c}),2),s=r[0],l=r[1];return[s,l,nr(m,l),n]}),(function(e){var t=u(e,3)[2];Gt&&xe(t,{mark:Lt})}),(function(e){var t=u(e,3),r=t[1],i=t[2];if(r){var o=Ce(r,i,{mark:Lt,prepend:"queue",attachTo:f,priority:-999});o[At]=p,o.setAttribute(It,n)}}))}({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},qr),l),ignore:zr,token:c,scope:a},(()=>{const r=ui(e,c,t),i=di(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]=Ur();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]}},hi=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}}}},mi=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:p,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:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:i,lineHeight:Qt(d),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:p,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}}}}},hi(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Qt(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}}},gi=fi("Layout",(e=>[mi(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 vi=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function yi(e){let{suffixCls:t,tagName:n,displayName:i}=e;return e=>r.forwardRef(((i,o)=>r.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},i))))}const bi=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:i,className:o,tagName:a}=e,s=vi(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=r.useContext(ct),c=l("layout",n),[u,d,p]=gi(c),f=i?`${c}-${i}`:c;return u(r.createElement(a,Object.assign({className:g()(n||f,o,d,p),ref:t},s)))})),Ei=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(ct),[i,o]=r.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=e,f=lt(vi(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:m}=r.useContext(ct),v=h("layout",a),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||ft(t).some((e=>e.type===wt))}(i,c,u),[b,E,w]=gi(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(st(t),[e])))},removeSider:e=>{o((t=>t.filter((t=>t!==e))))}}})),[]);return b(r.createElement(dt.Provider,{value:S},r.createElement(d,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},null==m?void 0:m.style),p)},f),c)))})),wi=yi({tagName:"div",displayName:"Layout"})(Ei),Ti=yi({suffixCls:"header",tagName:"header",displayName:"Header"})(bi),Si=yi({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(bi),ki=yi({suffixCls:"content",tagName:"main",displayName:"Content"})(bi),Oi=wi;Oi.Header=Ti,Oi.Footer=Si,Oi.Content=ki,Oi.Sider=wt,Oi._InternalSiderContext=yt;const xi=Oi,Ci=window.ReactDOM;var _i=n.n(Ci);function Ni(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ii(e){var t,n=function(e){return e&&"object"===d(e)&&Ni(e.nativeElement)?e.nativeElement:Ni(e)?e:null}(e);return n||(e instanceof i().Component?null===(t=_i().findDOMNode)||void 0===t?void 0:t.call(_i(),e):null)}var Li=r.createContext(null),Ai=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__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Di="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Pi=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ri="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Pi):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Mi=["top","right","bottom","left","width","height","size","weight"],ji="undefined"!=typeof MutationObserver,Fi=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function i(){t&&(t=!1,e()),n&&a()}function o(){Ri(i)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Di&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ji?(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(){Di&&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;Mi.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}(),$i=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Vi=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Pi},Bi=Ui(0,0,0,0);function qi(e){return parseFloat(e)||0}function zi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+qi(e["border-"+n+"-width"])}),0)}var Gi="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Vi(e).SVGGraphicsElement}:function(e){return e instanceof Vi(e).SVGElement&&"function"==typeof e.getBBox};function Qi(e){return Di?Gi(e)?function(e){var t=e.getBBox();return Ui(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Bi;var r=Vi(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=qi(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=qi(r.width),l=qi(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=zi(r,"left","right")+o),Math.round(l+a)!==n&&(l-=zi(r,"top","bottom")+a)),!function(e){return e===Vi(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Ui(i.left,i.top,s,l)}(e):Bi}function Ui(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Hi=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ui(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Qi(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ki=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return $i(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);$i(this,{target:e,contentRect:n})},Wi=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ai,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Vi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Hi(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Vi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ki(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yi="undefined"!=typeof WeakMap?new WeakMap:new Ai,Xi=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=Fi.getInstance(),r=new Wi(t,n,this);Yi.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Xi.prototype[e]=function(){var t;return(t=Yi.get(this))[e].apply(t,arguments)}}));const Ji=void 0!==Pi.ResizeObserver?Pi.ResizeObserver:Xi;var Zi=new Map,eo=new Ji((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Zi.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function to(e){var t=Kr();return function(){var n,r=Hr(e);if(t){var i=Hr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yr(this,n)}}var no=function(e){Zr(n,e);var t=to(n);function n(){return Ot(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function ro(e,t){var n=e.children,i=e.disabled,o=r.useRef(null),a=r.useRef(null),s=r.useContext(Li),l="function"==typeof n,c=l?n(o):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&r.isValidElement(c)&&yr(c),f=p?c.ref:null,h=vr(f,o),m=function(){var e;return Ii(o.current)||(o.current&&"object"===d(o.current)?Ii(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Ii(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,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(o),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=f;var h=l===Math.round(o)?o:l,m=c===Math.round(a)?a:c,v=ge(ge({},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,Zi.has(e)||(Zi.set(e,new Set),eo.observe(e)),Zi.get(e).add(t)),function(){return function(e,t){Zi.has(e)&&(Zi.get(e).delete(t),Zi.get(e).size||(eo.unobserve(e),Zi.delete(e)))}(n,v)}}),[o.current,i]),r.createElement(no,{ref:a},p?r.cloneElement(c,{ref:h}):c)}const io=r.forwardRef(ro);function oo(e,t){var n=e.children;return("function"==typeof n?[n]:ft(n)).map((function(n,i){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(io,a({},e,{key:o,ref:0===i?t:void 0}),n)}))}var ao=r.forwardRef(oo);ao.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(Li),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(Li.Provider,{value:s},t)};const so=ao;var lo=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],co=void 0;function uo(e,t){var n=e.prefixCls,i=e.invalidate,o=e.item,s=e.renderItem,l=e.responsive,c=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,p=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,lo),T=l&&!v;function S(e){u(d,e)}r.useEffect((function(){return function(){S(null)}}),[]);var k,O=s&&o!==co?s(o):m;i||(k={opacity:T?0:1,height:T?0:co,overflowY:T?"hidden":co,order:l?y:co,pointerEvents:T?"none":co,position:T?"absolute":co});var x={};T&&(x["aria-hidden"]=!0);var C=r.createElement(E,a({className:g()(!i&&n,p),style:ge(ge({},k),f)},x,w,{ref:t}),O);return l&&(C=r.createElement(so,{onResize:function(e){S(e.offsetWidth)},disabled:c},C)),C}var po=r.forwardRef(uo);po.displayName="Item";const fo=po;var ho=function(e){return+setTimeout(e,16)},mo=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ho=function(e){return window.requestAnimationFrame(e)},mo=function(e){return window.cancelAnimationFrame(e)});var go=0,vo=new Map;function yo(e){vo.delete(e)}var bo=function(e){var t=go+=1;return function n(r){if(0===r)yo(t),e();else{var i=ho((function(){n(r-1)}));vo.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};bo.cancel=function(e){var t=vo.get(e);return yo(e),mo(t)};const Eo=bo;function wo(e,t){var n=u(r.useState(t),2),i=n[0],o=n[1];return[i,dr((function(t){e((function(){o(t)}))}))]}var To=i().createContext(null),So=["component"],ko=["className"],Oo=["className"],xo=function(e,t){var n=r.useContext(To);if(!n){var i=e.component,o=void 0===i?"div":i,s=h(e,So);return r.createElement(o,a({},s,{ref:t}))}var l=n.className,c=h(n,ko),u=e.className,d=h(e,Oo);return r.createElement(To.Provider,{value:null},r.createElement(fo,a({ref:t,className:g()(l,u)},c,d)))},Co=r.forwardRef(xo);Co.displayName="RawItem";const _o=Co;var No=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Io="responsive",Lo="invalidate";function Ao(e){return"+ ".concat(e.length," ...")}function Do(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,d=e.renderRawItem,p=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,No),N="full"===v,I=(n=r.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Eo(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Ci.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),L=u(wo(I,null),2),A=L[0],D=L[1],P=A||0,R=u(wo(I,new Map),2),M=R[0],j=R[1],F=u(wo(I,0),2),$=F[0],V=F[1],B=u(wo(I,0),2),q=B[0],z=B[1],G=u(wo(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),te=ee[0],ne=ee[1],re="".concat(o,"-item"),ie=Math.max($,q),oe=E===Io,ae=l.length&&oe,se=E===Lo,le=ae||"number"==typeof E&&l.length>E,ce=(0,r.useMemo)((function(){var e=l;return ae?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,ae]),ue=(0,r.useMemo)((function(){return ae?l.slice(Z+1):l.slice(ce.length)}),[l,ce,ae,Z]),de=(0,r.useCallback)((function(e,t){var n;return"function"==typeof p?p(e):null!==(n=p&&(null==e?void 0:e[p]))&&void 0!==n?n:t}),[p]),pe=(0,r.useCallback)(c||function(e){return e},[c]);function fe(e,t,n){(X!==e||void 0!==t&&t!==K)&&(J(e),n||(ne(e<l.length-1),null==C||C(e)),void 0!==t&&W(t))}function he(e,t){j((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return M.get(de(ce[e],e))}Zt((function(){if(P&&"number"==typeof ie&&ce){var e=Q,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var i=me(r);if(N&&(i=i||0),void 0===i){fe(r-1,void 0,!0);break}if(e+=i,0===n&&e<=P||r===n-1&&e+me(n)<=P){fe(n,null);break}if(e+ie>P){fe(r-1,e-i-Q+q);break}}S&&me(0)+Q>P&&W(null)}}),[P,M,q,Q,de,ce]);var ve=te&&!!ue.length,ye={};null!==K&&ae&&(ye={position:"absolute",left:K,top:0});var be,Ee={prefixCls:re,responsive:ae,component:x,invalidate:se},we=d?function(e,t){var n=de(e,t);return r.createElement(To.Provider,{key:n,value:ge(ge({},Ee),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=Z})},d(e,t))}:function(e,t){var n=de(e,t);return r.createElement(fo,a({},Ee,{order:t,key:n,item:e,renderItem:pe,itemKey:n,registerSize:he,display:t<=Z}))},Te={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){z(t),V(q)},display:ve};if(T)T&&(be=r.createElement(To.Provider,{value:ge(ge({},Ee),Te)},T(ue)));else{var Se=w||Ao;be=r.createElement(fo,a({},Ee,Te),"function"==typeof Se?Se(ue):Se)}var ke=r.createElement(O,a({className:g()(!se&&o,b),style:y,ref:t},_),ce.map(we),le?be:null,S&&r.createElement(fo,a({},Ee,{responsive:oe,responsiveDisabled:!ae,order:Z,className:"".concat(re,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:ye}),S));return oe&&(ke=r.createElement(so,{onResize:function(e,t){D(t.clientWidth)},disabled:!ae},ke)),ke}var Po=r.forwardRef(Do);Po.displayName="Overflow",Po.Item=_o,Po.RESPONSIVE=Io,Po.INVALIDATE=Lo;const Ro=Po;var Mo=r.createContext(null);function jo(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Fo(e){return jo(r.useContext(Mo),e)}var $o=["children","locked"],Vo=r.createContext(null);function Bo(e){var t=e.children,n=e.locked,i=h(e,$o),o=r.useContext(Vo),a=St((function(){return e=i,t=ge({},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]&&kt(e[1],t[1],!0))}));return r.createElement(Vo.Provider,{value:a},t)}var qo=[],zo=r.createContext(null);function Go(){return r.useContext(zo)}var Qo=r.createContext(qo);function Uo(e){var t=r.useContext(Qo);return r.useMemo((function(){return void 0!==e?[].concat(st(t),[e]):t}),[t,e])}var Ho=r.createContext(null);const Ko=r.createContext({}),Wo=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 Yo(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Wo(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 Xo={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>=Xo.F1&&t<=Xo.F12)return!1;switch(t){case Xo.ALT:case Xo.CAPS_LOCK:case Xo.CONTEXT_MENU:case Xo.CTRL:case Xo.DOWN:case Xo.END:case Xo.ESC:case Xo.HOME:case Xo.INSERT:case Xo.LEFT:case Xo.MAC_FF_META:case Xo.META:case Xo.NUMLOCK:case Xo.NUM_CENTER:case Xo.PAGE_DOWN:case Xo.PAGE_UP:case Xo.PAUSE:case Xo.PRINT_SCREEN:case Xo.RIGHT:case Xo.SHIFT:case Xo.UP:case Xo.WIN_KEY:case Xo.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Xo.ZERO&&e<=Xo.NINE)return!0;if(e>=Xo.NUM_ZERO&&e<=Xo.NUM_MULTIPLY)return!0;if(e>=Xo.A&&e<=Xo.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Xo.SPACE:case Xo.QUESTION_MARK:case Xo.NUM_PLUS:case Xo.NUM_MINUS:case Xo.NUM_PERIOD:case Xo.NUM_DIVISION:case Xo.SEMICOLON:case Xo.DASH:case Xo.EQUALS:case Xo.COMMA:case Xo.PERIOD:case Xo.SLASH:case Xo.APOSTROPHE:case Xo.SINGLE_QUOTE:case Xo.OPEN_SQUARE_BRACKET:case Xo.BACKSLASH:case Xo.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Jo=Xo;var Zo=Jo.LEFT,ea=Jo.RIGHT,ta=Jo.UP,na=Jo.DOWN,ra=Jo.ENTER,ia=Jo.ESC,oa=Jo.HOME,aa=Jo.END,sa=[ta,na,Zo,ea];function la(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=st(e.querySelectorAll("*")).filter((function(e){return Yo(e,t)}));return Yo(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function ca(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=la(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 ua=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(jo(t,e),"']"));o&&(n.add(o),i.set(o,e),r.set(e,o))})),{elements:n,key2element:r,element2key:i}};var da="__RC_UTIL_PATH_SPLIT__",pa=function(e){return e.join(da)},fa="rc-menu-more";function ha(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<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var ma=Math.random().toFixed(5).toString().slice(2),ga=0;function va(e,t,n,i){var o=r.useContext(Vo),a=o.activeKey,s=o.onActive,l=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==i||i({key:e,domEvent:t}),l(e)}),c}function ya(e){var t=r.useContext(Vo),n=t.mode,i=t.rtl,o=t.inlineIndent;return"inline"!==n?null:i?{paddingRight:e*o}:{paddingLeft:e*o}}function ba(e){var t,n=e.icon,i=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=r.createElement(n,ge({},i)):"boolean"!=typeof n&&(t=n),t||o||null)}var Ea=["item"];function wa(e){var t=e.item,n=h(e,Ea);return Object.defineProperty(n,"item",{get:function(){return Me(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Ta=["title","attribute","elementRef"],Sa=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ka=["active"],Oa=function(e){Zr(n,e);var t=to(n);function n(){return Ot(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=e.elementRef,o=lt(h(e,Ta),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Me(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(Ro.Item,a({},n,{title:"string"==typeof t?t:void 0},o,{ref:i}))}}]),n}(r.Component),xa=r.forwardRef((function(e,t){var n=e.style,i=e.className,o=e.eventKey,s=(e.warnKey,e.disabled),l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,p=e.onMouseLeave,m=e.onClick,v=e.onKeyDown,y=e.onFocus,b=h(e,Sa),E=Fo(o),w=r.useContext(Vo),T=w.prefixCls,S=w.onItemClick,k=w.disabled,O=w.overflowDisabled,x=w.itemIcon,C=w.selectedKeys,_=w.onActive,N=r.useContext(Ko)._internalRenderMenuItem,I="".concat(T,"-item"),L=r.useRef(),A=r.useRef(),D=k||s,P=vr(t,A),R=Uo(o),M=function(e){return{key:o,keyPath:st(R).reverse(),item:L.current,domEvent:e}},j=l||x,F=va(o,D,d,p),$=F.active,V=h(F,ka),B=C.includes(o),q=ya(R.length),z={};"option"===e.role&&(z["aria-selected"]=B);var G=r.createElement(Oa,a({ref:L,elementRef:P,role:null===u?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":O&&E?null:E},b,V,z,{component:"li","aria-disabled":s,style:ge(ge({},q),n),className:g()(I,f(f(f({},"".concat(I,"-active"),$),"".concat(I,"-selected"),B),"".concat(I,"-disabled"),D),i),onClick:function(e){if(!D){var t=M(e);null==m||m(wa(t)),S(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===Jo.ENTER){var t=M(e);null==m||m(wa(t)),S(t)}},onFocus:function(e){_(o),null==y||y(e)}}),c,r.createElement(ba,{props:ge(ge({},e),{},{isSelected:B}),icon:j}));return N&&(G=N(G,e,{selected:B})),G}));function Ca(e,t){var n=e.eventKey,i=Go(),o=Uo(n);return r.useEffect((function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}}),[o]),i?null:r.createElement(xa,a({},e,{ref:t}))}const _a=r.forwardRef(Ca);var Na=["className","children"],Ia=function(e,t){var n=e.className,i=e.children,o=h(e,Na),s=r.useContext(Vo),l=s.prefixCls,c=s.mode,u=s.rtl;return r.createElement("ul",a({className:g()(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),i)},La=r.forwardRef(Ia);La.displayName="SubMenuList";const Aa=La;function Da(e,t){return ft(e).map((function(e,n){if(r.isValidElement(e)){var i,o,a=e.key,s=null!==(i=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==i?i:a;null==s&&(s="tmp_key-".concat([].concat(st(t),[n]).join("-")));var l={key:s,eventKey:s};return r.cloneElement(e,l)}return e}))}const Pa=r.createContext(null);var Ra=[];var Ma="rc-util-locker-".concat(Date.now()),ja=0;function Fa(e){var t=!!e,n=u(r.useState((function(){return ja+=1,"".concat(Ma,"_").concat(ja)})),1)[0];Zt((function(){if(t){var e=(i=document.body,"undefined"!=typeof document&&i&&i 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,i,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";Ce("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=l,i=c}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,f=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),xe(t),{width:p,height:f}}(i):{width:0,height:0}).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ce("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else xe(n);var i;return function(){xe(n)}}),[t,n])}var $a=!1,Va=function(e){return!1!==e&&(ve()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ba=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),d=c[0],p=c[1],f=d||n;r.useEffect((function(){(s||n)&&p(n)}),[n,s]);var h=u(r.useState((function(){return Va(o)})),2),m=h[0],g=h[1];r.useEffect((function(){var e=Va(o);g(null!=e?e:null)}));var v=function(e){var t=u(r.useState((function(){return ve()?document.createElement("div"):null})),1)[0],n=r.useRef(!1),i=r.useContext(Pa),o=u(r.useState(Ra),2),a=o[0],s=o[1],l=i||(n.current?void 0:function(e){s((function(t){return[e].concat(st(t))}))});function c(){t.parentElement||document.body.appendChild(t),n.current=!0}function d(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Zt((function(){return e?i?i(c):c():d(),d}),[e]),Zt((function(){a.length&&(a.forEach((function(e){return e()})),s(Ra))}),[a]),[t,l]}(f&&!m),y=u(v,2),b=y[0],E=y[1],w=null!=m?m:b;Fa(i&&n&&ve()&&(w===b||w===document.body));var T=null;l&&yr(l)&&t&&(T=l.ref);var S=vr(T,t);if(!f||!ve()||void 0===m)return null;var k=!1===w||$a,O=l;return t&&(O=r.cloneElement(l,{ref:S})),r.createElement(Pa.Provider,{value:E},k?O:(0,Ci.createPortal)(O,w))}));const qa=Ba;var za=0,Ga=ge({},r).useId;const Qa=Ga?function(e){var t=Ga();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=za;za+=1,i("rc_unique_".concat(e))}),[]),e||n},Ua=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 Ha=r.createContext({}),Ka=function(e){Zr(n,e);var t=to(n);function n(){return Ot(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const Wa=Ka;var Ya="none",Xa="appear",Ja="enter",Za="leave",es="none",ts="prepare",ns="start",rs="active",is="end",os="prepared";function as(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 ss,ls,cs,us=(ss=ve(),ls="undefined"!=typeof window?window:{},cs={animationend:as("Animation","AnimationEnd"),transitionend:as("Transition","TransitionEnd")},ss&&("AnimationEvent"in ls||delete cs.animationend.animation,"TransitionEvent"in ls||delete cs.transitionend.transition),cs),ds={};if(ve()){var ps=document.createElement("div");ds=ps.style}var fs={};function hs(e){if(fs[e])return fs[e];var t=us[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in ds)return fs[e]=t[o],fs[e]}return""}var ms=hs("animationend"),gs=hs("transitionend"),vs=!(!ms||!gs),ys=ms||"animationend",bs=gs||"transitionend";function Es(e,t){return e?"object"===d(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const ws=ve()?r.useLayoutEffect:r.useEffect;var Ts=[ts,ns,rs,is],Ss=[ts,os],ks=!1;function Os(e){return e===rs||e===is}function xs(e,t,n,i){var o,a,s,l,c=i.motionEnter,d=void 0===c||c,p=i.motionAppear,h=void 0===p||p,m=i.motionLeave,g=void 0===m||m,v=i.motionDeadline,y=i.motionLeaveImmediately,b=i.onAppearPrepare,E=i.onEnterPrepare,w=i.onLeavePrepare,T=i.onAppearStart,S=i.onEnterStart,k=i.onLeaveStart,O=i.onAppearActive,x=i.onEnterActive,C=i.onLeaveActive,_=i.onAppearEnd,N=i.onEnterEnd,I=i.onLeaveEnd,L=i.onVisibleChanged,A=u(pr(),2),D=A[0],P=A[1],R=(o=Ya,a=r.useReducer((function(e){return e+1}),0),s=u(a,2)[1],l=r.useRef(o),[dr((function(){return l.current})),dr((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),M=u(R,2),j=M[0],F=M[1],$=u(pr(null),2),V=$[0],B=$[1],q=j(),z=(0,r.useRef)(!1),G=(0,r.useRef)(null);function Q(){return n()}var U=(0,r.useRef)(!1);function H(){F(Ya),B(null,!0)}var K=dr((function(e){var t=j();if(t!==Ya){var n=Q();if(!e||e.deadline||e.target===n){var r,i=U.current;t===Xa&&i?r=null==_?void 0:_(n,e):t===Ja&&i?r=null==N?void 0:N(n,e):t===Za&&i&&(r=null==I?void 0:I(n,e)),i&&!1!==r&&H()}}})),W=function(e){var t=(0,r.useRef)();function n(t){t&&(t.removeEventListener(bs,e),t.removeEventListener(ys,e))}return r.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(bs,e),r.addEventListener(ys,e),t.current=r)},n]}(K),Y=u(W,1)[0],X=function(e){switch(e){case Xa:return f(f(f({},ts,b),ns,T),rs,O);case Ja:return f(f(f({},ts,E),ns,S),rs,x);case Za:return f(f(f({},ts,w),ns,k),rs,C);default:return{}}},J=r.useMemo((function(){return X(q)}),[q]),Z=u(function(e,t,n){var i=u(pr(es),2),o=i[0],a=i[1],s=function(){var e=r.useRef(null);function t(){Eo.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Eo((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],d=l[1],p=t?Ss:Ts;return ws((function(){if(o!==es&&o!==is){var e=p.indexOf(o),t=p[e+1],r=n(o);r===ks?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(){d()}}),[]),[function(){a(ts,!0)},o]}(q,!e,(function(e){if(e===ts){var t=J[ts];return t?t(Q()):ks}var n;return te in J&&B((null===(n=J[te])||void 0===n?void 0:n.call(J,Q(),null))||null),te===rs&&q!==Ya&&(Y(Q()),v>0&&(clearTimeout(G.current),G.current=setTimeout((function(){K({deadline:!0})}),v))),te===os&&H(),!0})),2),ee=Z[0],te=Z[1],ne=Os(te);U.current=ne,ws((function(){P(t);var n,r=z.current;z.current=!0,!r&&t&&h&&(n=Xa),r&&t&&d&&(n=Ja),(r&&!t&&g||!r&&y&&!t&&g)&&(n=Za);var i=X(n);n&&(e||i[ts])?(F(n),ee()):F(Ya)}),[t]),(0,r.useEffect)((function(){(q===Xa&&!h||q===Ja&&!d||q===Za&&!g)&&F(Ya)}),[h,d,g]),(0,r.useEffect)((function(){return function(){z.current=!1,clearTimeout(G.current)}}),[]);var re=r.useRef(!1);(0,r.useEffect)((function(){D&&(re.current=!0),void 0!==D&&q===Ya&&((re.current||D)&&(null==L||L(D)),re.current=!0)}),[D,q]);var ie=V;return J[ts]&&te===ns&&(ie=ge({transition:"none"},ie)),[q,te,ie,null!=D?D:t]}const Cs=function(e){var t=e;"object"===d(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,l=e.forceRender,c=e.children,d=e.motionName,p=e.leavedClassName,h=e.eventProps,m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(Ha).motion),v=(0,r.useRef)(),y=(0,r.useRef)(),b=u(xs(m,o,(function(){try{return v.current instanceof HTMLElement?v.current:Ii(y.current)}catch(e){return null}}),e),4),E=b[0],w=b[1],T=b[2],S=b[3],k=r.useRef(S);S&&(k.current=!0);var O,x=r.useCallback((function(e){v.current=e,mr(n,e)}),[n]),C=ge(ge({},h),{},{visible:o});if(c)if(E===Ya)O=S?c(ge({},C),x):!s&&k.current&&p?c(ge(ge({},C),{},{className:p}),x):l||!s&&!p?c(ge(ge({},C),{},{style:{display:"none"}}),x):null;else{var _;w===ts?_="prepare":Os(w)?_="active":w===ns&&(_="start");var N=Es(d,"".concat(E,"-").concat(_));O=c(ge(ge({},C),{},{className:g()(Es(d,E),f(f({},N,N&&_),d,"string"==typeof d)),style:T}),x)}else O=null;return r.isValidElement(O)&&yr(O)&&(O.ref||(O=r.cloneElement(O,{ref:x}))),r.createElement(Wa,{ref:y},O)}));return n.displayName="CSSMotion",n}(vs);var _s="add",Ns="keep",Is="remove",Ls="removed";function As(e){var t;return ge(ge({},t=e&&"object"===d(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ds(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(As)}var Ps=["component","children","onVisibleChanged","onAllRemoved"],Rs=["status"],Ms=["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]:Cs,t=function(t){Zr(i,t);var n=to(i);function i(){var e;Ot(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return f(Wr(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),f(Wr(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:ge(ge({},e),{},{status:Ls})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Ls})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Ct(i,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,o=i.component,s=i.children,l=i.onVisibleChanged,c=(i.onAllRemoved,h(i,Ps)),u=o||r.Fragment,d={};return Ms.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,r.createElement(u,c,n.map((function(n,i){var o=n.status,c=h(n,Rs),u=o===_s||o===Ns;return r.createElement(e,a({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){null==l||l(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return s(ge(ge({},e),{},{index:i}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=Ds(n),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Ds(e),a=Ds(t);o.forEach((function(e){for(var t=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===e.key){r<o&&(n=n.concat(a.slice(r,o).map((function(e){return ge(ge({},e),{},{status:_s})}))),r=o),n.push(ge(ge({},s),{},{status:Ns})),r+=1,t=!0;break}}t||n.push(ge(ge({},e),{},{status:Is}))})),r<i&&(n=n.concat(a.slice(r).map((function(e){return ge(ge({},e),{},{status:_s})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Is}))).forEach((function(t){t.key===e&&(t.status=Ns)}))})),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!==Ls||e.status!==Is}))}}}]),i}(r.Component);f(t,"defaultProps",{component:"div"})}(vs);const js=Cs;function Fs(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,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],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=p,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 $s(e){var t=e.prefixCls,n=e.open,i=e.zIndex,o=e.mask,s=e.motion;return o?r.createElement(js,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 Vs=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Bs=Vs;var qs=r.forwardRef((function(e,t){var n=e.popup,i=e.className,o=e.prefixCls,s=e.style,l=e.target,c=e.onVisibleChanged,d=e.open,p=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.onPointerDownCapture,L=e.ready,A=e.offsetX,D=e.offsetY,P=e.offsetR,R=e.offsetB,M=e.onAlign,j=e.onPrepare,F=e.stretch,$=e.targetWidth,V=e.targetHeight,B="function"==typeof n?n():n,q=d||p,z=(null==S?void 0:S.length)>0,G=u(r.useState(!S||!z),2),Q=G[0],U=G[1];if(Zt((function(){!Q&&z&&l&&U(!0)}),[Q,z,l]),!Q)return null;var H="auto",K={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(L||!d){var W,Y=b.points,X=b.dynamicInset||(null===(W=b._experimental)||void 0===W?void 0:W.dynamicInset),J=X&&"r"===Y[0][1],Z=X&&"b"===Y[0][0];J?(K.right=P,K.left=H):(K.left=A,K.right=H),Z?(K.bottom=R,K.top=H):(K.top=D,K.bottom=H)}var ee={};return F&&(F.includes("height")&&V?ee.height=V:F.includes("minHeight")&&V&&(ee.minHeight=V),F.includes("width")&&$?ee.width=$:F.includes("minWidth")&&$&&(ee.minWidth=$)),d||(ee.pointerEvents="none"),r.createElement(O,{open:T||q,getContainer:S&&function(){return S(l)},autoDestroy:k},r.createElement($s,{prefixCls:o,open:d,zIndex:x,mask:m,motion:w}),r.createElement(so,{onResize:M,disabled:!d},(function(e){return r.createElement(js,a({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(o,"-hidden")},E,{onAppearPrepare:j,onEnterPrepare:j,visible:d,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:gr(e,t,a),className:u,style:ge(ge(ge(ge({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},K),ee),c),{},{boxSizing:"border-box",zIndex:x},s),onMouseEnter:C,onMouseLeave:_,onPointerEnter:N,onClick:h,onPointerDownCapture:I},v&&r.createElement(Fs,{prefixCls:o,arrow:v,arrowPos:y,align:b}),r.createElement(Bs,{cache:!d&&!f},B))}))})))}));const zs=qs;var Gs=r.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,o=yr(n),a=r.useCallback((function(e){mr(t,i?i(e):e)}),[i]),s=vr(a,n.ref);return o?r.cloneElement(n,{ref:s}):n}));const Qs=Gs,Us=r.createContext(null);function Hs(e){return e?Array.isArray(e)?e:[e]:[]}function Ks(){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 Ws(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ys(e){return e.ownerDocument.defaultView}function Xs(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Ys(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 Js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Zs(e){return Js(parseFloat(e),0)}function el(e,t){var n=ge({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Ys(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,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=Zs(o),m=Zs(a),g=Zs(s),v=Zs(l),y=Js(Math.round(c.width/p*1e3)/1e3),b=Js(Math.round(c.height/u*1e3)/1e3),E=(p-f-g-v)*y,w=(u-d-h-m)*b,T=h*b,S=m*b,k=g*y,O=v*y,x=0,C=0;if("clip"===r){var _=Zs(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 tl(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 nl(e,t){var n=u(t||[],2),r=n[0],i=n[1];return[tl(e.width,r),tl(e.height,i)]}function rl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function il(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 ol(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 al=["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 sl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qa,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,d=t.hideAction,p=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,al),ee=_||N||!1,te=u(r.useState(!1),2),ne=te[0],re=te[1];Zt((function(){re(Ua())}),[]);var ie=r.useRef({}),oe=r.useContext(Us),ae=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==oe||oe.registerSubPopup(e,t)}}}),[oe]),se=Qa(),le=u(r.useState(null),2),ce=le[0],ue=le[1],de=r.useRef(null),pe=dr((function(e){de.current=e,Ni(e)&&ce!==e&&ue(e),null==oe||oe.registerSubPopup(se,e)})),fe=u(r.useState(null),2),he=fe[0],me=fe[1],ve=r.useRef(null),ye=dr((function(e){Ni(e)&&he!==e&&(me(e),ve.current=e)})),be=r.Children.only(a),Ee=(null==be?void 0:be.props)||{},we={},Te=dr((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=Ne(r))||void 0===t?void 0:t.host)===e||e===r||(null==ce?void 0:ce.contains(e))||(null===(n=Ne(ce))||void 0===n?void 0:n.host)===e||e===ce||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=Ws(o,Q,K,H),ke=Ws(o,U,Y,W),Oe=u(r.useState(f||!1),2),xe=Oe[0],Ce=Oe[1],_e=null!=p?p:xe,Ie=dr((function(e){void 0===p&&Ce(e)}));Zt((function(){Ce(p||!1)}),[p]);var Le=r.useRef(_e);Le.current=_e;var Ae=r.useRef([]);Ae.current=[];var De=dr((function(e){var t;Ie(e),(null!==(t=Ae.current[Ae.current.length-1])&&void 0!==t?t:_e)!==e&&(Ae.current.push(e),null==m||m(e))})),Pe=r.useRef(),Re=function(){clearTimeout(Pe.current)},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Re(),0===t?De(e):Pe.current=setTimeout((function(){De(e)}),1e3*t)};r.useEffect((function(){return Re}),[]);var je=u(r.useState(!1),2),Fe=je[0],$e=je[1];Zt((function(e){e&&!_e||$e(!0)}),[_e]);var Ve=u(r.useState(null),2),Be=Ve[0],qe=Ve[1],ze=u(r.useState(null),2),Ge=ze[0],Qe=ze[1],Ue=function(e){Qe([e.clientX,e.clientY])},He=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],d=l[1],p=r.useRef(0),f=r.useMemo((function(){return t?Xs(t):[]}),[t]),h=r.useRef({});e||(h.current={});var m=dr((function(){if(t&&n&&e){var r,l,c,p,m,g=t,v=g.ownerDocument,y=Ys(g).getComputedStyle(g),b=y.width,E=y.height,w=y.position,T=g.style.left,S=g.style.top,k=g.style.right,O=g.style.bottom,x=g.style.overflow,C=ge(ge({},o[i]),a),_=v.createElement("div");if(null===(r=g.parentElement)||void 0===r||r.appendChild(_),_.style.left="".concat(g.offsetLeft,"px"),_.style.top="".concat(g.offsetTop,"px"),_.style.position=w,_.style.height="".concat(g.offsetHeight,"px"),_.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,I,L=n.getBoundingClientRect();L.x=null!==(N=L.x)&&void 0!==N?N:L.left,L.y=null!==(I=L.y)&&void 0!==I?I:L.top,m={x:L.x,y:L.y,width:L.width,height:L.height}}var A=g.getBoundingClientRect();A.x=null!==(l=A.x)&&void 0!==l?l:A.left,A.y=null!==(c=A.y)&&void 0!==c?c:A.top;var D=v.documentElement,P=D.clientWidth,R=D.clientHeight,M=D.scrollWidth,j=D.scrollHeight,F=D.scrollTop,$=D.scrollLeft,V=A.height,B=A.width,q=m.height,z=m.width,G={left:0,top:0,right:P,bottom:R},Q={left:-$,top:-F,right:M-$,bottom:j-F},U=C.htmlRegion,H="visible",K="visibleFirst";"scroll"!==U&&U!==K&&(U=H);var W=U===K,Y=el(Q,f),X=el(G,f),J=U===H?X:Y,Z=W?X:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ee=g.getBoundingClientRect();g.style.left=T,g.style.top=S,g.style.right=k,g.style.bottom=O,g.style.overflow=x,null===(p=g.parentElement)||void 0===p||p.removeChild(_);var te=Js(Math.round(B/parseFloat(b)*1e3)/1e3),ne=Js(Math.round(V/parseFloat(E)*1e3)/1e3);if(0===te||0===ne||Ni(n)&&!Wo(n))return;var re=C.offset,ie=C.targetOffset,oe=u(nl(A,re),2),ae=oe[0],se=oe[1],le=u(nl(m,ie),2),ce=le[0],ue=le[1];m.x-=ce,m.y-=ue;var de=u(C.points||[],2),pe=de[0],fe=rl(de[1]),he=rl(pe),me=il(m,fe),ve=il(A,he),ye=ge({},C),be=me.x-ve.x+ae,Ee=me.y-ve.y+se;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,i=A.y+t,o=r+B,a=i+V,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 we,Te,Se,ke,Oe=ft(be,Ee),xe=ft(be,Ee,X),Ce=il(m,["t","l"]),_e=il(A,["t","l"]),Ne=il(m,["b","r"]),Ie=il(A,["b","r"]),Le=C.overflow||{},Ae=Le.adjustX,De=Le.adjustY,Pe=Le.shiftX,Re=Le.shiftY,Me=function(e){return"boolean"==typeof e?e:e>=0};function ht(){we=A.y+Ee,Te=we+V,Se=A.x+be,ke=Se+B}ht();var je=Me(De),Fe=he[0]===fe[0];if(je&&"t"===he[0]&&(Te>Z.bottom||h.current.bt)){var $e=Ee;Fe?$e-=V-q:$e=Ce.y-Ie.y-se;var Ve=ft(be,$e),Be=ft(be,$e,X);Ve>Oe||Ve===Oe&&(!W||Be>=xe)?(h.current.bt=!0,Ee=$e,se=-se,ye.points=[ol(he,0),ol(fe,0)]):h.current.bt=!1}if(je&&"b"===he[0]&&(we<Z.top||h.current.tb)){var qe=Ee;Fe?qe+=V-q:qe=Ne.y-_e.y-se;var ze=ft(be,qe),Ge=ft(be,qe,X);ze>Oe||ze===Oe&&(!W||Ge>=xe)?(h.current.tb=!0,Ee=qe,se=-se,ye.points=[ol(he,0),ol(fe,0)]):h.current.tb=!1}var Qe=Me(Ae),Ue=he[1]===fe[1];if(Qe&&"l"===he[1]&&(ke>Z.right||h.current.rl)){var He=be;Ue?He-=B-z:He=Ce.x-Ie.x-ae;var Ke=ft(He,Ee),We=ft(He,Ee,X);Ke>Oe||Ke===Oe&&(!W||We>=xe)?(h.current.rl=!0,be=He,ae=-ae,ye.points=[ol(he,1),ol(fe,1)]):h.current.rl=!1}if(Qe&&"r"===he[1]&&(Se<Z.left||h.current.lr)){var Ye=be;Ue?Ye+=B-z:Ye=Ne.x-_e.x-ae;var Xe=ft(Ye,Ee),Je=ft(Ye,Ee,X);Xe>Oe||Xe===Oe&&(!W||Je>=xe)?(h.current.lr=!0,be=Ye,ae=-ae,ye.points=[ol(he,1),ol(fe,1)]):h.current.lr=!1}ht();var Ze=!0===Pe?0:Pe;"number"==typeof Ze&&(Se<X.left&&(be-=Se-X.left-ae,m.x+z<X.left+Ze&&(be+=m.x-X.left+z-Ze)),ke>X.right&&(be-=ke-X.right-ae,m.x>X.right-Ze&&(be+=m.x-X.right+Ze)));var et=!0===Re?0:Re;"number"==typeof et&&(we<X.top&&(Ee-=we-X.top-se,m.y+q<X.top+et&&(Ee+=m.y-X.top+q-et)),Te>X.bottom&&(Ee-=Te-X.bottom-se,m.y>X.bottom-et&&(Ee+=m.y-X.bottom+et)));var tt=A.x+be,nt=tt+B,rt=A.y+Ee,it=rt+V,ot=m.x,at=ot+z,st=m.y,lt=st+q,ct=(Math.max(tt,ot)+Math.min(nt,at))/2-tt,ut=(Math.max(rt,st)+Math.min(it,lt))/2-rt;null==s||s(t,ye);var dt=ee.right-A.x-(be+A.width),pt=ee.bottom-A.y-(Ee+A.height);1===te&&(be=Math.round(be),dt=Math.round(dt)),1===ne&&(Ee=Math.round(Ee),pt=Math.round(pt)),d({ready:!0,offsetX:be/te,offsetY:Ee/ne,offsetR:dt/te,offsetB:pt/ne,arrowX:ct/te,arrowY:ut/ne,scaleX:te,scaleY:ne,align:ye})}})),g=function(){d((function(e){return ge(ge({},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(){p.current+=1;var e=p.current;Promise.resolve().then((function(){p.current===e&&m()}))}]}(_e,ce,B&&null!==Ge?Ge:he,D,R,M,z),Ke=u(He,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=Hs(null!=n?n:t),o=Hs(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,l,c,d),lt=u(at,2),ct=lt[0],ut=lt[1],dt=ct.has("click"),pt=ut.has("click")||ut.has("contextMenu"),ft=dr((function(){Fe||ot()}));!function(e,t,n,r){Zt((function(){if(e&&t&&n){var i=n,o=Xs(t),a=Xs(i),s=Ys(i),l=new Set([s].concat(st(o),st(a)));function c(){r(),Le.current&&B&&pt&&Me(!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,ce,ft),Zt((function(){ft()}),[Ge,D]),Zt((function(){!_e||null!=R&&R[D]||ft()}),[JSON.stringify(M)]);var ht=r.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(Ks(null===(s=e[l])||void 0===s?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}(R,o,it,B);return g()(e,null==$?void 0:$(it))}),[it,$,R,o,B]);r.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:de.current,forceAlign:ft}}));var mt=u(r.useState(0),2),gt=mt[0],vt=mt[1],yt=u(r.useState(0),2),bt=yt[0],Et=yt[1],wt=function(){if(F&&he){var e=he.getBoundingClientRect();vt(e.width),Et(e.height)}};function Tt(e,t,n,r){we[e]=function(i){var o;null==r||r(i),Me(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(o=Ee[e])||void 0===o||o.call.apply(o,[Ee,i].concat(s))}}Zt((function(){Be&&(ot(),Be(),qe(null))}),[Be]),(dt||pt)&&(we.onClick=function(e){var t;Le.current&&pt?Me(!1):!Le.current&&dt&&(Ue(e),Me(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Ee.onClick)||void 0===t||t.call.apply(t,[Ee,e].concat(r))});var St,kt,Ot=function(e,t,n,i,o,a,s,l){var c=r.useRef(e);c.current=e;var u=r.useRef(!1);return r.useEffect((function(){if(t&&i&&(!o||a)){var e=function(){u.current=!1},r=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},d=Ys(i);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",r,!0),d.addEventListener("contextmenu",r,!0);var p=Ne(n);return p&&(p.addEventListener("mousedown",r,!0),p.addEventListener("contextmenu",r,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",r,!0),d.removeEventListener("contextmenu",r,!0),p&&(p.removeEventListener("mousedown",r,!0),p.removeEventListener("contextmenu",r,!0))}}}),[t,n,i,o,a]),function(){u.current=!0}}(_e,pt,he,ce,S,O,Te,Me),xt=ct.has("hover"),Ct=ut.has("hover");xt&&(Tt("onMouseEnter",!0,y,(function(e){Ue(e)})),Tt("onPointerEnter",!0,y,(function(e){Ue(e)})),St=function(e){(_e||Fe)&&null!=ce&&ce.contains(e.target)&&Me(!0,y)},B&&(we.onMouseMove=function(e){var t;null===(t=Ee.onMouseMove)||void 0===t||t.call(Ee,e)})),Ct&&(Tt("onMouseLeave",!1,E),Tt("onPointerLeave",!1,E),kt=function(){Me(!1,E)}),ct.has("focus")&&Tt("onFocus",!0,w),ut.has("focus")&&Tt("onBlur",!1,T),ct.has("contextMenu")&&(we.onContextMenu=function(e){var t;Le.current&&ut.has("contextMenu")?Me(!1):(Ue(e),Me(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Ee.onContextMenu)||void 0===t||t.call.apply(t,[Ee,e].concat(r))}),X&&(we.className=g()(Ee.className,X));var _t=ge(ge({},Ee),we),Nt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Z[e]&&(Nt[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=_t[e])||void 0===t||t.call.apply(t,[_t].concat(r)),Z[e].apply(Z,r)})}));var It=r.cloneElement(be,ge(ge({},_t),Nt)),Lt={x:et,y:tt},At=G?ge({},!0!==G?G:{}):null;return r.createElement(r.Fragment,null,r.createElement(so,{disabled:!_e,ref:ye,onResize:function(){wt(),ft()}},r.createElement(Qs,{getTriggerDOMNode:J},It)),r.createElement(Us.Provider,{value:ae},r.createElement(zs,{portal:e,ref:pe,prefixCls:o,popup:I,className:g()(L,ht),style:A,target:he,onMouseEnter:St,onMouseLeave:kt,onPointerEnter:St,zIndex:j,open:_e,keepDom:Fe,fresh:V,onClick:q,onPointerDownCapture:Ot,mask:S,motion:Se,maskMotion:ke,onVisibleChanged:function(e){$e(!1),ot(),null==v||v(e)},onPrepare:function(){return new Promise((function(e){wt(),qe((function(){return e}))}))},forceRender:C,autoDestroy:ee,getPopupContainer:x,align:it,arrow:At,arrowPos:Lt,ready:We,offsetX:Ye,offsetY:Xe,offsetR:Je,offsetB:Ze,onAlign:ft,stretch:F,targetWidth:gt/nt,targetHeight:bt/rt})))}));return t}(qa);var ll={adjustX:1,adjustY:1},cl={topLeft:{points:["bl","tl"],overflow:ll},topRight:{points:["br","tr"],overflow:ll},bottomLeft:{points:["tl","bl"],overflow:ll},bottomRight:{points:["tr","br"],overflow:ll},leftTop:{points:["tr","tl"],overflow:ll},leftBottom:{points:["br","bl"],overflow:ll},rightTop:{points:["tl","tr"],overflow:ll},rightBottom:{points:["bl","br"],overflow:ll}},ul={topLeft:{points:["bl","tl"],overflow:ll},topRight:{points:["br","tr"],overflow:ll},bottomLeft:{points:["tl","bl"],overflow:ll},bottomRight:{points:["tr","br"],overflow:ll},rightTop:{points:["tr","tl"],overflow:ll},rightBottom:{points:["br","bl"],overflow:ll},leftTop:{points:["tl","tr"],overflow:ll},leftBottom:{points:["bl","br"],overflow:ll}};function dl(e,t,n){return t||(n?n[e]||n.other:void 0)}var pl={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fl(e){var t=e.prefixCls,n=e.visible,i=e.children,o=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,d=e.mode,p=e.onVisibleChange,h=r.useContext(Vo),m=h.getPopupContainer,v=h.rtl,y=h.subMenuOpenDelay,b=h.subMenuCloseDelay,E=h.builtinPlacements,w=h.triggerSubMenuAction,T=h.forceSubMenuRender,S=h.rootClassName,k=h.motion,O=h.defaultMotions,x=u(r.useState(!1),2),C=x[0],_=x[1],N=ge(ge({},v?ul:cl),E),I=pl[d],L=dl(d,k,O),A=r.useRef(L);"inline"!==d&&(A.current=L);var D=ge(ge({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=r.useRef();return r.useEffect((function(){return P.current=Eo((function(){_(n)})),function(){Eo.cancel(P.current)}}),[n]),r.createElement(sl,{prefixCls:t,popupClassName:g()("".concat(t,"-popup"),f({},"".concat(t,"-rtl"),v),s,S),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:m,builtinPlacements:N,popupPlacement:I,popupVisible:C,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[w],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:T,popupMotion:D,fresh:!0},i)}function hl(e){var t=e.id,n=e.open,i=e.keyPath,o=e.children,s="inline",l=r.useContext(Vo),c=l.prefixCls,d=l.forceSubMenuRender,p=l.motion,f=l.defaultMotions,h=l.mode,m=r.useRef(!1);m.current=h===s;var g=u(r.useState(!m.current),2),v=g[0],y=g[1],b=!!m.current&&n;r.useEffect((function(){m.current&&y(!1)}),[h]);var E=ge({},dl(s,p,f));i.length>1&&(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(Bo,{mode:s,locked:!m.current},r.createElement(js,a({visible:b},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,i=e.style;return r.createElement(Aa,{id:t,className:n,style:i},o)})))}var ml=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gl=["active"],vl=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,d=e.itemIcon,p=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,ml),x=Fo(o),C=r.useContext(Vo),_=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(Ko)._internalRenderSubMenuItem,B=r.useContext(Ho).isSubPathKey,q=Uo(),z="".concat(_,"-submenu"),G=L||s,Q=r.useRef(),U=r.useRef(),H=null!=d?d:R,K=null!=p?p:M,W=I.includes(o),Y=!A&&W,X=B(P,o),J=va(o,G,S,k),Z=J.active,ee=h(J,gl),te=u(r.useState(!1),2),ne=te[0],re=te[1],ie=function(e){G||re(e)},oe=r.useMemo((function(){return Z||"inline"!==N&&(ne||B([D],o))}),[N,Z,D,ne,o,B]),ae=ya(q.length),se=ha((function(e){null==b||b(wa(e)),j(e)})),le=x&&"".concat(x,"-popup"),ce=r.createElement("div",a({role:"menuitem",style:ae,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":le,"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(ba,{icon:"horizontal"!==N?K:void 0,props:ge(ge({},e),{},{isOpen:Y,isSubMenu:!0})},r.createElement("i",{className:"".concat(z,"-arrow")}))),ue=r.useRef(N);if("inline"!==N&&q.length>1?ue.current="vertical":ue.current=N,!A){var de=ue.current;ce=r.createElement(fl,{mode:de,prefixCls:z,visible:!l&&Y&&"inline"!==N,popupClassName:m,popupOffset:v,popupStyle:y,popup:r.createElement(Bo,{mode:"horizontal"===de?"vertical":de},r.createElement(Aa,{id:le,ref:U},c)),disabled:G,onVisibleChange:function(e){"inline"!==N&&F(o,e)}},ce)}var pe=r.createElement(Ro.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"),oe),"".concat(z,"-selected"),X),"".concat(z,"-disabled"),G)),onMouseEnter:function(e){ie(!0),null==E||E({key:o,domEvent:e})},onMouseLeave:function(e){ie(!1),null==w||w({key:o,domEvent:e})}}),ce,!A&&r.createElement(hl,{id:le,open:Y,keyPath:q},c));return V&&(pe=V(pe,e,{selected:X,active:oe,open:Y,disabled:G})),r.createElement(Bo,{onItemClick:se,mode:"horizontal"===N?"vertical":N,itemIcon:H,expandIcon:K},pe)};function yl(e){var t,n=e.eventKey,i=e.children,o=Uo(n),a=Da(i,o),s=Go();return r.useEffect((function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}}),[o]),t=s?a:r.createElement(vl,e,a),r.createElement(Qo.Provider,{value:o},t)}var bl=["className","title","eventKey","children"],El=["children"],wl=function(e){var t=e.className,n=e.title,i=(e.eventKey,e.children),o=h(e,bl),s=r.useContext(Vo).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 Tl(e){var t=e.children,n=h(e,El),i=Da(t,Uo(n.eventKey));return Go()?i:r.createElement(wl,lt(n,["warnKey"]),i)}function Sl(e){var t=e.className,n=e.style,i=r.useContext(Vo).prefixCls;return Go()?null:r.createElement("li",{role:"separator",className:g()("".concat(i,"-item-divider"),t),style:n})}var kl=["label","children","key","type"];function Ol(e){return(e||[]).map((function(e,t){if(e&&"object"===d(e)){var n=e,i=n.label,o=n.children,s=n.key,l=n.type,c=h(n,kl),u=null!=s?s:"tmp-".concat(t);return o||"group"===l?"group"===l?r.createElement(Tl,a({key:u},c,{title:i}),Ol(o)):r.createElement(yl,a({key:u},c,{title:i}),Ol(o)):"divider"===l?r.createElement(Sl,a({key:u},c)):r.createElement(_a,a({key:u},c),i)}return null})).filter((function(e){return e}))}function xl(e,t,n){var r=e;return t&&(r=Ol(t)),Da(r,n)}var Cl=["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"],_l=[],Nl=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,d=i.className,p=i.tabIndex,m=void 0===p?0:p,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,te=i.getPopupContainer,ne=i.onClick,re=i.onOpenChange,ie=i.onKeyDown,oe=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),ae=i._internalRenderSubMenuItem,se=h(i,Cl),le=r.useMemo((function(){return xl(y,v,_l)}),[y,v]),ce=u(r.useState(!1),2),ue=ce[0],de=ce[1],pe=r.useRef(),fe=function(e){var t=u(hr(e,{value:e}),2),n=t[0],i=t[1];return r.useEffect((function(){ga+=1;var e="".concat(ma,"-").concat(ga);i("rc-menu-uuid-".concat(e))}),[]),n}(E),he="rtl"===b,me=u(hr(L,{value:A,postState:function(e){return e||_l}}),2),ve=me[0],ye=me[1],be=function(e){function t(){ye(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ci.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(_l))}),[Oe,xe]);var Pe=u(r.useState(0),2),Re=Pe[0],Me=Pe[1],je=Re>=le.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=pa(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)}),[]),d=(0,r.useCallback)((function(e,r){var i=pa(r);n.current.delete(i),t.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){a(e)}),[]),f=(0,r.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(da);return n&&o.includes(r[0])&&r.unshift(fa),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(da),i=new Set;return st(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:d,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:f,getKeys:function(){var e=st(t.current.keys());return o.length&&e.push(fa),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]),He=r.useMemo((function(){return{isSubPathKey:qe}}),[qe]);r.useEffect((function(){Be(je?_l:le.slice(Re+1).map((function(e){return e.key})))}),[Re,je]);var Ke=u(hr(D||P&&(null===(n=le[0])||void 0===n?void 0:n.key),{value:D}),2),We=Ke[0],Ye=Ke[1],Xe=ha((function(e){Ye(e)})),Je=ha((function(){Ye(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:pe.current,focus:function(e){var t,n,r=Ge(),i=ua(r,fe),o=i.elements,a=i.key2element,s=i.element2key,l=la(pe.current,o),c=null!=We?We:l[0]?s.get(l[0]):null===(t=le.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 Ze=u(hr($||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?_l:[e]}}),2),et=Ze[0],tt=Ze[1],nt=ha((function(e){null==ne||ne(wa(e)),function(e){if(M){var t,n=e.key,r=et.includes(n);t=F?r?et.filter((function(e){return e!==n})):[].concat(st(et),[n]):[n],tt(t);var i=ge(ge({},e),{},{selectedKeys:t});r?null==q||q(i):null==B||B(i)}!F&&ve.length&&"inline"!==Ne&&be(_l)}(e)})),rt=ha((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)}))}kt(ve,n,!0)||be(n,!0)})),it=function(e,t,n,i,o,a,s,l,c,u){var d=r.useRef(),p=r.useRef();p.current=t;var h=function(){Eo.cancel(d.current)};return r.useEffect((function(){return function(){h()}}),[]),function(r){var m=r.which;if([].concat(sa,[ra,ia,oa,aa]).includes(m)){var g=a(),v=ua(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===ra)return{inlineTrigger:!0};var c=f(f({},ta,o),na,a),u=f(f(f(f({},Zo,n?a:o),ea,n?o:a),na,s),ra,s),d=f(f(f(f(f(f({},ta,o),na,a),ra,s),ia,l),Zo,n?s:l),ea,n?l:s);switch(null===(i={inline:c,horizontal:u,vertical:d,inlineSub:c,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 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!==oa&&m!==aa)return;(sa.includes(m)||[oa,aa].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(),d.current=Eo((function(){p.current===r&&t.focus()}))}};if([oa,aa].includes(m)||k.sibling||!T){var x,C,_=la(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===oa?_[0]:m===aa?_[_.length-1]:ca(x,b,T,k.offset),O(C)}else if(k.inlineTrigger)c(S);else if(k.offset>0)c(S,!0),h(),d.current=Eo((function(){v=ua(g,i);var e=T.getAttribute("aria-controls"),t=ca(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,We,he,fe,pe,Ge,ze,Ye,(function(e,t){var n=null!=t?t:!ve.includes(e);rt(e,n)}),ie);r.useEffect((function(){de(!0)}),[]);var ot=r.useMemo((function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:ae}}),[oe,ae]),at="horizontal"!==Ne||O?le:le.map((function(e,t){return r.createElement(Bo,{key:e.key,overflowDisabled:t>Re},e)})),lt=r.createElement(Ro,a({id:E,ref:pe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:_a,className:g()(s,"".concat(s,"-root"),"".concat(s,"-").concat(Ne),d,f(f({},"".concat(s,"-inline-collapsed"),Ae),"".concat(s,"-rtl"),he),l),dir:b,style:c,role:"menu",tabIndex:m,data:at,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?le.slice(-t):null;return r.createElement(yl,{eventKey:fa,title:Z,disabled:je,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Ne||O?Ro.INVALIDATE:Ro.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Me(e)},onKeyDown:it},se));return r.createElement(Ko.Provider,{value:ot},r.createElement(Mo.Provider,{value:fe},r.createElement(Bo,{prefixCls:s,rootClassName:l,mode:Ne,openKeys:ve,rtl:he,disabled:k,motion:ue?Q:null,defaultMotions:ue?U:null,activeKey:We,onActive:Xe,onInactive:Je,selectedKeys:et,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:N,forceSubMenuRender:I,builtinPlacements:W,triggerSubMenuAction:K,getPopupContainer:te,itemIcon:Y,expandIcon:X,onItemClick:nt,onOpenChange:rt},r.createElement(Ho.Provider,{value:He},lt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(zo.Provider,{value:Ue},le)))))})),Il=Nl;Il.Item=_a,Il.SubMenu=yl,Il.ItemGroup=Tl,Il.Divider=Sl;const Ll=Il,Al={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 Dl=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:Al}))};const Pl=r.forwardRef(Dl),Rl=()=>({height:0,opacity:0}),Ml=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},jl=e=>({height:e?e.offsetHeight:0}),Fl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,$l=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Vl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Rl,onEnterStart:Rl,onAppearActive:Ml,onEnterActive:Ml,onLeaveStart:jl,onLeaveActive:Rl,onAppearEnd:Fl,onEnterEnd:Fl,onLeaveEnd:Fl,motionDeadline:500}};function Bl(e){return e&&i().isValidElement(e)&&e.type===i().Fragment}function ql(e,t){return((e,t,n)=>i().isValidElement(e)?i().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}const zl=e=>{const[,,,,t]=Ur();return t?`${e}-css-var`:""};const Gl=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(ct),s=a("menu",t),l=g()({[`${s}-item-divider-dashed`]:!!i},n);return r.createElement(Sl,Object.assign({className:l},o))};function Ql(e){var t=e.children,n=e.prefixCls,i=e.id,o=e.overlayInnerStyle,a=e.className,s=e.style;return r.createElement("div",{className:g()("".concat(n,"-content"),a),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:i,role:"tooltip",style:o},"function"==typeof t?t():t))}var Ul={shiftX:64,adjustY:1},Hl={adjustX:1,shiftY:!0},Kl=[0,0],Wl={left:{points:["cr","cl"],overflow:Hl,offset:[-4,0],targetOffset:Kl},right:{points:["cl","cr"],overflow:Hl,offset:[4,0],targetOffset:Kl},top:{points:["bc","tc"],overflow:Ul,offset:[0,-4],targetOffset:Kl},bottom:{points:["tc","bc"],overflow:Ul,offset:[0,4],targetOffset:Kl},topLeft:{points:["bl","tl"],overflow:Ul,offset:[0,-4],targetOffset:Kl},leftTop:{points:["tr","tl"],overflow:Hl,offset:[-4,0],targetOffset:Kl},topRight:{points:["br","tr"],overflow:Ul,offset:[0,-4],targetOffset:Kl},rightTop:{points:["tl","tr"],overflow:Hl,offset:[4,0],targetOffset:Kl},bottomRight:{points:["tr","br"],overflow:Ul,offset:[0,4],targetOffset:Kl},rightBottom:{points:["bl","br"],overflow:Hl,offset:[4,0],targetOffset:Kl},bottomLeft:{points:["tl","bl"],overflow:Ul,offset:[0,4],targetOffset:Kl},leftBottom:{points:["br","bl"],overflow:Hl,offset:[-4,0],targetOffset:Kl}},Yl=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Xl=function(e,t){var n=e.overlayClassName,i=e.trigger,o=void 0===i?["hover"]:i,s=e.mouseEnterDelay,l=void 0===s?0:s,c=e.mouseLeaveDelay,u=void 0===c?.1:c,d=e.overlayStyle,p=e.prefixCls,f=void 0===p?"rc-tooltip":p,m=e.children,g=e.onVisibleChange,v=e.afterVisibleChange,y=e.transitionName,b=e.animation,E=e.motion,w=e.placement,T=void 0===w?"right":w,S=e.align,k=void 0===S?{}:S,O=e.destroyTooltipOnHide,x=void 0!==O&&O,C=e.defaultVisible,_=e.getTooltipContainer,N=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),L=e.id,A=e.showArrow,D=void 0===A||A,P=h(e,Yl),R=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return R.current}));var M=ge({},P);return"visible"in e&&(M.popupVisible=e.visible),r.createElement(sl,a({popupClassName:n,prefixCls:f,popup:function(){return r.createElement(Ql,{key:"content",prefixCls:f,id:L,overlayInnerStyle:N},I)},action:o,builtinPlacements:Wl,popupPlacement:T,ref:R,popupAlign:k,getPopupContainer:_,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:b,popupMotion:E,defaultPopupVisible:C,autoDestroy:x,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:D},M),m)};const Jl=(0,r.forwardRef)(Xl),Zl=i().createContext(void 0),ec=100,tc={Modal:ec,Drawer:ec,Popover:ec,Popconfirm:ec,Tooltip:ec,Tour:ec},nc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function rc(e,t){const[,n]=Ur(),r=i().useContext(Zl);if(void 0!==t)return[t,t];let o=null!=r?r:0;return e in tc?(o+=(r?0:n.zIndexPopupBase)+tc[e],o=Math.min(o,n.zIndexPopupBase+1e3)):o+=nc[e],[void 0===r?t:o,o]}const ic=(e,t,n)=>{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 ${Qt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function oc(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function ac(e,t){return e?t:{}}function sc(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"},ic(e,t,i)),{"&:before":{background:t}})]},ac(!!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}}})),ac(!!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}}})),ac(!!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}})),ac(!!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 lc={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"]}},cc={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"]}},uc=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dc(){}const pc=r.createContext(null),fc=e=>{let{children:t}=e;return r.createElement(pc.Provider,{value:null},t)},hc=e=>({animationDuration:e,animationFillMode:"both"}),mc=e=>({animationDuration:e,animationFillMode:"both"}),gc=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({},hc(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},mc(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"}}},vc=new cr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yc=new cr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bc=new cr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ec=new cr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wc=new cr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Tc=new cr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Sc={zoom:{inKeyframes:vc,outKeyframes:yc},"zoom-big":{inKeyframes:bc,outKeyframes:Ec},"zoom-big-fast":{inKeyframes:bc,outKeyframes:Ec},"zoom-left":{inKeyframes:new cr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new cr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new cr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new cr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:wc,outKeyframes:Tc},"zoom-down":{inKeyframes:new cr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new cr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},kc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Sc[t];return[gc(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}}]},Oc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function xc(e,t){return Oc.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 Cc=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({},Er(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:`${Qt(e.calc(c).div(2).equal())} ${Qt(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,8)}},[`${t}-content`]:{position:"relative"}}),xc(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},sc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},_c=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},oc({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,d=c,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 ${l} ${c} 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%)`}}(si(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Nc=function(e){const t=fi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,i=si(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Cc(i),kc(e,"zoom-big-fast")]}),_c,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Ic=Oc.map((e=>`${e}-inverse`));function Lc(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Oc.includes(e):[].concat(st(Ic),st(Oc)).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 Ac=r.forwardRef(((e,t)=>{var n,i;const{prefixCls:o,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:m=!0,title:v,overlay:y,builtinPlacements:b,arrowPointAtCenter:E=!1,autoAdjustOverflow:w=!0}=e,T=!!m,[,S]=Ur(),{getPopupContainer:k,getPrefixCls:O,direction:x}=r.useContext(ct),C=(()=>{const e=()=>{};return e.deprecated=dc,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]=hr(!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(lc).forEach((e=>{const c=r&&cc[e]||lc[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,uc.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=oc({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]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=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")})),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(fc,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=O("tooltip",o),G=O(),Q=e["data-popover-inject"];let U=I;"open"in e||"visible"in e||!A||(U=!1);const H=r.isValidElement(d)&&!Bl(d)?d:r.createElement("span",null,d),K=H.props,W=K.className&&"string"!=typeof K.className?K.className:g()(K.className,a||`${z}-open`),[Y,X,J]=Nc(z,!Q),Z=Lc(z,c),ee=Z.arrowStyle,te=Object.assign(Object.assign({},u),Z.overlayStyle),ne=g()(l,{[`${z}-rtl`]:"rtl"===x},Z.className,B,X,J),[re,ie]=rc("Tooltip",q.zIndex),oe=r.createElement(Jl,Object.assign({},q,{zIndex:re,showArrow:T,placement:j,mouseEnterDelay:F,mouseLeaveDelay:$,prefixCls:z,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),V),getTooltipContainer:M||s||k,ref:_,builtinPlacements:D,overlay:R,visible:U,onVisibleChange:t=>{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!=p?p:f,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:$l(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?ql(H,{className:W}):H);return Y(r.createElement(Zl.Provider,{value:ie},oe))}));Ac._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:i="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=r.useContext(ct),c=l("tooltip",t),[u,d,p]=Nc(c),f=Lc(c,a),h=f.arrowStyle,m=Object.assign(Object.assign({},s),f.overlayStyle),v=g()(d,p,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(Ql,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),o)))};const Dc=Ac,Pc=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Rc=e=>{var t;const{className:n,children:i,icon:o,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=r.useContext(Pc),{siderCollapsed:f}=r.useContext(yt);let h=a;void 0===a?h=c?i:"":!1===a&&(h="");const m={title:h};f||p||(m.title=null,m.open=!1);const v=ft(i).length;let y=r.createElement(_a,Object.assign({},lt(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}),ql(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})(p));return d||(y=r.createElement(Dc,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},Mc=e=>{var t;const{popupClassName:n,icon:i,title:o,theme:a}=e,s=r.useContext(Pc),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Uo();let p;if(i){const e=r.isValidElement(o)&&"span"===o.type;p=r.createElement(r.Fragment,null,ql(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 p=c&&!d.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]=rc("Menu");return r.createElement(Pc.Provider,{value:f},r.createElement(yl,Object.assign({},lt(e,["icon"]),{title:p,popupClassName:g()(l,n,`${l}-${a||u}`),popupStyle:{zIndex:h}})))};function jc(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:i,children:o,key:a,type:s}=n,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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["label","children","key","type"]),c=null!=a?a:`tmp-${t}`;return o||"group"===s?"group"===s?r.createElement(Tl,Object.assign({key:c},l,{title:i}),jc(o)):r.createElement(Mc,Object.assign({key:c},l,{title:i}),jc(o)):"divider"===s?r.createElement(Gl,Object.assign({key:c},l)):r.createElement(Rc,Object.assign({key:c},l),i)}return null})).filter((e=>e))}const Fc=r.createContext(null),$c=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`}}}),Vc={"slide-up":{inKeyframes:new cr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new cr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new cr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new cr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new cr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new cr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new cr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new cr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Bc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Vc[t];return[gc(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}}]},qc=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:`${Qt(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"}}}},zc=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(${Qt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Qt(n)})`}}}}},Gc=e=>Object.assign({},Sr(e)),Qc=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,groupTitleColor:o,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,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({},Gc(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({},Gc(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:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${Qt(c)} solid transparent`,transition:`border-color ${p} ${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:`${Qt(d)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Qt(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(",")}}}}}},Uc=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:Qt(n),paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Qt(n)},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:c}}},Hc=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:Qt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Uc(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Uc(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Qt(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 ${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: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% - ${Qt(e.calc(d).div(2).equal())} - ${Qt(u)})`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Qt(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})}}]},Kc=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"}}}},Wc=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(${Qt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Qt(a)})`}}}}},Yc=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,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({},Er(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:`${Qt(s)} ${Qt(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"}}}),Kc(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Qt(e.calc(r).mul(2).equal())} ${Qt(l)}`}}},"&-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},Kc(e)),Wc(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}}}),Wc(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Qt(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Qt(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Qt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Qt(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Qt(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Xc=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,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 Cr(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: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:_,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 Cr(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)`}},Jc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=fi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,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(),w=si(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=si(w,{itemColor:i,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:l,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:o,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Yc(w),qc(w),Hc(w),Qc(w,"light"),Qc(T,"dark"),zc(w),$c(w),Bc(w,"slide-up"),Bc(w,"slide-down"),kc(w,"zoom-big")]}),Xc,{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 Zc(e){return null===e||!1===e}const eu=(0,r.forwardRef)(((e,t)=>{var n;const i=r.useContext(Fc),o=i||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=r.useContext(ct),u=a(),{prefixCls:d,className:p,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=lt(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),_=function(e){return r.useMemo((()=>e?jc(e):e),[e])}(E)||w;null===(n=o.validator)||void 0===n||n.call(o,{mode:S});const N=dr((function(){var e;null==O||O.apply(void 0,arguments),null===(e=o.onClick)||void 0===e||e.call(o)})),I=o.mode||S,L=null!=k?k:o.selectable,A=r.useMemo((()=>void 0!==b?b:y),[y,b]),D={horizontal:{motionName:`${u}-slide-up`},inline:Vl(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||o.prefixCls),R=zl(P),[M,j,F]=Jc(P,R,!i),$=g()(`${P}-${h}`,null==c?void 0:c.className,p),V=r.useMemo((()=>{var e,t;if("function"==typeof m||Zc(m))return m||null;if("function"==typeof o.expandIcon||Zc(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Zc(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 ql(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(Fc.Provider,{value:null},r.createElement(Pc.Provider,{value:B},r.createElement(Ll,Object.assign({getPopupContainer:s,overflowedIndicator:r.createElement(Pl,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)}),_))))})),tu=eu,nu=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),i=r.useContext(yt);return(0,r.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),r.createElement(tu,Object.assign({ref:n},e,i))}));nu.Item=Rc,nu.SubMenu=Mc,nu.Divider=Gl,nu.ItemGroup=Tl;const ru=nu;var iu=n(2833),ou=n.n(iu);const au=function(e){function t(e,r,l,c,p){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="";M<V;){if(h=l.charCodeAt(M),M===B&&0!==S+O+k+T&&(0!==S&&(h=47===S?10:47),O=k=T=0,V++,B++),0===S+O+k+T){if(M===B&&(0<j&&(q=q.replace(d,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(M)}h=59}switch(h){case 123:for(f=(q=q.trim()).charCodeAt(0),m=1,$=++M;M<V;){switch(h=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(M+1)){case 42:case 47:e:{for(P=M+1;P<B;++P)switch(l.charCodeAt(P)){case 47:if(42===h&&42===l.charCodeAt(P-1)&&M+2!==P){M=P+1;break e}break;case 10:if(47===h){M=P+1;break e}}M=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<B&&l.charCodeAt(M)!==h;);}if(0===m)break;M++}if(m=l.substring($,M),0===f&&(f=(q=q.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<j&&(q=q.replace(d,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:j=r;break;default:j=L}if($=(m=t(r,j,m,h,p+1)).length,0<D&&(E=s(3,m,j=n(L,q,F),r,_,C,$,h,p,c),q=j.join(""),void 0!==E&&0===($=(m=E.trim()).length)&&(h=0,m="")),0<$)switch(h){case 115:q=q.replace(w,a);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(v,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===c&&(z+=m,m="")}else m=""}else m=t(r,n(r,q,F),m,c,p+1);G+=m,m=F=j=P=f=0,q="",h=l.charCodeAt(++M);break;case 125:case 59:if(1<($=(q=(0<j?q.replace(d,""):q).trim()).length))switch(0===P&&(f=q.charCodeAt(0),45===f||96<f&&123>f)&&($=(q=q.replace(" ",":")).length),0<D&&void 0!==(E=s(1,q,r,e,_,C,z.length,c,p,c))&&0===($=(q=E.trim()).length)&&(q="\0\0"),f=q.charCodeAt(0),h=q.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){Q+=q+l.charAt(M);break}default:58!==q.charCodeAt($-1)&&(z+=i(q,f,h,q.charCodeAt(2)))}F=j=P=f=0,q="",h=l.charCodeAt(++M)}}switch(h){case 13:case 10:47===S?S=0:0===1+f&&107!==c&&0<q.length&&(j=1,q+="\0"),0<D*R&&s(0,q,r,e,_,C,z.length,c,p,c),C=1,_++;break;case 59:case 125:if(0===S+O+k+T){C++;break}default:switch(C++,g=l.charAt(M),h){case 9:case 32:if(0===O+T+S)switch(x){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+S+T&&(j=F=1,g="\f"+g);break;case 108:if(0===O+S+T+N&&0<P)switch(M-P){case 2:112===x&&58===l.charCodeAt(M-3)&&(N=x);case 8:111===A&&(N=A)}break;case 58:0===O+S+T&&(P=M);break;case 44:0===S+k+O+T&&(j=1,g+="\r");break;case 34:case 39:0===S&&(O=O===h?0:0===O?h:O);break;case 91:0===O+S+k&&T++;break;case 93:0===O+S+k&&T--;break;case 41:0===O+S+T&&k--;break;case 40:0===O+S+T&&(0===f&&(2*x+3*A==533||(f=1)),k++);break;case 64:0===S+k+O+T+P+m&&(m=1);break;case 42:case 47:if(!(0<O+T+k))switch(S){case 0:switch(2*h+3*l.charCodeAt(M+1)){case 235:S=47;break;case 220:$=M,S=42}break;case 42:47===h&&42===x&&$+2!==M&&(33===l.charCodeAt($+2)&&(z+=l.substring($,M+1)),g="",S=0)}}0===S&&(q+=g)}A=x,x=h,M++}if(0<($=z.length)){if(j=r,0<D&&void 0!==(E=s(2,z,j,e,_,C,$,c,p,c))&&0===(z=E).length)return Q+z+G;if(z=j.join(",")+"{"+z+"}",0!=I*N){switch(2!==I||o(z,2)||(N=0),N){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(y,"::-webkit-input-$1")+z.replace(y,"::-moz-$1")+z.replace(y,":-ms-input-$1")+z}N=0}}return Q+z+G}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(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&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===I||2===I&&o(l,1)?"-webkit-"+l+l:l}if(0===I||2===I&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(E,"tb");break;case 232:l=a.replace(E,"tb-rl");break;case 220:l=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?r:r.replace(k,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(T," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,p=0,f=t;p<D;++p)switch(d=A[p].call(c,e,f,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?I=1:(I=2,P=e):I=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=s(-1,n,r,r,_,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(L,r,n,0,0);return 0<D&&void 0!==(i=s(-2,o,r,r,_,C,o.length,0,0,0))&&(o=i),N=0,C=_=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,C=1,_=1,N=0,I=1,L=[],A=[],D=0,P=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:D=A.length=0;break;default:if("function"==typeof t)A[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},su={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};function lu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cu=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uu=lu((function(e){return cu.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),du=n(4146),pu=n.n(du);function fu(){return(fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var hu=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},mu=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,pt.typeOf)(e)},gu=Object.freeze([]),vu=Object.freeze({});function yu(e){return"function"==typeof e}function bu(e){return e.displayName||e.name||"Component"}function Eu(e){return e&&"string"==typeof e.styledComponentId}var wu="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tu="undefined"!=typeof window&&"HTMLElement"in window,Su=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function ku(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" 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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=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<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),xu=new Map,Cu=new Map,_u=1,Nu=function(e){if(xu.has(e))return xu.get(e);for(;Cu.has(_u);)_u++;var t=_u++;return xu.set(e,t),Cu.set(t,e),t},Iu=function(e){return Cu.get(e)},Lu=function(e,t){t>=_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<a;o++)(r=i[o])&&e.registerName(t,r)},Ru=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(Du);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Lu(c,l),Pu(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},Mu=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},ju=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=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<r;n++){var i=t[n];if(i.ownerNode===e)return i}ku(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$u=function(){function e(e){var t=this.element=ju(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),Vu=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Bu=Tu,qu={isServer:!Tu,useCSSOMInjection:!Su},zu=function(){function e(e,t,n){void 0===e&&(e=vu),void 0===t&&(t={}),this.options=fu({},qu,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Tu&&Bu&&(Bu=!1,function(e){for(var t=document.querySelectorAll(Au),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(wu)&&(Ru(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Nu(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(fu({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new Vu(i):r?new Fu(i):new $u(i),new Ou(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Nu(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Nu(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Nu(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=Iu(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=wu+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(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<e.length;t+=1){var n=e[t];if(yu(n)&&!Eu(n))return!1}return!0}var Yu=Ku("5.3.5"),Xu=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Wu(e),this.componentId=t,this.baseHash=Hu(Yu,t),this.baseStyle=n,zu.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=hd(this.rules,e,t,n).join(""),a=Uu(Hu(this.baseHash,o)>>>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="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=hd(p,e,t,n),h=Array.isArray(f)?f.join(""):f;c=Hu(c,h+d),u+=h}}if(u){var m=Uu(c>>>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 ed(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 au(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,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(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!==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))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=c.length?c.reduce((function(e,t){return t.name||ku(15),Hu(e,t.name)}),5381).toString():"",h}var td=i().createContext(),nd=(td.Consumer,i().createContext()),rd=(nd.Consumer,new zu),id=ed();function od(){return(0,r.useContext)(td)||rd}function ad(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],o=t[1],a=od(),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 ed({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,r.useEffect)((function(){ou()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(td.Provider,{value:s},i().createElement(nd.Provider,{value:l},e.children))}var sd=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=id);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=id),this.name+e.hash},e}(),ld=/([A-Z])/,cd=/([A-Z])/g,ud=/^ms-/,dd=function(e){return"-"+e.toLowerCase()};function pd(e){return ld.test(e)?e.replace(cd,dd).replace(ud,"-ms-"):e}var fd=function(e){return null==e||!1===e||""===e};function hd(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=hd(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return fd(e)?"":Eu(e)?"."+e.styledComponentId:yu(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:hd(e(t),t,n,r):e instanceof sd?n?(e.inject(n,r),e.getName(r)):e:mu(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!fd(t[a])&&(Array.isArray(t[a])&&t[a].isCss||yu(t[a])?o.push(pd(a)+":",t[a],";"):mu(t[a])?o.push.apply(o,e(t[a],a)):o.push(pd(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in su?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var md=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function gd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return yu(e)||mu(e)?md(hd(hu(gu,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:md(hd(hu(e,n)))}new Set;var vd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yd=/(^-|-$)/g;function bd(e){return e.replace(vd,"-").replace(yd,"")}function Ed(e){return"string"==typeof e&&!0}var wd=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Td=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Sd(e,t,n){var r=e[n];wd(t)&&wd(r)?kd(r,t):e[n]=t}function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(wd(a))for(var s in a)Td(s)&&Sd(e,a[s],s)}return e}var Od=i().createContext();Od.Consumer;var xd={};function Cd(e,t,n){var o=Eu(e),a=!Ed(e),s=t.attrs,l=void 0===s?gu:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":bd(e);xd[n]=(xd[n]||0)+1;var r=n+"-"+function(e){return Uu(Ku(e)>>>0)}("5.3.5"+n+xd[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,d=t.displayName,p=void 0===d?function(e){return Ed(e)?"styled."+e:"Styled("+bu(e)+")"}(e):d,f=t.displayName&&t.componentId?bd(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,d=e.target,p=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)(Od),s)||vu,t,o),f=p[0],h=p[1],m=function(e,t,n){var i=od(),o=(0,r.useContext)(nd)||id;return t?e.generateAndInjectStyles(vu,i,o):e.generateAndInjectStyles(n,i,o)}(a,i,f),g=n,v=h.$as||t.$as||h.as||t.as||d,y=Ed(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=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):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<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ed(e)?e:bd(bu(e)));return Cd(e,fu({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?kd({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},a&&pu()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var _d,Nd=function(e){return function e(t,n,r){if(void 0===r&&(r=vu),!(0,pt.isValidElementType)(n))return ku(1,String(n));var i=function(){return t(n,r,gd.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}(Cd,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){Nd[e]=Nd(e)})),(_d=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(hd(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},_d.removeStyles=function(e,t){t.clearRules(this.componentId+e)},_d.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"<style "+[n&&'nonce="'+n+'"',wu+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},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(ad,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return ku(3)}}();const Id=Nd;var Ld=n(3408);const Ad=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Er(e)),{borderBlockStart:`${Qt(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Qt(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Qt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Qt(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:`${Qt(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:`${Qt(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}}})}},Dd=fi("Divider",(e=>{const t=si(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Ad(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const Pd=e=>{const{getPrefixCls:t,direction:n,divider:i}=r.useContext(ct),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:p,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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[y,b,E]=Dd(v),w=s.length>0?`-${s}`:s,T=!!d,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`]:!!p,[`${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"}),d&&"vertical"!==a&&r.createElement("span",{className:`${v}-inner-text`,style:C},d)))},Rd=["xxl","xl","lg","md","sm","xs"];const Md=(0,r.createContext)({}),jd=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Fd=(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),$d=fi("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"}}}}),(()=>({}))),Vd=fi("Grid",(e=>{const t=si(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[jd(t),Fd(t,""),Fd(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Qt(t)})`]:Object.assign({},Fd(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function Bd(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<Rd.length;n++){const r=Rd[n];if(!t[r])continue;const o=e[r];if(void 0!==o)return void i(o)}})()}),[JSON.stringify(e),t]),n}const qd=r.forwardRef(((e,t)=>{const{prefixCls:n,justify:o,align:a,className:s,style:l,children:c,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=r.useContext(ct),[m,v]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,b]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=Bd(a,y),w=Bd(o,y),T=r.useRef(u),S=function(){const[,e]=Ur(),t=(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(Rd).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<n.length-1){const e=`screen${i}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const o=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[o]))throw new Error(`${e}<=${o} fails : !(${t[e]}<=${t[o]})`)}})),e})(e));return i().useMemo((()=>{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]=$d(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;r<Rd.length;r++){const i=Rd[r];if(m[i]&&void 0!==t[i]){e[n]=t[i];break}}else e[n]=t})),e})(),N=g()(k,{[`${k}-no-wrap`]:!1===d,[`${k}-${w}`]:w,[`${k}-${E}`]:E,[`${k}-rtl`]:"rtl"===h},s,x,C),I={},L=null!=_[0]&&_[0]>0?_[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:d})),[A,D,d]);return O(r.createElement(Md.Provider,{value:P},r.createElement("div",Object.assign({},p,{className:N,style:Object.assign(Object.assign({},I),l),ref:t}),c)))})),zd=qd;function Gd(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Qd=["xs","sm","md","lg","xl","xxl"],Ud=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i}=r.useContext(ct),{gutter:o,wrap:a}=r.useContext(Md),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",s),[E,w,T]=Vd(b),S={};let k={};Qd.forEach((t=>{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`]=Gd(n.flex))}));const O=g()(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${p}`]:p},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=Gd(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))})),Hd=Ud,Kd=r.createContext(void 0),Wd=e=>{const t=i().useContext(Kd);return i().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Yd=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)})},Xd=new cr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Jd=e=>({height:e,lineHeight:Qt(e)}),Zd=e=>Object.assign({width:e},Jd(e)),ep=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Xd,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),tp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Jd(e)),np=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Zd(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Zd(i)),[`${t}${t}-sm`]:Object.assign({},Zd(o))}},rp=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},tp(t,s)),[`${r}-lg`]:Object.assign({},tp(i,s)),[`${r}-sm`]:Object.assign({},tp(o,s))}},ip=e=>Object.assign({width:e},Jd(e)),op=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},ip(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},ip(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%"}}},ap=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},sp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Jd(e)),lp=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()},sp(r,s))},ap(e,r,n)),{[`${n}-lg`]:Object.assign({},sp(i,s))}),ap(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},sp(o,s))}),ap(e,o,`${n}-sm`))},cp=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,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},Zd(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Zd(c)),[`${n}-sm`]:Object.assign({},Zd(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"},lp(e)),np(e)),rp(e)),op(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({},ep(e))}}},up=fi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=si(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[cp(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"]]}),dp={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 pp=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:dp}))};const fp=r.forwardRef(pp),hp=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},mp=e=>{const{prefixCls:t,className:n,style:i,rows:o}=e,a=st(Array(o)).map(((t,n)=>r.createElement("li",{key:n,style:{width:hp(n,e)}})));return r.createElement("ul",{className:g()(t,n),style:i},a)},gp=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 vp(e){return e&&"object"==typeof e?e:{}}const yp=e=>{const{prefixCls:t,loading:n,className:i,rootClassName:o,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:f,direction:h,skeleton:m}=r.useContext(ct),v=f("skeleton",t),[y,b,E]=up(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)),vp(l));s=r.createElement("div",{className:`${v}-header`},r.createElement(Yd,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)),vp(c));i=r.createElement(gp,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)),vp(u));o=r.createElement(mp,Object.assign({},n))}f=r.createElement("div",{className:`${v}-content`},i,o)}const w=g()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:p},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};yp.Button=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=r.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=lt(e,["prefixCls"]),h=g()(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Yd,Object.assign({prefixCls:`${c}-button`,size:s},f))))},yp.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=r.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=lt(e,["prefixCls","className"]),h=g()(c,`${c}-element`,{[`${c}-active`]:o},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Yd,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},f))))},yp.Input=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a,size:s="default"}=e,{getPrefixCls:l}=r.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=lt(e,["prefixCls"]),h=g()(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Yd,Object.assign({prefixCls:`${c}-input`,size:s},f))))},yp.Image=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a}=e,{getPrefixCls:s}=r.useContext(ct),l=s("skeleton",t),[c,u,d]=up(l),p=g()(l,`${l}-element`,{[`${l}-active`]:a},n,i,u,d);return c(r.createElement("div",{className:p},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`})))))},yp.Node=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a,children:s}=e,{getPrefixCls:l}=r.useContext(ct),c=l("skeleton",t),[u,d,p]=up(c),f=g()(c,`${c}-element`,{[`${c}-active`]:a},d,n,i,p),h=null!=s?s:r.createElement(fp,null);return u(r.createElement("div",{className:f},r.createElement("div",{className:g()(`${c}-image`,n),style:o},h)))};const bp=yp,Ep={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 wp=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:Ep}))};const Tp=r.forwardRef(wp),Sp={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 kp=function(e,t){return r.createElement(We,a({},e,{ref:t,icon:Sp}))};const Op=r.forwardRef(kp),xp=(0,r.createContext)(null);var Cp={width:0,height:0,left:0,top:0};function _p(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 Np=Math.pow(.995,20);function Ip(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,Jt((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 Lp={width:0,height:0,left:0,top:0,right:0};function Ap(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Dp(e){return String(e).replace(/"/g,"TABS_DQ")}function Pp(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Rp=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 Mp=Rp;var jp=r.forwardRef((function(e,t){var n,i=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==d(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 Fp=jp;var $p=Jo.ESC,Vp=Jo.TAB;const Bp=(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=gr(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:yr(s)?l:void 0}))}));var qp={adjustX:1,adjustY:1},zp=[0,0];const Gp={topLeft:{points:["bl","tl"],overflow:qp,offset:[0,-4],targetOffset:zp},top:{points:["bc","tc"],overflow:qp,offset:[0,-4],targetOffset:zp},topRight:{points:["br","tr"],overflow:qp,offset:[0,-4],targetOffset:zp},bottomLeft:{points:["tl","bl"],overflow:qp,offset:[0,4],targetOffset:zp},bottom:{points:["tc","bc"],overflow:qp,offset:[0,4],targetOffset:zp},bottomRight:{points:["tr","br"],overflow:qp,offset:[0,4],targetOffset:zp}};var Qp=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Up(e,t){var n,o=e.arrow,s=void 0!==o&&o,l=e.prefixCls,c=void 0===l?"rc-dropdown":l,d=e.transitionName,p=e.animation,m=e.align,v=e.placement,y=void 0===v?"bottomLeft":v,b=e.placements,E=void 0===b?Gp: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,Qp),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 $p:l();break;case Vp:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),o&&Eo(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(Bp,{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:yr(L)?gr(V,L.ref):void 0}),H=S;return H||-1===_.indexOf("contextMenu")||(H=["click"]),i().createElement(sl,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:d,popupAnimation:p,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 Hp=i().forwardRef(Up);var Kp=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,d=e.moreTransitionName,p=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(Ll,{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=Pp(t,o,m,n);return r.createElement(_a,{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;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void _(a.key)}}(0,r.useEffect)((function(){var e=document.getElementById(L);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[C]),(0,r.useEffect)((function(){k||_(null)}),[k]);var R=f({},y?"marginRight":"marginLeft",v);o.length||(R.visibility="hidden",R.order=1);var M=g()(f({},"".concat(I,"-rtl"),y)),j=s?null:r.createElement(Hp,{prefixCls:I,overlay:D,trigger:["hover"],visible:!!o.length&&k,transitionName:d,onVisibleChange:O,overlayClassName:g()(M,T),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(i,"-more"),"aria-expanded":k,onKeyDown:function(e){var t=e.which;if(k)switch(t){case Jo.UP:P(-1),e.preventDefault();break;case Jo.DOWN:P(1),e.preventDefault();break;case Jo.ESC:O(!1);break;case Jo.SPACE:case Jo.ENTER:null!==C&&E(C,e)}else[Jo.DOWN,Jo.SPACE,Jo.ENTER].includes(t)&&(O(!0),e.preventDefault())}},c));return r.createElement("div",{className:g()("".concat(n,"-nav-operations"),h),style:p,ref:t},j,r.createElement(Mp,{prefixCls:n,locale:a,editable:m}))}));const Wp=r.memo(Kp,(function(e,t){return t.tabMoving})),Yp=function(e){var t=e.prefixCls,n=e.id,i=e.active,o=e.tab,a=o.key,s=o.label,l=o.disabled,c=o.closeIcon,u=o.icon,d=e.closable,p=e.renderWrapper,h=e.removeAriaLabel,m=e.editable,v=e.onClick,y=e.onFocus,b=e.style,E="".concat(t,"-tab"),w=Pp(d,c,m,l);function T(e){l||v(e)}var S=r.useMemo((function(){return u&&"string"==typeof s?r.createElement("span",null,s):s}),[s,u]),k=r.createElement("div",{key:a,"data-node-key":Dp(a),className:g()(E,f(f(f({},"".concat(E,"-with-remove"),w),"".concat(E,"-active"),i),"".concat(E,"-disabled"),l)),style:b,onClick:T},r.createElement("div",{role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(E,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),T(e)},onKeyDown:function(e){[Jo.SPACE,Jo.ENTER].includes(e.which)&&(e.preventDefault(),T(e))},onFocus:y},u&&r.createElement("span",{className:"".concat(E,"-icon")},u),s&&S),w&&r.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},c||m.removeIcon||"×"));return p?p(k):k};var Xp=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,i=t.offsetHeight,o=void 0===i?0:i;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-r)<1)return[s,l]}return[r,o]},Jp=function(e,t){return e[t?0:1]},Zp=r.forwardRef((function(e,t){var n,o,s,l,c,d=e.className,p=e.style,h=e.id,m=e.animated,v=e.activeKey,y=e.rtl,b=e.extra,E=e.editable,w=e.locale,T=e.tabPosition,S=e.tabBarGutter,k=e.children,O=e.onTabClick,x=e.onTabScroll,C=e.indicator,_=r.useContext(xp),N=_.prefixCls,I=_.tabs,L=(0,r.useRef)(null),A=(0,r.useRef)(null),D=(0,r.useRef)(null),P=(0,r.useRef)(null),R=(0,r.useRef)(null),M=(0,r.useRef)(null),j=(0,r.useRef)(null),F="top"===T||"bottom"===T,$=_p(0,(function(e,t){F&&x&&x({direction:e>t?"left":"right"})})),V=u($,2),B=V[0],q=V[1],z=_p(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],te=Z[1],ne=u((0,r.useState)([0,0]),2),re=ne[0],ie=ne[1],oe=(n=new Map,o=(0,r.useRef)([]),s=u((0,r.useState)({}),2)[1],l=(0,r.useRef)("function"==typeof n?n():n),c=Ip((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()}]),ae=u(oe,2),se=ae[0],le=ae[1],ce=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)||Cp,o=i.left+i.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||Cp);var u=r.get(l)||ge({},c);u.right=o-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(I,se,X[0]),ue=Jp(K,F),de=Jp(X,F),pe=Jp(ee,F),fe=Jp(re,F),he=ue<de+pe,me=he?ue-fe:ue-pe,ve="".concat(N,"-nav-operations-hidden"),ye=0,be=0;function Ee(e){return e<ye?ye:e>be?be:e}F&&y?(ye=0,be=Math.max(0,de-me)):(ye=Math.min(0,me-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),d=c[0],p=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 d=Date.now();l(d),p(d-s),m({x:c,y:u})}},onTouchEnd:function(){if(i&&(o(null),m(null),h)){var e=h.x/d,n=h.y/d,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*=Np),20*(l*=Np))}),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!!he&&(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,d=s.tabs,p=s.tabPosition,f=s.rtl;return["top","bottom"].includes(p)?(l="width",c=f?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,i=0;i<n;i+=1){var o=e.get(d[i].key)||Lp;if(o[c]+o[l]>u+t){r=i-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(d[s].key)||Lp)[c]<u){a=s+1;break}return a>=r?[0,0]:[a,r]}),[e,t,i,o,a,u,p,d.map((function(e){return e.key})).join("_"),f])}(ce,me,F?B:Q,de,pe,fe,ge(ge({},e),{},{tabs:I})),_e=u(Ce,2),Ne=_e[0],Ie=_e[1],Le=dr((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(F){var n=B;y?t.right<B?n=t.right:t.right+t.width>B+me&&(n=t.right+t.width-me):t.left<-B?n=-t.left:t.left+t.width>-B+me&&(n=-(t.left+t.width-me)),U(0),q(Ee(n))}else{var r=Q;t.top<-Q?r=-t.top:t.top+t.height>-Q+me&&(r=-(t.top+t.height-me)),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(Yp,{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 le((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(Dp(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],d=s[2],p=s[3];t.set(i,{width:l,height:c,left:d,top:p})}})),t}))};(0,r.useEffect)((function(){Pe()}),[I.map((function(e){return e.key})).join("_")]);var Re=Ip((function(){var e=Xp(L),t=Xp(A),n=Xp(D);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Xp(j);te(r);var i=Xp(M);ie(i);var o=Xp(R);J([o[0]-r[0],o[1]-r[1]]),Pe()})),Me=I.slice(0,Ne),je=I.slice(Ie+1),Fe=[].concat(st(Me),st(je)),$e=ce.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,d=void 0===c?"center":c,p=u((0,r.useState)(),2),f=p[0],h=p[1],m=(0,r.useRef)(),g=i().useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){Eo.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"===d&&(e[r]=t[r]),"center"===d&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===d&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===d&&(e.top=t.top),"center"===d&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===d&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),m.current=Eo((function(){h(e)})),v}),[t,n,o,d,g]),{style:f}}({activeTabOffset:$e,horizontal:F,indicator:C,rtl:y}).style;(0,r.useEffect)((function(){Le()}),[v,ye,be,Ap($e),Ap(ce),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(so,{onResize:Re},r.createElement("div",{ref:vr(t,L),role:"tablist",className:g()("".concat(N,"-nav"),d),style:p,onKeyDown:function(){Oe()}},r.createElement(Fp,{ref:A,position:"left",extra:b,prefixCls:N}),r.createElement(so,{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(so,{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(Mp,{ref:j,prefixCls:N,locale:w,editable:E,style:ge(ge({},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(Wp,a({},e,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:M,prefixCls:N,tabs:Fe,className:!Qe&&ve,tabMoving:!!Se})),r.createElement(Fp,{ref:D,position:"right",extra:b,prefixCls:N})))}));const ef=Zp;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(xp).tabs;return t?t(ge(ge({},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(xp),c=l.prefixCls,u=l.tabs,d=i.tabPane,p="".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"),d))},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(js,a({key:o,visible:v,forceRender:l,removeOnLeave:!(!s&&!f),leavedClassName:"".concat(p,"-hidden")},i.tabPaneMotion),(function(e,n){var i=e.style,s=e.className;return r.createElement(nf,a({},m,{prefixCls:p,id:t,tabKey:o,animated:d,active:v,style:ge(ge({},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,df=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,p=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"===d(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}:ge({inkBar:!0},"object"===d(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(Ua())}),[]);var q=u(hr((function(){var e;return null===(e=M[0])||void 0===e?void 0:e.key}),{value:p,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(hr(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=ge(ge({},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(xp.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 pf=df,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}`}}}}},[Bc(e,"slide-up"),Bc(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:`${Qt(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:Qt(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Qt(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt(e.borderRadiusLG)} 0 0 ${Qt(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 ${Qt(e.borderRadiusLG)} ${Qt(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({},Er(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:`${Qt(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:`${Qt(e.paddingXXS)} ${Qt(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:`${Qt(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:Qt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Qt(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:`${Qt(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 ${Qt(e.borderRadius)} ${Qt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Qt(e.borderRadius)} ${Qt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt(e.borderRadius)} ${Qt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt(e.borderRadius)} 0 0 ${Qt(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}},kr(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,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:Qt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Qt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Qt(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({},Er(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 ${Qt(e.paddingXS)}`,background:"transparent",border:`${Qt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(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}},kr(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=fi("Tabs",(e=>{const t=si(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Qt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Qt(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:d,rootClassName:p,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:N}=_,{direction:I,tabs:L,getPrefixCls:A,getPopupContainer:D}=r.useContext(ct),P=A("tabs",N),R=zl(P),[M,j,F]=Tf(P,R);let $;"editable-card"===u&&($={onEdit:(e,t)=>{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(Tp,null),addIcon:(null!=y?y:null==L?void 0:L.addIcon)||r.createElement(Op,null),showAdd:!0!==m});const V=A(),B=Wd(f),q=function(e,t){if(e)return e;const n=ft(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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},o),{label:i})}return null}));return function(e){return e.filter((e=>e))}(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:$l(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(pf,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,d,p,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(Pl,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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=r.useContext(ct),s=a("card",t),l=g()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:i});return r.createElement("div",Object.assign({},o,{className:l}))},xf=e=>{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 ${Qt(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(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:`${Qt(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      ${Qt(i)} 0 0 0 ${n},\n      0 ${Qt(i)} 0 0 ${n},\n      ${Qt(i)} ${Qt(i)} 0 0 ${n},\n      ${Qt(i)} 0 0 0 ${n} inset,\n      0 ${Qt(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:`${Qt(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(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:Qt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Qt(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Qt(e.lineWidth)} ${e.lineType} ${o}`}}})},Nf=e=>Object.assign(Object.assign({margin:`${Qt(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}}),If=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Qt(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Qt(e.padding)} ${Qt(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({},Er(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 ${Qt(e.borderRadiusLG)} ${Qt(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:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:_f(e),[`${n}-meta`]:Nf(e)}),[`${n}-bordered`]:{border:`${Qt(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:`${Qt(e.borderRadiusLG)} ${Qt(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 ${Qt(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=fi("Card",(e=>{const t=si(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Mf=e=>{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:d,bordered:p=!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(ct),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(bp,{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=Wd(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},d?F:b),Y=g()(`${P}-actions`,L("actions")),X=v&&v.length?r.createElement(Mf,{actionClasses:Y,actionStyle:A("actions"),actions:v}):null,J=lt(C,["onTabChange"]),Z=g()(P,null==I?void 0:I.className,{[`${P}-loading`]:d,[`${P}-bordered`]:p,[`${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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=r.useContext(ct),c=l("card",t),u=g()(`${c}-meta`,n),d=i?r.createElement("div",{className:`${c}-meta-avatar`},i):null,p=o?r.createElement("div",{className:`${c}-meta-title`},o):null,f=a?r.createElement("div",{className:`${c}-meta-description`},a):null,h=p||f?r.createElement("div",{className:`${c}-meta-detail`},p,f):null;return r.createElement("div",Object.assign({},s,{className:u}),d,h)};const $f=Ff,Vf=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(",")}}}}},Bf=pi("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 p(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=p(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==d(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=p(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=p(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<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(d(t)+" is not iterable")}return b.prototype=E,i(k,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:b,configurable:!0}),b.displayName=c(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},O(x.prototype),c(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=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<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=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=ge({},Ci),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"===d(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,d]=r.useState(0),[p,f]=r.useState(0),[h,m]=r.useState(0),[v,y]=r.useState(0),[b,E]=r.useState(!1),w={left:u,top:p,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;d(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=Eo((()=>{T(),E(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(T),t.observe(n)),()=>{Eo.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(js,{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)(ct),s=(0,r.useRef)(null),l=a("wave"),[,c]=Bf(l),u=function(e,t,n){const{wave:i}=r.useContext(ct),[,o,a]=Ur(),s=dr((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=>{Eo.cancel(l.current),l.current=Eo((()=>{s(e)}))}}(s,g()(l,c),o);return i().useEffect((()=>{const e=s.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Wo(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)?ql(t,{ref:yr(t)?gr(t.ref,s):s}):null!=t?t:null},lh=r.createContext(!1);const ch=r.createContext(void 0),uh=/^[\u4e00-\u9fa5]{2}$/,dh=uh.test.bind(uh);function ph(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(We,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(js,{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 si(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:Ar(s),d=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:Ar(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Ar(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:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/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:`${Qt(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({},kr(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:`${Qt(c)} ${Qt(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=si(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return qh(t,e.componentCls)},Gh=e=>{const t=si(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=si(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=fi("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% + ${Qt(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% + ${Qt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},em=((e,t,n)=>{const r=pi(["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 r(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:d,styles:p,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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),O=l||"default",{getPrefixCls:x,autoInsertSpaceInButton:C,direction:_,button:N}=(0,r.useContext)(ct),I=x("btn",s),[L,A,D]=Hh(I),P=(0,r.useContext)(lh),R=null!=f?f:P,M=(0,r.useContext)(ch),j=(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}}(a)),[a]),[F,$]=(0,r.useState)(j.loading),[V,B]=(0,r.useState)(!1),q=gr(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&&dh(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=Wd((e=>{var t,n;return null!==(n=null!==(t=null!=d?d: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=lt(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==p?void 0:p.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&&ph(e.type)&&dh(e.props.children)?ql(e,{children:e.props.children.split("").join(n)}):ph(e)?dh(e)?i().createElement("span",null,e.split("").join(n)):i().createElement("span",null,e):Bl(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(ct),{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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",i),[,,c]=Ur();let u="";switch(o){case"large":u="lg";break;case"small":u="sm"}const d=g()(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return r.createElement(ch.Provider,{value:o},r.createElement("div",Object.assign({},s,{className:d})))},nm.__ANT_BUTTON=!0;const rm=nm,im=Id.div`
   padding: 24px;
   overflow-y: scroll;
-`,am=()=>(0,im.jsxs)(om,{children:[(0,im.jsx)("h2",{children:"Help"}),(0,im.jsx)("p",{children:"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,im.jsx)(jd,{}),(0,im.jsx)("h3",{children:"Documentation"}),(0,im.jsx)("p",{children:"Below are helpful links to the official WPGraphQL documentation."}),(0,im.jsxs)(zd,{gutter:[16,16],children:[(0,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Getting Started",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/docs/introduction/",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Get Started with WPGraphQL"})})],children:(0,im.jsx)("p",{children:"In the Getting Started are resources to learn about GraphQL, WordPress, how they work together, and more."})})}),(0,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Beginner Guides",actions:[(0,im.jsx)("a",{target:"_blank",href:"https://www.wpgraphql.com/docs/intro-to-graphql/",children:(0,im.jsx)(rm,{type:"primary",children:"Beginner Guides"})})],children:(0,im.jsx)("p",{children:"The Beginner guides go over specific topics such as GraphQL, WordPress, tools and techniques to interact with GraphQL APIs and more."})})}),(0,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Using WPGraphQL",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/docs/posts-and-pages/",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Using WPGraphQL"})})],children:(0,im.jsx)("p",{children:"This section covers how WPGraphQL exposes WordPress data to the Graph, and shows how you can interact with this data using GraphQL."})})}),(0,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Advanced Concepts",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/docs/wpgraphql-concepts/",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Advanced Concepts"})})],children:(0,im.jsxs)("p",{children:['Learn about concepts such as "connections", "edges", "nodes", "what is an application data graph?" and more'," "]})})})]}),(0,im.jsx)(jd,{}),(0,im.jsx)("h3",{children:"Developer Reference"}),(0,im.jsxs)("p",{children:["Below are helpful links to the WPGraphQL developer reference. These links will be most helpful to developers looking to customize WPGraphQL"," "]}),(0,im.jsxs)(zd,{gutter:[16,16],children:[(0,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Recipes",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/recipes",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Recipes"})})],children:(0,im.jsx)("p",{children:"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,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Actions",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/actions",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Actions"})})],children:(0,im.jsx)("p",{children:'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,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Filters",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/filters",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Filters"})})],children:(0,im.jsx)("p",{children:'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,im.jsx)(Hd,{xs:24,sm:24,md:12,lg:12,xl:6,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Functions",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/functions",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Functions"})})],children:(0,im.jsx)("p",{children:'Here you will find functions that can be used to customize the WPGraphQL Schema. Learn how to register GraphQL "fields", "types", and more.'})})})]}),(0,im.jsx)(jd,{}),(0,im.jsx)("h3",{children:"Community"}),(0,im.jsxs)(zd,{gutter:[16,16],children:[(0,im.jsx)(Hd,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Blog",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/Blog",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Read the Blog"})})],children:(0,im.jsx)("p",{children:"Keep up to date with the latest news and updates from the WPGraphQL team."})})}),(0,im.jsx)(Hd,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Extensions",actions:[(0,im.jsx)("a",{href:"https://www.wpgraphql.com/Extensions",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"View Extensions"})})],children:(0,im.jsx)("p",{children:"Browse the list of extensions that are available to extend WPGraphQL to work with other popular WordPress plugins."})})}),(0,im.jsx)(Hd,{xs:24,sm:24,md:24,lg:8,xl:8,children:(0,im.jsx)($f,{style:{height:"100%"},title:"Join us in Discord",actions:[(0,im.jsx)("a",{href:"https://discord.gg/AGVBqqyaUY",target:"_blank",children:(0,im.jsx)(rm,{type:"primary",children:"Join us in Discord"})})],children:(0,im.jsx)("p",{children:"Join the WPGraphQL Community in Discord where you can ask questions, show off projects and help other WPGraphQL users. Join us today!"})})})]})]});var sm=function(){return sm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},sm.apply(this,arguments)};var lm={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=function(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}(e,!0);return null==t?t:String(t)}},cm=n(6663),um=function(){return um=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},um.apply(this,arguments)};function dm(e,t,n){var r=(0,cm.stringify)(e,n);n&&n.transformSearchString&&(r=n.transformSearchString(r));var i=r.length?"?"+r:"",o=(0,cm.parseUrl)(t.href||"").url+i;return um(um({},t),{key:""+Date.now(),href:o,search:i,query:e})}function pm(e,t){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r],a=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==a?a:String(a)}return n}'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]}));var fm=Object.prototype.hasOwnProperty;function hm(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function mm(e,t,n){var r,i;if(hm(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=0;s<o.length;s++){var l=null!==(i=null===(r=null==n?void 0:n[o[s]])||void 0===r?void 0:r.equals)&&void 0!==i?i:hm;if(!fm.call(t,o[s])||!l(e[o[s]],t[o[s]]))return!1}return!0}function gm(e,t,n){void 0===n&&(n=mm);var r=(null==e.current||null==t)&&e.current===t||!n(e.current,t);o.useEffect((function(){r&&(e.current=t)}),[e,t,r])}function vm(e){return"object"==typeof e?"undefined"!=typeof window?e.search:(0,cm.extract)(""+e.pathname+(e.search?e.search:"")):""}var ym=o.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}});function bm(e){var t=e.history,n=e.location,r=e.children,i=e.stringifyOptions,a=o.useRef(n);o.useEffect((function(){a.current=n}),[n]);var s=o.useCallback((function(){return a.current}),[a]),l=o.useCallback((function(e,n){a.current=function(e,t,n,r){switch(void 0===n&&(n="pushIn"),n){case"replace":case"push":return dm(e,t,r);default:return function(e,t,n){var r=(0,cm.parse)(t.search,{parseNumbers:!1});return dm(um(um({},r),e),t,n)}(e,t,r)}}(e,null==t||null==t.location?a.current:t.location,n,i),t&&function(e,t,n){switch(void 0===n&&(n="pushIn"),n){case"pushIn":case"push":e.push(t);break;default:e.replace(t)}}(t,a.current,n)}),[t,i]);return o.createElement(ym.Provider,{value:{location:n,getLocation:s,setLocation:l}},r)}var Em,wm,Tm=(Em=undefined,wm=(0,cm.parse)(Em||""),function(e){return Em!==e&&(Em=e,wm=(0,cm.parse)(Em)),wm});function Sm(e,t,n,r,i,o){var a=!mm(n.current,t),s=Tm(vm(e));if(r.current===s&&!a&&void 0!==i.current)return{encodedValues:i.current,decodedValues:o.current};for(var l=i.current||{},c=o.current||{},u={},d={},p=0,f=Object.keys(t);p<f.length;p++){var h=f[p],m=t[h],g=void 0,v=void 0;!mm(l[h],s[h])||void 0===l[h]&&void 0===c[h]?(g=s[h],v=m.decode(g)):(g=l[h],v=c[h]),u[h]=g,d[h]=v}return{encodedValues:u,decodedValues:mm(o.current,d,t)?o.current:d}}var km=function(e){var t=o.useContext(ym),n=t.location,r=t.getLocation,i=t.setLocation,a=Tm(vm(n)),s=o.useRef(e),l=o.useRef(a),c=o.useRef(void 0),u=o.useRef({}),d=Sm(n,e=mm(e,s.current)?s.current:e,s,l,c,u),p=d.encodedValues,f=d.decodedValues;gm(l,a),gm(s,e),gm(c,p),gm(u,f,(function(t,n){return mm(t,n,e)}));var h={paramConfigMap:e,setLocation:i,getLocation:r},m=o.useRef(h);return m.current=h,[f,o.useCallback((function(e,t){var n,r=m.current;if("function"==typeof e){var i=Sm(r.getLocation(),r.paramConfigMap,s,l,c,u).decodedValues;u.current=i,n=pm(r.paramConfigMap,e(i))}else n=pm(r.paramConfigMap,e);r.setLocation(n,t)}),[])]};const xm=km;var Om=function(){return Om=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Om.apply(this,arguments)};var Cm,_m,Nm,Im,Lm=function(e){var t=e.config,n=e.children,r=xm(t);return n({query:r[0],setQuery:r[1]})},Am=function(){return Am=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Am.apply(this,arguments)};function Dm(e){if(e===Nm&&null!=Im)return Im;var t={replace:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!0})},push:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!1})},get location(){return e.location}};return Nm=e,Im=t,t}function jm(e){var t=void 0===e?{}:e,n=t.history,r=t.location;if("undefined"!=typeof window&&(n||(n=function(e){if(e===Cm&&null!=_m)return _m;var t={replace:function(t){e.replaceState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},push:function(t){e.pushState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},get location(){return window.location}};return Cm=e,_m=t,t}(window.history)),r||(r=window.location)),!r)throw new Error("\n        Could not read the location. Is the router wired up correctly?\n      ");return{history:n,location:r}}function Pm(e){var t=e.children,n=e.ReactRouterRoute,r=e.reachHistory,i=e.history,a=e.location,s=e.stringifyOptions,l=o.useRef(s),c=mm(l.current,s)?l.current:s;return o.useEffect((function(){l.current=c}),[c]),n?o.createElement(n,null,(function(e){return o.createElement(bm,Am({stringifyOptions:c},jm(e)),t)})):r?o.createElement(bm,Am({stringifyOptions:c},jm({history:Dm(r),location:a})),t):o.createElement(bm,Am({stringifyOptions:c},jm({history:i,location:a})),t)}var Rm=n(5549),Mm=n(7965),Fm=n.n(Mm),$m=n(8563),Vm=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 __)}}(),Bm=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(e){n.setState({optionsOpen:!1}),n.props.onRun(e.name&&e.name.value)},n._onOptionsOpen=function(e){var t=!0,r=e.currentTarget;n.setState({highlight:null,optionsOpen:!0});var i=function(e){var o;t&&e.target===r?t=!1:(document.removeEventListener("mouseup",i),i=null,e.currentTarget&&(null===(o=r.parentNode)||void 0===o?void 0:o.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||n.setState({optionsOpen:!1}))};document.addEventListener("mouseup",i)},n.state={optionsOpen:!1,highlight:null},n}return Vm(t,e),t.prototype.render=function(){var e,t=this,n=this.props.operations||[],r=this.state.optionsOpen,i=n&&n.length>1,o=null;if(i&&r){var s=this.state.highlight;o=a().createElement("ul",{className:"execute-options"},n.map((function(e,n){var r=e.name?e.name.value:"<Unnamed "+e.operation+">";return a().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&&i||(e=this._onClick);var l=function(){};this.props.isRunning||!i||r||(l=this._onOptionsOpen);var c=this.props.isRunning?a().createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):a().createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return a().createElement("div",{className:"execute-button-wrap"},a().createElement("button",{type:"button",className:"execute-button",onMouseDown:l,onClick:e,title:"Execute Query (Ctrl-Enter)"},a().createElement("svg",{width:"34",height:"34"},c)),o)},t}(a().Component),qm=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 zm(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 Gm=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 qm(t,e),t.shouldRender=function(e){var t=zm(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=a().createElement("div",null,r)}return a().createElement("div",null,a().createElement("img",{onLoad:function(){return t._updateMetadata()},ref:function(e){t._node=e},src:null===(e=zm(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}(a().Component),Qm=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 __)}}(),Um=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 Qm(t,e),t.prototype.render=function(){var e=this.state.error;return a().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}(a().Component);function Hm(e){var t=e.children;return a().createElement("div",{className:"toolbar-button-group"},t)}var Km=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 __)}}(),Wm=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Xm(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return Km(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return a().createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Xm,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,a().createElement("svg",{width:"14",height:"8"},a().createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),a().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}(a().Component),Ym=function(e){var t=e.onSelect,n=e.title,r=e.label;return a().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Xm,onMouseUp:t,title:n},r)};function Xm(e){e.preventDefault()}var Jm=n(2922),Zm=n.n(Jm),eg=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029"," "," "]),tg=new RegExp("["+eg.join("")+"]","g");function ng(e){return e.replace(tg," ")}var rg,ig=n(580),og=n.n(ig),ag=new(Zm());function sg(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?ag.render(e.description):"Self descriptive.",l=e.type?'<span class="infoType">'+lg(e.type)+"</span>":"";if(i.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+l+s.slice(3):l+s)+"</div>",e&&o&&e.deprecationReason){var c=e.deprecationReason?ag.render(e.deprecationReason):"";o.innerHTML='<span class="deprecation-label">Deprecated</span>'+c,o.style.display="block"}else o&&(o.style.display="none");r&&r(i)}))}function lg(e){return e instanceof Rm.GraphQLNonNull?lg(e.ofType)+"!":e instanceof Rm.GraphQLList?"["+lg(e.ofType)+"]":'<a class="typeName">'+og()(e.name)+"</a>"}var cg=!1;"object"==typeof window&&(cg="MacIntel"===window.navigator.platform);const ug=((rg={})[cg?"Cmd-F":"Ctrl-F"]="findPersistent",rg["Cmd-G"]="findPersistent",rg["Ctrl-G"]="findPersistent",rg["Ctrl-Left"]="goSubwordLeft",rg["Ctrl-Right"]="goSubwordRight",rg["Alt-Left"]="goGroupLeft",rg["Alt-Right"]="goGroupRight",rg);var dg=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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pg.apply(this,arguments)},fg=new(Zm()),hg=/^[a-zA-Z0-9_@(]$/,mg=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n.ignoreChangeEvent=!1,n._node=null,n._onKeyUp=function(e,t){hg.test(t.key)&&n.editor&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.ignoreChangeEvent&&n.editor&&(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(e,t){sg(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return dg(t,e),t.prototype.componentDidMount=function(){var e,t,r,i=this,o=n(5237);n(9751),n(7829),n(7923),n(5218),n(1274),n(795),n(6895),n(3653),n(8820),n(8527),n(1561),n(8208),n(4238),n(7418),n(8911),n(5391),n(4884);var a=this.editor=o(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema,validationRules:null!==(e=this.props.validationRules)&&void 0!==e?e:null,externalFragments:null===(t=this.props)||void 0===t?void 0:t.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:null===(r=this.props)||void 0===r?void 0:r.externalFragments},info:{schema:this.props.schema,renderDescription:function(e){return fg.render(e)},onClick:function(e){return i.props.onClickReference&&i.props.onClickReference(e)}},jump:{schema:this.props.schema,onClick:function(e){return i.props.onClickReference&&i.props.onClickReference(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:pg(pg({"Cmd-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Ctrl-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Alt-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Shift-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Shift-Alt-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-C":function(){i.props.onCopyQuery&&i.props.onCopyQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},ug),{"Cmd-S":function(){i.props.onRunQuery},"Ctrl-S":function(){i.props.onRunQuery}})});a&&(a.on("change",this._onEdit),a.on("keyup",this._onKeyUp),a.on("hasCompletion",this._onHasCompletion),a.on("beforeChange",this._onBeforeChange))},t.prototype.componentDidUpdate=function(e){var t=n(5237);this.ignoreChangeEvent=!0;var r=!1;this.props.schema!==e.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,r=!0),this.props.externalFragments!==e.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,r=!0),r&&t.signal(this.editor,"change",this.editor),this.props.value!==e.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),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 a().createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t.prototype._onBeforeChange=function(e,t){if("paste"===t.origin){var n=t.text.map(ng);t.update(t.from,t.to,n)}},t}(a().Component),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 __)}}(),vg=function(){return vg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vg.apply(this,arguments)},yg=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(e,t){var r=t.keyCode;n.editor&&(r>=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){sg(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return gg(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:vg({"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()}},ug)});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 a().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}(a().Component),bg=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 __)}}(),Eg=function(){return Eg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Eg.apply(this,arguments)},wg=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(e,t){var r=t.keyCode;n.editor&&(r>=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){sg(0,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return bg(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:Eg({"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()}},ug)});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 a().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}(a().Component),Tg=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 __)}}(),Sg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewer=null,t._node=null,t}return Tg(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 i=document.createElement("div");e.registerHelper("info","graphql-results",(function(e,n,o,s){var l=[];return t&&l.push(a().createElement(t,{pos:s})),r&&"function"==typeof r.shouldRender&&r.shouldRender(e)&&l.push(a().createElement(r,{token:e})),l.length?(_i().render(a().createElement("div",null,l),i),i):(_i().unmountComponentAtNode(i),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:ug})},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 a().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}(a().Component);function kg(e){var t=e.onClick?e.onClick:function(){return null};return xg(e.type,t)}function xg(e,t){return e instanceof Rm.GraphQLNonNull?a().createElement("span",null,xg(e.ofType,t),"!"):e instanceof Rm.GraphQLList?a().createElement("span",null,"[",xg(e.ofType,t),"]"):a().createElement("a",{className:"type-name",onClick:function(n){n.preventDefault(),t(e,n)},href:"#"},null==e?void 0:e.name)}function Og(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?a().createElement("span",null," = ",a().createElement("span",{className:"arg-default-value"},(t=(0,Rm.astFromValue)(n.defaultValue,n.type))?(0,Rm.print)(t):"")):null}function Cg(e){var t=e.arg,n=e.onClickType,r=e.showDefaultValue;return a().createElement("span",{className:"arg"},a().createElement("span",{className:"arg-name"},t.name),": ",a().createElement(kg,{type:t.type,onClick:n}),!1!==r&&a().createElement(Og,{field:t}))}function _g(e){var t=e.directive;return a().createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Ng=new(Zm())({breaks:!0,linkify:!0});function Ig(e){var t=e.markdown,n=e.className;return t?a().createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Ng.render(t)}}):a().createElement("div",null)}function Lg(e){var t,n,r,i=e.field,o=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}(a().useState(!1),2),l=s[0],c=s[1];if(i&&"args"in i&&i.args.length>0){t=a().createElement("div",{id:"doc-args",className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"arguments"),i.args.filter((function(e){return!e.deprecationReason})).map((function(e){return a().createElement("div",{key:e.name,className:"doc-category-item"},a().createElement("div",null,a().createElement(Cg,{arg:e,onClickType:o})),a().createElement(Ig,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&a().createElement(Ig,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})));var u=i.args.filter((function(e){return Boolean(e.deprecationReason)}));u.length>0&&(n=a().createElement("div",{id:"doc-deprecated-args",className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"deprecated arguments"),l?u.map((function(e,t){return a().createElement("div",{key:t},a().createElement("div",null,a().createElement(Cg,{arg:e,onClickType:o})),a().createElement(Ig,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&a().createElement(Ig,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))})):a().createElement("button",{className:"show-btn",onClick:function(){return c(!l)}},"Show deprecated arguments...")))}return i&&i.astNode&&i.astNode.directives&&i.astNode.directives.length>0&&(r=a().createElement("div",{id:"doc-directives",className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"directives"),i.astNode.directives.map((function(e){return a().createElement("div",{key:e.name.value,className:"doc-category-item"},a().createElement("div",null,a().createElement(_g,{directive:e})))})))),a().createElement("div",null,a().createElement(Ig,{className:"doc-type-description",markdown:(null==i?void 0:i.description)||"No Description"}),i&&"deprecationReason"in i&&a().createElement(Ig,{className:"doc-deprecation",markdown:null==i?void 0:i.deprecationReason}),a().createElement("div",{className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"type"),a().createElement(kg,{type:null==i?void 0:i.type,onClick:o})),t,r,n)}function Ag(e){var t=e.schema,n=e.onClickType,r=t.getQueryType(),i=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return a().createElement("div",null,a().createElement(Ig,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),a().createElement("div",{className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"root types"),a().createElement("div",{className:"doc-category-item"},a().createElement("span",{className:"keyword"},"query"),": ",a().createElement(kg,{type:r,onClick:n})),i&&a().createElement("div",{className:"doc-category-item"},a().createElement("span",{className:"keyword"},"mutation"),": ",a().createElement(kg,{type:i,onClick:n})),o&&a().createElement("div",{className:"doc-category-item"},a().createElement("span",{className:"keyword"},"subscription"),": ",a().createElement(kg,{type:o,onClick:n}))))}function Dg(e,t){var n;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=null,t.apply(r,i)}),e)}}var jg=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 Pg=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){var t=e.currentTarget.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:t.value||""},n.debouncedOnSearch=Dg(200,n.props.onSearch),n}return jg(t,e),t.prototype.render=function(){return a().createElement("label",{className:"search-box"},a().createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),a().createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&a().createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))},t}(a().Component);var Rg=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 __)}}(),Mg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rg(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue},t.prototype.render=function(){var e,t,n=this.props.searchValue,r=this.props.withinType,i=this.props.schema,o=this.props.onClickType,s=this.props.onClickField,l=[],c=[],u=[],d=i.getTypeMap(),p=Object.keys(d);r&&(p=p.filter((function(e){return e!==r.name}))).unshift(r.name);var f=function(e){if(l.length+c.length+u.length>=100)return"break";var t=d[e];if(r!==t&&$g(e,n)&&c.push(a().createElement("div",{className:"doc-category-item",key:e},a().createElement(kg,{type:t,onClick:o}))),t&&"getFields"in t){var i=t.getFields();Object.keys(i).forEach((function(c){var d,p=i[c];if(!$g(c,n)){if(!("args"in p)||!p.args.length)return;if(0===(d=p.args.filter((function(e){return $g(e.name,n)}))).length)return}var f=a().createElement("div",{className:"doc-category-item",key:e+"."+c},r!==t&&[a().createElement(kg,{key:"type",type:t,onClick:o}),"."],a().createElement("a",{className:"field-name",onClick:function(e){return s(p,t,e)}},p.name),d&&["(",a().createElement("span",{key:"args"},d.map((function(e){return a().createElement(Cg,{key:e.name,arg:e,onClickType:o,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.")}(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 l.length+c.length+u.length===0?a().createElement("span",{className:"doc-alert-text"},"No results found."):r&&c.length+u.length>0?a().createElement("div",null,l,a().createElement("div",{className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"other results"),c,u)):a().createElement("div",{className:"doc-search-items"},l,c,u)},t}(a().Component);const Fg=Mg;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,i,o=this.props.schema,s=this.props.type,l=this.props.onClickType,c=this.props.onClickField,u=null,d=[];if(s instanceof Rm.GraphQLUnionType?(u="possible types",d=o.getPossibleTypes(s)):s instanceof Rm.GraphQLInterfaceType?(u="implementations",d=o.getPossibleTypes(s)):s instanceof Rm.GraphQLObjectType&&(u="implements",d=s.getInterfaces()),d&&d.length>0&&(e=a().createElement("div",{id:"doc-types",className:"doc-category"},a().createElement("div",{className:"doc-category-title"},u),d.map((function(e){return a().createElement("div",{key:e.name,className:"doc-category-item"},a().createElement(kg,{type:e,onClick:l}))})))),s&&"getFields"in s){var p=s.getFields(),f=Object.keys(p).map((function(e){return p[e]}));t=a().createElement("div",{id:"doc-fields",className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"fields"),f.filter((function(e){return!e.deprecationReason})).map((function(e){return a().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=a().createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?h.map((function(e){return a().createElement(qg,{key:e.name,type:s,field:e,onClickType:l,onClickField:c})})):a().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(s instanceof Rm.GraphQLEnumType){var m=s.getValues();r=a().createElement("div",{className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"values"),m.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return a().createElement(zg,{key:e.name,value:e})})));var g=m.filter((function(e){return Boolean(e.deprecationReason)}));g.length>0&&(i=a().createElement("div",{className:"doc-category"},a().createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?g.map((function(e){return a().createElement(zg,{key:e.name,value:e})})):a().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return a().createElement("div",null,a().createElement(Ig,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),s instanceof Rm.GraphQLObjectType&&e,t,n,r,i,!(s instanceof Rm.GraphQLObjectType)&&e)},t}(a().Component);function qg(e){var t=e.type,n=e.field,r=e.onClickType,i=e.onClickField;return a().createElement("div",{className:"doc-category-item"},a().createElement("a",{className:"field-name",onClick:function(e){return i(n,t,e)}},n.name),"args"in n&&n.args&&n.args.length>0&&["(",a().createElement("span",{key:"args"},n.args.filter((function(e){return!e.deprecationReason})).map((function(e){return a().createElement(Cg,{key:e.name,arg:e,onClickType:r})}))),")"],": ",a().createElement(kg,{type:n.type,onClick:r}),a().createElement(Og,{field:n}),n.description&&a().createElement(Ig,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&a().createElement(Ig,{className:"doc-deprecation",markdown:n.deprecationReason}))}function zg(e){var t=e.value;return a().createElement("div",{className:"doc-category-item"},a().createElement("div",{className:"enum-value"},t.name),a().createElement(Ig,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&a().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;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qg.apply(this,arguments)},Ug={name:"Schema",title:"Documentation Explorer"},Hg=function(e){function t(t){var n=e.call(this,t)||this;return n.handleNavBackClick=function(){n.state.navStack.length>1&&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,i=this.state.navStack,o=i[i.length-1];e=r?a().createElement("div",{className:"error-container"},"Error fetching schema"):void 0===n?a().createElement("div",{className:"spinner-container"},a().createElement("div",{className:"spinner"})):n?o.search?a().createElement(Fg,{searchValue:o.search,withinType:o.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===i.length?a().createElement(Ag,{schema:n,onClickType:this.handleClickType}):(0,Rm.isType)(o.def)?a().createElement(Bg,{schema:n,type:o.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):a().createElement(Lg,{field:o.def,onClickType:this.handleClickType}):a().createElement("div",{className:"error-container"},"No Schema Available");var s,l=1===i.length||(0,Rm.isType)(o.def)&&"getFields"in o.def;return i.length>1&&(s=i[i.length-2].name),a().createElement("section",{className:"doc-explorer",key:o.name,"aria-label":"Documentation Explorer"},a().createElement("div",{className:"doc-explorer-title-bar"},s&&a().createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+s},s),a().createElement("div",{className:"doc-explorer-title"},o.title||o.name),a().createElement("div",{className:"doc-explorer-rhs"},this.props.children)),a().createElement("div",{className:"doc-explorer-contents"},l&&a().createElement(Pg,{value:o.search,placeholder:"Search "+o.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}(a().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 a().createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?a().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"}):a().createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),a().createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),a().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}(a().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;t<arguments.length;t++)e=e.concat(Xg(arguments[t]));return e}(this.items,[e]);this.maxSize&&n.length>this.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;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ev.apply(this,arguments)},tv=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},nv=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tv(arguments[t]));return e};const rv=function(e,t){var n=this;this.storage=e,this.maxHistoryLength=t,this.shouldSaveQuery=function(e,t,n,r){if(!e)return!1;try{(0,Rm.parse)(e)}catch(e){return!1}if(e.length>1e5)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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ov.apply(this,arguments)},av=function(e){function t(t){var n=e.call(this,t)||this;n.onUpdateHistory=function(e,t,r,i){n.historyStore.updateHistory(e,t,r,i),n.setState({queries:n.historyStore.queries})},n.onHandleEditLabel=function(e,t,r,i,o,a){n.historyStore.editLabel(e,t,r,i,o,a),n.setState({queries:n.historyStore.queries})},n.onToggleFavorite=function(e,t,r,i,o,a){n.historyStore.toggleFavorite(e,t,r,i,o,a),n.setState({queries:n.historyStore.queries})},n.historyStore=new rv(n.props.storage,n.props.maxHistoryLength);var r=n.historyStore.queries;return n.state={queries:r},n}return iv(t,e),t.prototype.render=function(){var e=this,t=this.state.queries.slice().reverse().map((function(t,n){return a().createElement(Yg,ov({handleEditLabel:e.onHandleEditLabel,handleToggleFavorite:e.onToggleFavorite,key:n+":"+(t.label||t.query),onSelect:e.props.onSelectQuery},t))}));return a().createElement("section",{"aria-label":"History"},a().createElement("div",{className:"history-title-bar"},a().createElement("div",{className:"history-title"},"History"),a().createElement("div",{className:"doc-explorer-rhs"},this.props.children)),a().createElement("ul",{className:"history-contents"},t))},t}(a().Component);const sv=function(){function e(){this.sizes=[]}return e.prototype.updateSizes=function(e){var t=this;e.forEach((function(e,n){if(e){var r=e.getClientHeight();if(n<=t.sizes.length&&r!==t.sizes[n]){var i=e.getCodeMirror();i&&i.setSize(null,null)}t.sizes[n]=r}}))},e}(),lv=function(){function e(e){this.storage=e||("undefined"!=typeof window?window.localStorage:null)}return e.prototype.get=function(e){if(this.storage){var t=this.storage.getItem("graphiql:"+e);if("null"===t||"undefined"===t)return this.storage.removeItem("graphiql:"+e),null;if(t)return t}return null},e.prototype.set=function(e,t){var n=!1,r=null;if(this.storage){var i="graphiql:"+e;if(t)try{this.storage.setItem(i,t)}catch(e){r=e,n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}},e}();function cv(e,t,n){if(n&&!(n.length<1)){var r=n.map((function(e){return e.name&&e.name.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){var i=e.map((function(e){return e.name&&e.name.value})).indexOf(t);if(-1!==i&&i<r.length)return r[i]}return r[0]}}function uv(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function dv(e,t,n){var r,i=[];if(!e||!t)return{insertions:i,result:t};try{r=(0,Rm.parse)(t)}catch(e){return{insertions:i,result:t}}var o=n||pv,a=new Rm.TypeInfo(e);return(0,Rm.visit)(r,{leave:function(e){a.leave(e)},enter:function(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){var n=fv(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){var r=function(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,Rm.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:i,result:hv(t,i)}}function pv(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach((function(e){(0,Rm.isLeafType)(t[e].type)&&n.push(e)})),n}function fv(e,t){var n=(0,Rm.getNamedType)(e);if(e&&!(0,Rm.isLeafType)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:Rm.Kind.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:Rm.Kind.FIELD,name:{kind:Rm.Kind.NAME,value:e},selectionSet:fv(i,t)}}))}}}function hv(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach((function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i})),n+=e.slice(r)}function mv(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t}function gv(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}var vv=function(){return vv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vv.apply(this,arguments)},yv=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.")},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<arguments.length;t++)e=e.concat(bv(arguments[t]));return e};function wv(e,t,n){var r,i,o,a=n?(0,Rm.getNamedType)(n).name:null,s=[],l=[];try{for(var c=yv(t),u=c.next();!u.done;u=c.next()){var d=u.value;if("FragmentSpread"===d.kind){var p=d.name.value;if(!d.directives||0===d.directives.length){if(l.indexOf(p)>=0)continue;l.push(p)}var f=e[d.name.value];if(f){var h=f.typeCondition,m=f.directives,g=f.selectionSet;d={kind:Rm.Kind.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:g}}}if(d.kind===Rm.Kind.INLINE_FRAGMENT&&(!d.directives||0===(null===(o=d.directives)||void 0===o?void 0:o.length))){var v=d.typeCondition?d.typeCondition.name.value:null;if(!v||v===a){s.push.apply(s,Ev(wv(e,d.selectionSet.selections,n)));continue}}s.push(d)}}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){var t,n,r,i=new Map,o=[];try{for(var a=yv(e),s=a.next();!s.done;s=a.next()){var l=s.value;if("Field"===l.kind){var c=(r=l).alias?r.alias.value:r.name.value,u=i.get(c);if(l.directives&&l.directives.length){var d=vv({},l);o.push(d)}else u&&u.selectionSet&&l.selectionSet?u.selectionSet.selections=Ev(u.selectionSet.selections,l.selectionSet.selections):u||(d=vv({},l),i.set(c,d),o.push(d))}else o.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}(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;n<t.length;n++)e[n]=Sv(e[n],t[n]);else for(n in t){if("__proto__"===n||"constructor"===n||"prototype"===n)break;e[n]=Sv(e[n],t[n])}return e}return t}function kv(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?Sv(s[i],n):typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}var xv=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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ov.apply(this,arguments)},Cv=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())}))},_v=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Nv=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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Iv=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},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(a().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 Ov(Ov({},e),{message:e.message,stack:e.stack})}(e):e},jv=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,d=this;return _v(this,(function(p){switch(p.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)),p.label=1;case 1:return p.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===d._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;t<arguments.length;t++)e=e.concat(Iv(arguments[t]));return e}((null==l?void 0:l.errors)||[],o.map((function(e){return e.errors})).flat().filter(Boolean));s.length&&(a.errors=s);try{for(var c=Lv(o),u=c.next();!u.done;u=c.next()){var p=u.value,f=p.path,h=p.data,m=(p.errors,Nv(p,["path","data","errors"]));if(f){if(!h)throw new Error("Expected part to contain a data property, but got "+p);kv(a.data,f,h)}else h&&(a.data=p.data);l=Ov(Ov({},a),m)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}d.setState({isWaitingForResponse:!1,response:t.formatResult(l)})}else d.setState({isWaitingForResponse:!1,response:t.formatResult(e)})}}))];case 2:return c=p.sent(),this.setState({subscription:c}),[3,4];case 3:return u=p.sent(),this.setState({isWaitingForResponse:!1,response:u.message}),[3,4];case 4:return[2]}}))}))},c.handleStopQuery=function(){var e=c.state.subscription;c.setState({isWaitingForResponse:!1,subscription:null}),e&&e.unsubscribe()},c.handlePrettifyQuery=function(){var e,t,n,r=c.getQueryEditor(),i=null!==(e=null==r?void 0:r.getValue())&&void 0!==e?e:"",o=(0,Rm.print)((0,Rm.parse)(i));o!==i&&(null==r||r.setValue(o));var a=c.getVariableEditor(),s=null!==(t=null==a?void 0:a.getValue())&&void 0!==t?t:"";try{var l=JSON.stringify(JSON.parse(s),null,2);l!==s&&(null==a||a.setValue(l))}catch(e){}var u=c.getHeaderEditor(),d=null!==(n=null==u?void 0:u.getValue())&&void 0!==n?n:"";try{var p=JSON.stringify(JSON.parse(d),null,2);p!==d&&(null==u||u.setValue(p))}catch(e){}},c.handleMergeQuery=function(){var e=c.getQueryEditor();if(e.getValue()){var t=c.state.documentAST;e.setValue((0,Rm.print)(Tv(t,c.state.schema)))}},c.handleEditQuery=Dg(100,(function(e){var t=c._updateQueryFacts(e,c.state.operationName,c.state.operations,c.state.schema);if(c.setState(Ov({query:e},t)),c._storage.set("query",e),c.props.onEditQuery)return c.props.onEditQuery(e,null==t?void 0:t.documentAST)})),c.handleCopyQuery=function(){var e=c.getQueryEditor(),t=e&&e.getValue();if(t)return Fm()(t),c.props.onCopyQuery?c.props.onCopyQuery(t):void 0},c._updateQueryFacts=function(e,t,n,r){var i=(0,$m.getOperationFacts)(r,e);if(i){var o=cv(n,t,i.operations),a=c.props.onEditOperationName;return a&&o&&t!==o&&a(o),Ov({operationName:o},i)}},c.handleEditVariables=function(e){c.setState({variables:e}),Dg(500,(function(){return c._storage.set("variables",e)}))(),c.props.onEditVariables&&c.props.onEditVariables(e)},c.handleEditHeaders=function(e){c.setState({headers:e}),c.props.shouldPersistHeaders&&Dg(500,(function(){return c._storage.set("headers",e)}))(),c.props.onEditHeaders&&c.props.onEditHeaders(e)},c.handleEditOperationName=function(e){var t=c.props.onEditOperationName;t&&t(e)},c.handleHintInformationRender=function(e){var t;e.addEventListener("click",c._onClickHintInformation),e.addEventListener("DOMNodeRemoved",t=function(){e.removeEventListener("DOMNodeRemoved",t),e.removeEventListener("click",c._onClickHintInformation)})},c.handleEditorRunQuery=function(){c._runQueryAtCursor()},c._onClickHintInformation=function(e){if((null==e?void 0:e.currentTarget)&&"className"in e.currentTarget&&"typeName"===e.currentTarget.className){var t=e.currentTarget.innerHTML,n=c.state.schema;if(n){var r=n.getType(t);r&&(c.setState({docExplorerOpen:!0},(function(){c.docExplorerComponent&&c.docExplorerComponent.showDoc(r)})),Dg(500,(function(){return c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen))}))())}}},c.handleToggleDocs=function(){"function"==typeof c.props.onToggleDocs&&c.props.onToggleDocs(!c.state.docExplorerOpen),c._storage.set("docExplorerOpen",JSON.stringify(!c.state.docExplorerOpen)),c.setState({docExplorerOpen:!c.state.docExplorerOpen})},c.handleToggleHistory=function(){"function"==typeof c.props.onToggleHistory&&c.props.onToggleHistory(!c.state.historyPaneOpen),c._storage.set("historyPaneOpen",JSON.stringify(!c.state.historyPaneOpen)),c.setState({historyPaneOpen:!c.state.historyPaneOpen})},c.handleSelectHistoryQuery=function(e,t,n,r){e&&c.handleEditQuery(e),t&&c.handleEditVariables(t),n&&c.handleEditHeaders(n),r&&c.handleEditOperationName(r)},c.handleResizeStart=function(e){if(c._didClickDragBar(e)){e.preventDefault();var t=e.clientX-mv(e.target),n=function(e){if(0===e.buttons)return r();var n=c.editorBarComponent,i=e.clientX-mv(n)-t,o=n.clientWidth-i;c.setState({editorFlex:i/o}),Dg(500,(function(){return c._storage.set("editorFlex",JSON.stringify(c.state.editorFlex))}))()},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),n=null,r=null};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}},c.handleResetResize=function(){c.setState({editorFlex:1}),c._storage.set("editorFlex",JSON.stringify(c.state.editorFlex))},c.handleDocsResizeStart=function(e){e.preventDefault();var t=c.state.docExplorerWidth,n=e.clientX-mv(e.target),r=function(e){if(0===e.buttons)return i();var t=c.graphiqlContainer,r=e.clientX-mv(t)-n,o=t.clientWidth-r;o<100?("function"==typeof c.props.onToggleDocs&&c.props.onToggleDocs(!c.state.docExplorerOpen),c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen)),c.setState({docExplorerOpen:!1})):(c.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(o,650)}),Dg(500,(function(){return c._storage.set("docExplorerWidth",JSON.stringify(c.state.docExplorerWidth))}))()),c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen))},i=function(){c.state.docExplorerOpen||(c.setState({docExplorerWidth:t}),Dg(500,(function(){return c._storage.set("docExplorerWidth",JSON.stringify(c.state.docExplorerWidth))}))()),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)},c.handleDocsResetResize=function(){c.setState({docExplorerWidth:350}),Dg(500,(function(){return c._storage.set("docExplorerWidth",JSON.stringify(c.state.docExplorerWidth))}))()},c.handleTabClickPropogation=function(e){e.preventDefault(),e.stopPropagation()},c.handleOpenHeaderEditorTab=function(e){c.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},c.handleOpenVariableEditorTab=function(e){c.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},c.handleSecondaryEditorResizeStart=function(e){e.preventDefault();var t=!1,n=c.state.secondaryEditorOpen,r=c.state.secondaryEditorHeight,i=e.clientY-gv(e.target),o=function(e){if(0===e.buttons)return a();t=!0;var n=c.editorBarComponent,o=e.clientY-gv(n)-i,s=n.clientHeight-o;s<60?c.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):c.setState({secondaryEditorOpen:!0,secondaryEditorHeight:s}),Dg(500,(function(){return c._storage.set("secondaryEditorHeight",JSON.stringify(c.state.secondaryEditorHeight))}))()},a=function(){t||c.setState({secondaryEditorOpen:!n}),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a),o=null,a=null};document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)},"function"!=typeof n.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");c._storage=new lv(n.storage);var u=null!==(r=n.maxHistoryLength)&&void 0!==r?r:20;c._historyStore=new rv(c._storage,u),c.componentIsMounted=!1;var d,p=void 0!==n.query?n.query:c._storage.get("query")?c._storage.get("query"):void 0!==n.defaultQuery?n.defaultQuery:Fv,f=(0,$m.getOperationFacts)(n.schema,p),h=void 0!==n.variables?n.variables:c._storage.get("variables"),m=void 0!==n.headers?n.headers:c._storage.get("headers"),g=void 0!==n.operationName?n.operationName:cv(void 0,c._storage.get("operationName"),f&&f.operations),v=n.docExplorerOpen||!1;c._storage.get("docExplorerOpen")&&(v="true"===c._storage.get("docExplorerOpen")),d=void 0!==n.defaultVariableEditorOpen?n.defaultVariableEditorOpen:void 0!==n.defaultSecondaryEditorOpen?n.defaultSecondaryEditorOpen:Boolean(h||m);var y=null===(i=n.headerEditorEnabled)||void 0===i||i,b=null!==(o=n.shouldPersistHeaders)&&void 0!==o&&o,E=n.schema,w=n.response,T=void 0;if(E&&!c.props.dangerouslyAssumeSchemaIsValid){var S=(0,Rm.validateSchema)(E);S&&S.length>0&&(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=Ov({schema:E,query:p,variables:h,headers:m,operationName:g,docExplorerOpen:v,schemaErrors:T,response:w,editorFlex:Number(c._storage.get("editorFlex"))||1,secondaryEditorOpen:d,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 xv(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=a().Children.toArray(this.props.children),i=uv(r,(function(e){return zv(e,t.Logo)}))||a().createElement(t.Logo,null),o=uv(r,(function(e){return zv(e,t.Toolbar)}))||a().createElement(t.Toolbar,null,a().createElement(Um,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),a().createElement(Um,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),a().createElement(Um,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),a().createElement(Um,{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":""),d={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},p=this.state.secondaryEditorOpen,f={height:p?this.state.secondaryEditorHeight:void 0};return a().createElement("div",{ref:function(e){n.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&a().createElement("div",{className:"historyPaneWrap",style:d},a().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},a().createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),a().createElement("div",{className:"editorWrap"},a().createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,a().createElement("div",{className:"topBar"},i,a().createElement(Bm,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),o),!this.state.docExplorerOpen&&a().createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),a().createElement("div",{ref:function(e){n.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},a().createElement("div",{className:"queryWrap",style:l},a().createElement(mg,{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}),a().createElement("section",{className:"variable-editor secondary-editor",style:f,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},a().createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:p?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},a().createElement("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&a().createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),a().createElement(yg,{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&&a().createElement(wg,{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}))),a().createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&a().createElement("div",{className:"spinner-container"},a().createElement("div",{className:"spinner"})),a().createElement(Sg,{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:Gm}),s))),this.state.docExplorerOpen&&a().createElement("div",{className:u,style:c},a().createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),a().createElement(Hg,{ref:function(e){n.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},a().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=dv(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;t<i&&(s+=n.length)})),r.setCursor(r.posFromIndex(s))}))}return n},t.prototype.fetchSchema=function(){var e=this,n=this.props.fetcher,r={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};this.state.headers&&this.state.headers.trim().length>2?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,$m.getOperationFacts)(o,e.state.query);e.safeSetState(Ov(Ov({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,d,p,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)}}),(d=(0,$m.getFragmentDependenciesForAST)(this.state.documentAST,u)).length>0&&(e+="\n"+d.map((function(e){return(0,Rm.print)(e)})).join("\n"))),p=s({query:e,variables:l,operationName:i},{headers:c,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(p).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<t.length;o++){var a=t[o];if(a.loc&&a.loc.start<=i&&a.loc.end>=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=Pv,t.Toolbar=Rv,t.Footer=Mv,t.QueryEditor=mg,t.VariableEditor=yg,t.HeaderEditor=wg,t.ResultViewer=Sg,t.Button=Um,t.ToolbarButton=Um,t.Group=Hm,t.Menu=Wm,t.MenuItem=Ym,t}(a().Component);function Pv(e){return a().createElement("div",{className:"title"},e.children||a().createElement("span",null,"Graph",a().createElement("em",null,"i"),"QL"))}function Rv(e){return a().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function Mv(e){return a().createElement("div",{className:"footer"},e.children)}Pv.displayName="GraphiQLLogo",Rv.displayName="GraphiQLToolbar",Mv.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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qv.apply(this,arguments)};function Uv(e){var t=e.onSelect,n=e.label,r=e.selected;return a().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Hv,onMouseUp:t},n,r&&a().createElement("svg",{width:"13",height:"13"},a().createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\n    10.686,0 13,2.314 4.851,10.462"})))}function Hv(e){e.preventDefault()}!function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Hv(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}Gv(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,r=a().Children.map(this.props.children,(function(n,r){if(!function(e){return!(!e||"object"!=typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var i=n.props.onSelect||t.props.onSelect&&t.props.onSelect.bind(null,n.props.value,r);return a().createElement(Uv,Qv({},n.props,{onSelect:i}))}));return a().createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Hv,ref:function(e){t._node=e},title:this.props.title},null==e?void 0:e.props.label,a().createElement("svg",{width:"13",height:"10"},a().createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),a().createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),a().createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},r))},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&&(Hv(e),this.setState({visible:!1}),this._release())}}(a().Component);const Kv=jv;const Wv=new cr("antSpinMove",{to:{opacity:1}}),Yv=new cr("antRotate",{to:{transform:"rotate(405deg)"}}),Xv=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Er(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=fi("Spin",(e=>{const t=si(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:r=0,className:i,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:p=!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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:h}=o.useContext(ct),m=h("spin",t),[v,y,b]=Jv(m),[E,w]=o.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r)));o.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,d=!1,p=0;function f(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(s,i)}function m(){r=void 0}d||(l||!u||r||h(),f(),void 0===u&&c>e?l?(p=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(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}(r,(()=>{w(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}w(!1)}),[r,n]);const T=o.useMemo((()=>void 0!==d&&!p),[d,p]),{direction:S,spin:k}=o.useContext(ct),x=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`]:p,[`${m}-fullscreen-show`]:p&&E,[`${m}-rtl`]:"rtl"===S},i,a,y,b),O=g()(`${m}-container`,{[`${m}-blur`]:E}),C=lt(f,["indicator"]),_=Object.assign(Object.assign({},null==k?void 0:k.style),u),N=o.createElement("div",Object.assign({},C,{style:_,className:x,"aria-live":"polite","aria-busy":E}),function(e,t){const{indicator:n}=t,r=`${e}-dot`;return null===n?null:o.isValidElement(n)?ql(n,{className:g()(n.props.className,r)}):o.isValidElement(Zv)?ql(Zv,{className:g()(Zv.props.className,r)}):o.createElement("span",{className:g()(r,`${e}-dot-spin`)},o.createElement("i",{className:`${e}-dot-item`,key:1}),o.createElement("i",{className:`${e}-dot-item`,key:2}),o.createElement("i",{className:`${e}-dot-item`,key:3}),o.createElement("i",{className:`${e}-dot-item`,key:4}))}(m,e),l&&(T||p)?o.createElement("div",{className:`${m}-text`},l):null);return v(T?o.createElement("div",Object.assign({},C,{className:g()(`${m}-nested-loading`,c,y,b)}),E&&o.createElement("div",{key:"loading"},N),o.createElement("div",{className:O,key:"container"},d)):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,r.createContext)(),cy=()=>(0,r.useContext)(ly),uy=({children:e})=>{var t;const{queryParams:n,setQueryParams:i}=sy(),o=null!==(t=window&&window?.localStorage?.getItem("graphiql:variables"))&&void 0!==t?t:null,[a,s]=(0,r.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})()),[l,c]=(0,r.useState)(o),[u,d]=(0,r.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})()),p=ay.applyFilters("graphiql_context_default_value",{query:a,setQuery:async e=>{const t=a;ay.doAction("graphiql_update_query",{currentQuery:t,newQuery:e});let r,o,l=!1;if(null!==e&&e===a)return;if(null===e||""===e)l=!0;else{o=ry().decompressFromEncodedURIComponent(e),r=null===o?ry().compressToEncodedURIComponent(e):e;try{(0,oy.parse)(e),l=!0}catch(t){return void console.warn({error:{e:t,newQuery:e}})}}if(!l)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 s(e)},variables:l,setVariables:e=>{window&&window.localStorage&&window.localStorage.setItem("graphiql:variables",e),c(e)},externalFragments:u,setExternalFragments:d});return(0,im.jsx)(ly.Provider,{value:p,children:e})},{hooks:dy}=wpGraphiQL,py=e=>{const{graphiql:t}=e;const n=cy(),r={...e,GraphiQL:jv,graphiqlContext:n},i=dy.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()}}],r),o=dy.applyFilters("graphiql_toolbar_before_buttons",[],r),a=dy.applyFilters("graphiql_toolbar_after_buttons",[],r);return(0,im.jsxs)("div",{"data-testid":"graphiql-toolbar",style:{display:"flex"},children:[o.length>0?o:null,i&&i.length&&i.map(((e,n)=>{const{label:r,title:i,onClick:o}=e;return(0,im.jsx)(jv.Button,{"data-testid":r,onClick:()=>{o(t)},label:r,title:i},n)})),a.length>0?a:null]})},{hooks:fy,useAppContext:hy,GraphQL:my}=wpGraphiQL,{parse:gy,specifiedRules:vy}=my,yy=Id.div`
+`,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)(Pd,null),(0,r.createElement)("h3",null,"Documentation"),(0,r.createElement)("p",null,"Below are helpful links to the official WPGraphQL documentation."),(0,r.createElement)(zd,{gutter:[16,16]},(0,r.createElement)(Hd,{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)(Hd,{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)(Hd,{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)(Hd,{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)(Pd,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)(zd,{gutter:[16,16]},(0,r.createElement)(Hd,{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)(Hd,{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)(Hd,{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)(Hd,{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)(Pd,null),(0,r.createElement)("h3",null,"Community"),(0,r.createElement)(zd,{gutter:[16,16]},(0,r.createElement)(Hd,{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)(Hd,{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)(Hd,{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;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},am.apply(this,arguments)};var sm={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=function(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}(e,!0);return null==t?t:String(t)}},lm=n(6663),cm=function(){return cm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},cm.apply(this,arguments)};function um(e,t,n){var r=(0,lm.stringify)(e,n);n&&n.transformSearchString&&(r=n.transformSearchString(r));var i=r.length?"?"+r:"",o=(0,lm.parseUrl)(t.href||"").url+i;return cm(cm({},t),{key:""+Date.now(),href:o,search:i,query:e})}function dm(e,t){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r],a=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==a?a:String(a)}return n}'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]}));var pm=Object.prototype.hasOwnProperty;function fm(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function hm(e,t,n){var r,i;if(fm(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=0;s<o.length;s++){var l=null!==(i=null===(r=null==n?void 0:n[o[s]])||void 0===r?void 0:r.equals)&&void 0!==i?i:fm;if(!pm.call(t,o[s])||!l(e[o[s]],t[o[s]]))return!1}return!0}function mm(e,t,n){void 0===n&&(n=hm);var i=(null==e.current||null==t)&&e.current===t||!n(e.current,t);r.useEffect((function(){i&&(e.current=t)}),[e,t,i])}function gm(e){return"object"==typeof e?"undefined"!=typeof window?e.search:(0,lm.extract)(""+e.pathname+(e.search?e.search:"")):""}var vm=r.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}});function ym(e){var t=e.history,n=e.location,i=e.children,o=e.stringifyOptions,a=r.useRef(n);r.useEffect((function(){a.current=n}),[n]);var s=r.useCallback((function(){return a.current}),[a]),l=r.useCallback((function(e,n){a.current=function(e,t,n,r){switch(void 0===n&&(n="pushIn"),n){case"replace":case"push":return um(e,t,r);default:return function(e,t,n){var r=(0,lm.parse)(t.search,{parseNumbers:!1});return um(cm(cm({},r),e),t,n)}(e,t,r)}}(e,null==t||null==t.location?a.current:t.location,n,o),t&&function(e,t,n){switch(void 0===n&&(n="pushIn"),n){case"pushIn":case"push":e.push(t);break;default:e.replace(t)}}(t,a.current,n)}),[t,o]);return r.createElement(vm.Provider,{value:{location:n,getLocation:s,setLocation:l}},i)}var bm,Em,wm=(bm=undefined,Em=(0,lm.parse)(bm||""),function(e){return bm!==e&&(bm=e,Em=(0,lm.parse)(bm)),Em});function Tm(e,t,n,r,i,o){var a=!hm(n.current,t),s=wm(gm(e));if(r.current===s&&!a&&void 0!==i.current)return{encodedValues:i.current,decodedValues:o.current};for(var l=i.current||{},c=o.current||{},u={},d={},p=0,f=Object.keys(t);p<f.length;p++){var h=f[p],m=t[h],g=void 0,v=void 0;!hm(l[h],s[h])||void 0===l[h]&&void 0===c[h]?(g=s[h],v=m.decode(g)):(g=l[h],v=c[h]),u[h]=g,d[h]=v}return{encodedValues:u,decodedValues:hm(o.current,d,t)?o.current:d}}var Sm=function(e){var t=r.useContext(vm),n=t.location,i=t.getLocation,o=t.setLocation,a=wm(gm(n)),s=r.useRef(e),l=r.useRef(a),c=r.useRef(void 0),u=r.useRef({}),d=Tm(n,e=hm(e,s.current)?s.current:e,s,l,c,u),p=d.encodedValues,f=d.decodedValues;mm(l,a),mm(s,e),mm(c,p),mm(u,f,(function(t,n){return hm(t,n,e)}));var h={paramConfigMap:e,setLocation:o,getLocation:i},m=r.useRef(h);return m.current=h,[f,r.useCallback((function(e,t){var n,r=m.current;if("function"==typeof e){var i=Tm(r.getLocation(),r.paramConfigMap,s,l,c,u).decodedValues;u.current=i,n=dm(r.paramConfigMap,e(i))}else n=dm(r.paramConfigMap,e);r.setLocation(n,t)}),[])]};const km=Sm;var Om=function(){return Om=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Om.apply(this,arguments)};var xm,Cm,_m,Nm,Im=function(e){var t=e.config,n=e.children,r=km(t);return n({query:r[0],setQuery:r[1]})},Lm=function(){return Lm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lm.apply(this,arguments)};function Am(e){if(e===_m&&null!=Nm)return Nm;var t={replace:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!0})},push:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!1})},get location(){return e.location}};return _m=e,Nm=t,t}function Dm(e){var t=void 0===e?{}:e,n=t.history,r=t.location;if("undefined"!=typeof window&&(n||(n=function(e){if(e===xm&&null!=Cm)return Cm;var t={replace:function(t){e.replaceState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},push:function(t){e.pushState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},get location(){return window.location}};return xm=e,Cm=t,t}(window.history)),r||(r=window.location)),!r)throw new Error("\n        Could not read the location. Is the router wired up correctly?\n      ");return{history:n,location:r}}function Pm(e){var t=e.children,n=e.ReactRouterRoute,i=e.reachHistory,o=e.history,a=e.location,s=e.stringifyOptions,l=r.useRef(s),c=hm(l.current,s)?l.current:s;return r.useEffect((function(){l.current=c}),[c]),n?r.createElement(n,null,(function(e){return r.createElement(ym,Lm({stringifyOptions:c},Dm(e)),t)})):i?r.createElement(ym,Lm({stringifyOptions:c},Dm({history:Am(i),location:a})),t):r.createElement(ym,Lm({stringifyOptions:c},Dm({history:o,location:a})),t)}var Rm=n(5549),Mm=n(7965),jm=n.n(Mm),Fm=n(8563),$m=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 __)}}(),Vm=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(e){n.setState({optionsOpen:!1}),n.props.onRun(e.name&&e.name.value)},n._onOptionsOpen=function(e){var t=!0,r=e.currentTarget;n.setState({highlight:null,optionsOpen:!0});var i=function(e){var o;t&&e.target===r?t=!1:(document.removeEventListener("mouseup",i),i=null,e.currentTarget&&(null===(o=r.parentNode)||void 0===o?void 0:o.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||n.setState({optionsOpen:!1}))};document.addEventListener("mouseup",i)},n.state={optionsOpen:!1,highlight:null},n}return $m(t,e),t.prototype.render=function(){var e,t=this,n=this.props.operations||[],r=this.state.optionsOpen,o=n&&n.length>1,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:"<Unnamed "+e.operation+">";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?'<span class="infoType">'+sg(e.type)+"</span>":"";if(i.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+l+s.slice(3):l+s)+"</div>",e&&o&&e.deprecationReason){var c=e.deprecationReason?og.render(e.deprecationReason):"";o.innerHTML='<span class="deprecation-label">Deprecated</span>'+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)+"]":'<a class="typeName">'+ig()(e.name)+"</a>"}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 __)}}(),dg=function(){return dg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},dg.apply(this,arguments)},pg=new(Jm()),fg=/^[a-zA-Z0-9_@(]$/,hg=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n.ignoreChangeEvent=!1,n._node=null,n._onKeyUp=function(e,t){fg.test(t.key)&&n.editor&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.ignoreChangeEvent&&n.editor&&(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 ug(t,e),t.prototype.componentDidMount=function(){var e,t,r,i=this,o=n(5237);n(9751),n(7829),n(7923),n(5218),n(1274),n(795),n(6895),n(3653),n(8820),n(8527),n(1561),n(8208),n(4238),n(7418),n(8911),n(5391),n(4884);var a=this.editor=o(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema,validationRules:null!==(e=this.props.validationRules)&&void 0!==e?e:null,externalFragments:null===(t=this.props)||void 0===t?void 0:t.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:null===(r=this.props)||void 0===r?void 0:r.externalFragments},info:{schema:this.props.schema,renderDescription:function(e){return pg.render(e)},onClick:function(e){return i.props.onClickReference&&i.props.onClickReference(e)}},jump:{schema:this.props.schema,onClick:function(e){return i.props.onClickReference&&i.props.onClickReference(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:dg(dg({"Cmd-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Ctrl-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Alt-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Shift-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Shift-Alt-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-C":function(){i.props.onCopyQuery&&i.props.onCopyQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},cg),{"Cmd-S":function(){i.props.onRunQuery},"Ctrl-S":function(){i.props.onRunQuery}})});a&&(a.on("change",this._onEdit),a.on("keyup",this._onKeyUp),a.on("hasCompletion",this._onHasCompletion),a.on("beforeChange",this._onBeforeChange))},t.prototype.componentDidUpdate=function(e){var t=n(5237);this.ignoreChangeEvent=!0;var r=!1;this.props.schema!==e.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,r=!0),this.props.externalFragments!==e.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,r=!0),r&&t.signal(this.editor,"change",this.editor),this.props.value!==e.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),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("section",{className:"query-editor","aria-label":"Query Editor",ref:function(t){e._node=t}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t.prototype._onBeforeChange=function(e,t){if("paste"===t.origin){var n=t.text.map(tg);t.update(t.from,t.to,n)}},t}(i().Component),mg=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 __)}}(),gg=function(){return gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gg.apply(this,arguments)},vg=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(e,t){var r=t.keyCode;n.editor&&(r>=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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bg.apply(this,arguments)},Eg=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(e,t){var r=t.keyCode;n.editor&&(r>=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?(_i().render(i().createElement("div",null,l),o),o):(_i().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)}function Og(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?i().createElement("span",null," = ",i().createElement("span",{className:"arg-default-value"},(t=(0,Rm.astFromValue)(n.defaultValue,n.type))?(0,Rm.print)(t):"")):null}function xg(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(Og,{field:t}))}function Cg(e){var t=e.directive;return i().createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var _g=new(Jm())({breaks:!0,linkify:!0});function Ng(e){var t=e.markdown,n=e.className;return t?i().createElement("div",{className:n,dangerouslySetInnerHTML:{__html:_g.render(t)}}):i().createElement("div",null)}function Ig(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(xg,{arg:e,onClickType:a})),i().createElement(Ng,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(Ng,{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(xg,{arg:e,onClickType:a})),i().createElement(Ng,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(Ng,{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(Cg,{directive:e})))})))),i().createElement("div",null,i().createElement(Ng,{className:"doc-type-description",markdown:(null==o?void 0:o.description)||"No Description"}),o&&"deprecationReason"in o&&i().createElement(Ng,{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 Lg(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(Ng,{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 Ag(e,t){var n;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=null,t.apply(r,i)}),e)}}var Dg=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 Pg=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){var t=e.currentTarget.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:t.value||""},n.debouncedOnSearch=Ag(200,n.props.onSearch),n}return Dg(t,e),t.prototype.render=function(){return i().createElement("label",{className:"search-box"},i().createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),i().createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&i().createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))},t}(i().Component);var Rg=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 __)}}(),Mg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rg(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue},t.prototype.render=function(){var e,t,n=this.props.searchValue,r=this.props.withinType,o=this.props.schema,a=this.props.onClickType,s=this.props.onClickField,l=[],c=[],u=[],d=o.getTypeMap(),p=Object.keys(d);r&&(p=p.filter((function(e){return e!==r.name}))).unshift(r.name);var f=function(e){if(l.length+c.length+u.length>=100)return"break";var t=d[e];if(r!==t&&Fg(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 d,p=o[c];if(!Fg(c,n)){if(!("args"in p)||!p.args.length)return;if(0===(d=p.args.filter((function(e){return Fg(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(p,t,e)}},p.name),d&&["(",i().createElement("span",{key:"args"},d.map((function(e){return i().createElement(xg,{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.")}(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 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 jg=Mg;function Fg(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 $g=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 Vg=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 $g(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,d=[];if(s instanceof Rm.GraphQLUnionType?(u="possible types",d=a.getPossibleTypes(s)):s instanceof Rm.GraphQLInterfaceType?(u="implementations",d=a.getPossibleTypes(s)):s instanceof Rm.GraphQLObjectType&&(u="implements",d=s.getInterfaces()),d&&d.length>0&&(e=i().createElement("div",{id:"doc-types",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},u),d.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 p=s.getFields(),f=Object.keys(p).map((function(e){return p[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(Bg,{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(Bg,{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(qg,{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(qg,{key:e.name,value:e})})):i().createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return i().createElement("div",null,i().createElement(Ng,{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 Bg(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(xg,{key:e.name,arg:e,onClickType:r})}))),")"],": ",i().createElement(Sg,{type:n.type,onClick:r}),i().createElement(Og,{field:n}),n.description&&i().createElement(Ng,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&i().createElement(Ng,{className:"doc-deprecation",markdown:n.deprecationReason}))}function qg(e){var t=e.value;return i().createElement("div",{className:"doc-category-item"},i().createElement("div",{className:"enum-value"},t.name),i().createElement(Ng,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i().createElement(Ng,{className:"doc-deprecation",markdown:t.deprecationReason}))}var zg=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 __)}}(),Gg=function(){return Gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gg.apply(this,arguments)},Qg={name:"Schema",title:"Documentation Explorer"},Ug=function(e){function t(t){var n=e.call(this,t)||this;return n.handleNavBackClick=function(){n.state.navStack.length>1&&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:[Qg]},n}return zg(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(jg,{searchValue:a.search,withinType:a.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===o.length?i().createElement(Lg,{schema:n,onClickType:this.handleClickType}):(0,Rm.isType)(a.def)?i().createElement(Vg,{schema:n,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):i().createElement(Ig,{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(Pg,{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]=Gg(Gg({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[Qg]})},t}(i().Component),Hg=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 __)}}(),Kg=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return Hg(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 Wg=Kg;var Yg=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},Xg=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;t<arguments.length;t++)e=e.concat(Yg(arguments[t]));return e}(this.items,[e]);this.maxSize&&n.length>this.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 Jg=Xg;var Zg=function(){return Zg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zg.apply(this,arguments)},ev=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},tv=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ev(arguments[t]));return e};const nv=function(e,t){var n=this;this.storage=e,this.maxHistoryLength=t,this.shouldSaveQuery=function(e,t,n,r){if(!e)return!1;try{(0,Rm.parse)(e)}catch(e){return!1}if(e.length>1e5)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=tv(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(Zg(Zg({},s),{favorite:a})):n.history.edit(s),n.queries=tv(n.history.items,n.favorite.items)},this.history=new Jg("queries",this.storage,this.maxHistoryLength),this.favorite=new Jg("favorites",this.storage,null),this.queries=this.fetchAllQueries()};var rv=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 __)}}(),iv=function(){return iv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},iv.apply(this,arguments)},ov=function(e){function t(t){var n=e.call(this,t)||this;n.onUpdateHistory=function(e,t,r,i){n.historyStore.updateHistory(e,t,r,i),n.setState({queries:n.historyStore.queries})},n.onHandleEditLabel=function(e,t,r,i,o,a){n.historyStore.editLabel(e,t,r,i,o,a),n.setState({queries:n.historyStore.queries})},n.onToggleFavorite=function(e,t,r,i,o,a){n.historyStore.toggleFavorite(e,t,r,i,o,a),n.setState({queries:n.historyStore.queries})},n.historyStore=new nv(n.props.storage,n.props.maxHistoryLength);var r=n.historyStore.queries;return n.state={queries:r},n}return rv(t,e),t.prototype.render=function(){var e=this,t=this.state.queries.slice().reverse().map((function(t,n){return i().createElement(Wg,iv({handleEditLabel:e.onHandleEditLabel,handleToggleFavorite:e.onToggleFavorite,key:n+":"+(t.label||t.query),onSelect:e.props.onSelectQuery},t))}));return i().createElement("section",{"aria-label":"History"},i().createElement("div",{className:"history-title-bar"},i().createElement("div",{className:"history-title"},"History"),i().createElement("div",{className:"doc-explorer-rhs"},this.props.children)),i().createElement("ul",{className:"history-contents"},t))},t}(i().Component);const av=function(){function e(){this.sizes=[]}return e.prototype.updateSizes=function(e){var t=this;e.forEach((function(e,n){if(e){var r=e.getClientHeight();if(n<=t.sizes.length&&r!==t.sizes[n]){var i=e.getCodeMirror();i&&i.setSize(null,null)}t.sizes[n]=r}}))},e}(),sv=function(){function e(e){this.storage=e||("undefined"!=typeof window?window.localStorage:null)}return e.prototype.get=function(e){if(this.storage){var t=this.storage.getItem("graphiql:"+e);if("null"===t||"undefined"===t)return this.storage.removeItem("graphiql:"+e),null;if(t)return t}return null},e.prototype.set=function(e,t){var n=!1,r=null;if(this.storage){var i="graphiql:"+e;if(t)try{this.storage.setItem(i,t)}catch(e){r=e,n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}},e}();function lv(e,t,n){if(n&&!(n.length<1)){var r=n.map((function(e){return e.name&&e.name.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){var i=e.map((function(e){return e.name&&e.name.value})).indexOf(t);if(-1!==i&&i<r.length)return r[i]}return r[0]}}function cv(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function uv(e,t,n){var r,i=[];if(!e||!t)return{insertions:i,result:t};try{r=(0,Rm.parse)(t)}catch(e){return{insertions:i,result:t}}var o=n||dv,a=new Rm.TypeInfo(e);return(0,Rm.visit)(r,{leave:function(e){a.leave(e)},enter:function(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){var n=pv(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){var r=function(e,t){for(var n=t,r=t;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,Rm.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:i,result:fv(t,i)}}function dv(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach((function(e){(0,Rm.isLeafType)(t[e].type)&&n.push(e)})),n}function pv(e,t){var n=(0,Rm.getNamedType)(e);if(e&&!(0,Rm.isLeafType)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:Rm.Kind.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:Rm.Kind.FIELD,name:{kind:Rm.Kind.NAME,value:e},selectionSet:pv(i,t)}}))}}}function fv(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach((function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i})),n+=e.slice(r)}function hv(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t}function mv(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}var gv=function(){return gv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gv.apply(this,arguments)},vv=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.")},yv=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},bv=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yv(arguments[t]));return e};function Ev(e,t,n){var r,i,o,a=n?(0,Rm.getNamedType)(n).name:null,s=[],l=[];try{for(var c=vv(t),u=c.next();!u.done;u=c.next()){var d=u.value;if("FragmentSpread"===d.kind){var p=d.name.value;if(!d.directives||0===d.directives.length){if(l.indexOf(p)>=0)continue;l.push(p)}var f=e[d.name.value];if(f){var h=f.typeCondition,m=f.directives,g=f.selectionSet;d={kind:Rm.Kind.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:g}}}if(d.kind===Rm.Kind.INLINE_FRAGMENT&&(!d.directives||0===(null===(o=d.directives)||void 0===o?void 0:o.length))){var v=d.typeCondition?d.typeCondition.name.value:null;if(!v||v===a){s.push.apply(s,bv(Ev(e,d.selectionSet.selections,n)));continue}}s.push(d)}}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 wv(e,t){var n,r,i=t?new Rm.TypeInfo(t):null,o=Object.create(null);try{for(var a=vv(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){var t,n,r,i=new Map,o=[];try{for(var a=vv(e),s=a.next();!s.done;s=a.next()){var l=s.value;if("Field"===l.kind){var c=(r=l).alias?r.alias.value:r.name.value,u=i.get(c);if(l.directives&&l.directives.length){var d=gv({},l);o.push(d)}else u&&u.selectionSet&&l.selectionSet?u.selectionSet.selections=bv(u.selectionSet.selections,l.selectionSet.selections):u||(d=gv({},l),i.set(c,d),o.push(d))}else o.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}(n=Ev(o,n,t)),gv(gv({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,Rm.visit)(e,i?(0,Rm.visitWithTypeInfo)(i,c):c)}function Tv(e,t,n){if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n<t.length;n++)e[n]=Tv(e[n],t[n]);else for(n in t){if("__proto__"===n||"constructor"===n||"prototype"===n)break;e[n]=Tv(e[n],t[n])}return e}return t}function Sv(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?Tv(s[i],n):typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}var kv=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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ov.apply(this,arguments)},xv=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())}))},Cv=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},_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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Nv=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},Iv=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 Lv=function(e){return JSON.stringify(e,null,2)},Av=function(e){return e instanceof Rm.GraphQLError?e.toString():e instanceof Error?function(e){return Ov(Ov({},e),{message:e.message,stack:e.stack})}(e):e},Dv=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 xv(c,void 0,void 0,(function(){var n,r,i,o,a,s,l,c,u,d=this;return Cv(this,(function(p){switch(p.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)),p.label=1;case 1:return p.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===d._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;t<arguments.length;t++)e=e.concat(Nv(arguments[t]));return e}((null==l?void 0:l.errors)||[],o.map((function(e){return e.errors})).flat().filter(Boolean));s.length&&(a.errors=s);try{for(var c=Iv(o),u=c.next();!u.done;u=c.next()){var p=u.value,f=p.path,h=p.data,m=(p.errors,_v(p,["path","data","errors"]));if(f){if(!h)throw new Error("Expected part to contain a data property, but got "+p);Sv(a.data,f,h)}else h&&(a.data=p.data);l=Ov(Ov({},a),m)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}d.setState({isWaitingForResponse:!1,response:t.formatResult(l)})}else d.setState({isWaitingForResponse:!1,response:t.formatResult(e)})}}))];case 2:return c=p.sent(),this.setState({subscription:c}),[3,4];case 3:return u=p.sent(),this.setState({isWaitingForResponse:!1,response:u.message}),[3,4];case 4:return[2]}}))}))},c.handleStopQuery=function(){var e=c.state.subscription;c.setState({isWaitingForResponse:!1,subscription:null}),e&&e.unsubscribe()},c.handlePrettifyQuery=function(){var e,t,n,r=c.getQueryEditor(),i=null!==(e=null==r?void 0:r.getValue())&&void 0!==e?e:"",o=(0,Rm.print)((0,Rm.parse)(i));o!==i&&(null==r||r.setValue(o));var a=c.getVariableEditor(),s=null!==(t=null==a?void 0:a.getValue())&&void 0!==t?t:"";try{var l=JSON.stringify(JSON.parse(s),null,2);l!==s&&(null==a||a.setValue(l))}catch(e){}var u=c.getHeaderEditor(),d=null!==(n=null==u?void 0:u.getValue())&&void 0!==n?n:"";try{var p=JSON.stringify(JSON.parse(d),null,2);p!==d&&(null==u||u.setValue(p))}catch(e){}},c.handleMergeQuery=function(){var e=c.getQueryEditor();if(e.getValue()){var t=c.state.documentAST;e.setValue((0,Rm.print)(wv(t,c.state.schema)))}},c.handleEditQuery=Ag(100,(function(e){var t=c._updateQueryFacts(e,c.state.operationName,c.state.operations,c.state.schema);if(c.setState(Ov({query:e},t)),c._storage.set("query",e),c.props.onEditQuery)return c.props.onEditQuery(e,null==t?void 0:t.documentAST)})),c.handleCopyQuery=function(){var e=c.getQueryEditor(),t=e&&e.getValue();if(t)return jm()(t),c.props.onCopyQuery?c.props.onCopyQuery(t):void 0},c._updateQueryFacts=function(e,t,n,r){var i=(0,Fm.getOperationFacts)(r,e);if(i){var o=lv(n,t,i.operations),a=c.props.onEditOperationName;return a&&o&&t!==o&&a(o),Ov({operationName:o},i)}},c.handleEditVariables=function(e){c.setState({variables:e}),Ag(500,(function(){return c._storage.set("variables",e)}))(),c.props.onEditVariables&&c.props.onEditVariables(e)},c.handleEditHeaders=function(e){c.setState({headers:e}),c.props.shouldPersistHeaders&&Ag(500,(function(){return c._storage.set("headers",e)}))(),c.props.onEditHeaders&&c.props.onEditHeaders(e)},c.handleEditOperationName=function(e){var t=c.props.onEditOperationName;t&&t(e)},c.handleHintInformationRender=function(e){var t;e.addEventListener("click",c._onClickHintInformation),e.addEventListener("DOMNodeRemoved",t=function(){e.removeEventListener("DOMNodeRemoved",t),e.removeEventListener("click",c._onClickHintInformation)})},c.handleEditorRunQuery=function(){c._runQueryAtCursor()},c._onClickHintInformation=function(e){if((null==e?void 0:e.currentTarget)&&"className"in e.currentTarget&&"typeName"===e.currentTarget.className){var t=e.currentTarget.innerHTML,n=c.state.schema;if(n){var r=n.getType(t);r&&(c.setState({docExplorerOpen:!0},(function(){c.docExplorerComponent&&c.docExplorerComponent.showDoc(r)})),Ag(500,(function(){return c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen))}))())}}},c.handleToggleDocs=function(){"function"==typeof c.props.onToggleDocs&&c.props.onToggleDocs(!c.state.docExplorerOpen),c._storage.set("docExplorerOpen",JSON.stringify(!c.state.docExplorerOpen)),c.setState({docExplorerOpen:!c.state.docExplorerOpen})},c.handleToggleHistory=function(){"function"==typeof c.props.onToggleHistory&&c.props.onToggleHistory(!c.state.historyPaneOpen),c._storage.set("historyPaneOpen",JSON.stringify(!c.state.historyPaneOpen)),c.setState({historyPaneOpen:!c.state.historyPaneOpen})},c.handleSelectHistoryQuery=function(e,t,n,r){e&&c.handleEditQuery(e),t&&c.handleEditVariables(t),n&&c.handleEditHeaders(n),r&&c.handleEditOperationName(r)},c.handleResizeStart=function(e){if(c._didClickDragBar(e)){e.preventDefault();var t=e.clientX-hv(e.target),n=function(e){if(0===e.buttons)return r();var n=c.editorBarComponent,i=e.clientX-hv(n)-t,o=n.clientWidth-i;c.setState({editorFlex:i/o}),Ag(500,(function(){return c._storage.set("editorFlex",JSON.stringify(c.state.editorFlex))}))()},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),n=null,r=null};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}},c.handleResetResize=function(){c.setState({editorFlex:1}),c._storage.set("editorFlex",JSON.stringify(c.state.editorFlex))},c.handleDocsResizeStart=function(e){e.preventDefault();var t=c.state.docExplorerWidth,n=e.clientX-hv(e.target),r=function(e){if(0===e.buttons)return i();var t=c.graphiqlContainer,r=e.clientX-hv(t)-n,o=t.clientWidth-r;o<100?("function"==typeof c.props.onToggleDocs&&c.props.onToggleDocs(!c.state.docExplorerOpen),c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen)),c.setState({docExplorerOpen:!1})):(c.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(o,650)}),Ag(500,(function(){return c._storage.set("docExplorerWidth",JSON.stringify(c.state.docExplorerWidth))}))()),c._storage.set("docExplorerOpen",JSON.stringify(c.state.docExplorerOpen))},i=function(){c.state.docExplorerOpen||(c.setState({docExplorerWidth:t}),Ag(500,(function(){return c._storage.set("docExplorerWidth",JSON.stringify(c.state.docExplorerWidth))}))()),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)},c.handleDocsResetResize=function(){c.setState({docExplorerWidth:350}),Ag(500,(function(){return c._storage.set("docExplorerWidth",JSON.stringify(c.state.docExplorerWidth))}))()},c.handleTabClickPropogation=function(e){e.preventDefault(),e.stopPropagation()},c.handleOpenHeaderEditorTab=function(e){c.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},c.handleOpenVariableEditorTab=function(e){c.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},c.handleSecondaryEditorResizeStart=function(e){e.preventDefault();var t=!1,n=c.state.secondaryEditorOpen,r=c.state.secondaryEditorHeight,i=e.clientY-mv(e.target),o=function(e){if(0===e.buttons)return a();t=!0;var n=c.editorBarComponent,o=e.clientY-mv(n)-i,s=n.clientHeight-o;s<60?c.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):c.setState({secondaryEditorOpen:!0,secondaryEditorHeight:s}),Ag(500,(function(){return c._storage.set("secondaryEditorHeight",JSON.stringify(c.state.secondaryEditorHeight))}))()},a=function(){t||c.setState({secondaryEditorOpen:!n}),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a),o=null,a=null};document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)},"function"!=typeof n.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");c._storage=new sv(n.storage);var u=null!==(r=n.maxHistoryLength)&&void 0!==r?r:20;c._historyStore=new nv(c._storage,u),c.componentIsMounted=!1;var d,p=void 0!==n.query?n.query:c._storage.get("query")?c._storage.get("query"):void 0!==n.defaultQuery?n.defaultQuery:jv,f=(0,Fm.getOperationFacts)(n.schema,p),h=void 0!==n.variables?n.variables:c._storage.get("variables"),m=void 0!==n.headers?n.headers:c._storage.get("headers"),g=void 0!==n.operationName?n.operationName:lv(void 0,c._storage.get("operationName"),f&&f.operations),v=n.docExplorerOpen||!1;c._storage.get("docExplorerOpen")&&(v="true"===c._storage.get("docExplorerOpen")),d=void 0!==n.defaultVariableEditorOpen?n.defaultVariableEditorOpen:void 0!==n.defaultSecondaryEditorOpen?n.defaultSecondaryEditorOpen:Boolean(h||m);var y=null===(i=n.headerEditorEnabled)||void 0===i||i,b=null!==(o=n.shouldPersistHeaders)&&void 0!==o&&o,E=n.schema,w=n.response,T=void 0;if(E&&!c.props.dangerouslyAssumeSchemaIsValid){var S=(0,Rm.validateSchema)(E);S&&S.length>0&&(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=Ov({schema:E,query:p,variables:h,headers:m,operationName:g,docExplorerOpen:v,schemaErrors:T,response:w,editorFlex:Number(c._storage.get("editorFlex"))||1,secondaryEditorOpen:d,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 kv(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 av,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=cv(r,(function(e){return qv(e,t.Logo)}))||i().createElement(t.Logo,null),a=cv(r,(function(e){return qv(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=cv(r,(function(e){return qv(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":""),d={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},p=this.state.secondaryEditorOpen,f={height:p?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:d},i().createElement(ov,{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:p?"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(Ug,{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=uv(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;t<i&&(s+=n.length)})),r.setCursor(r.posFromIndex(s))}))}return n},t.prototype.fetchSchema=function(){var e=this,n=this.props.fetcher,r={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};this.state.headers&&this.state.headers.trim().length>2?r.headers=JSON.parse(this.state.headers):this.props.headers&&(r.headers=JSON.parse(this.props.headers));var i=Bv(n({query:this._introspectionQuery,operationName:this._introspectionQueryName},r));Fv(i)?i.then((function(t){if("string"!=typeof t&&"data"in t)return t;var o=Bv(n({query:e._introspectionQuerySansSubscriptions,operationName:e._introspectionQueryName},r));if(!Fv(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(Ov(Ov({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 xv(this,void 0,void 0,(function(){var s,l,c,u,d,p,f=this;return Cv(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)}}),(d=(0,Fm.getFragmentDependenciesForAST)(this.state.documentAST,u)).length>0&&(e+="\n"+d.map((function(e){return(0,Rm.print)(e)})).join("\n"))),p=s({query:e,variables:l,operationName:i},{headers:c,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(p).then((function(e){return $v(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})}}):Vv(e)?(xv(f,void 0,void 0,(function(){var n,r,i,o,s,l,c;return Cv(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 Iv?Iv(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<t.length;o++){var a=t[o];if(a.loc&&a.loc.start<=i&&a.loc.end>=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)?Lv({errors:e.map((function(e){return Av(e)}))}):Lv({errors:Av(e)})},t.Logo=Pv,t.Toolbar=Rv,t.Footer=Mv,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 Pv(e){return i().createElement("div",{className:"title"},e.children||i().createElement("span",null,"Graph",i().createElement("em",null,"i"),"QL"))}function Rv(e){return i().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function Mv(e){return i().createElement("div",{className:"footer"},e.children)}Pv.displayName="GraphiQLLogo",Rv.displayName="GraphiQLToolbar",Mv.displayName="GraphiQLFooter";var jv='# 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 Fv(e){return"object"==typeof e&&"function"==typeof e.then}function $v(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function Vv(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function Bv(e){return Promise.resolve(e).then((function(e){return Vv(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)}))}))):$v(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 qv(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 zv=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 __)}}(),Gv=function(){return Gv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gv.apply(this,arguments)};function Qv(e){var t=e.onSelect,n=e.label,r=e.selected;return i().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Uv,onMouseUp:t},n,r&&i().createElement("svg",{width:"13",height:"13"},i().createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\n    10.686,0 13,2.314 4.851,10.462"})))}function Uv(e){e.preventDefault()}!function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Uv(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}zv(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,r=i().Children.map(this.props.children,(function(n,r){if(!function(e){return!(!e||"object"!=typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var o=n.props.onSelect||t.props.onSelect&&t.props.onSelect.bind(null,n.props.value,r);return i().createElement(Qv,Gv({},n.props,{onSelect:o}))}));return i().createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Uv,ref:function(e){t._node=e},title:this.props.title},null==e?void 0:e.props.label,i().createElement("svg",{width:"13",height:"10"},i().createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),i().createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),i().createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},r))},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&&(Uv(e),this.setState({visible:!1}),this._release())}}(i().Component);const Hv=Dv;const Kv=new cr("antSpinMove",{to:{opacity:1}}),Wv=new cr("antRotate",{to:{transform:"rotate(405deg)"}}),Yv=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},Er(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:Kv,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:Wv,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"}})}},Xv=fi("Spin",(e=>{const t=si(e,{spinDotDefault:e.colorTextDescription});return[Yv(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));let Jv=null;const Zv=e=>{const{prefixCls:t,spinning:n=!0,delay:i=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:p=!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);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:h}=r.useContext(ct),m=h("spin",t),[v,y,b]=Xv(m),[E,w]=r.useState((()=>n&&!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,d=!1,p=0;function f(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(s,i)}function m(){r=void 0}d||(l||!u||r||h(),f(),void 0===u&&c>e?l?(p=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(),d=!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!==d&&!p),[d,p]),{direction:S,spin:k}=r.useContext(ct),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`]:p,[`${m}-fullscreen-show`]:p&&E,[`${m}-rtl`]:"rtl"===S},o,a,y,b),x=g()(`${m}-container`,{[`${m}-blur`]:E}),C=lt(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)?ql(n,{className:g()(n.props.className,i)}):r.isValidElement(Jv)?ql(Jv,{className:g()(Jv.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||p)?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"},d)):N)};Zv.setDefaultIndicator=e=>{Jv=e};const ey=Zv;var ty=n(2992),ny=n.n(ty);const{parse:ry}=window.wpGraphiQL.GraphQL;var iy=n(3574);const{hooks:oy,useAppContext:ay}=window.wpGraphiQL,sy=(0,o.createContext)(),ly=()=>(0,o.useContext)(sy),cy=({children:e})=>{var t;const{queryParams:n,setQueryParams:i}=ay(),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=ny().decompressFromEncodedURIComponent(r),null===t&&(t=r));try{t=(0,iy.print)((0,iy.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),[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=ry(e),r=null!==(i=t?.definitions[0])&&void 0!==i?i:null}catch(e){}r&&n.push(r)})),n})()),f=oy.applyFilters("graphiql_context_default_value",{query:s,setQuery:async e=>{const t=s;oy.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=ny().decompressFromEncodedURIComponent(e),r=null===o?ny().compressToEncodedURIComponent(e):e;try{(0,iy.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:d,setExternalFragments:p});return(0,r.createElement)(sy.Provider,{value:f},e)},{hooks:uy}=wpGraphiQL,dy=e=>{const{graphiql:t}=e;const n=ly(),i={...e,GraphiQL:Dv,graphiqlContext:n},o=uy.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=uy.applyFilters("graphiql_toolbar_before_buttons",[],i),s=uy.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)(Dv.Button,{"data-testid":i,key:n,onClick:()=>{a(t)},label:i,title:o})})),s.length>0?s:null)},{hooks:py,useAppContext:fy,GraphQL:hy}=wpGraphiQL,{parse:my,specifiedRules:gy}=hy,vy=Id.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,r.useRef)(null);const t=hy(),n=cy(),{query:i,setQuery:o,externalFragments:a,variables:s,setVariables:l}=n,{endpoint:c,nonce:u,schema:d,setSchema:p}=t;let f=((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()))}})(c,{nonce:u});f=fy.applyFilters("graphiql_fetcher",f,t);const h=fy.applyFilters("graphiql_before_graphiql",[],{...t,...n}),m=fy.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,im.jsxs)(yy,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper",children:[h.length>0?h:null,(0,im.jsxs)(Kv,{ref:t=>{e=t},fetcher:e=>f(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&&o(e)}},onEditVariables:e=>{by(e)&&l(e)},variables:by(s)?s:null,validationRules:vy,readOnly:!1,externalFragments:a,headerEditorEnabled:!1,onSchemaChange:e=>{d!==e&&p(e)},children:[(0,im.jsx)(Kv.Toolbar,{children:(0,im.jsx)(py,{graphiql:()=>e})}),(0,im.jsx)(Kv.Logo,{children:(0,im.jsx)(im.Fragment,{})})]}),m.length>0?m:null]})},wy=()=>{const e=hy(),{schemaLoading:t}=e;return t?(0,im.jsx)(ty,{style:{margin:"50px"}}):(0,im.jsx)(uy,{appContext:e,children:(0,im.jsx)(Ey,{})})};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;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ky.apply(this,arguments)};function xy(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Oy(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())}))}function Cy(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function _y(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ny="Invariant Violation",Iy=Object.setPrototypeOf,Ly=void 0===Iy?function(e,t){return e.__proto__=t,e}:Iy,Ay=function(e){function t(n){void 0===n&&(n=Ny);var r=e.call(this,"number"==typeof n?Ny+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Ny,Ly(r,t.prototype),r}return Sy(t,e),t}(Error);function Dy(e,t){if(!e)throw new Ay(t)}var jy=["debug","log","warn","error","silent"],Py=jy.indexOf("log");function Ry(e){return function(){if(jy.indexOf(e)>=Py)return(console[e]||console.log).apply(console,arguments)}}function My(e){try{return e()}catch(e){}}!function(e){e.debug=Ry("debug"),e.log=Ry("log"),e.warn=Ry("warn"),e.error=Ry("error")}(Dy||(Dy={}));const Fy=My((function(){return globalThis}))||My((function(){return window}))||My((function(){return self}))||My((function(){return global}))||My((function(){return My.constructor("return this")()}));var __="__",$y=[__,__].join("DEV");const Vy=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Fy,$y,{value:"production"!==My((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);n<t;n++)r[n]=e[n];return r}function Qy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uy(e,t,n){return t&&Qy(e.prototype,t),n&&Qy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}!qy||By((function(){return"production"}))||By((function(){return process}))||(Object.defineProperty(qy,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),zy=!0),Rm.Source,zy&&(delete qy.process,zy=!1),__DEV__?Dy("boolean"==typeof Vy,Vy):Dy("boolean"==typeof Vy,36);var Hy=function(){return"function"==typeof Symbol},Ky=function(e){return Hy()&&Boolean(Symbol[e])},Wy=function(e){return Ky(e)?Symbol[e]:"@@"+e};Hy()&&!Ky("observable")&&(Symbol.observable=Symbol("observable"));var Yy=Wy("iterator"),Xy=Wy("observable"),Jy=Wy("species");function Zy(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function eb(e){var t=e.constructor;return void 0!==t&&null===(t=t[Jy])&&(t=void 0),void 0!==t?t:ub}function tb(e){return e instanceof ub}function nb(e){nb.log?nb.log(e):setTimeout((function(){throw e}))}function rb(e){Promise.resolve().then((function(){try{e()}catch(e){nb(e)}}))}function ib(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Zy(t,"unsubscribe");n&&n.call(t)}}catch(e){nb(e)}}function ob(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function ab(e,t,n){e._state="running";var r=e._observer;try{var i=Zy(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(ob(e),!i)throw n;i.call(r,n);break;case"complete":ob(e),i&&i.call(r)}}catch(e){nb(e)}"closed"===e._state?ib(e):"running"===e._state&&(e._state="ready")}function sb(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void rb((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(ab(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void ab(e,t,n);e._queue.push({type:t,value:n})}}var lb=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new cb(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(ob(this),ib(this))},Uy(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),cb=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){sb(this._subscription,"next",e)},t.error=function(e){sb(this._subscription,"error",e)},t.complete=function(){sb(this._subscription,"complete")},Uy(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ub=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new lb(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(eb(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(eb(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=eb(this),r=arguments.length>1,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<t;r++)n[r]=arguments[r];var i=eb(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=eb(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=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;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)((function(e){rb((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Uy(e,null,[{key:Jy,get:function(){return this}}]),e}();function db(e){return null!==e&&"object"==typeof e}function pb(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Ay("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Ay(41);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?Dy(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):Dy(1===r.length,42),n=r[0].name.value),ky(ky({},e),{definitions:_y([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function fb(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function hb(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Dy(n,"No fragment named ".concat(e.name.value,".")):Dy(n,43),n;default:return null}}function mb(e){return{__ref:String(e)}}function gb(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function vb(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 vb(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 vb(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 __DEV__?new Ay('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new Ay(52);e[t.value]=null}}Hy()&&Object.defineProperty(ub,Symbol("extensions"),{value:{symbol:Xy,hostReportError:nb},configurable:!0});var yb=["connection","include","skip","client","rest","export"],bb=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(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 db(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<i.length;r++){var o=i[r];if(xb(o)){if("__typename"===o.name.value)return e[Sb(o)]}else{var a=kb(e,hb(o,n).selectionSet,n);if("string"==typeof a)return a}}}function xb(e){return"Field"===e.kind}function Ob(e){return"InlineFragment"===e.kind}function Cb(e){__DEV__?Dy(e&&"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(e&&"Document"===e.kind,44);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Ay('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new Ay(45);return e}));return __DEV__?Dy(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):Dy(t.length<=1,46),e}function _b(e){return Cb(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Nb(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Ib(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Lb(e){var t=_b(e);return __DEV__?Dy(t&&"query"===t.operation,"Must contain a query definition."):Dy(t&&"query"===t.operation,47),t}function Ab(e){var t;Cb(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Ay("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Ay(51)}function Db(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&vb(t,e.variable.name,e.defaultValue)})),t}function jb(e,t){return t?t(e):ub.of()}function Pb(e){return"function"==typeof e?new Fb(e):e}function Rb(e){return e.request.length<=1}var Mb=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return Sy(t,e),t}(Error),Fb=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return ub.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Pb).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=Pb(n),o=Pb(r||new e(jb));return Rb(i)&&Rb(o)?new e((function(e){return t(e)?i.request(e)||ub.of():o.request(e)||ub.of()})):new e((function(e,n){return t(e)?i.request(e,n)||ub.of():o.request(e,n)||ub.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=ky({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=ky(ky({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return ky({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Nb(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Ay("illegal argument: ".concat(i)):new Ay(24)}return e}(t))))||ub.of()},e.concat=function(t,n){var r=Pb(t);if(Rb(r))return __DEV__&&Dy.warn(new Mb("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Pb(n);return Rb(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||ub.of()}))||ub.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||ub.of()}))||ub.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(jb)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Ay("request is not implemented"):new Ay(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),$b=Fb.execute,Vb=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Ay("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new Ay(21);throw r.parseError=e,r}return n},Bb=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},qb=Object.prototype.hasOwnProperty,zb={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Gb=function(e,t){return t(e)};function Qb(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}function Ub(e){return new ub((function(t){t.error(e)}))}var Hb=My((function(){return fetch})),Kb=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?Gb:i,a=e.includeExtensions,s=e.useGETForQueries,l=e.includeUnusedVariables,c=void 0!==l&&l,u=xy(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Ay("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new Ay(20)}(r||Hb);var d={http:{includeExtensions:a},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Fb((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var l=i.clientAwareness,u=l.name,p=l.version;u&&(a["apollographql-client-name"]=u),p&&(a["apollographql-client-version"]=p)}var f,h=ky(ky({},a),i.headers),m={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h},g=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach((function(e){i=ky(ky(ky({},i),e.options),{headers:ky(ky({},i.headers),Qb(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=ky(ky({},o),e.http)}));var a=e.operationName,s=e.extensions,l=e.variables,c=e.query,u={operationName:a,variables:l};return o.includeExtensions&&(u.extensions=s),o.includeQuery&&(u.query=t(c,Rm.print)),{options:i,body:u}}(e,o,zb,d,m),v=g.options,y=g.body;if(y.variables&&!c){var b=new Set(Object.keys(y.variables));(0,Rm.visit)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(y.variables=ky({},y.variables),b.forEach((function(e){delete y.variables[e]})))}if(!v.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),w=E.controller,T=E.signal;(f=w)&&(v.signal=T)}if(s&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(v.method="GET"),"GET"===v.method){var S=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Vb(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Vb(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,y),k=S.newURI,x=S.parseError;if(x)return Ub(x);t=k}else try{v.body=Vb(y,"Payload")}catch(x){return Ub(x)}return new ub((function(n){var i;return(r||My((function(){return fetch}))||Hb)(t,v).then((function(t){return e.setContext({response:t}),t})).then((i=e,function(e){return e.text().then((function(t){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}})).then((function(t){return e.status>=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<i;++e)if(!Xb.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!tE(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(oE(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!tE(o,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Jb.call(e);return n===Jb.call(t)&&!function(e,t){const n=e.length-t.length;return n>=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<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return lE.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(cE.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),dE="function"==typeof WeakMap&&"ReactNative"!==My((function(){return navigator.product})),pE="function"==typeof WeakSet,fE="function"==typeof Symbol&&"function"==typeof Symbol.for;function hE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function mE(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?Dy(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):Dy(n&&1===n.length,38);var i=n[0];__DEV__?Dy(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(r," directive.")):Dy(i.name&&"if"===i.name.value,39);var o=i.value;__DEV__?Dy(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):Dy(o&&("Variable"===o.kind||"BooleanValue"===o.kind),40),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?Dy(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):Dy(void 0!==i,37)):i=r.value.value,"skip"===n.name.value?!i:i}))}function gE(e,t){return function(e){var t=[];return(0,Rm.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function vE(e){return e&&gE(["client"],e)&&gE(["export"],e)}My((function(){return window.document.createElement})),My((function(){return navigator.userAgent.indexOf("jsdom")>=0}));var yE=Object.prototype.hasOwnProperty;function bE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return EE(e)}function EE(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new TE,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var wE=function(e,t,n){return this.merge(e[n],t[n])},TE=function(){function e(e){void 0===e&&(e=wE),this.reconciler=e,this.isObject=db,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return db(t)&&db(e)?(Object.keys(t).forEach((function(i){if(yE.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,_y([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return db(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):ky({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}(),SE=Object.prototype.hasOwnProperty;function kE(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var xE={dataIdFromObject:kE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function OE(e){var t=e.canonizeResults;return void 0===t?xE.canonizeResults:t}var CE=/^[_a-z][_0-9a-z]*/i;function _E(e){var t=e.match(CE);return t?t[0]:e}function NE(e,t,n){return!!db(t)&&(DE(t)?t.every((function(t){return NE(e,t,n)})):e.selections.every((function(e){if(xb(e)&&mE(e,n)){var r=Sb(e);return SE.call(t,r)&&(!e.selectionSet||NE(e.selectionSet,t[r],n))}return!0})))}function IE(e){return db(e)&&!gb(e)&&!DE(e)}var LE,AE,DE=function(e){return Array.isArray(e)},jE=function(){function e(){this.known=new(pE?WeakSet:Set),this.pool=new uE(dE),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return db(e)&&this.known.has(e)},e.prototype.pass=function(e){if(db(e)){var t=function(e){return db(e)?DE(e)?e.slice(0):ky({__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(db(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),__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,l=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[l+t]})),__DEV__&&Object.freeze(c)}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}(),PE=Object.assign((function(e){if(db(e)){void 0===LE&&RE();var t=LE.admit(e),n=AE.get(t);return void 0===n&&AE.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:RE});function RE(){LE=new jE,AE=new(dE?WeakMap:Map)}function ME(e,t,n){return new ub((function(r){var i=r.next,o=r.error,a=r.complete,s=0,l=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function u(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),l&&d.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:u(t,i),error:u(n,o),complete:function(){l=!0,s||a&&a.call(r)}},p=e.subscribe(d);return function(){return p.unsubscribe()}}))}function FE(e){return e.errors&&e.errors.length>0||!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 xb(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(xb(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){(xb(e)||Ob(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=pw)}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,d=i.initialFetchPolicy,p=void 0===d?"standby"===u?l:u:d;o.options=ky(ky({},i),{initialFetchPolicy:p,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)||dw(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 dw(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 pw(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,xw=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}(),Ow=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=[];function Lw(e,t){if(!e)throw new Error(t||"assertion failure")}function Aw(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Dw=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&&!Rw(this))return jw(this),this.value[0]},e.prototype.recompute=function(e){return Lw(!this.recomputing,"already recomputing"),jw(this),Rw(this)?function(e,t){return zw(e),Ow.withValue(e,Pw,[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,Rw(e)||Fw(e)}(e),Aw(e.value)}(this,e):Aw(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Mw(this),Nw(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),zw(this),$w(this,(function(t,n){t.setDirty(),Gw(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 jw(e){var t=Ow.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Rw(e)?Vw(t,e):Bw(t,e),t}function Pw(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 Rw(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Mw(e){$w(e,Vw)}function Fw(e){$w(e,Bw)}function $w(e,t){var n=e.parents.size;if(n)for(var r=_w(e.parents),i=0;i<n;++i)t(r[i],e)}function Vw(e,t){Lw(e.childValues.has(t)),Lw(Rw(t));var n=!Rw(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Iw.pop()||new Set;e.dirtyChildren.add(t),n&&Mw(e)}function Bw(e,t){Lw(e.childValues.has(t)),Lw(!Rw(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),qw(e,t),Rw(e)||Fw(e)}function qw(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Iw.length<100&&Iw.push(n),e.dirtyChildren=null))}function zw(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Gw(e,n)})),e.forgetDeps(),Lw(null===e.dirtyChildren)}function Gw(e,t){t.parents.delete(e),e.childValues.delete(t),qw(e,t)}var Qw={setDirty:!0,dispose:!0,forget:!0};function Uw(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Ow.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(Qw,n)?n:"setDirty";_w(r).forEach((function(e){return e[i]()})),t.delete(e),Nw(r)}},r}function Hw(){var e=new uE("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Hw();var Kw=new Set;function Ww(e,t){void 0===t&&(t=Object.create(null));var n=new xw(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Hw(),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 Dw(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),Kw.add(n),Ow.hasValue()||(Kw.forEach((function(e){return e.clean()})),Kw.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 Yw=null,Xw={},Jw=1,Zw="@wry/context:Slot",eT=Array,tT=eT[Zw]||function(){var e=function(){function e(){this.id=["slot",Jw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Yw;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Xw)break;return e!==Yw&&(Yw.slots[this.id]=t),!0}return Yw&&(Yw.slots[this.id]=Xw),!1},e.prototype.getValue=function(){if(this.hasValue())return Yw.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Yw;Yw={parent:a,slots:o};try{return t.apply(r,n)}finally{Yw=a}},e.bind=function(e){var t=Yw;return function(){var n=Yw;try{return Yw=t,e.apply(this,arguments)}finally{Yw=n}}},e.noContext=function(e,t,n){if(!Yw)return e.apply(n,t);var r=Yw;try{return Yw=null,e.apply(n,t)}finally{Yw=r}},e}();try{Object.defineProperty(eT,Zw,{value:eT[Zw]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();tT.bind,tT.noContext;var nT=new tT,rT=new WeakMap;function iT(e){var t=rT.get(e);return t||rT.set(e,t={vars:new Set,dep:Uw()}),t}function oT(e){iT(e).vars.forEach((function(t){return t.forgetCache(e)}))}function aT(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){iT(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=nT.getValue();s&&(i(s),iT(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),iT(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var sT=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 Oy(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 xb(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={}),Oy(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),Oy(this,void 0,void 0,(function(){var a,s,l,c,u,d,p,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",p=(d=this).cache,f=d.client,h={fragmentMap:l,context:ky(ky({},n),{cache:p,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 Oy(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 Oy(l,void 0,void 0,(function(){var s,l;return Cy(this,(function(c){return mE(e,o)?xb(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Sb(e)]=t,n))}))]:(Ob(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 Oy(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,d,p=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])&&(d=u[a?i:o])&&(l=Promise.resolve(nT.withValue(this.cache,d,[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)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.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}(),lT=new(dE?WeakMap:Map);function cT(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return lT.set(e,(lT.get(e)+1)%1e15),n.apply(this,arguments)})}function uT(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;lT.has(n)||(lT.set(n,0),cT(n,"evict"),cT(n,"modify"),cT(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(){uT(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():dw(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;uT(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===lT.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&&(pT(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:lT.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 pT(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 fT=Object.prototype.hasOwnProperty,hT=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,d=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(dE?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=d||new sT({cache:t}),this.ssrMode=l,this.assumeImmutableResults=!!p,(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,d=e.update,p=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 Oy(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:d,keepRootFields:v}),this.broadcastQueries(),n=this,[2,new Promise((function(s,c){return ME(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:d,updateQueries:a,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:o?e:void 0,onQueryUpdated:p,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&&pT(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&&fT.call(a,l)){var c=a[l],u=n.queries.get(o),d=u.document,p=u.variables,f=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=c(h,{mutationResult:r,queryName:d&&Nb(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}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):db(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):db(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&&(pT(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 d=l.get(s)||new Map;l.set(s,d);var p=PE(n);if(!(o=d.get(p))){var f=new ew([$b(c,u)]);d.set(p,o=f),f.cleanup((function(){d.delete(p)&&d.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=ME(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 ME(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,d=void 0===u?s&&s.errorPolicy||"none":u,p=t.returnPartialData,f=void 0!==p&&p,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:d,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,d=t.notifyOnNetworkStatusChange,p=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=d&&"number"==typeof p&&p!==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 mT(e,t){return hE(e,t,t.variables&&{variables:ky(ky({},e&&e.variables),t.variables)})}var gT=!1,vT=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,d=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,p=e.queryDeduplication,f=void 0===p||p,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),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!gT&&__DEV__&&(gT=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,k=S&&S.userAgent,x=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?x="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(x="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),x&&__DEV__&&Dy.log("Download the Apollo DevTools for a better development experience: "+x)}this.version="3.6.9",this.localState=new sT({cache:o,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new hT({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:f,ssrMode:s,clientAwareness:{name:E,version:w},localState:this.localState,assumeImmutableResults:g,onBroadcast:d?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=mT(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=mT(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=mT(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}(),yT=function(){function e(){this.getFragmentDoc=Ww(pb)}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=xy(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=xy(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}(),bT=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r};function ET(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){db(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){db(e[t])&&n.add(e[t])}))}))),e;var t,n}var wT=Object.create(null),TT=function(){return wT},ST=Object.create(null),kT=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 ET(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 _T?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 _T?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(IT).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 _T||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:wT,INVALIDATE:ST,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 d="function"==typeof t?t:t[l]||t[c];if(d){var p=d===TT?wT:d(ET(u),ky(ky({},s),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));p===ST?n.group.dirty(e,l):(p===wT&&(p=void 0),p!==u&&(i[l]=p,o=!0,u=p))}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof _T?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]=TT,r):TT)}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 _T&&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=xy(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 _T?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 _T;)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),db(e)&&Object.keys(e).forEach((function(t){var n=e[t];db(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?Uw():null,this.keyMaker=new uE(dE)},e.prototype.depend=function(e,t){if(this.d){this.d(OT(e,t));var n=_E(t);n!==t&&this.d(OT(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(OT(e,t),"__exists"===t?"forget":"setDirty")},e}();function OT(e,t){return t+"#"+e}function CT(e,t){LT(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 NT(a),a.storageTrie=new uE(dE),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}(kT||(kT={}));var _T=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}(kT),NT=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}(_T);function IT(e,t,n){var r=e[n],i=t[n];return eE(r,i)?r:i}function LT(e){return!!(e instanceof kT&&e.group.caching)}function AT(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var DT=function(){function e(e){var t=this;this.knownResults=new(dE?WeakMap:Map),this.config=hE(e,{addTypename:!1!==e.addTypename,canonizeResults:OE(e)}),this.canon=e.canon||new jE,this.executeSelectionSet=Ww((function(e){var n,r=e.context.canonizeResults,i=AT(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:(CT(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:AT,makeCacheKey:function(e,t,n,r){if(LT(n.store))return n.store.makeCacheKey(e,gb(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Ww((function(e){return CT(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(LT(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new jE},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 d,p=mb(i),f=this.executeSelectionSet({selectionSet:Ab(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:u,variables:o,varString:PE(o),canonizeResults:c,fragmentMap:fb(Ib(n))}});if(f.missing&&(d=[new bT(jT(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(LT(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=[],d=new TE;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 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(xb(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=d.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=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: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):ET(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){db(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 jT(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var PT=Object.create(null);function RT(e){var t=JSON.stringify(e);return PT[t]||(PT[t]=Object.create(null))}function MT(e){var t=RT(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=qT(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&SE.call(t,e[0])&&(i=qT(t,e,BT)),__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 FT(e){var t=RT(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 qT(t,e)}else{var a=n.slice(1);if(i&&SE.call(i,a)){var s=e.slice(0);return s[0]=a,qT(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&&qT(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function $T(e,t){var n=new TE;return VT(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 VT(e){var t=RT(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){DE(t)?(VT(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 BT(e,t){return e[t]}function qT(e,t,n){return n=n||BT,zT(t.reduce((function e(t,r){return DE(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function zT(e){return db(e)?DE(e)?e.map(zT):$T(Object.keys(e).sort(),(function(t){return qT(e,t)})):e}function GT(e){return void 0!==e.args?e.args:e.field?Tb(e.field,e.variables):null}bb.setStringify(PE);var QT=function(){},UT=function(e,t){return t.fieldName},HT=function(e,t,n){return(0,n.mergeObjects)(e,t)},KT=function(e,t){return t},WT=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=XT(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=MT(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=xy(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?HT:!1===t?KT:e.merge}a(r,t.merge),r.keyFn=!1===i?QT:DE(i)?MT(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?UT:DE(s)?FT(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||UT)}))},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=xy(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,d=0;d<s.length;++d){var p=s[d];if(p.has(o))return a.has(o)||(u&&__DEV__&&Dy.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;p.forEach(l),c&&d===s.length-1&&NE(e.selectionSet,n,r)&&(c=!1,u=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=GT(e);o;){var l=o(s,a);if(!DE(l)){t=l||r;break}o=FT(l)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return vb(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return vb(r,n,i,t)}))),bb(e.name.value,r,n)}(e.field,e.variables):bb(r,GT(e))),!1===t?r:r===_E(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=_E(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var c=YT(this,n,e,t,t.store.getStorage(gb(n)?n.__ref:n,i));return nT.withValue(this.cache,l,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===HT?JT(r.store)(e,t):s===KT?t:(r.overwrite&&(e=void 0),s(e,t,YT(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function YT(e,t,n,r,i){var o=e.getStoreFieldName(n),a=_E(o),s=n.variables||r.variables,l=r.store,c=l.toReference,u=l.canRead;return{args:GT(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:gb,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(XT(arguments,t,s),r)},mergeObjects:JT(r.store)}}function XT(e,t,n){var r,i,o,a=e[0],s=e[1],l=e.length;return"string"==typeof a?r={fieldName:a,from:l>1?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("<undefined>")))),void 0===r.variables&&(r.variables=n),r}function JT(e){return function(t,n){if(DE(t)||DE(n))throw __DEV__?new Ay("Cannot automatically merge arrays"):new Ay(4);if(db(t)&&db(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 ZT(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 eS=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:PE(a),fragmentMap:fb(Ib(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!gb(d))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(!aS.has(c)){aS.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(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,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=XT(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)},d=new Set;this.flattenFields(i,r,o,c).forEach((function(e,n){var i,o=Sb(n),p=r[o];if(d.add(n),void 0!==p){var f=s.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),h=nS(a,f),m=t.processFieldValue(p,n,n.selectionSet?ZT(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}:oS(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 p=s.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:l,readField:u}),f=p[0],h=p[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=rS(v.mergeTree,a),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:l,mergeTree:iS(a)?void 0:a,fieldNodeSet:d}),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,nS(r,o));return oS(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)}})),xb(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,c=c&&u.deferred),i.set(a,ZT(n,s,c))}else{var d=hb(a,n.fragmentMap);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,ZT(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 d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),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}(),tS=[];function nS(e,t){var n=e.map;return n.has(t)||n.set(t,tS.pop()||{map:new Map}),n.get(t)}function rS(e,t){if(e===t||!t||iS(t))return e;if(!e||iS(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,rS(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,rS(t.map.get(n),e.map.get(n)))}))}return i}function iS(e){return!e||!(e.info||e.map.size)}function oS(e,t){var n=e.map,r=n.get(t);r&&iS(r)&&(tS.push(r),n.delete(t))}var aS=new Set,sS=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=aT,n.txCount=0,n.config=function(e){return hE(xE,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new WT({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 kT.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 eS(this,this.storeReader=new DT({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:OE(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Ww((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(LT(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,PE({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 bT)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||iT(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&&oT(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){PE.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(),PE.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),oT(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}(yT);const lS=e=>new vT({uri:e,connectToDevTools:!0,cache:new sS({})});var cS=new Map,uS=new Map,dS=!0,pS=!1;function fS(e){return e.replace(/[\s,]+/g," ").trim()}function hS(e){var t,n,r,i=fS(e);if(!cS.has(i)){var o=(0,Rm.parse)(e,{experimentalFragmentVariables:pS,allowLegacyFragmentVariables:pS});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");cS.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=fS((a=e.loc).source.body.substring(a.start,a.end)),o=uS.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||uS.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 cS.get(i)}function mS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),hS(r)}var gS,vS=mS;(gS=mS||(mS={})).gql=vS,gS.resetCaches=function(){cS.clear(),uS.clear()},gS.disableFragmentWarnings=function(){dS=!1},gS.enableExperimentalFragmentVariables=function(){pS=!0},gS.disableExperimentalFragmentVariables=function(){pS=!1},mS.default=mS;const yS=mS,{useAppContext:bS,GraphQL:ES}=wpGraphiQL,{getIntrospectionQuery:wS,buildClientSchema:TS}=ES,{Sider:SS}=Oi,kS=Id.div`
+`,yy=e=>{try{return JSON.parse(e)&&!!e}catch(e){return!1}},by=()=>{let e=(0,o.useRef)(null);const t=fy(),n=ly(),{query:i,setQuery:a,externalFragments:s,variables:l,setVariables:c}=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=py.applyFilters("graphiql_fetcher",h,t);const m=py.applyFilters("graphiql_before_graphiql",[],{...t,...n}),g=py.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,r.createElement)(vy,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper"},m.length>0?m:null,(0,r.createElement)(Hv,{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{my(e),t=!0}catch(e){return}t&&a(e)}},onEditVariables:e=>{yy(e)&&c(e)},variables:yy(l)?l:null,validationRules:gy,readOnly:!1,externalFragments:s,headerEditorEnabled:!1,onSchemaChange:e=>{p!==e&&f(e)}},(0,r.createElement)(Hv.Toolbar,null,(0,r.createElement)(dy,{graphiql:()=>e})),(0,r.createElement)(Hv.Logo,null,(0,r.createElement)(r.Fragment,null))),g.length>0?g:null)},Ey=()=>{const e=fy(),{schemaLoading:t}=e;return t?(0,r.createElement)(ey,{style:{margin:"50px"}}):(0,r.createElement)(cy,{appContext:e},(0,r.createElement)(by,null))};var wy=function(e,t){return wy=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])},wy(e,t)};function Ty(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}wy(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Sy=function(){return Sy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Sy.apply(this,arguments)};function ky(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<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Oy(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())}))}function xy(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Cy(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var _y="Invariant Violation",Ny=Object.setPrototypeOf,Iy=void 0===Ny?function(e,t){return e.__proto__=t,e}:Ny,Ly=function(e){function t(n){void 0===n&&(n=_y);var r=e.call(this,"number"==typeof n?_y+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=_y,Iy(r,t.prototype),r}return Ty(t,e),t}(Error);function Ay(e,t){if(!e)throw new Ly(t)}var Dy=["debug","log","warn","error","silent"],Py=Dy.indexOf("log");function Ry(e){return function(){if(Dy.indexOf(e)>=Py)return(console[e]||console.log).apply(console,arguments)}}function My(e){try{return e()}catch(e){}}!function(e){e.debug=Ry("debug"),e.log=Ry("log"),e.warn=Ry("warn"),e.error=Ry("error")}(Ay||(Ay={}));const jy=My((function(){return globalThis}))||My((function(){return window}))||My((function(){return self}))||My((function(){return global}))||My((function(){return My.constructor("return this")()}));var __="__",Fy=[__,__].join("DEV");const $y=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(jy,Fy,{value:"production"!==My((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),jy[Fy]}}();function Vy(e){try{return e()}catch(e){}}var By=Vy((function(){return globalThis}))||Vy((function(){return window}))||Vy((function(){return self}))||Vy((function(){return global}))||Vy((function(){return Vy.constructor("return this")()})),qy=!1;function zy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qy(e,t,n){return t&&Gy(e.prototype,t),n&&Gy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}!By||Vy((function(){return"production"}))||Vy((function(){return process}))||(Object.defineProperty(By,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),qy=!0),Rm.Source,qy&&(delete By.process,qy=!1),__DEV__?Ay("boolean"==typeof $y,$y):Ay("boolean"==typeof $y,36);var Uy=function(){return"function"==typeof Symbol},Hy=function(e){return Uy()&&Boolean(Symbol[e])},Ky=function(e){return Hy(e)?Symbol[e]:"@@"+e};Uy()&&!Hy("observable")&&(Symbol.observable=Symbol("observable"));var Wy=Ky("iterator"),Yy=Ky("observable"),Xy=Ky("species");function Jy(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Zy(e){var t=e.constructor;return void 0!==t&&null===(t=t[Xy])&&(t=void 0),void 0!==t?t:cb}function eb(e){return e instanceof cb}function tb(e){tb.log?tb.log(e):setTimeout((function(){throw e}))}function nb(e){Promise.resolve().then((function(){try{e()}catch(e){tb(e)}}))}function rb(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Jy(t,"unsubscribe");n&&n.call(t)}}catch(e){tb(e)}}function ib(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function ob(e,t,n){e._state="running";var r=e._observer;try{var i=Jy(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(ib(e),!i)throw n;i.call(r,n);break;case"complete":ib(e),i&&i.call(r)}}catch(e){tb(e)}"closed"===e._state?rb(e):"running"===e._state&&(e._state="ready")}function ab(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void nb((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(ob(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void ob(e,t,n);e._queue.push({type:t,value:n})}}var sb=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new lb(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(ib(this),rb(this))},Qy(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),lb=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ab(this._subscription,"next",e)},t.error=function(e){ab(this._subscription,"error",e)},t.complete=function(){ab(this._subscription,"complete")},Qy(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),cb=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new sb(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Zy(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Zy(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Zy(this),r=arguments.length>1,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<t;r++)n[r]=arguments[r];var i=Zy(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Zy(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=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[Yy]=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=Jy(t,Yy);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return eb(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Hy("iterator")&&(r=Jy(t,Wy)))return new n((function(e){nb((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 zy(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)?zy(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){nb((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)((function(e){nb((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Qy(e,null,[{key:Xy,get:function(){return this}}]),e}();function ub(e){return null!==e&&"object"==typeof e}function db(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Ly("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Ly(41);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?Ay(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):Ay(1===r.length,42),n=r[0].name.value),Sy(Sy({},e),{definitions:Cy([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function pb(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function fb(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Ay(n,"No fragment named ".concat(e.name.value,".")):Ay(n,43),n;default:return null}}function hb(e){return{__ref:String(e)}}function mb(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function gb(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 gb(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 gb(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 __DEV__?new Ly('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new Ly(52);e[t.value]=null}}Uy()&&Object.defineProperty(cb,Symbol("extensions"),{value:{symbol:Yy,hostReportError:tb},configurable:!0});var vb=["connection","include","skip","client","rest","export"],yb=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(bb(i),")")}return n.connection.key}var o=e;if(t){var a=bb(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===vb.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(bb(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=bb;return bb=e,t}}),bb=function(e){return JSON.stringify(e,Eb)};function Eb(e,t){return ub(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function wb(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return gb(n,r,i,t)})),n}return null}function Tb(e){return e.alias?e.alias.value:e.name.value}function Sb(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(kb(o)){if("__typename"===o.name.value)return e[Tb(o)]}else{var a=Sb(e,fb(o,n).selectionSet,n);if("string"==typeof a)return a}}}function kb(e){return"Field"===e.kind}function Ob(e){return"InlineFragment"===e.kind}function xb(e){__DEV__?Ay(e&&"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'):Ay(e&&"Document"===e.kind,44);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Ly('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new Ly(45);return e}));return __DEV__?Ay(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):Ay(t.length<=1,46),e}function Cb(e){return xb(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function _b(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Nb(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Ib(e){var t=Cb(e);return __DEV__?Ay(t&&"query"===t.operation,"Must contain a query definition."):Ay(t&&"query"===t.operation,47),t}function Lb(e){var t;xb(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Ly("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Ly(51)}function Ab(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&gb(t,e.variable.name,e.defaultValue)})),t}function Db(e,t){return t?t(e):cb.of()}function Pb(e){return"function"==typeof e?new jb(e):e}function Rb(e){return e.request.length<=1}var Mb=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return Ty(t,e),t}(Error),jb=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return cb.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Pb).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=Pb(n),o=Pb(r||new e(Db));return Rb(i)&&Rb(o)?new e((function(e){return t(e)?i.request(e)||cb.of():o.request(e)||cb.of()})):new e((function(e,n){return t(e)?i.request(e,n)||cb.of():o.request(e,n)||cb.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=Sy({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=Sy(Sy({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Sy({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?_b(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Ly("illegal argument: ".concat(i)):new Ly(24)}return e}(t))))||cb.of()},e.concat=function(t,n){var r=Pb(t);if(Rb(r))return __DEV__&&Ay.warn(new Mb("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Pb(n);return Rb(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||cb.of()}))||cb.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||cb.of()}))||cb.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Db)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Ly("request is not implemented"):new Ly(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),Fb=jb.execute,$b=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Ly("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new Ly(21);throw r.parseError=e,r}return n},Vb=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Bb=Object.prototype.hasOwnProperty,qb={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},zb=function(e,t){return t(e)};function Gb(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}function Qb(e){return new cb((function(t){t.error(e)}))}var Ub=My((function(){return fetch})),Hb=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?zb:i,a=e.includeExtensions,s=e.useGETForQueries,l=e.includeUnusedVariables,c=void 0!==l&&l,u=ky(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Ly("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new Ly(20)}(r||Ub);var d={http:{includeExtensions:a},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new jb((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var l=i.clientAwareness,u=l.name,p=l.version;u&&(a["apollographql-client-name"]=u),p&&(a["apollographql-client-version"]=p)}var f,h=Sy(Sy({},a),i.headers),m={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h},g=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach((function(e){i=Sy(Sy(Sy({},i),e.options),{headers:Sy(Sy({},i.headers),Gb(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=Sy(Sy({},o),e.http)}));var a=e.operationName,s=e.extensions,l=e.variables,c=e.query,u={operationName:a,variables:l};return o.includeExtensions&&(u.extensions=s),o.includeQuery&&(u.query=t(c,Rm.print)),{options:i,body:u}}(e,o,qb,d,m),v=g.options,y=g.body;if(y.variables&&!c){var b=new Set(Object.keys(y.variables));(0,Rm.visit)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(y.variables=Sy({},y.variables),b.forEach((function(e){delete y.variables[e]})))}if(!v.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),w=E.controller,T=E.signal;(f=w)&&(v.signal=T)}if(s&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(v.method="GET"),"GET"===v.method){var S=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=$b(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=$b(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,y),k=S.newURI,O=S.parseError;if(O)return Qb(O);t=k}else try{v.body=$b(y,"Payload")}catch(O){return Qb(O)}return new cb((function(n){var i;return(r||My((function(){return fetch}))||Ub)(t,v).then((function(t){return e.setContext({response:t}),t})).then((i=e,function(e){return e.text().then((function(t){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}})).then((function(t){return e.status>=300&&Vb(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||Bb.call(t,"data")||Bb.call(t,"errors")||Vb(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()}}))}))},Kb=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Hb(t).request)||this;return n.options=t,n}return Ty(t,e),t}(jb);const{toString:Wb,hasOwnProperty:Yb}=Object.prototype,Xb=Function.prototype.toString,Jb=new Map;function Zb(e,t){try{return eE(e,t)}finally{Jb.clear()}}function eE(e,t){if(e===t)return!0;const n=Wb.call(e);if(n!==Wb.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(iE(e,t))return!0;const n=tE(e),r=tE(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!Yb.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!eE(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(iE(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!eE(o,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Xb.call(e);return n===Xb.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,rE)}}return!1}function tE(e){return Object.keys(e).filter(nE,e)}function nE(e){return void 0!==this[e]}const rE="{ [native code] }";function iE(e,t){let n=Jb.get(e);if(n){if(n.has(t))return!0}else Jb.set(e,n=new Set);return n.add(t),!1}var oE=function(){return Object.create(null)},aE=Array.prototype,sE=aE.forEach,lE=aE.slice,cE=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=oE),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return sE.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(lE.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),uE="function"==typeof WeakMap&&"ReactNative"!==My((function(){return navigator.product})),dE="function"==typeof WeakSet,pE="function"==typeof Symbol&&"function"==typeof Symbol.for;function fE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function hE(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?Ay(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):Ay(n&&1===n.length,38);var i=n[0];__DEV__?Ay(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(r," directive.")):Ay(i.name&&"if"===i.name.value,39);var o=i.value;__DEV__?Ay(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):Ay(o&&("Variable"===o.kind||"BooleanValue"===o.kind),40),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?Ay(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):Ay(void 0!==i,37)):i=r.value.value,"skip"===n.name.value?!i:i}))}function mE(e,t){return function(e){var t=[];return(0,Rm.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function gE(e){return e&&mE(["client"],e)&&mE(["export"],e)}My((function(){return window.document.createElement})),My((function(){return navigator.userAgent.indexOf("jsdom")>=0}));var vE=Object.prototype.hasOwnProperty;function yE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bE(e)}function bE(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new wE,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var EE=function(e,t,n){return this.merge(e[n],t[n])},wE=function(){function e(e){void 0===e&&(e=EE),this.reconciler=e,this.isObject=ub,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return ub(t)&&ub(e)?(Object.keys(t).forEach((function(i){if(vE.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,Cy([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return ub(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):Sy({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}(),TE=Object.prototype.hasOwnProperty;function SE(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var kE={dataIdFromObject:SE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function OE(e){var t=e.canonizeResults;return void 0===t?kE.canonizeResults:t}var xE=/^[_a-z][_0-9a-z]*/i;function CE(e){var t=e.match(xE);return t?t[0]:e}function _E(e,t,n){return!!ub(t)&&(AE(t)?t.every((function(t){return _E(e,t,n)})):e.selections.every((function(e){if(kb(e)&&hE(e,n)){var r=Tb(e);return TE.call(t,r)&&(!e.selectionSet||_E(e.selectionSet,t[r],n))}return!0})))}function NE(e){return ub(e)&&!mb(e)&&!AE(e)}var IE,LE,AE=function(e){return Array.isArray(e)},DE=function(){function e(){this.known=new(dE?WeakSet:Set),this.pool=new cE(uE),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return ub(e)&&this.known.has(e)},e.prototype.pass=function(e){if(ub(e)){var t=function(e){return ub(e)?AE(e)?e.slice(0):Sy({__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(ub(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),__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,l=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[l+t]})),__DEV__&&Object.freeze(c)}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}(),PE=Object.assign((function(e){if(ub(e)){void 0===IE&&RE();var t=IE.admit(e),n=LE.get(t);return void 0===n&&LE.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:RE});function RE(){IE=new DE,LE=new(uE?WeakMap:Map)}function ME(e,t,n){return new cb((function(r){var i=r.next,o=r.error,a=r.complete,s=0,l=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function u(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),l&&d.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:u(t,i),error:u(n,o),complete:function(){l=!0,s||a&&a.call(r)}},p=e.subscribe(d);return function(){return p.unsubscribe()}}))}function jE(e){return e.errors&&e.errors.length>0||!1}function FE(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 $E={kind:"Field",name:{kind:"Name",value:"__typename"}};function VE(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&VE(t[e.name.value],t)}))}function BE(e){return VE(Cb(e)||function(e){__DEV__?Ay("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'):Ay("Document"===e.kind,48),__DEV__?Ay(e.definitions.length<=1,"Fragment must have exactly one definition."):Ay(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?Ay("FragmentDefinition"===t.kind,"Must be a fragment definition."):Ay("FragmentDefinition"===t.kind,50),t}(e),pb(Nb(e)))?null:e}function qE(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function zE(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=BE((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(qE(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&UE(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(qE(e)(t))return null}}}));return a&&FE(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 BE((0,Rm.visit)(t,{OperationDefinition:{enter:function(t){return Sy(Sy({},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&&FE(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 BE((0,Rm.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var GE=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 kb(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(kb(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Sy(Sy({},e),{selections:Cy(Cy([],r,!0),[$E],!1)})}}}}})}),{added:function(e){return e===$E}}),QE={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&Ay.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 UE(e){var t=[];return e.selections.forEach((function(e){(kb(e)||Ob(e))&&e.selectionSet?UE(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function HE(e){if("query"===Lb(e).operation)return e;var t=(0,Rm.visit)(e,{OperationDefinition:{enter:function(e){return Sy(Sy({},e),{operation:"query"})}}});return t}var KE=new Map;function WE(e){var t=KE.get(e)||1;return KE.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function YE(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function XE(e){function t(t){Object.defineProperty(e,t,{value:cb})}return pE&&Symbol.species&&t(Symbol.species),t("@@species"),e}function JE(e){return e&&"function"==typeof e.then}var ZE=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],YE(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),YE(n.observers,"error",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?JE(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(),YE(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 cb(t)]),JE(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Ty(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}(cb);function ew(e){return Array.isArray(e)&&e.length>0}XE(ZE);var tw,nw=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="",(ew((r=u).graphQLErrors)||ew(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 Ty(t,e),t}(Error);function rw(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"}(tw||(tw={}));var iw=Object.prototype.toString;function ow(e){return aw(e)}function aw(e,t){switch(iw.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]=aw(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]=aw(e[n],t)})),r;default:return e}}var sw=Object.assign,lw=Object.hasOwnProperty,cw=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,d=i.initialFetchPolicy,p=void 0===d?"standby"===u?l:u:d;o.options=Sy(Sy({},i),{initialFetchPolicy:p,fetchPolicy:u}),o.queryId=r.queryId||n.generateQueryId();var f=Cb(o.query);return o.queryName=f&&f.name&&f.name.value,o}return Ty(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||tw.ready,r=Sy(Sy({},t),{loading:rw(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),Zb(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==tw.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=tw.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||pw(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Zb(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Zb(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&&lw.call(e,"variables")){var i=Ib(this.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&Ay.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&&!Zb(this.options.variables,e)&&(n.variables=this.options.variables=Sy(Sy({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,tw.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Sy(Sy({},e.query?e:Sy(Sy(Sy(Sy({},this.options),{query:this.query}),e),{variables:Sy(Sy({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),i=this.queryInfo,o=i.networkStatus;i.networkStatus=tw.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,tw.fetchMore).then((function(s){return t.queryManager.removeQuery(r),i.networkStatus===tw.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)||uw(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__&&Ay.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 Zb(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},tw.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__?Ay(n,"Attempted to start a polling query without a polling interval."):Ay(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(rw(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},tw.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=Sy(Sy({},this.last),{result:this.queryManager.assumeImmutableResults?e:ow(e),variables:t}),ew(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===tw.refetch||t===tw.fetchMore||t===tw.poll,i=this.options.variables,o=this.options.fetchPolicy,a=fE(this.options,e||{}),s=r?a:sw(this.options,a);r||(this.updatePolling(),e&&e.variables&&!Zb(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=tw.setVariables)));var l=s.variables&&Sy({},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),YE(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=Sy(Sy({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:tw.error,loading:!1});this.updateLastResult(n,t),YE(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}(cb);function uw(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__&&Ay.error("Unhandled error",e.message,e.stack)}function pw(e){__DEV__&&e&&__DEV__&&Ay.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}XE(cw);let fw=null;const hw={};let mw=1;function gw(e){try{return e()}catch(e){}}const vw="@wry/context:Slot",yw=gw((()=>globalThis))||gw((()=>global))||Object.create(null),bw=yw[vw]||Array[vw]||function(e){try{Object.defineProperty(yw,vw,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",mw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=fw;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===hw)break;return e!==fw&&(fw.slots[this.id]=t),!0}return fw&&(fw.slots[this.id]=hw),!1}getValue(){if(this.hasValue())return fw.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=fw;fw={parent:o,slots:i};try{return t.apply(r,n)}finally{fw=o}}static bind(e){const t=fw;return function(){const n=fw;try{return fw=t,e.apply(this,arguments)}finally{fw=n}}}static noContext(e,t,n){if(!fw)return e.apply(n,t);{const r=fw;try{return fw=null,e.apply(n,t)}finally{fw=r}}}}),{bind:Ew,noContext:ww}=bw;function Tw(){}var Sw,kw=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Tw),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}(),Ow=new bw,xw=Object.prototype.hasOwnProperty,Cw=void 0===(Sw=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Sw;function _w(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Nw=[];function Iw(e,t){if(!e)throw new Error(t||"assertion failure")}function Lw(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Aw=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&&!Rw(this))return Dw(this),this.value[0]},e.prototype.recompute=function(e){return Iw(!this.recomputing,"already recomputing"),Dw(this),Rw(this)?function(e,t){return qw(e),Ow.withValue(e,Pw,[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,Rw(e)||jw(e)}(e),Lw(e.value)}(this,e):Lw(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Mw(this),_w(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),qw(this),Fw(this,(function(t,n){t.setDirty(),zw(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Nw.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Cw(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Nw.push(this.deps),this.deps=null)},e.count=0,e}();function Dw(e){var t=Ow.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Rw(e)?$w(t,e):Vw(t,e),t}function Pw(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 Rw(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Mw(e){Fw(e,$w)}function jw(e){Fw(e,Vw)}function Fw(e,t){var n=e.parents.size;if(n)for(var r=Cw(e.parents),i=0;i<n;++i)t(r[i],e)}function $w(e,t){Iw(e.childValues.has(t)),Iw(Rw(t));var n=!Rw(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Nw.pop()||new Set;e.dirtyChildren.add(t),n&&Mw(e)}function Vw(e,t){Iw(e.childValues.has(t)),Iw(!Rw(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),Bw(e,t),Rw(e)||jw(e)}function Bw(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Nw.length<100&&Nw.push(n),e.dirtyChildren=null))}function qw(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){zw(e,n)})),e.forgetDeps(),Iw(null===e.dirtyChildren)}function zw(e,t){t.parents.delete(e),e.childValues.delete(t),Bw(e,t)}var Gw={setDirty:!0,dispose:!0,forget:!0};function Qw(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Ow.getValue();if(r){var 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){var r=t.get(e);if(r){var i=n&&xw.call(Gw,n)?n:"setDirty";Cw(r).forEach((function(e){return e[i]()})),t.delete(e),_w(r)}},r}function Uw(){var e=new cE("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Uw();var Hw=new Set;function Kw(e,t){void 0===t&&(t=Object.create(null));var n=new kw(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Uw(),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 Aw(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),Hw.add(n),Ow.hasValue()||(Hw.forEach((function(e){return e.clean()})),Hw.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 Ww=null,Yw={},Xw=1,Jw="@wry/context:Slot",Zw=Array,eT=Zw[Jw]||function(){var e=function(){function e(){this.id=["slot",Xw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Ww;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Yw)break;return e!==Ww&&(Ww.slots[this.id]=t),!0}return Ww&&(Ww.slots[this.id]=Yw),!1},e.prototype.getValue=function(){if(this.hasValue())return Ww.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Ww;Ww={parent:a,slots:o};try{return t.apply(r,n)}finally{Ww=a}},e.bind=function(e){var t=Ww;return function(){var n=Ww;try{return Ww=t,e.apply(this,arguments)}finally{Ww=n}}},e.noContext=function(e,t,n){if(!Ww)return e.apply(n,t);var r=Ww;try{return Ww=null,e.apply(n,t)}finally{Ww=r}},e}();try{Object.defineProperty(Zw,Jw,{value:Zw[Jw]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();eT.bind,eT.noContext;var tT=new eT,nT=new WeakMap;function rT(e){var t=nT.get(e);return t||nT.set(e,t={vars:new Set,dep:Qw()}),t}function iT(e){rT(e).vars.forEach((function(t){return t.forgetCache(e)}))}function oT(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){rT(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=tT.getValue();s&&(i(s),rT(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),rT(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var aT=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=yE(t.resolvers,e)})):this.resolvers=yE(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 Oy(this,void 0,void 0,(function(){return xy(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return Sy(Sy({},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 mE(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){xb(e);var t=zE([{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 kb(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Sy(Sy({},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={}),Oy(this,void 0,void 0,(function(){return xy(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Sy(Sy({},t),e.exportedVariables)}))]:[2,Sy({},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:HE(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),Oy(this,void 0,void 0,(function(){var a,s,l,c,u,d,p,f,h;return xy(this,(function(m){return a=Lb(e),s=Nb(e),l=pb(s),c=a.operation,u=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(d=this).cache,f=d.client,h={fragmentMap:l,context:Sy(Sy({},n),{cache:p,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 Oy(this,void 0,void 0,(function(){var r,i,o,a,s,l=this;return xy(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Oy(l,void 0,void 0,(function(){var s,l;return xy(this,(function(c){return hE(e,o)?kb(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Tb(e)]=t,n))}))]:(Ob(e)?s=e:(s=r[e.name.value],__DEV__?Ay(s,"No fragment named ".concat(e.name.value)):Ay(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 bE(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Oy(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,d,p=this;return xy(this,(function(f){return r=n.variables,i=e.name.value,o=Tb(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])&&(d=u[a?i:o])&&(l=Promise.resolve(tT.withValue(this.cache,d,[t,wb(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)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.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}(),sT=new(uE?WeakMap:Map);function lT(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return sT.set(e,(sT.get(e)+1)%1e15),n.apply(this,arguments)})}function cT(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var uT=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;sT.has(n)||(sT.set(n,0),lT(n,"evict"),lT(n,"modify"),lT(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||tw.loading;return this.variables&&this.networkStatus!==tw.loading&&!Zb(this.variables,e.variables)&&(t=tw.setVariables),Zb(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(){cT(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&&Zb(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||Zb(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():uw(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;cT(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(rw(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=Sy(Sy({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Zb(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===sT.get(this.cache)&&Zb(t,n.variables)&&Zb(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=ew(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(dT(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:sT.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=tw.ready},e.prototype.markError=function(e){return this.networkStatus=tw.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function dT(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!jE(e);return!r&&n&&e.data&&(r=!0),r}var pT=Object.prototype.hasOwnProperty,fT=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,d=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(uE?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=d||new aT({cache:t}),this.ssrMode=l,this.assumeImmutableResults=!!p,(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 Ly("QueryManager stopped while query was in flight"):new Ly(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,d=e.update,p=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 Oy(this,void 0,void 0,(function(){var e,t,n;return xy(this,(function(s){switch(s.label){case 0:return __DEV__?Ay(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):Ay(r,12),__DEV__?Ay("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."):Ay("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:d,keepRootFields:v}),this.broadcastQueries(),n=this,[2,new Promise((function(s,c){return ME(n.getObservableFromLink(r,Sy(Sy({},y),{optimisticResponse:o}),i,!1),(function(s){if(jE(s)&&"none"===g)throw new nw({graphQLErrors:s.errors});t&&(t.loading=!1,t.error=null);var c=Sy({},s);return"function"==typeof l&&(l=l(c)),"ignore"===g&&jE(c)&&delete c.errors,n.markMutationResult({mutationId:e,result:c,document:r,variables:i,fetchPolicy:h,errorPolicy:g,context:y,update:d,updateQueries:a,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:o?e:void 0,onQueryUpdated:p,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 nw?r:new nw({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&&dT(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&&pT.call(a,l)){var c=a[l],u=n.queries.get(o),d=u.document,p=u.variables,f=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=c(h,{mutationResult:r,queryName:d&&_b(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}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=Sy(Sy({},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(Sy(Sy({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Ay.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),zE([QE],xb(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:gE(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Ab(Cb(r)),asQuery:Sy(Sy({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Sy(Sy({},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 Sy(Sy({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Sy(Sy({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new uT(this),n=new cw({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__?Ay(e.query,"query option is required. You must specify your GraphQL document in the query option."):Ay(e.query,14),__DEV__?Ay("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Ay("Document"===e.query.kind,15),__DEV__?Ay(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Ay(!e.returnPartialData,16),__DEV__?Ay(!e.pollInterval,"pollInterval option only supported on watchQuery."):Ay(!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 Ly("Store reset while query was in flight (not completed in link chain)"):new Ly(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=tw.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):ub(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):ub(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=WE("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new cw({queryManager:t,queryInfo:i,options:Sy(Sy({},e),{fetchPolicy:"network-only"})});Ay(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&Ay.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&&(dT(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),jE(o))throw new nw({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(l);return new cb((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:_b(s)||void 0,context:this.prepareContext(Sy(Sy({},t),{forceFetch:!r}))};if(t=u.context,r){var d=l.get(s)||new Map;l.set(s,d);var p=PE(n);if(!(o=d.get(p))){var f=new ZE([Fb(c,u)]);d.set(p,o=f),f.cleanup((function(){d.delete(p)&&d.size<1&&l.delete(s)}))}}else o=new ZE([Fb(c,u)])}else o=new ZE([cb.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=ME(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 ME(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=ew(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new nw({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:tw.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors,a.networkStatus=tw.error),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new nw({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=tw.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,d=void 0===u?s&&s.errorPolicy||"none":u,p=t.returnPartialData,f=void 0!==p&&p,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:d,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 ZE(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?WE("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 uT&&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,d=t.notifyOnNetworkStatusChange,p=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||tw.loading);var a=t.result;!__DEV__||c||Zb(a,{})||pw(t.missing);var s=function(e){return cb.of(Sy({data:e,loading:rw(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===tw.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{variables:o,context:u,fetchPolicy:a,errorPolicy:l})},v=d&&"number"==typeof p&&p!==n&&rw(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 uT(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Sy(Sy({},t),{clientAwareness:this.clientAwareness})},e}();function hT(e,t){return fE(e,t,t.variables&&{variables:Sy(Sy({},e&&e.variables),t.variables)})}var mT=!1,gT=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,d=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,p=e.queryDeduplication,f=void 0===p||p,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 Kb({uri:n,credentials:r,headers:i}):jb.empty()),!o)throw __DEV__?new Ly("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 Ly(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),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!mT&&__DEV__&&(mT=!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__&&Ay.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.6.9",this.localState=new aT({cache:o,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new fT({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:f,ssrMode:s,clientAwareness:{name:E,version:w},localState:this.localState,assumeImmutableResults:g,onBroadcast:d?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=hT(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Sy(Sy({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=hT(this.defaultOptions.query,e)),__DEV__?Ay("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."):Ay("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Sy(Sy({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=hT(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 Fb(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__&&Ay.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}(),vT=function(){function e(){this.getFragmentDoc=Kw(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(Sy(Sy({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Sy(Sy({},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=ky(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=ky(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(Sy(Sy({},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(Sy(Sy({},e),{data:i})),i)}})},e}(),yT=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r};function bT(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){ub(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){ub(e[t])&&n.add(e[t])}))}))),e;var t,n}var ET=Object.create(null),wT=function(){return ET},TT=Object.create(null),ST=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 bT(mb(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return mb(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return hb(e);if(mb(e))return e;var r=n.policies.identify(e)[0];if(r){var i=hb(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Sy({},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),TE.call(this.data,e)){var n=this.data[e];if(n&&TE.call(n,t))return n[t]}return"__typename"===t&&TE.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof CT?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),TE.call(this.data,e)?this.data[e]:this instanceof CT?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;mb(e)&&(e=e.__ref),mb(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__?Ay("string"==typeof n,"store.merge expects a string ID"):Ay("string"==typeof n,1);var a=new wE(NT).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=CE(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof CT||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:ET,INVALIDATE:TT,isReference:mb,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||hb(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(l){var c=CE(l),u=r[l];if(void 0!==u){var d="function"==typeof t?t:t[l]||t[c];if(d){var p=d===wT?ET:d(bT(u),Sy(Sy({},s),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));p===TT?n.group.dirty(e,l):(p===ET&&(p=void 0),p!==u&&(i[l]=p,o=!0,u=p))}void 0!==u&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof CT?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]=wT,r):wT)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(TE.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof CT&&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){TE.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&&TE.call(e,n)||t.delete(n)})),e){var n=e.__META,r=ky(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 CT?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){TE.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 CT;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!TE.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){mb(e)&&(t[e.__ref]=!0),ub(e)&&Object.keys(e).forEach((function(t){var n=e[t];ub(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),kT=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 cE(uE)},e.prototype.depend=function(e,t){if(this.d){this.d(OT(e,t));var n=CE(t);n!==t&&this.d(OT(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(OT(e,t),"__exists"===t?"forget":"setDirty")},e}();function OT(e,t){return t+"#"+e}function xT(e,t){IT(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 kT(i))||this;return a.stump=new _T(a),a.storageTrie=new cE(uE),o&&a.replace(o),a}return Ty(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}(ST||(ST={}));var CT=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 Ty(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){Zb(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 Sy(Sy({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return TE.call(this.data,t)?Sy(Sy({},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}(ST),_T=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new kT(t.group.caching,t.group))||this}return Ty(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(CT);function NT(e,t,n){var r=e[n],i=t[n];return Zb(r,i)?r:i}function IT(e){return!!(e instanceof ST&&e.group.caching)}function LT(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var AT=function(){function e(e){var t=this;this.knownResults=new(uE?WeakMap:Map),this.config=fE(e,{addTypename:!1!==e.addTypename,canonizeResults:OE(e)}),this.canon=e.canon||new DE,this.executeSelectionSet=Kw((function(e){var n,r=e.context.canonizeResults,i=LT(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?Sy(Sy({},o),{result:t.canon.admit(o.result)}):o:(xT(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:LT,makeCacheKey:function(e,t,n,r){if(IT(n.store))return n.store.makeCacheKey(e,mb(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Kw((function(e){return xT(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(IT(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new DE},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=Sy(Sy({},Ab(Ib(n))),o);var d,p=hb(i),f=this.executeSelectionSet({selectionSet:Lb(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:u,variables:o,varString:PE(o),canonizeResults:c,fragmentMap:pb(Nb(n))}});if(f.missing&&(d=[new yT(DT(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(IT(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(mb(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=[],d=new wE;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 c&&!l.rootIdsByTypename[c]&&u.push({__typename:c});var f=new Set(n.selections);f.forEach((function(e){var n,h;if(hE(e,s))if(kb(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),g=Tb(e);void 0===m?GE.added(e)||(a=d.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(mb(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):AE(m)?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:mb(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=fb(e,o.fragmentMap);v&&l.fragmentMatches(v,c)&&v.selectionSet.selections.forEach(f.add,f)}}));var h={result:bE(u),missing:a},m=o.canonizeResults?this.canon.admit(h):bT(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 wE;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:AE(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:mb(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){ub(n)&&(__DEV__?Ay(!mb(n),"Missing selection set for object of type ".concat(function(e,t){return mb(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):Ay(!mb(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 DT(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var PT=Object.create(null);function RT(e){var t=JSON.stringify(e);return PT[t]||(PT[t]=Object.create(null))}function MT(e){var t=RT(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=FT(e,(function(e){var i=BT(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&TE.call(t,e[0])&&(i=BT(t,e,VT)),__DEV__?Ay(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):Ay(void 0!==i,2),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function jT(e){var t=RT(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=FT(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return BT(t,e)}else{var a=n.slice(1);if(i&&TE.call(i,a)){var s=e.slice(0);return s[0]=a,BT(i,s)}}else if(r&&ew(r.directives)){var l=n.slice(1),c=r.directives.find((function(e){return e.name.value===l})),u=c&&wb(c,i);return u&&BT(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function FT(e,t){var n=new wE;return $T(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 $T(e){var t=RT(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){AE(t)?($T(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),AE(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function VT(e,t){return e[t]}function BT(e,t,n){return n=n||VT,qT(t.reduce((function e(t,r){return AE(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function qT(e){return ub(e)?AE(e)?e.map(qT):FT(Object.keys(e).sort(),(function(t){return BT(e,t)})):e}function zT(e){return void 0!==e.args?e.args:e.field?wb(e.field,e.variables):null}yb.setStringify(PE);var GT=function(){},QT=function(e,t){return t.fieldName},UT=function(e,t,n){return(0,n.mergeObjects)(e,t)},HT=function(e,t){return t},KT=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=Sy({dataIdFromObject:SE},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=Sy(Sy({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=YT(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(!AE(u)){o=u;break}c=MT(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=ky(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),TE.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?UT:!1===t?HT:e.merge}a(r,t.merge),r.keyFn=!1===i?GT:AE(i)?MT(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?QT:AE(s)?jT(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||QT)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Ay(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):Ay(!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(xE);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!TE.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=ky(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,d=0;d<s.length;++d){var p=s[d];if(p.has(o))return a.has(o)||(u&&__DEV__&&Ay.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;p.forEach(l),c&&d===s.length-1&&_E(e.selectionSet,n,r)&&(c=!1,u=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=zT(e);o;){var l=o(s,a);if(!AE(l)){t=l||r;break}o=jT(l)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return gb(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return gb(r,n,i,t)}))),yb(e.name.value,r,n)}(e.field,e.variables):yb(r,zT(e))),!1===t?r:r===CE(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=CE(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var c=WT(this,n,e,t,t.store.getStorage(mb(n)?n.__ref:n,i));return tT.withValue(this.cache,l,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===UT?XT(r.store)(e,t):s===HT?t:(r.overwrite&&(e=void 0),s(e,t,WT(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function WT(e,t,n,r,i){var o=e.getStoreFieldName(n),a=CE(o),s=n.variables||r.variables,l=r.store,c=l.toReference,u=l.canRead;return{args:zT(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:mb,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(YT(arguments,t,s),r)},mergeObjects:XT(r.store)}}function YT(e,t,n){var r,i,o,a=e[0],s=e[1],l=e.length;return"string"==typeof a?r={fieldName:a,from:l>1?s:t}:(r=Sy({},a),TE.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&Ay.warn("Undefined 'from' passed to readField with arguments ".concat((i=Array.from(e),o=WE("stringifyForDisplay"),JSON.stringify(i,(function(e,t){return void 0===t?o:t})).split(JSON.stringify(o)).join("<undefined>")))),void 0===r.variables&&(r.variables=n),r}function XT(e){return function(t,n){if(AE(t)||AE(n))throw __DEV__?new Ly("Cannot automatically merge arrays"):new Ly(4);if(ub(t)&&ub(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(mb(t)&&NE(n))return e.merge(t.__ref,n),t;if(NE(t)&&mb(n))return e.merge(t,n.__ref),n;if(NE(t)&&NE(n))return Sy(Sy({},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:Sy(Sy({},e),{clientOnly:t,deferred:n})),i}var ZT=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=Cb(r),c=new wE;a=Sy(Sy({},Ab(l)),a);var u={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:PE(a),fragmentMap:pb(Nb(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!mb(d))throw __DEV__?new Ly("Could not identify object ".concat(JSON.stringify(i))):new Ly(6);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=hb(r);if(o&&o.map.size){var l=n.applyMerges(o,s,i,u);if(mb(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[CE(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&&!mb(o)&&!Zb(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=CE(n),c="".concat(s,".").concat(l);if(!oS.has(c)){oS.add(c);var u=[];AE(o)||AE(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)})),__DEV__&&Ay.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(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,l=Object.create(null),c=n&&s.rootTypenamesById[n]||Sb(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof c&&(l.__typename=c);var u=function(){var e=YT(arguments,l,o.variables);if(mb(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(Sy(Sy({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},d=new Set;this.flattenFields(i,r,o,c).forEach((function(e,n){var i,o=Tb(n),p=r[o];if(d.add(n),void 0!==p){var f=s.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),h=tS(a,f),m=t.processFieldValue(p,n,n.selectionSet?JT(e,!1,!1):e,h),g=void 0;n.selectionSet&&(mb(m)||NE(m))&&(g=u("__typename",m));var v=s.getMergeFunction(c,n.name.value,g);v?h.info={field:n,typename:c,merge:v}:iS(a,f),l=e.merge(l,((i={})[f]=m,i))}else!__DEV__||e.clientOnly||e.deferred||GE.added(n)||s.getReadFunction(c,n.name.value)||__DEV__&&Ay.error("Missing field '".concat(Tb(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var p=s.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:l,readField:u}),f=p[0],h=p[1];n=n||f,h&&(l=o.merge(l,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=hb(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=nS(v.mergeTree,a),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:l,mergeTree:rS(a)?void 0:a,fieldNodeSet:d}),m}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?AE(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,tS(r,o));return iS(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ow(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Sb(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new cE(!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(hE(a,n.variables)){var s=l.clientOnly,c=l.deferred;if(s&&c||!ew(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=wb(e,n.variables);r&&!1===r.if||(c=!0)}})),kb(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,c=c&&u.deferred),i.set(a,JT(n,s,c))}else{var d=fb(a,n.fragmentMap);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,JT(n,s,c))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!mb(n)){var s,l=AE(n)||!mb(t)&&!NE(t)?void 0:t,c=n;l&&!i&&(i=[mb(l)?l.__ref:l]);var u=function(e,t){return AE(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 d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),i&&Ay(i.pop()===t)}})),s&&(n=AE(c)?c.slice(0):Sy({},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}(),eS=[];function tS(e,t){var n=e.map;return n.has(t)||n.set(t,eS.pop()||{map:new Map}),n.get(t)}function nS(e,t){if(e===t||!t||rS(t))return e;if(!e||rS(e))return t;var n=e.info&&t.info?Sy(Sy({},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,nS(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,nS(t.map.get(n),e.map.get(n)))}))}return i}function rS(e){return!e||!(e.info||e.map.size)}function iS(e,t){var n=e.map,r=n.get(t);r&&rS(r)&&(eS.push(r),n.delete(t))}var oS=new Set,aS=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=oT,n.txCount=0,n.config=function(e){return fE(kE,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new KT({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Ty(t,e),t.prototype.init=function(){var e=this.data=new ST.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 ZT(this,this.storeReader=new AT({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:OE(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Kw((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(IT(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,PE({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(Sy(Sy({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof yT)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(TE.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(Sy(Sy({},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||rT(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&&iT(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){PE.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(mb(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&Ay.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(TE.call(e,"id"))return!1;e=Sy(Sy({},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(),PE.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),iT(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(Sy(Sy({},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(Sy(Sy({},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=GE(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&&Zb(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(vT);const sS=e=>new gT({uri:e,connectToDevTools:!0,cache:new aS({})});var lS=new Map,cS=new Map,uS=!0,dS=!1;function pS(e){return e.replace(/[\s,]+/g," ").trim()}function fS(e){var t,n,r,i=pS(e);if(!lS.has(i)){var o=(0,Rm.parse)(e,{experimentalFragmentVariables:dS,allowLegacyFragmentVariables:dS});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");lS.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=pS((a=e.loc).source.body.substring(a.start,a.end)),o=cS.get(t);o&&!o.has(i)?uS&&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||cS.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a})),Sy(Sy({},t),{definitions:r}))))}return lS.get(i)}function hS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),fS(r)}var mS,gS=hS;(mS=hS||(hS={})).gql=gS,mS.resetCaches=function(){lS.clear(),cS.clear()},mS.disableFragmentWarnings=function(){uS=!1},mS.enableExperimentalFragmentVariables=function(){dS=!0},mS.disableExperimentalFragmentVariables=function(){dS=!1},hS.default=hS;const vS=hS,{useAppContext:yS,GraphQL:bS}=wpGraphiQL,{getIntrospectionQuery:ES,buildClientSchema:wS}=bS,{Sider:TS}=xi,SS=Id.div`
   .graphiql-app-screen-sider .ant-layout-sider-trigger {
     position: relative;
   }
   border: 0;
   width: 100%;
-`,xS=e=>{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:o}=e,[a,s]=(0,r.useState)(!0);return(0,im.jsx)(SS,{id:"graphiql-router-sider","data-testid":"graphiql-router-sider",className:"graphiql-app-screen-sider",collapsible:!0,defaultCollapsed:a,collapsed:a,trigger:(0,im.jsx)("span",{"data-testid":"router-menu-collapse-trigger",children:a?(0,im.jsx)(rt,{}):(0,im.jsx)(at,{})}),onCollapse:()=>{s(!a)},children:(0,im.jsx)(ru,{theme:"dark",mode:"inline",selectedKeys:i,activeKey:i,items:(()=>{let e=[];return o&&o.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})()})})},OS=(CS={screen:(IS=lm,LS="graphiql",void 0===AS&&(AS=!0),sm(sm({},IS),{decode:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=IS.decode.apply(IS,e);return void 0===n||AS&&null===n?LS:n}}))},NS=function(e){var t=xm(CS),n=t[0],r=t[1];return o.createElement(_S,Om({query:n,setQuery:r},e))},NS.displayName="withQueryParams("+((_S=e=>{const[t,n]=km({screen:lm}),{endpoint:i,schema:o,setSchema:a,setSchemaLoading:s}=bS(),{screen:l}=t,[c,u]=(0,r.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,im.jsx)(Xe,{}),render:()=>(0,im.jsx)(wy,{})},{id:"help",title:"Help",icon:(0,im.jsx)(et,{}),render:()=>(0,im.jsx)(am,{})}],t=Ld.J.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,r.useEffect)((()=>{if(null!==o)return;const e=wS();s(!0),lS(i).query({query:yS`
+`,kS=e=>{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:a}=e,[s,l]=(0,o.useState)(!0);return(0,r.createElement)(TS,{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)(rt,null):(0,r.createElement)(at,null)),onCollapse:()=>{l(!s)}},(0,r.createElement)(ru,{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})()}))},OS=(xS={screen:(NS=sm,IS="graphiql",void 0===LS&&(LS=!0),am(am({},NS),{decode:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=NS.decode.apply(NS,e);return void 0===n||LS&&null===n?IS:n}}))},_S=function(e){var t=km(xS),n=t[0],i=t[1];return r.createElement(CS,Om({query:n,setQuery:i},e))},_S.displayName="withQueryParams("+((CS=e=>{const[t,n]=Sm({screen:sm}),{endpoint:i,schema:a,setSchema:s,setSchemaLoading:l}=yS(),{screen:c}=t,[u,d]=(0,o.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,r.createElement)(Xe,null),render:()=>(0,r.createElement)(Ey,null)},{id:"help",title:"Help",icon:(0,r.createElement)(et,null),render:()=>(0,r.createElement)(om,null)}],t=Ld.J.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,o.useEffect)((()=>{if(null!==a)return;const e=ES();l(!0),sS(i).query({query:vS`
           ${e}
-        `}).then((e=>{const t=e?.data?TS(e.data):null;t!==o&&a(t),s(!1)}),(e=>{console.error(`Failure running getIntrospectionQuery: ${JSON.stringify(e,null,2)}`),s(!1)}))}),[i]);const[d,p]=(0,r.useState)((()=>{const e=c&&c.find((e=>e.id===l));return e?e.id:"graphiql"})());return d?(0,im.jsx)(kS,{"data-testid":"graphiql-router",children:(0,im.jsxs)(Oi,{style:{height:"calc(100vh - 32px)",width:"100%"},children:[(0,im.jsx)(xS,{setQueryParams:n,setCurrentScreen:p,currentScreen:d,screens:c}),(0,im.jsx)(Oi,{className:"screen-layout",style:{background:"#fff"},children:(e=>{const t=null!==(n=c.find((e=>e.id===d)))&&void 0!==n?n:c[0];var n;return t?(0,im.jsx)(Oi,{className:"router-screen","data-testid":`router-screen-${t.id}`,children:t?.render(e)}):null})(e)})]})}):null}).displayName||_S.name||"Component")+")",NS);var CS,_S,NS,IS,LS,AS,DS=n(4291),jS=fE?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",PS=function(e){var t,n=e.client,r=e.children,i=((t=o.createContext[jS])||(Object.defineProperty(o.createContext,jS,{value:t=o.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t);return o.createElement(i.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),o.createElement(i.Provider,{value:e},r)}))};const{hooks:RS,AppContextProvider:MS,useAppContext:FS}=window.wpGraphiQL,$S=()=>{const e=FS();return RS.applyFilters("graphiql_app",(0,im.jsx)(OS,{}),{appContext:e})},VS={push:e=>{history.replaceState(null,null,e.href)},replace:e=>{history.replaceState(null,null,e.href)}},BS=()=>{const e=RS.applyFilters("graphiql_query_params_provider_config",{query:lm,variables:lm}),[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(!t){const e=document.getElementById("graphiql");e&&e.classList.remove("graphiql-container"),RS.doAction("graphiql_rendered"),n(!0)}}),[]),t?(0,im.jsx)(Pm,{history:VS,children:(0,im.jsx)(Lm,{config:e,children:e=>{const{query:t,setQuery:n}=e;return(0,im.jsx)(MS,{queryParams:t,setQueryParams:n,children:(0,im.jsx)(PS,{client:lS((0,DS.yP)()),children:(0,im.jsx)($S,{})})})}})}):null};(0,r.render)((0,im.jsx)(BS,{}),document.getElementById("graphiql"))},4291:(e,t,n)=>{"use strict";n.d(t,{QG:()=>c,Us:()=>s,yP:()=>l});var r=n(6087),i=n(3408),o=n(790);const a=(0,r.createContext)(),s=()=>(0,r.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,r.useState)(null),[u,d]=(0,r.useState)(!0),[p,f]=(0,r.useState)(null!==(h=window?.wpGraphiQLSettings?.nonce)&&void 0!==h?h:null);var h;const[m,g]=(0,r.useState)(l()),[v,y]=(0,r.useState)(n);let b={endpoint:m,setEndpoint:g,nonce:p,setNonce:f,schema:s,setSchema:c,schemaLoading:u,setSchemaLoading:d,queryParams:v,setQueryParams:e=>{y(e),t(e)}},E=i.J.applyFilters("graphiql_app_context",b);return(0,o.jsx)(a.Provider,{value:E,children: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(8563);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)&&(d(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,": "),d(e,t,n,r)}function d(e,t,n,r){r instanceof i.GraphQLNonNull?(d(e,t,n,r.ofType),f(e,"!")):r instanceof i.GraphQLList?(f(e,"["),d(e,t,n,r.ofType),f(e,"]")):f(e,(null==r?void 0:r.name)||"","type-name",n,(0,s.getTypeReference)(t,r))}function p(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),p(n,t,h.fieldDef),n):"Directive"===i&&1===o&&h.directiveDef?(c(n=document.createElement("div"),h,t),p(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),p(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)||"";d(e,t,n,t.inputType),f(e,"."),f(e,i,"enum-value",n,(0,s.getEnumValueReference)(t))}(n=document.createElement("div"),h,t),p(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(d(n=document.createElement("div"),h,t,h.type),p(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(8563),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(8563);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<n.argDefs.length;l++)if(n.argDefs[l].name===t.name){n.argDef=n.argDefs[l];break}n.inputType=null===(o=n.argDef)||void 0===o?void 0:o.type;break;case"EnumValue":var c=n.inputType?(0,i.getNamedType)(n.inputType):null;n.enumValue=c instanceof i.GraphQLEnumType?function(e){for(var n=0;n<e.length;n++)if(e[n].value===t.name)return e[n]}(c.getValues()):null;break;case"ListValue":var u=n.inputType?(0,i.getNullableType)(n.inputType):null;n.inputType=u instanceof i.GraphQLList?u.ofType:null;break;case"ObjectValue":var d=n.inputType?(0,i.getNamedType)(n.inputType):null;n.objectFieldDefs=d instanceof i.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":var p=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==p?void 0:p.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}},364:(e,t)=>{"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,d=Math.max(0,window.innerWidth-s-15);d>t.left&&(d=t.left),r.style.opacity="1",r.style.top=c+"px",r.style.left=d+"px";var p=function(){clearTimeout(u)},f=function(){clearTimeout(u),u=setTimeout(h,200)},h=function(){i.default.off(r,"mouseover",p),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",p),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 d(){var e=o,t=[];if(m("{"),!y("}")){do{t.push(p())}while(y(","));m("}")}return{kind:"Object",start:e,end:s,members:t}}function p(){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 d();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=d();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 a<i&&(a++,l=a===i?0:r.charCodeAt(a)),l}function E(){for(s=a;9===l||10===l||13===l||32===l;)b();if(0!==l){switch(o=a,l){case 34:return c="String",function(){for(b();34!==l&&l>31;)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(8563),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 d=Object.keys(c);return(0,s.default)(e,t,d.map((function(e){return{text:'"'.concat(e,'": '),type:c[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===l)&&u.fields){var p=Object.keys(u.fields).map((function(e){return u.fields[e]}));return(0,s.default)(e,t,p.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 d(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.')]]:d(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 d(n,e)})):d(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?d(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 p(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[p(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?d(s,n.value).forEach((function(t){var n=a(t,2),i=n[0],o=n[1];r.push(p(e,i,o))})):r.push(p(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(8563);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,d=a(u,e),p=u.getLine(e.line);if(null!=p&&(l=e,c=p,!/\bstring\b/.test(u.getTokenTypeAt(r(l.line,0)))||/^[\'\"\`]/.test(c))){var f=s.lineComment||d.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;i<h;++i){var a=-1===(l=u.getLine(i)).search(n)?l:l.slice(0,o(l));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<h;++i){var l=u.getLine(i),c=t.length;(g||n.test(l))&&(l.slice(0,c)!=t&&(c=o(l)),u.replaceRange(t+f+m,r(i,0),r(i,c)))}}else for(i=e.line;i<h;++i)(g||n.test(u.getLine(i)))&&u.replaceRange(f+m,r(i,0))}))}else(s.blockCommentStart||d.blockCommentStart)&&(s.fullLines=!0,u.blockComment(e,i,s))}})),e.defineExtension("blockComment",(function(e,o,s){s||(s=t);var l=this,c=a(l,e),u=s.blockCommentStart||c.blockCommentStart,d=s.blockCommentEnd||c.blockCommentEnd;if(u&&d){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(e.line,0)))){var p=Math.min(o.line,l.lastLine());p!=e.line&&0==o.ch&&n.test(l.getLine(p))&&--p;var f=null==s.padding?" ":s.padding;e.line>p||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(p));l.replaceRange(f+d,r(p)),l.replaceRange(u+f,r(e.line,0));var a=s.blockCommentLead||c.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=p;++h)(h!=p||t)&&l.replaceRange(a+f,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(d,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()),d=Math.min(e.line,u),p=o.lineComment||c.lineComment,f=[],h=null==o.padding?" ":o.padding;e:if(p){for(var m=d;m<=u;++m){var g=l.getLine(m),v=g.indexOf(p);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=d;e<=u;++e){var t=f[e-d],n=t.indexOf(p),i=n+p.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(d),T=w.indexOf(y);if(-1==T)return!1;var S=u==d?w:l.getLine(u),k=S.indexOf(b,u==d?T+y.length:0),x=r(d,T+1),O=r(u,k+1);if(-1==k||!/comment/.test(l.getTokenTypeAt(x))||!/comment/.test(l.getTokenTypeAt(O))||l.getRange(x,O,"\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(d,T),r(d,e)),E)for(var t=d+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)d.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,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,c)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,c)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),c()),13==t.keyCode&&i(d.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 d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var p=0;p<s.length;++p){var f=s[p];!function(t){e.on(f,"click",(function(n){e.e_preventDefault(n),d(),t&&t(c)}))}(i[p]),e.on(f,"blur",(function(){--u,setTimeout((function(){u<=0&&d()}),200)})),e.on(f,"focus",(function(){++u}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),l&&(o=setTimeout(c,l)),c}))}(n(5237))},5218:(e,t,n)=>{!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<a.length;l++){if(!a[l].empty())return e.Pass;var c=u(t,a[l].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var d=a[l].head;t.replaceRange("",n(d.line,d.ch-1),n(d.line,d.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;a<o.length;a++){if(!o[a].empty())return e.Pass;var c=u(t,o[a].head);if(!c||i.indexOf(c)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),l(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),u=a.indexOf(i);if(-1==u)return e.Pass;for(var p,f=r(o,"closeBefore"),h=r(o,"triples"),m=a.charAt(u+1)==i,g=t.listSelections(),v=u%2==0,y=0;y<g.length;y++){var b,E=g[y],w=E.head,T=t.getRange(w,n(w.line,w.ch+1));if(v&&!E.empty())b="surround";else if(!m&&v||T!=i)if(m&&w.ch>1&&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&&d(t,w)?"both":h.indexOf(i)>=0&&t.getRange(w,n(w.line,w.ch+3))==i+i+i?"skipThree":"skip";if(p){if(p!=b)return e.Pass}else p=b}var k=u%2?a.charAt(u-1):i,x=u%2?i:a.charAt(u+1);t.operation((function(){if("skip"==p)l(t,1);else if("skipThree"==p)l(t,3);else if("surround"==p){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=k+e[n]+x;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=c(e[n]);t.setSelections(e)}else"both"==p?(t.replaceSelection(k+x,null),t.triggerElectric(k+x),l(t,-1)):"addFour"==p&&(t.replaceSelection(k+k+k+k,"before"),l(t,1))}))}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{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 d(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),d=!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(!d)return null;var p=">"==d.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(p>0?1:0)),p,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:p>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=i(s),p=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),f=t.line;f!=p;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(d.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<c.length;u++){var d=c[u].empty()&&o(e,c[u].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var p=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:p})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:p}))}}if(l.length){t&&e.state.focused&&e.focus();var f=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return f;setTimeout(f,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(5237))},795:(e,t,n)=>{!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&&c<r.ch)break;if(a=n.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(a))return{ch:c+1,tokenType:a,pair:t};s=c-1}else{if(1==l)break;l=1,s=o.length}}}function s(t){var r,o,a=1,s=n.lastLine(),l=t.ch;e:for(var c=i;c<=s;++c)for(var u=n.getLine(c),d=c==i?l:0;;){var p=u.indexOf(t.pair[0],d),f=u.indexOf(t.pair[1],d);if(p<0&&(p=u.length),f<0&&(f=u.length),(d=Math.min(p,f))==u.length)break;if(n.getTokenTypeAt(e.Pos(c,d+1))==t.tokenType)if(d==p)++a;else if(! --a){r=c,o=d;break e}++d}return null==r||i==r?null:{from:e.Pos(i,l),to:e.Pos(r,o)}}for(var l=[],c=0;c<t.length;c++){var u=a(t[c]);u&&l.push(u)}for(l.sort((function(e,t){return e.ch-t.ch})),c=0;c<l.length;c++){var d=s(l[c]);if(d)return d}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.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(n<t.firstLine()||n>t.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.line<s)return null;if("fold"===o)return r;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var c=l(!0);if(r(t,i,"scanUp"))for(;!c&&n.line>t.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){d.clear(),e.e_preventDefault(t)}));var d=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.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<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))}(n(5237))},1274:(e,t,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",d),t.off("fold",p),t.off("unfold",p),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",d),t.on("fold",p),t.on("unfold",p),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<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,l=n-1,c=e.foldOption(s,"minFoldSize"),u=e.foldOption(s,"rangeFinder"),d="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),p="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++l;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,l)){if(d&&a&&d.test(a.className))return;o=i(s.indicatorFolded)}else{var f=t(l,0),h=u&&u(e,f);if(h&&h.to.line-h.from.line>=c){if(p&&a&&p.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 d(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.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(5237),n(8948))},9751:(e,t,n)=>{!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;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new n(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var r=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e){return"string"==typeof e?e:e.text}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(n,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=r,this.picked=!1;var i=this,s=n.cm,l=s.getInputField().ownerDocument,c=l.defaultView||l.parentWindow,u=this.hints=l.createElement("ul");u.setAttribute("role","listbox"),u.setAttribute("aria-expanded","true"),u.id=this.id;var d=n.cm.options.theme;u.className="CodeMirror-hints "+d,this.selectedHint=r.selectedHint||0;for(var p=r.list,f=0;f<p.length;++f){var h=u.appendChild(l.createElement("li")),m=p[f],g="CodeMirror-hint"+(f!=this.selectedHint?"":" "+t);null!=m.className&&(g=m.className+" "+g),h.className=g,f==this.selectedHint&&h.setAttribute("aria-selected","true"),h.id=this.id+"-"+f,h.setAttribute("role","option"),m.render?m.render(h,r,m):h.appendChild(l.createTextNode(m.displayText||o(m))),h.hintId=f}var v=n.options.container||l.body,y=s.cursorCoords(n.options.alignWithWord?r.from:null),b=y.left,E=y.bottom,w=!0,T=0,S=0;if(v!==l.body){var k=-1!==["absolute","relative","fixed"].indexOf(c.getComputedStyle(v).position)?v:v.offsetParent,x=k.getBoundingClientRect(),O=l.body.getBoundingClientRect();T=x.left-O.left-k.scrollLeft,S=x.top-O.top-k.scrollTop}u.style.left=b-T+"px",u.style.top=E-S+"px";var C=c.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),_=c.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);v.appendChild(u),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var N,I=n.options.moveOnOverlap?u.getBoundingClientRect():new DOMRect,L=!!n.options.paddingForScrollbar&&u.scrollHeight>u.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.top<D?(A>D&&(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 j,P=I.right-C;if(L&&(P+=s.display.nativeBarWidth),P>0&&(I.right-I.left>C&&(u.style.width=C-5+"px",P-=I.right-I.left-C),u.style.left=(b=Math.max(y.left-P-T,0))+"px"),L)for(var R=u.firstChild;R;R=R.nextSibling)R.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:p.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){j=setTimeout((function(){n.close()}),100)}),s.on("focus",this.onFocus=function(){clearTimeout(j)})),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 M=this.getSelectedHintRange();return 0===M.from&&0===M.to||this.scrollToActive(),e.signal(r,"select",p[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<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=r((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;l(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new s(this,t),e.signal(t,"shown")))}},s.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(n,r){if(n>=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.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.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;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);l(r[o],e,n,(function(e){e&&e.list.length>0?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<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,r.length)==r&&l.push(u)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var c={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,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";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,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,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(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 i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);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 i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),c=[],u=0;u<s.length;++u){var d=s[u].__annotation;d&&c.push(d)}c.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a];o.appendChild(l(s))}r(e,n,o,i)}(e,c,t)}}(e,t)},this.waitingFor=0}var o={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function a(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&function(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function s(t,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",(function(e){r(t,e,n,l)})),s}function l(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function c(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)!function(t,n){var r=t.state.lint,i=++r.waitingFor;function o(){i=-1,t.off("change",o)}t.on("change",o),n(t.getValue(),(function(n,a){t.off("change",o),r.waitingFor==i&&(a&&n instanceof e&&(n=a),t.operation((function(){u(t,n)})))}),r.linterOptions,t)}(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){u(t,e)}))})):t.operation((function(){u(t,o)}))}}}function u(e,n){var r,i,o=e.state.lint;if(o){var c=o.options;a(e);for(var u=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),d=0;d<u.length;++d){var p=u[d];if(p){for(var f=null,h=o.hasGutter&&document.createDocumentFragment(),m=0;m<p.length;++m){var g=p[m],v=g.severity;v||(v="error"),i=v,f="error"==(r=f)?r:i,c.formatAnnotation&&(g=c.formatAnnotation(g)),o.hasGutter&&h.appendChild(l(g)),g.to&&o.marked.push(e.markText(g.from,g.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+v,__annotation:g}))}o.hasGutter&&e.setGutterMarker(d,t,s(e,h,f,p.length>1,c.tooltips)),c.highlightLines&&e.addLineClass(d,"wrap","CodeMirror-lint-line-"+f)}}c.onUpdateLinting&&c.onUpdateLinting(n,u,e)}}function d(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){c(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,r,o){if(o&&o!=e.Init&&(a(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 s=n.getOption("gutters"),l=!1,u=0;u<s.length;++u)s[u]==t&&(l=!0);var p=n.state.lint=new i(n,r,l);p.options.lintOnChange&&n.on("change",d),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),c(n)}})),e.defineExtension("performLint",(function(){c(this)}))}(n(5237))},8820:(e,t,n)=>{!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:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(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 p=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),p&&(p.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&&((p=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(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 d(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 p(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function f(e){var t=p("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),p("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return t.setAttribute("for","CodeMirror-search-field"),p("",null,t," ",p("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function h(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function m(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l=t?e.phrase("Replace all:"):e.phrase("Replace:"),c=p("",null,p("span",{className:"CodeMirror-search-label"},l),function(e){return p("",null," ",p("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",p("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}(e));o(e,c,l,r,(function(n){n&&(n=s(n),o(e,function(e){return p("",null,p("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",p("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)h(e,n,r);else{d(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return p("",null,p("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",p("button",{},e.phrase("Yes"))," ",p("button",{},e.phrase("No"))," ",p("button",{},e.phrase("All"))," ",p("button",{},e.phrase("Stop")))}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){h(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){d(e),c(e)},e.commands.findPersistent=function(e){d(e),c(e,!1,!0)},e.commands.findPersistentNext=function(e){c(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){c(e,!0,!0,!0)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=d,e.commands.replace=m,e.commands.replaceAll=function(e){m(e,!0)}}(n(5237),n(3653),n(8527))},3653:(e,t,n)=>{!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;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),c=t.exec(l);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,c=n.line,u=e.lastLine();c<=u;){for(var d=0;d<l&&!(c>u);d++){var p=e.getLine(c++);s=null==s?p:s+"\n"+p}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,d=n.line,p=e.firstLine();d>=p;){for(var f=0;f<s&&d>=p;f++){var h=e.getLine(d--);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=d+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 d(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 p(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,p=e.lastLine()+1-l.length;c<=p;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=d(f,h,m,s)+u,{from:r(c,d(f,h,m,s)+u),to:r(c,d(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<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),b=s(y),E=l[l.length-1];if(b.slice(0,E.length)==E)return{from:r(c,d(f,h,g,s)+u),to:r(c+l.length-1,d(y,b,E.length,s))}}}}function f(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,p=e.firstLine()-1+l.length;c>=p;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,d(f,h,m,s)),to:r(c,d(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<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(c,d(f,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?f:p)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?c:a)(e,t,r)}:this.matches=function(n,r){return(n?u:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(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,d=0;c!=u;c+=i,d++){var p=o.charAt(i<0?c-1:c),f="_"!=p&&e.isWordChar(p)?"w":"o";if("w"==f&&p.toUpperCase()==p&&(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<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=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;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.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<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),c=a?new RegExp("\\b"+l+"\\b"):l,u=t.getSearchCursor(c,i),d=u.findNext();if(d||(d=(u=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),u.from(),u.to()))return;t.addSelection(u.from(),u.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,c=t.scanForBracket(l,-1);if(!c)return!1;for(;;){var u=t.scanForBracket(l,1);if(!u)return!1;if(u.ch==s.charAt(s.indexOf(c.ch)+1)){var d=n(c.pos.line,c.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:d,head:u.pos});break}if(!(c=t.scanForBracket(c.pos,-1)))return!1}l=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function c(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function u(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l];if(!c.empty()){for(var u=c.from().line,d=c.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(u,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],c=s[a+1],u=n(l,0),d=n(c),p=t.getRange(u,d,!1);r?p.sort((function(e,t){return e<t?-i:e==t?0:i})):p.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(p,u,d),o&&e.push({anchor:u,head:n(c+1,0)})}o&&t.setSelections(e,0)}))}function d(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(c=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(c.from(),c.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=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 p(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=p(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;s<r.length;s++){var l=r[s],c=l.from().line-1,u=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--u,c>o?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.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<o?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=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<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),c=s.start;c<=s.end;c++){var u=c-t;c==s.end&&(a=n(u,e.getLine(u).length+1)),u<e.lastLine()&&(e.replaceRange(" ",n(u),n(u+1,/^\s*/.exec(e.getLine(u+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){u(e,!0,1)},t.reverseSortLines=function(e){u(e,!0,-1)},t.sortLinesInsensitive=function(e){u(e,!1,1)},t.reverseSortLinesInsensitive=function(e){u(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=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){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(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=p(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),d=u&&+u[1],p=/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=p&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(p=!1,l=!0);var S=b&&(c||p&&(null==T||T<12.11)),k=n||a&&s>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var O,C=function(e,t){var n=e.className,r=x(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.length;++o)i.appendChild(t[o]);return i}function L(e,t,n,r){var i=I(e,t,n,r);return i.setAttribute("role","presentation"),i}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function j(e,t){var n=e.className;x(t).test(n)||(e.className+=(n?" ":"")+t)}function P(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!x(n[r]).test(t)&&(t+=" "+n[r]);return t}O=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var R=function(e){e.select()};function M(e){return e.display.wrapper.ownerDocument}function F(e){return $(e.display.wrapper)}function $(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function V(e){return M(e).defaultView}function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function q(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function z(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=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<e.length;++n)if(e[n]==t)return n;return-1}G.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},G.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},K={origin:"*mouse"},W={origin:"+move"};function Y(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function J(e){for(;X.length<=e;)X.push(Z(X)+" ");return X[e]}function Z(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&q(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-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 pe(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)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 fe=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,d=[],p=0;p<u;++p)d.push((l=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var f=0,h=c;f<u;++f){var m=d[f];"m"==m?d[f]=h:h=m}for(var g=0,v=c;g<u;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":n.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,E=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==E&&"1"==d[b+1]?d[b]="1":","!=w||E!=d[b+1]||"1"!=E&&"n"!=E||(d[b]=E),E=w}for(var T=0;T<u;++T){var S=d[T];if(","==S)d[T]="N";else if("%"==S){var k=void 0;for(k=T+1;k<u&&"%"==d[k];++k);for(var x=T&&"!"==d[T-1]||k<u&&"1"==d[k]?"1":"N",O=T;O<k;++O)d[O]=x;T=k-1}}for(var C=0,_=c;C<u;++C){var N=d[C];"L"==_&&"1"==N?d[C]="L":n.test(N)&&(_=N)}for(var I=0;I<u;++I)if(t.test(d[I])){var L=void 0;for(L=I+1;L<u&&t.test(d[L]);++L);for(var A="L"==(I?d[I-1]:c),D=A==("L"==(L<u?d[L]:c))?A?"L":"R":c,j=I;j<L;++j)d[j]=D;I=L-1}for(var P,R=[],M=0;M<u;)if(r.test(d[M])){var F=M;for(++M;M<u&&r.test(d[M]);++M);R.push(new o(0,F,M))}else{var $=M,V=R.length,B="rtl"==s?1:0;for(++M;M<u&&"L"!=d[M];++M);for(var q=$;q<M;)if(i.test(d[q])){$<q&&(R.splice(V,0,new o(1,$,q)),V+=B);var z=q;for(++q;q<M&&i.test(d[q]);++q);R.splice(V,0,new o(2,z,q)),V+=B,$=q}else++q;$<M&&R.splice(V,0,new o(1,$,M))}return"ltr"==s&&(1==R[0].level&&(P=a.match(/^\s+/))&&(R[0].from=P[0].length,R.unshift(new o(0,0,P[0].length))),1==Z(R).level&&(P=a.match(/\s+$/))&&(Z(R).to-=P[0].length,R.push(new o(0,u-P[0].length,u)))),"rtl"==s?R.reverse():R}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var me=[],ge=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||me).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||me}function ye(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=Q(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ee(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Oe(t)||t.codemirrorIgnore}function we(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==Q(n,t[r])&&n.push(t[r])}function Te(e,t){return ve(e,t).length>0}function Se(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){ke(e),xe(e)}function _e(e){return e.target||e.srcElement}function Ne(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 Ie,Le,Ae=function(){if(a&&s<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ie){var t=I("span","​");N(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ie=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ie?I("span","​"):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function je(e){if(null!=Le)return Le;var t=N(e,document.createTextNode("AخA")),n=O(t,0,1).getBoundingClientRect(),r=O(t,1,2).getBoundingClientRect();return _(e),!(!n||n.left==n.right)&&(Le=r.right-n.right<3)}var Pe,Re=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/)},Me=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)},Fe="oncopy"in(Pe=I("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),$e=null;var Ve={},Be={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function ze(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=ze(t);var n=Ve[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Qe.hasOwnProperty(t.name)){var i=Qe[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 Qe={};function Ue(e,t){q(t,Qe.hasOwnProperty(e)?Qe[e]:Qe[e]={})}function He(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 Ke(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 We(e,t,n){return!e.startState||e.startState(t,n)}var Ye=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 Xe(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<o){n=i;break}t-=o}return n.lines[t]}function Je(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ze(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=Q(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ct(e,t){return at(e,t)<0?t:e}function ut(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function pt(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Xe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}(t,Xe(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=pt(e,t[r]);return n}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?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},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=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 gt(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;c<e;){var r=i[l];r>e&&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(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function vt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&He(e.doc.mode,r.state),o=gt(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 yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(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=Xe(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ht?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&&Xe(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,We(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Ye(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Et(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function Et(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.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,n){return t instanceof ht?new mt(e,He(e.mode,t.state),n,t.lookAhead):new mt(e,He(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?He(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Xe(a,(t=pt(a,t)).line),c=yt(e,t.line,n),u=new Ye(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=wt(s,u,c.state),r&&o.push(new Tt(u,i,He(a.mode,c.state)));return r?o:new Tt(u,i,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function xt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Ye(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&kt(Et(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(wt(n,d,r.state,p),o),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var h=Math.min(d.pos,c+5e3);i(h,u),c=h}}var Ot=!1,Ct=!1;function _t(e,t,n){this.marker=e,this.from=t,this.to=n}function Nt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function It(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Lt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new _t(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<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=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.from<t);(r||(r=[])).push(new _t(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,u=Z(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var p=s[d];if(null==p.to){var f=Nt(l,p.marker);f?c&&(p.to=null==f.to?null:f.to+u):p.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=u),null==m.from?Nt(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=At(s)),l&&l!=s&&(l=At(l));var g=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new _t(s[b].marker,null,null));for(var E=0;E<y;++E)g.push(v);g.push(l)}return g}function At(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Dt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function jt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Pt(e){return e.inclusiveLeft?-1:0}function Rt(e){return e.inclusiveRight?1:0}function Mt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Pt(e)-Pt(t);return o?-o:at(r.to,i.to)||Rt(e)-Rt(t)||t.id-e.id}function Ft(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Mt(n,i.marker)<0)&&(n=i.marker);return n}function $t(e){return Ft(e,!0)}function Vt(e){return Ft(e,!1)}function Bt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Mt(n,o.marker)<0)&&(n=o.marker)}return n}function qt(e,t,n,r,i){var o=Xe(e,t),a=Ct&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=at(c.from,n)||Pt(l.marker)-Pt(i),d=at(c.to,r)||Rt(l.marker)-Rt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.from,r)<=0:at(c.from,r)<0)))return!0}}}function zt(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function Gt(e,t){var n=Xe(e,t),r=zt(n);return n==r?t:tt(r)}function Qt(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!Ut(e,r))return t;for(;n=Vt(r);)r=n.find(1,!0).line;return tt(r)+1}function Ut(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Ht(e,t,r))return!0}}function Ht(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Ht(e,r.line,Nt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ht(e,t,i))return!0}function Kt(e){for(var t=0,n=(e=zt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Wt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=$t(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Vt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Yt(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=Wt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Wt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Xt=function(e,t,n){this.text=e,jt(this,t),this.height=n?n(this):1};function Jt(e){e.parent=null,Dt(e)}Xt.prototype.lineNo=function(){return tt(this)},Se(Xt);var Zt={},en={};function tn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?en:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function nn(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=on,je(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=an(r.addToken,a)),r.map=[],ln(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(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 be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function rn(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function on(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;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var h=d.exec(t),m=h?h.index-f:t.length-f;if(m){var g=document.createTextNode(u.slice(f,f+m));a&&s<9?c.appendChild(I("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(I("span",J(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(I("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(I("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||p||o||l){var E=n||"";r&&(E+=r),i&&(E+=i);var w=I("span",[c],E,o);if(l)for(var T in l)l.hasOwnProperty(T)&&"style"!=T&&"class"!=T&&w.setAttribute(T,l[T]);return e.content.appendChild(w)}e.content.appendChild(c)}}function an(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,p=0;p<t.length&&!((d=t[p]).to>c&&d.from<=c);p++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function sn(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 ln(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,p,f=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",p=null,d=null,v=1/0;for(var y=[],b=void 0,E=0;E<r.length;++E){var w=r[E],T=w.marker;if("bookmark"==T.type&&w.from==h&&T.widgetNode)y.push(T);else if(w.from<=h&&(null==w.to||w.to>h||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&&((p||(p={})).title=T.title),T.attributes)for(var S in T.attributes)(p||(p={}))[S]=T.attributes[S];T.collapsed&&(!d||Mt(d.marker,T)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==v&&(c+=" "+b[k]);if(!d||d.from==h)for(var x=0;x<y.length;++x)sn(t,0,y[x]);if(d&&(d.from||0)==h){if(sn(t,(null==d.to?f+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=f)break;for(var O=Math.min(f,v);;){if(g){var C=h+g.length;if(!d){var _=C>O?g.slice(0,O-h):g;t.addToken(t,_,a?a+l:l,u,h+_.length==v?c:"",s,p)}if(C>=O){g=g.slice(O-h),h=O;break}h=C,u=""}g=i.slice(o,o=n[m++]),a=tn(n[m++],t.cm.options)}}else for(var N=1;N<n.length;N+=2)t.addToken(t,i.slice(o,o=n[N]),tn(n[N+1],t.cm.options))}function cn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Vt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?tt(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function un(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new cn(e.doc,Xe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var dn=null;var pn=null;function fn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);dn?r=dn.delayedCallbacks:pn?r=pn:(r=pn=[],setTimeout(hn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function hn(){var e=pn;pn=null;for(var t=0;t<e.length;++t)e[t]()}function mn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?yn(e,t):"gutter"==o?En(e,t,n,r):"class"==o?bn(e,t):"widget"==o&&wn(e,t,r)}t.changes=null}function gn(e){return e.node==e.text&&(e.node=I("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function vn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):nn(e,t)}function yn(e,t){var n=t.text.className,r=vn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,bn(e,t)):n&&(t.text.className=n)}function bn(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=gn(t);t.background=r.insertBefore(I("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?gn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function En(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=gn(t);t.gutterBackground=I("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=gn(t),s=t.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(I("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(I("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=x("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Sn(e,t,n)}function Tn(e,t,n,r){var i=vn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),bn(e,t),En(e,t,n,r),Sn(e,t,r),t.node}function Sn(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=gn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),xn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),fn(l,"redraw")}}function xn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function On(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),N(t.display.measure,I("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Cn(e,t){for(var n=_e(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Nn(e){return e.lineSpace.offsetTop}function In(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=N(e.measure,I("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function An(e){return 50-e.display.nativeBarWidth}function Dn(e){return e.display.scroller.clientWidth-An(e)-e.display.barWidth}function jn(e){return e.display.scroller.clientHeight-An(e)-e.display.barHeight}function Pn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Rn(e,t,n,r){return $n(e,Fn(e,t),n,r)}function Mn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[gr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Fn(e,t){var n=tt(t),r=Mn(e,n);r&&!r.text?r=null:r&&r.changes&&(mn(e,r,n,dr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=tt(t=zt(t)),r=e.display.externalMeasured=new cn(e.doc,t,n);r.lineN=n;var i=r.built=nn(e,r);return r.text=i.pre,N(e.display.lineMeasure,i.pre),r}(e,t));var i=Pn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function $n(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Dn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&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=qn(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&le(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&le(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():zn(O(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=$e)return $e;var t=N(e,I("span","x")),n=t.getBoundingClientRect(),r=O(t,0,1).getBoundingClientRect();return $e=Math.abs(n.left-r.left)>1}(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&&(d=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+ur(e.display),top:h.top,bottom:h.bottom}:Bn}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;b<y.length-1&&!(v<y[b]);b++);var E=b?y[b-1]:0,w=y[b],T={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:E,bottom:w};return i.left||i.right||(T.bogus=!0),e.options.singleCursorHeightPerLine||(T.rtop=m,T.rbottom=g),T}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Vn,Bn={left:0,right:0,top:0,bottom:0};function qn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(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<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function zn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Gn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Qn(e){e.display.externalMeasure=null,_(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Gn(e.display.view[t])}function Un(e){Qn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Hn(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Kn(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Wn(e){var t=zt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=On(t[r]));return n}function Yn(e,t,n,r,i){if(!i){var o=Wn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Kt(t);if("local"==r?a+=Nn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Kn(M(e)));var l=s.left+("window"==r?0:Hn(M(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Xn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Hn(M(e)),i-=Kn(M(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Jn(e,t,n,r,i){return r||(r=Xe(e.doc,t.line)),Yn(e,r,Rn(e,r,t.ch,i),n)}function Zn(e,t,n,r,i,o){function a(t,a){var s=$n(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Yn(e,r,s,n)}r=r||Xe(e.doc,t.line),i||(i=Fn(e,r));var s=he(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=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 d=pe(s,l,c),p=de,f=u(l,d,"before"==c);return null!=p&&(f.other=u(l,p,"before"!=c)),f}function er(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=ur(e.display)*t.ch);var r=Xe(e.doc,t.line),i=Kt(r)+Nn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function tr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function nr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return tr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return tr(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,i);;){var s=ar(e,a,i,t,n),l=Bt(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=Xe(r,i=c.line)}}function rr(e,t,n,r){r-=Wn(t);var i=t.text.length,o=ue((function(t){return $n(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return $n(e,n,t).top>r}),o,i)}}function ir(e,t,n,r){return n||(n=Fn(e,t)),rr(e,t,n,Yn(e,t,$n(e,n,r),"line").top)}function or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ar(e,t,n,r,i){i-=Kt(t);var o=Fn(e,t),a=Wn(t),s=0,l=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?lr:sr)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var p,f,h=null,m=null,g=ue((function(t){var n=$n(e,o,t);return n.top+=a,n.bottom+=a,!!or(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<m.right-r,b=y==c;g=h+(b?0:1),f=b?"after":"before",p=y?m.left:m.right}else{c||g!=l&&g!=s||g++,f=0==g?"after":g==t.text.length?"before":$n(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var E=Zn(e,ot(n,g,f),"line",t,o);p=E.left,v=i<E.top?-1:i>=E.bottom?1:0}return tr(n,g=ce(t.text,g,1),f,v,r-p)}function sr(e,t,n,r,i,o,a){var s=ue((function(s){var l=i[s],c=1!=l.level;return or(Zn(e,ot(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=Zn(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,r);or(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function lr(e,t,n,r,i,o,a){var s=rr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p<i.length;p++){var f=i[p];if(!(f.from>=c||f.to<=l)){var h=$n(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=h<o?o-h+1e9:h-o;(!u||d>m)&&(u=f,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function cr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Vn){Vn=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vn.appendChild(document.createTextNode("x")),Vn.appendChild(I("br"));Vn.appendChild(document.createTextNode("x"))}N(e.measure,Vn);var n=Vn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),_(e.measure),n||1}function ur(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:pr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function pr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function fr(e){var t=cr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ur(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function hr(e){var t=e.doc,n=fr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function mr(e,t,n,r){var i=e.display;if(!n&&"true"==_e(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=nr(e,o,a);if(r&&c.xRel>0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=z(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((o-Ln(e.display).left)/ur(e.display))-u))}return c}function gr(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;r<n.length;r++)if((t-=n[r].size)<0)return r}function vr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Gt(e.doc,t)<i.viewTo&&br(e);else if(n<=i.viewFrom)Ct&&Qt(e.doc,n+r)>i.viewFrom?br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)br(e);else if(t<=i.viewFrom){var o=Er(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):br(e)}else if(n>=i.viewTo){var a=Er(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):br(e)}else{var s=Er(e,t,t,-1),l=Er(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):br(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function yr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[gr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Q(a,n)&&a.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Er(e,t,n,r){var i,o=gr(e,t),a=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Gt(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 wr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Tr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Sr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&kr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&kr(e,l.head,i);c||Or(e,l,o)}}return r}function kr(e,t,n){var r=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(I("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Jn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?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 Or(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Ln(e.display),s=a.left,l=Math.max(r.sizerWidth,Dn(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 d(t,n,r){var o,a,d=Xe(i,t),p=d.text.length;function f(n,r){return Jn(e,ot(t,n),"div",d,r)}function h(t,n,r){var i=ir(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||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?p:r,(function(e,t,i,d){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==p,w=0==d,T=!m||d==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,x=S?l:(g?y:v).right;u(k,v.top,x-k,v.bottom)}else{var O,C,_,N;g?(O=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):(O=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(O,v.top,C-O,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(_,y.top,N-_,y.bottom)}(!o||xr(v,o)<0)&&(o=v),xr(y,o)<0&&(o=y),(!a||xr(v,a)<0)&&(a=v),xr(y,a)<0&&(a=y)})),{start:o,end:a}}var p=t.from(),f=t.to();if(p.line==f.line)d(p.line,p.ch,f.ch);else{var h=Xe(i,p.line),m=Xe(i,f.line),g=zt(h)==zt(m),v=d(p.line,p.ch,g?h.text.length+1:null).end,y=d(f.line,g?0:null,f.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(o)}function Cr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Lr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function _r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ir(e))}function Nr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Lr(e))}),100)}function Ir(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,j(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()),Cr(e))}function Lr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(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 Ar(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<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,p=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;d=f-n,n=f}else{var h=c.node.getBoundingClientRect();d=h.bottom-h.top,!u&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(c.line,d),Dr(c.line),c.rest))for(var g=0;g<c.rest.length;g++)Dr(c.rest[g]);if(p>e.display.sizerWidth){var v=Math.ceil(p/ur(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 Dr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function jr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Nn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,Kt(Xe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,Kt(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Pr(e,t){var n=e.display,r=cr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=jn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+In(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Dn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>f+p-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function Rr(e,t){null!=t&&($r(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mr(e){$r(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Fr(e,t,n){null==t&&null==n||$r(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function $r(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Vr(e,er(e,t.from),er(e,t.to),t.margin))}function Vr(e,t,n,r){var i=Pr(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});Fr(e,i.scrollLeft,i.scrollTop)}function Br(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||hi(e,{top:t}),qr(e,t,!0),n&&hi(e),ci(e,100))}function qr(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 zr(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,vi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Gr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+In(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+An(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Qr=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),ge(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ge(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qr.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}},Qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qr.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},Qr.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)}))},Qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function Hr(e,t){t||(t=Gr(e));var n=e.display.barWidth,r=e.display.barHeight;Kr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Ar(e),Kr(e,Gr(e)),n=e.display.barWidth,r=e.display.barHeight}function Kr(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=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Wr={native:Qr,null:Ur};function Yr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Wr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(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?zr(e,t):Br(e,t)}),e),e.display.scrollbars.addClass&&j(e.display.wrapper,e.display.scrollbars.addClass)}var Xr=0;function Jr(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:++Xr,markArrays:null},t=e.curOp,dn?dn.ops.push(t):t.ownsGroup=dn={ops:[t],delayedCallbacks:[]}}function Zr(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<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{dn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)ei(t[n]);for(var r=0;r<t.length;r++)ti(t[r]);for(var i=0;i<t.length;i++)ni(t[i]);for(var o=0;o<t.length;o++)ri(t[o]);for(var a=0;a<t.length;a++)ii(t[a])}(e)}))}function ei(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=An(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=An(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&Yt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=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 ti(e){e.updatedDisplay=e.mustUpdate&&pi(e.cm,e.update)}function ni(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ar(t),e.barMeasure=Gr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Rn(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+An(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Dn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ri(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(F(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Hr(t,e.barMeasure),e.updatedDisplay&&gi(t,e.barMeasure),e.selectionChanged&&Cr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&_r(e.cm)}function ii(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&fi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&qr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&zr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!Ee(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=I("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Nn(e.display))+"px;\n                         height: "+(t.bottom-t.top+An(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?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 a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,c=Pr(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,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Br(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(zr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,pt(r,e.scrollToPos.from),pt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&be(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function oi(e,t){if(e.curOp)return t();Jr(e);try{return t()}finally{Zr(e)}}function ai(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Jr(e);try{return t.apply(e,arguments)}finally{Zr(e)}}}function si(e){return function(){if(this.curOp)return e.apply(this,arguments);Jr(this);try{return e.apply(this,arguments)}finally{Zr(this)}}}function li(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Jr(t);try{return e.apply(this,arguments)}finally{Zr(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(ui,e))}function ui(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(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?He(t.mode,r.state):null,l=gt(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 d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&p<a.length;++p)d=a[p]!=o.styles[p];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ci(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&oi(e,(function(){for(var t=0;t<i.length;t++)yr(e,i[t],"text")}))}}var di=function(e,t,n){var r=e.display;this.viewport=t,this.visible=jr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Dn(e),this.force=n,this.dims=dr(e),this.events=[]};function pi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return br(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==wr(e))return!1;yi(e)&&(br(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.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ct&&(o=Gt(e.doc,o),a=Qt(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=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(gr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(un(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,gr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Kt(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=wr(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,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var f=i&&null!=t&&t<=u&&p.lineNumber;p.changes&&(Q(p.changes,"gutter")>-1&&(f=!1),mn(e,p,u,n)),f&&(_(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,u)))),a=p.node.nextSibling}else{var h=Tn(e,p,u,n);o.insertBefore(h,a)}u+=p.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,ci(e,400)),n.updateLineNumbers=null,!0}function fi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Dn(e))r&&(t.visible=jr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+In(e.display)-jn(e),n.top)}),t.visible=jr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!pi(e,t))break;Ar(e);var i=Gr(e);Tr(e),Hr(e,i),gi(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 hi(e,t){var n=new di(e,t);if(pi(e,n)){Ar(e),fi(e,n);var r=Gr(e);Tr(e),Hr(e,r),gi(e,r),n.finish()}}function mi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function gi(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+An(e)+"px"}function vi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=pr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function yi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(I("div",[I("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",mi(e.display),!0}return!1}function bi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Ei(e){var t=e.gutters,n=e.gutterSpecs;_(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",mi(e)}function wi(e){Ei(e.display),vr(e),vi(e)}function Ti(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=L("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=L("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=L("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[c],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=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=bi(i.gutters,i.lineNumbers),Ei(o),r.init(o)}di.prototype.signal=function(e,t){Te(e,t)&&this.events.push(arguments)},di.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var Si=0,ki=null;function xi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Oi(e){var t=xi(e);return t.x*=ki,t.y*=ki,t}function Ci(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=xi(t),i=r.x,o=r.y,a=ki;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.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<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!p&&null!=a)return o&&h&&Br(e,Math.max(0,c.scrollTop+o*a)),zr(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&h)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,E=e.doc.scrollTop,w=E+s.wrapper.clientHeight;y<0?E=Math.max(0,E+y-50):w=Math.min(e.doc.height,w+y+50),hi(e,{top:E,bottom:w})}Si<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ki=(ki*Si+n)/(Si+1),++Si)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?ki=-.53:n?ki=15:u?ki=-.7:f&&(ki=-1/3);var _i=function(e,t){this.ranges=e,this.primIndex=t};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ni(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new _i(e,this.primIndex)},_i.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},_i.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var Ni=function(e,t){this.anchor=e,this.head=t};function Ii(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=Q(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ni(d?u:c,d?c:u))}}return new _i(t,n)}function Li(e,t){return new _i([new Ni(e,t||e)],0)}function Ai(e){return e.text?ot(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Di(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return Ai(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+=Ai(t).ch-t.to.ch),ot(n,r)}function ji(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ni(Di(i.anchor,t),Di(i.head,t)))}return Ii(e.cm,n,e.sel.primIndex)}function Pi(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function Ri(e){e.doc.mode=Ge(e.options,e.doc.modeOption),Mi(e)}function Mi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ci(e,100),e.state.modeGen++,e.curOp&&vr(e)}function Fi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function $i(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){(function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Dt(e),jt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)})(e,n,i,r),fn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Xt(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Xe(e,s.line),d=Xe(e,l.line),p=Z(c),f=i(c.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Fi(e,t)){var m=a(0,c.length-1);o(d,d.text,f),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+p+u.text.slice(l.ch),f);else{var g=a(1,c.length-1);g.push(new Xt(p+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,p+d.text.slice(l.ch),f);var v=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function Vi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Bi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,hr(e),Ri(e),qi(e),e.options.direction=t.direction,e.options.lineWrapping||Yt(e),e.options.mode=t.modeOption,vr(e)}function qi(e){("rtl"==e.doc.direction?j:C)(e.display.lineDiv,"CodeMirror-rtl")}function zi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Gi(e,t){var n={from:lt(t.from),to:Ai(t),text:Je(e,t.from,t.to)};return Wi(e,n,t.from.line,t.to.line+1),Vi(e,(function(e){return Wi(e,n,t.from.line,t.to.line+1)}),!0),n}function Qi(e){for(;e.length&&Z(e).ranges;)e.pop()}function Ui(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Qi(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=Ai(t):o.changes.push(Gi(e,t));else{var l=Z(i.done);for(l&&l.ranges||Ki(e.sel,i.done),o={changes:[Gi(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||be(e,"historyAdded")}function Hi(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,Z(i.done),t))?i.done[i.done.length-1]=t:Ki(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Qi(i.undone)}function Ki(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Wi(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 Yi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Xi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Yi(n[i]));return r}(e,t),r=Lt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ji(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?_i.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&Q(t,Number(u[1]))>-1&&(Z(s)[d]=c[d],delete c[d])}}}return r}function Zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new Ni(i,t)}return new Ni(n||t,t)}function eo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),oo(e,new _i([Zi(e.sel.primary(),t,n,i)],0),r)}function to(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Zi(e.sel.ranges[o],t[o],null,i);oo(e,Ii(e.cm,r,e.sel.primIndex),n)}function no(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,oo(e,Ii(e.cm,i,e.sel.primIndex),r)}function ro(e,t,n,r){oo(e,Li(t,n),r)}function io(e,t,n){var r=e.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=t,ao(e,t,n)):oo(e,t,n)}function oo(e,t,n){ao(e,t,n),Hi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ao(e,t,n){(Te(e,"beforeSelectionChange")||e.cm&&Te(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ni(pt(e,t[n].anchor),pt(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ii(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);so(e,co(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Mr(e.cm)}function so(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,we(e.cm)),fn(e,"cursorActivity",e))}function lo(e){so(e,co(e,e.sel,null,!1))}function co(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=po(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:po(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ni(l,c))}return i?Ii(e.cm,i,t.primIndex):t}function uo(e,t,n,r,i){var o=Xe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),p=void 0;if((r<0?u:c)&&(d=fo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(p=at(d,n))&&(r<0?p<0:p>0))return uo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=fo(e,f,r,f.line==t.line?o:null)),f?uo(e,f,t,r,i):null}}return t}function po(e,t,n,r,i){var o=r||1;return uo(e,t,n,o,i)||!i&&uo(e,t,n,o,!0)||uo(e,t,n,-o,i)||!i&&uo(e,t,n,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function fo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,ot(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function ho(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),H)}function mo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=pt(e,t)),n&&(r.to=pt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function go(e,t,n){if(e.cm){if(!e.cm.curOp)return ai(e.cm,go)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"))||(t=mo(e,t,!0))){var r=Ot&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=Q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(at(c.to,s.from)<0||at(c.from,s.to)>0)){var u=[l,1],d=at(c.from,s.from),p=at(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&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)vo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else vo(e,t)}}function vo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=ji(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),Eo(e,t,n,Lt(e,t));var r=[];Vi(e,(function(e,n){n||-1!=Q(r,e.history)||(ko(e.history,t),r.push(e.history)),Eo(e,t,null,Lt(e,t))}))}}function yo(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<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Ki(i,l),n&&!i.equals(e.sel))return void oo(e,i,{clearRedo:!1});a=i}var u=[];Ki(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,d&&!mo(e,r,!1))return s.length=0,{};u.push(Gi(e,r));var o=n?ji(e,r):Z(s);Eo(e,r,o,Xi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ai(r)});var a=[];Vi(e,(function(e,t){t||-1!=Q(a,e.history)||(ko(e.history,r),a.push(e.history)),Eo(e,r,null,Xi(e,r))}))},f=i.changes.length-1;f>=0;--f){var h=p(f);if(h)return h.v}}}}function bo(e,t){if(0!=t&&(e.first+=t,e.sel=new _i(ee(e.sel.ranges,(function(e){return new Ni(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)yr(e.cm,r,"gutter")}}function Eo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ai(e.cm,Eo)(e,t,n,r);if(t.to.line<e.first)bo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);bo(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Je(e,t.from,t.to),n||(n=ji(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=tt(zt(Xe(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&&we(e),$i(r,t,n,fr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Wt(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.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Xe(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ci(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?vr(e):o.line!=a.line||1!=t.text.length||Fi(e.doc,t)?vr(e,o.line,a.line+1,c):yr(e,o.line,"text");var u=Te(e,"changes"),d=Te(e,"change");if(d||u){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&fn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):$i(e,t,r),ao(e,n,H),e.cantEdit&&po(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function wo(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),go(e,{from:n,to:r,text:t,origin:i})}function To(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function So(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)To(o.ranges[s].anchor,t,n,r),To(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=ot(c.from.line+r,c.from.ch),c.to=ot(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ko(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;So(e.done,n,r,i),So(e.undone,n,r,i)}function xo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Xe(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&yr(e.cm,i,n),o)}function Oo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Co(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ni.prototype.from=function(){return ut(this.anchor,this.head)},Ni.prototype.to=function(){return ct(this.anchor,this.head)},Ni.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Jt(i),fn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Co.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Oo))){var s=[];this.collapse(s),this.children=[new Oo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Oo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Co(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=Q(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Co(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var _o=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function No(e,t,n){Kt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Rr(e,n)}_o.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=On(this);et(n,Math.max(0,n.height-o)),e&&(oi(e,(function(){No(e,n,-o),yr(e,r,"widget")})),fn(e,"lineWidgetCleared",e,this,r))}},_o.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=On(this)-t;i&&(Ut(this.doc,r)||et(r,r.height+i),n&&oi(n,(function(){n.curOp.forceUpdate=!0,No(n,r,i),fn(n,"lineWidgetChanged",n,e,tt(r))})))},Se(_o);var Io=0,Lo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Io};function Ao(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=q(r)).shared=!1;var o=[Ao(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Vi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ao(e,pt(e,t),pt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Z(o)})),new Do(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ai(e.cm,Ao)(e,t,n,r,i);var o=new Lo(e,i),a=at(t,n);if(r&&q(r,o,!1),a>0||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(qt(e,t.line,t,n,o)||t.line!=n.line&&qt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Ui(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&&zt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(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 _t(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){Ut(e,t)&&et(t,0)})),o.clearOnEnter&&ge(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ot=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Io,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)vr(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++)yr(c,u,"text");o.atomic&&lo(c.doc),fn(c,"markerAdded",c,o)}return o}Lo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Jr(e),Te(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Nt(a.markedSpans,this);e&&!this.collapsed?yr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=It(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&et(a,cr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=zt(this.lines[l]),u=Wt(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&vr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&lo(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Zr(e),this.parent&&this.parent.clear()}},Lo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Nt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},Lo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&oi(r,(function(){var i=t.line,o=tt(t.line),a=Mn(r,o);if(a&&(Gn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=On(n)-s;l&&et(i,i.height+l)}fn(r,"markerChanged",r,e)}))},Lo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=Q(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Lo.prototype.detachLine=function(e){if(this.lines.splice(Q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Se(Lo);var Do=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function jo(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function Po(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Vi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==Q(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Do.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fn(this,"clear")}},Do.prototype.find=function(e,t){return this.primary.find(e,t)},Se(Do);var Ro=0,Mo=function(e,t,n,r,i){if(!(this instanceof Mo))return new Mo(e,t,n,r,i);null==n&&(n=0),Co.call(this,[new Oo([new Xt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=Li(o),this.history=new zi(null),this.id=++Ro,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),$i(this,{from:o,to:o,text:e}),oo(this,Li(o),H)};Mo.prototype=ne(Co.prototype,{constructor:Mo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:li((function(e){var t=ot(this.first,0),n=this.first+this.size-1;go(this,{from:t,to:ot(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fr(this.cm,0,0),oo(this,Li(t),H)})),replaceRange:function(e,t,n,r){wo(this,e,t=pt(this,t),n=n?pt(this,n):t,r)},getRange:function(e,t,n){var r=Je(this,pt(this,e),pt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Xe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),zt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:li((function(e,t,n){ro(this,pt(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:li((function(e,t,n){ro(this,pt(this,e),pt(this,t||e),n)})),extendSelection:li((function(e,t,n){eo(this,pt(this,e),t&&pt(this,t),n)})),extendSelections:li((function(e,t){to(this,ft(this,e),t)})),extendSelectionsBy:li((function(e,t){to(this,ft(this,ee(this.sel.ranges,e)),t)})),setSelections:li((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ni(pt(this,e[i].anchor),pt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),oo(this,Ii(this.cm,r,t),n)}})),addSelection:li((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ni(pt(this,e),pt(this,t||e))),oo(this,Ii(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:li((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Pi(s.from,i,o),c=Pi(Ai(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=at(u.head,u.anchor)<0;r[a]=new Ni(d?c:l,d?l:c)}else r[a]=new Ni(l,l)}return new _i(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)go(this,r[l]);s?io(this,s):this.cm&&Mr(this.cm)})),undo:li((function(){yo(this,"undo")})),redo:li((function(){yo(this,"redo")})),undoSelection:li((function(){yo(this,"undo",!0)})),redoSelection:li((function(){yo(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.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new zi(this.history),Vi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ji(this.history.done),undone:Ji(this.history.undone)}},setHistory:function(e){var t=this.history=new zi(this.history);t.done=Ji(e.done.slice(0),null,!0),t.undone=Ji(e.undone.slice(0),null,!0)},setGutterMarker:li((function(e,t,n){return xo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:li((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&xo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Xe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:li((function(e,t,n){return xo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(x(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:li((function(e,t,n){return xo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(x(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:li((function(e,t,n){return function(e,t,n,r){var i=new _o(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),xo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Kt(t)<e.scrollTop;et(t,t.height+On(i)),r&&Rr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&fn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ao(this,pt(this,e),pt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ao(this,e=pt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=pt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=pt(this,e),t=pt(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<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=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;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),pt(this,ot(n,t))},indexFromPos:function(e){var t=(e=pt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Mo(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Mo(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=Ao(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,jo(this)),r},unlinkDoc:function(e){if(e instanceof Da&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Po(jo(this));break}if(e.history==this.history){var n=[e.id];Vi(e,(function(e){return n.push(e.id)}),!0),e.history=new zi(null),e.history.done=Ji(this.history.done,n),e.history.undone=Ji(this.history.undone,n)}},iterLinkedDocs:function(e){Vi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:li((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&oi(t=this.cm,(function(){qi(t),vr(t)})))}))}),Mo.prototype.eachLine=Mo.prototype.iter;var Fo=0;function $o(e){var t=this;if(Vo(t),!Ee(t,e)&&!Cn(t.display,e)){ke(e),a&&(Fo=+new Date);var n=mr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ai(t,(function(){var e={from:n=pt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};go(t.doc,e),io(t.doc,Li(pt(t.doc,n),pt(t.doc,Ai(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==Q(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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 p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),ao(t.doc,Li(n,n)),p)for(var f=0;f<p.length;++f)wo(t.doc,"",p[f].anchor,p[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Vo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Bo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var qo=!1;function zo(){var e;qo||(ge(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Bo(Go)}),100))})),ge(window,"blur",(function(){return Bo(Lr)})),qo=!0)}function Go(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Qo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Qo[Uo+48]=Qo[Uo+96]=String(Uo);for(var Ho=65;Ho<=90;Ho++)Qo[Ho]=String.fromCharCode(Ho);for(var Ko=1;Ko<=12;Ko++)Qo[Ko+111]=Qo[Ko+63235]="F"+Ko;var Wo={};function Yo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Xo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=ee(n.split(" "),Yo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Jo(e,t,n,r){var i=(t=na(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Jo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Jo(e,t.fallthrough[o],n,r);if(a)return a}}}function Zo(e){var t="string"==typeof e?e:Qo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function ea(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(S?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(S?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function ta(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Qo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),ea(n,e,t))}function na(e){return"string"==typeof e?Wo[e]:e}function ra(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,Z(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}oi(e,(function(){for(var t=r.length-1;t>=0;t--)wo(e.doc,"",r[t].from,r[t].to,"+delete");Mr(e)}))}function ia(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function oa(e,t,n){var r=ia(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function aa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Fn(t,n);a=i<0?n.text.length-1:0;var u=$n(t,c,a).top;a=ue((function(e){return $n(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ia(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}Wo.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"},Wo.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"},Wo.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"},Wo.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"]},Wo.default=b?Wo.macDefault:Wo.pcDefault;var sa={selectAll:ho,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),H)},killLine:function(e){return ra(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return ra(e,(function(t){return{from:ot(t.from().line,0),to:pt(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return ra(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return ra(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return ra(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return la(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ca(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Xe(e.doc,t),r=function(e){for(var t;t=Vt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=tt(r)),aa(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),W)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),W)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ca(e,t.head):r}),W)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=z(e.getLine(o.line),o.ch,r);t.push(J(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return oi(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Xe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)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 a=Xe(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ni(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return oi(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<t.length;r++)e.indentLine(t[r].from().line,null,!0);Mr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function la(e,t){var n=Xe(e.doc,t),r=zt(n);return r!=n&&(t=tt(r)),aa(!0,e,r,t,1)}function ca(e,t){var n=la(e,t.line),r=Xe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ua(e,t,n){if("string"==typeof t&&!(t=sa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var da=new G;function pa(e,t,n,r){var i=e.state.keySeq;if(i){if(Zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:da.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),fa(e,i+" "+t,n,r))return!0}return fa(e,t,n,r)}function fa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Jo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Jo(t,e.options.extraKeys,n,e)||Jo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&fn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Cr(e)),!!i}function ha(e,t){var n=ta(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?pa(e,"Shift-"+n,t,(function(t){return ua(e,t,!0)}))||pa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ua(e,t)})):pa(e,n,t,(function(t){return ua(e,t)})))}var ma=null;function ga(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(F(t)),Ee(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ha(t,e);p&&(ma=i?r:null,i||88!=r||Fe||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}j(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}(t)}}function va(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ee(this,e)}function ya(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Cn(t.display,e)||Ee(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==ma)return ma=null,void ke(e);if(!p||e.which&&!(e.which<10)||!ha(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return pa(e,"'"+n+"'",t,(function(t){return ua(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var ba,Ea,wa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function Ta(e){var t=this,n=t.display;if(!(Ee(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Cn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!xa(t,e)){var r=mr(t,e),i=Ne(e),o=r?function(e,t){var n=+new Date;return Ea&&Ea.compare(n,e,t)?(ba=Ea=null,"triple"):ba&&ba.compare(n,e,t)?(Ea=new wa(n,e,t),ba=null,"double"):(ba=new wa(n,e,t),Ea=null,"single")}(r,i):"single";V(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),pa(e,ea(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=sa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(B(_r,e),0):e.curOp.focus=D(F(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=E?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Ae&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(at((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=ai(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Nr(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",c),o||(ke(t),r.addNew||eo(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},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(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&&Nr(e);var i=e.display,o=e.doc;ke(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 Ni(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ni(n,n)),n=mr(e,t,!0,!0),l=-1;else{var d=Sa(e,n,r.unit);s=r.extend?Zi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,oo(o,Ii(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(oo(o,Ii(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):no(o,l,s,K):(l=0,oo(o,new _i([s],0),K),c=o.sel);var p=n;function f(t){if(0!=at(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=z(Xe(o,n.line).text,n.ch,a),d=z(Xe(o,t.line).text,t.ch,a),f=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Xe(o,m).text,y=Y(v,f,a);f==h?i.push(new Ni(ot(m,y),ot(m,y))):v.length>y&&i.push(new Ni(ot(m,y),ot(m,Y(v,h,a))))}i.length||i.push(new Ni(n,n)),oo(o,Ii(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,w=Sa(e,t,r.unit),T=E.anchor;at(w.anchor,T)>0?(b=w.head,T=ut(E.from(),w.anchor)):(b=w.anchor,T=ct(E.to(),w.head));var S=c.ranges.slice(0);S[l]=function(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=pe(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=pe(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=o[c+(l?-1:0)],f=l==(1==p.level),h=f?p.from:p.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new Ni(new ot(n.line,h,m),r)}(e,new Ni(pt(o,T),b)),oo(o,Ii(e,S,l),K)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=mr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,p)){e.curOp.focus=D(F(e)),f(a);var s=jr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(ai(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(ai(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",y),ye(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=ai(e,(function(e){0!==e.buttons&&Ne(e)?g(e):v(e)})),b=ai(e,v);e.state.selectingText=b,ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):_e(e)==n.scroller&&ke(e):2==i?(r&&eo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):Nr(t)))}}function Sa(e,t,n){if("char"==n)return new Ni(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ni(ot(t.line,0),pt(e.doc,ot(t.line+1,0)));var r=n(e,t);return new Ni(r.from,r.to)}function ka(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&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Te(e,n))return Oe(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return be(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),Oe(t)}}function xa(e,t){return ka(e,t,"gutterClick",!0)}function Oa(e,t){Cn(e.display,t)||function(e,t){return!!Te(e,"gutterContextMenu")&&ka(e,t,"gutterContextMenu",!1)}(e,t)||Ee(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Ca(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}wa.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button};var _a={toString:function(){return"CodeMirror.Init"}},Na={},Ia={};function La(e,t,n){if(!t!=!(n&&n!=_a)){var r=e.display.dragFunctions,i=t?ge:ye;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 Aa(e){e.options.lineWrapping?(j(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),hr(e),vr(e),Un(e),setTimeout((function(){return Hr(e)}),100)}function Da(e,t){var n=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?q(t):{},q(Na,t,!1);var r=t.value;"string"==typeof r?r=new Mo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Da.inputStyles[t.inputStyle](this),o=this.display=new Ti(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ca(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yr(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;ge(t.scroller,"mousedown",ai(e,Ta)),ge(t.scroller,"dblclick",a&&s<11?ai(e,(function(t){if(!Ee(e,t)){var n=mr(e,t);if(n&&!xa(e,t)&&!Cn(e.display,t)){ke(t);var r=e.findWordAt(n);eo(e.doc,r.anchor,r.head)}}})):function(t){return Ee(e,t)||ke(t)}),ge(t.scroller,"contextmenu",(function(t){return Oa(e,t)})),ge(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Oa(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}ge(t.scroller,"touchstart",(function(i){if(!Ee(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)}})),ge(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ge(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Cn(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 Ni(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new Ni(ot(a.line,0),pt(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()})),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Br(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ge(t.scroller,"mousewheel",(function(t){return Ci(e,t)})),ge(t.scroller,"DOMMouseScroll",(function(t){return Ci(e,t)})),ge(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Ee(e,t)||Ce(t)},over:function(t){Ee(e,t)||(function(e,t){var n=mr(e,t);if(n){var r=document.createDocumentFragment();kr(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),Ce(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))Ce(t);else if(!Ee(e,t)&&!Cn(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==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ai(e,$o),leave:function(t){Ee(e,t)||Vo(e)}};var c=t.input.getField();ge(c,"keyup",(function(t){return va.call(e,t)})),ge(c,"keydown",ai(e,ga)),ge(c,"keypress",ai(e,ya)),ge(c,"focus",(function(t){return Ir(e,t)})),ge(c,"blur",(function(t){return Lr(e,t)}))}(this),zo(),Jr(this),this.curOp.forceUpdate=!0,Bi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Ir(n)}),20):Lr(this),Ia)Ia.hasOwnProperty(c)&&Ia[c](this,t[c],_a);yi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<ja.length;++u)ja[u](this);Zr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Da.defaults=Na,Da.optionHandlers=Ia;var ja=[];function Pa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(o,t),l=z(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?z(Xe(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 d="",p=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)p+=a,d+="\t";if(p<c&&(d+=J(c-p)),d!=u)return wo(o,d,ot(t,0),ot(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var g=ot(t,u.length);no(o,h,new Ni(g,g));break}}}Da.defineInitHook=function(e){return ja.push(e)};var Ra=null;function Ma(e){Ra=e}function Fa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),c=null;if(s&&r.ranges.length>1)if(Ra&&Ra.text.join("\n")==t){if(r.ranges.length%Ra.text.length==0){c=[];for(var u=0;u<Ra.text.length;u++)c.push(o.splitLines(Ra.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=ee(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var f=r.ranges[p],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?m=ot(m.line,Math.min(Xe(o,m.line).text.length,m.ch+Z(l).length)):s&&Ra&&Ra.lineWise&&Ra.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:c?c[p%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};go(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&Va(e,t),Mr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $a(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||oi(t,(function(){return Fa(t,n,0,null,"paste")})),!0}function Va(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<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Pa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Pa(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Ba(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function qa(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function za(){var e=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=I("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Ga(e,t,n,r,i){var o=t,a=n,s=Xe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(o){var a,c;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return oa(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=pe(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<n.ch))return oa(t,n,r);var s,l=function(e,n){return ia(t,e instanceof ot?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||Fn(e,t),ir(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,p=l(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=u.end:p>=a.from&&p>=u.begin)){var f=d?"before":"after";return new ot(n.line,p,f)}}var h=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=h(o+r,r,u);if(m)return m;var g=r>0?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):oa(s,t,n);if(null==a){if(o||((c=t.line+l)<e.first||c>=e.first+e.size||(t=new ot(c,t.ch,t.sticky),!(s=Xe(e,c)))))return!1;t=aa(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,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||c(!f);f=!1){var h=s.text.charAt(t.ch)||"\n",m=oe(h,p)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||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=po(e,t,o,a,!0);return st(o,g)&&(g.hitSide=!0),g}function Qa(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*cr(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=nr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ua=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 Ha(e,t){var n=Mn(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),i=Pn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=pe(o,t.ch)%2?"right":"left");var s=qn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ka(e,t){return t&&(e.bad=!0),e}function Wa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ka(e.clipPos(ot(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<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ya(o,t,n)}}function Ya(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!A(r,t))return Ka(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return Ka(ot(tt(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(u,d)}}}var d=u(a,s,n);if(d)return Ka(d,i);for(var p=s.nextSibling,f=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=u(p,p.firstChild,0))return Ka(ot(d.line,d.ch-f),i);f+=p.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=u(h,h.firstChild,-1))return Ka(ot(d.line,d.ch+m),i);m+=h.textContent.length}}Ua.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Ee(r,e)){if(r.somethingSelected())Ma({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);Ma({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,H),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Ra.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=za(),l=s.firstChild;qa(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ra.text.join("\n");var c=D($(i));R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,qa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ge(i,"paste",(function(e){!o(e)||Ee(r,e)||$a(e,r)||s<=11&&setTimeout(ai(r,(function(){return t.updateFromDOM()})),20)})),ge(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ge(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ge(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ge(i,"touchstart",(function(){return n.forceCompositionEnd()})),ge(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ge(i,"copy",a),ge(i,"cut",a)},Ua.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var e=Sr(this.cm,!1);return e.focus=D($(this.div))==this.div,e},Ua.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ua.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Wa(t,e.anchorNode,e.anchorOffset),s=Wa(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ut(a,s),i)||0!=at(ct(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Ha(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Ha(t,o);if(!u){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&u){var f,h=e.rangeCount&&e.getRangeAt(0);try{f=O(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ua.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ua.prototype.showMultipleSelections=function(e){N(this.cm.display.cursorDiv,e.cursors),N(this.cm.display.selectionDiv,e.selection)},Ua.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ua.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)},Ua.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D($(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ua.prototype.blur=function(){this.div.blur()},Ua.prototype.getField=function(){return this.div},Ua.prototype.supportsTouch=function(){return!0},Ua.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):oi(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Ua.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ua.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Wa(t,e.anchorNode,e.anchorOffset),r=Wa(t,e.focusNode,e.focusOffset);n&&r&&oi(t,(function(){oo(t.doc,Li(n,r),H),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ua.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Xe(r.doc,a.line-1).length)),s.ch==Xe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=gr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=gr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=tt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=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 d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,p=t.getAttribute("cm-marker");if(p){var f=e.findMarks(ot(r,0),ot(i+1,0),(g=+p,function(e){return e.id==g}));return void(f.length&&(o=f[0].find(0))&&u(Je(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;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,c,t,l)),p=Je(r.doc,ot(t,0),ot(l,Xe(r.doc,l).text.length));d.length>1&&p.length>1;)if(Z(d)==Z(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var f=0,h=0,m=d[0],g=p[0],v=Math.min(m.length,g.length);f<v&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=Z(d),b=Z(p),E=Math.min(y.length-(1==d.length?f:0),b.length-(1==p.length?f:0));h<E&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==p.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=ot(t,f),T=ot(l,p.length?Z(p).length-h:0);return d.length>1||d[0]||at(w,T)?(wo(r.doc,d,w,T,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.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))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||oi(this.cm,(function(){return vr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable="false"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ai(this.cm,Fa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var Xa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null,this.resetting=!1};Xa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Ee(r,e)){if(r.somethingSelected())Ma({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);Ma({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,H):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ge(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ge(i,"paste",(function(e){Ee(r,e)||$a(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",(function(t){if(!Cn(e,t)&&!Ee(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)}})),ge(e.lineSpace,"selectstart",(function(t){Cn(e,t)||ke(t)})),ge(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"})}})),ge(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Xa.prototype.createField=function(e){this.wrapper=za(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;qa(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Xa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Xa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Sr(e);if(e.options.moveInputWithCursor){var i=Zn(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},Xa.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")},Xa.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&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Xa.prototype.getField=function(){return this.textarea},Xa.prototype.supportsTouch=function(){return!1},Xa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D($(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Xa.prototype.blur=function(){this.textarea.blur()},Xa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xa.prototype.receivedFocus=function(){this.slowPoll()},Xa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Xa.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))}))},Xa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Me(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);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return oi(t,(function(){Fa(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||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},Xa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Xa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=mr(n,e),c=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ai(n,oo)(n.doc,Li(o),H);var u,d=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){Ce(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(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=d,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?ai(n,ho)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Xa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Xa.prototype.setUneditable=function(){},Xa.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!=_a&&i(e,t,n)}:i)}e.defineOption=n,e.Init=_a,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ri(e)}),!0),n("indentUnit",2,Ri,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Mi(e),Un(e),vr(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(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)wo(e.doc,t,n[i],ot(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!=_a&&e.refresh()})),n("specialCharPlaceholder",rn,(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){Ca(e),wi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=na(t),i=n!=_a&&na(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Aa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=bi(t,e.options.lineNumbers),wi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?pr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Hr(e)}),!0),n("scrollbarStyle","native",(function(e){Yr(e),Hr(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=bi(e.options.gutters,t),wi(e)}),!0),n("firstLineNumber",1,wi,!0),n("lineNumberFormatter",(function(e){return e}),wi,!0),n("showCursorWhenSelecting",!1,Tr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Lr(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,La),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Tr,!0),n("singleCursorHeightPerLine",!0,Tr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mi,!0),n("addModeClass",!1,Mi,!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,Mi,!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)}(Da),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)&&ai(this,t[e])(this,n,i),be(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"](na(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:si((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");(function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)})(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,vr(this)})),removeOverlay:si((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void vr(this)}})),indentLine:si((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Pa(this,e,t,n)})),indentSelection:si((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Pa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(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;l<n;++l)Pa(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&no(this.doc,r,new Ni(o,c[r].to()),H)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=vt(this,Xe(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)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==Q(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?pt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Jn(this,pt(this.doc,e),t||"page")},coordsChar:function(e,t){return nr(this,(e=Xn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Xn(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Xe(this.doc,e)}else r=e;return Yn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Kt(r):0)},defaultTextHeight:function(){return cr(this.display)},defaultCharWidth:function(){return ur(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=Zn(this,pt(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 d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>p&&(u=p-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=Pr(o,a)).scrollTop&&Br(o,s.scrollTop),null!=s.scrollLeft&&zr(o,s.scrollLeft))},triggerOnKeyDown:si(ga),triggerOnKeyPress:si(ya),triggerOnKeyUp:va,triggerOnMouseDown:si(Ta),execCommand:function(e){if(sa.hasOwnProperty(e))return sa[e].call(null,this)},triggerElectric:si((function(e){Va(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=pt(this.doc,e),a=0;a<t&&!(o=Ga(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:si((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ga(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),W)})),deleteH:si((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ra(this,(function(n){var i=Ga(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=pt(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Qa(this,l,i,n)).hitSide)break}return a},moveV:si((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Qa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Rr(n,Jn(n,l,"div").top-s.top),l}),W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ni(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?j(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(F(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:si((function(e,t){Fr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-An(this)-this.display.barHeight,width:e.scrollWidth-An(this)-this.display.barWidth,clientHeight:jn(this),clientWidth:Dn(this)}},scrollIntoView:si((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){$r(e),e.curOp.scrollToPos=t}(this,e):Vr(this,e.from,e.to,e.margin)})),setSize:si((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Qn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){yr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return oi(this,e)},startOperation:function(){return Jr(this)},endOperation:function(){return Zr(this)},refresh:si((function(){var e=this.display.cachedTextHeight;vr(this),this.curOp.forceUpdate=!0,Un(this),Fr(this,this.doc.scrollLeft,this.doc.scrollTop),mi(this.display),(null==e||Math.abs(e-cr(this.display))>.5||this.options.lineWrapping)&&hr(this),be(this,"refresh",this)})),swapDoc:si((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Bi(this,e),Un(this),this.display.input.reset(),Fr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(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}},Se(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})}}(Da);var Ja="iter insert remove copy getEditor constructor".split(" ");for(var Za in Mo.prototype)Mo.prototype.hasOwnProperty(Za)&&Q(Ja,Za)<0&&(Da.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Za]));return Se(Mo),Da.inputStyles={textarea:Xa,contenteditable:Ua},Da.defineMode=function(e){Da.defaults.mode||"null"==e||(Da.defaults.mode=e),qe.apply(this,arguments)},Da.defineMIME=function(e,t){Be[e]=t},Da.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){Mo.prototype[e]=t},Da.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&&(ge(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&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Da((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=Oi,e.Doc=Mo,e.splitLines=Re,e.countColumn=z,e.findColumn=Y,e.isWordChar=ie,e.Pass=U,e.signal=be,e.Line=Xt,e.changeEnd=Ai,e.scrollbarModel=Wr,e.Pos=ot,e.cmpPos=at,e.modes=Ve,e.mimeModes=Be,e.resolveMode=ze,e.getMode=Ge,e.modeExtensions=Qe,e.extendMode=Ue,e.copyState=He,e.startState=We,e.innerMode=Ke,e.commands=sa,e.keyMap=Wo,e.keyName=ta,e.isModifierKey=Zo,e.lookupKey=Jo,e.normalizeKeyMap=Xo,e.StringStream=Ye,e.SharedTextMarker=Do,e.TextMarker=Lo,e.LineWidget=_o,e.e_preventDefault=ke,e.e_stopPropagation=xe,e.e_stop=Ce,e.addClass=j,e.contains=A,e.rmClass=C,e.keyNames=Qo}(Da),Da.version="5.65.18",Da}()},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,d=n.wordCharacters||/[\w$\xa1-\uffff]/,p=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")):Ze(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(d))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(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(i)){var o=p[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())}function b(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="([{}])".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(d.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 E={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(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 T(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 S(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?q:V)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&T(e,r)?"variable-2":t}}var k={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function O(){return x.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function _(e){var t=k.state;if(k.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=N(e,t.context);if(null!=r)return void(t.context=r)}else if(!C(e,t.localVars))return void(t.localVars=new A(e,t.localVars));n.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new A(e,t.globalVars))}}function N(e,t){if(t){if(t.block){var n=N(e,t.prev);return n?n==t.prev?t:new L(n,t.vars,!0):null}return C(e,t.vars)?t:new L(t.prev,new A(e,t.vars),!1)}return null}function I(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function L(e,t,n){this.prev=e,this.vars=t,this.block=n}function A(e,t){this.name=e,this.next=t}var D=new A("this",new A("arguments",null));function j(){k.state.context=new L(k.state.context,k.state.localVars,!1),k.state.localVars=D}function P(){k.state.context=new L(k.state.context,k.state.localVars,!0),k.state.localVars=null}function R(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function M(e,t){var n=function(){var n=k.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 w(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function $(e){return function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?x():O(t)}}function V(e,t){return"var"==e?O(M("vardef",t),ke,$(";"),F):"keyword a"==e?O(M("form"),G,V,F):"keyword b"==e?O(M("form"),V,F):"keyword d"==e?k.stream.match(/^\s*$/,!1)?O():O(M("stat"),U,$(";"),F):"debugger"==e?O($(";")):"{"==e?O(M("}"),P,le,F,R):";"==e?O():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==F&&k.state.cc.pop()(),O(M("form"),G,V,F,Ie)):"function"==e?O(je):"for"==e?O(M("form"),P,Le,V,R,F):"class"==e||u&&"interface"==t?(k.marked="keyword",O(M("form","class"==e?e:t),$e,F)):"variable"==e?u&&"declare"==t?(k.marked="keyword",O(V)):u&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?O(Xe):"type"==t?O(Re,$("operator"),fe,$(";")):O(M("form"),xe,$("{"),M("}"),le,F,F)):u&&"namespace"==t?(k.marked="keyword",O(M("form"),q,V,F)):u&&"abstract"==t?(k.marked="keyword",O(V)):O(M("stat"),te):"switch"==e?O(M("form"),G,$("{"),M("}","switch"),P,le,F,F,R):"case"==e?O(q,$(":")):"default"==e?O($(":")):"catch"==e?O(M("form"),j,B,V,F,R):"export"==e?O(M("stat"),ze,F):"import"==e?O(M("stat"),Qe,F):"async"==e?O(V):"@"==t?O(q,V):x(M("stat"),q,$(";"),F)}function B(e){if("("==e)return O(Me,$(")"))}function q(e,t){return Q(e,t,!1)}function z(e,t){return Q(e,t,!0)}function G(e){return"("!=e?x():O(M(")"),U,$(")"),F)}function Q(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?J:X;if("("==e)return O(j,M(")"),ae(Me,")"),F,$("=>"),r,R);if("variable"==e)return x(j,xe,$("=>"),r,R)}var i=n?K:H;return E.hasOwnProperty(e)?O(i):"function"==e?O(je,i):"class"==e||u&&"interface"==t?(k.marked="keyword",O(M("form"),Fe,F)):"keyword c"==e||"async"==e?O(n?z:q):"("==e?O(M(")"),U,$(")"),F,i):"operator"==e||"spread"==e?O(n?z:q):"["==e?O(M("]"),Ye,F,i):"{"==e?se(re,"}",null,i):"quasi"==e?x(W,i):"new"==e?O(function(e){return function(t){return"."==t?O(e?ee:Z):"variable"==t&&u?O(we,e?K:H):x(e?z:q)}}(n)):O()}function U(e){return e.match(/[;\}\)\],]/)?x():x(q)}function H(e,t){return","==e?O(U):K(e,t,!1)}function K(e,t,n){var r=0==n?H:K,i=0==n?q:z;return"=>"==e?O(j,n?J:X,R):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?O(r):u&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(M(">"),ae(fe,">"),F,r):"?"==t?O(q,$(":"),i):O(i):"quasi"==e?x(W,r):";"!=e?"("==e?se(z,")","call",r):"."==e?O(ne,r):"["==e?O(M("]"),U,$("]"),F,r):u&&"as"==t?(k.marked="keyword",O(fe,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function W(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?O(W):O(U,Y)}function Y(e){if("}"==e)return k.marked="string-2",k.state.tokenize=y,O(W)}function X(e){return b(k.stream,k.state),x("{"==e?V:q)}function J(e){return b(k.stream,k.state),x("{"==e?V:z)}function Z(e,t){if("target"==t)return k.marked="keyword",O(H)}function ee(e,t){if("target"==t)return k.marked="keyword",O(K)}function te(e){return":"==e?O(F,V):x(H,$(";"),F)}function ne(e){if("variable"==e)return k.marked="property",O()}function re(e,t){return"async"==e?(k.marked="property",O(re)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?O(ie):(u&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(oe))):"number"==e||"string"==e?(k.marked=s?"property":k.style+" property",O(oe)):"jsonld-keyword"==e?O(oe):u&&I(t)?(k.marked="keyword",O(re)):"["==e?O(q,ce,$("]"),oe):"spread"==e?O(z,oe):"*"==t?(k.marked="keyword",O(re)):":"==e?x(oe):void 0;var n}function ie(e){return"variable"!=e?x(oe):(k.marked="property",O(je))}function oe(e){return":"==e?O(z):"("==e?x(je):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?x():x(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?x(e):O($(t))}return function(n,i){return n==t||i==t?O():x(e,r)}}function se(e,t,n){for(var r=3;r<arguments.length;r++)k.cc.push(arguments[r]);return O(M(t,n),ae(e,t),F)}function le(e){return"}"==e?O():x(V,le)}function ce(e,t){if(u){if(":"==e)return O(fe);if("?"==t)return O(ce)}}function ue(e,t){if(u&&(":"==e||"in"==t))return O(fe)}function de(e){if(u&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?O(q,pe,fe):O(fe)}function pe(e,t){if("is"==t)return k.marked="keyword",O()}function fe(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(k.marked="keyword",O("typeof"==t?z:fe)):"variable"==e||"void"==t?(k.marked="type",O(Ee)):"|"==t||"&"==t?O(fe):"string"==e||"number"==e||"atom"==e?O(Ee):"["==e?O(M("]"),ae(fe,"]",","),F,Ee):"{"==e?O(M("}"),me,F,Ee):"("==e?O(ae(be,")"),he,Ee):"<"==e?O(ae(fe,">"),fe):"quasi"==e?x(ve,Ee):void 0}function he(e){if("=>"==e)return O(fe)}function me(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(me):x(ge,me)}function ge(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",O(ge)):"?"==t||"number"==e||"string"==e?O(ge):":"==e?O(fe):"["==e?O($("variable"),ue,$("]"),ge):"("==e?x(Pe,ge):e.match(/[;\}\)\],]/)?void 0:O()}function ve(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?O(ve):O(fe,ye)}function ye(e){if("}"==e)return k.marked="string-2",k.state.tokenize=y,O(ve)}function be(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?O(be):":"==e?O(fe):"spread"==e?O(be):x(fe)}function Ee(e,t){return"<"==t?O(M(">"),ae(fe,">"),F,Ee):"|"==t||"."==e||"&"==t?O(fe):"["==e?O(fe,$("]"),Ee):"extends"==t||"implements"==t?(k.marked="keyword",O(fe)):"?"==t?O(fe,$(":"),fe):void 0}function we(e,t){if("<"==t)return O(M(">"),ae(fe,">"),F,Ee)}function Te(){return x(fe,Se)}function Se(e,t){if("="==t)return O(fe)}function ke(e,t){return"enum"==t?(k.marked="keyword",O(Xe)):x(xe,ce,_e,Ne)}function xe(e,t){return u&&I(t)?(k.marked="keyword",O(xe)):"variable"==e?(_(t),O()):"spread"==e?O(xe):"["==e?se(Ce,"]"):"{"==e?se(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?O(xe):"}"==e?x():"["==e?O(q,$("]"),$(":"),Oe):O($(":"),xe,_e)):(_(t),O(_e))}function Ce(){return x(xe,_e)}function _e(e,t){if("="==t)return O(z)}function Ne(e){if(","==e)return O(ke)}function Ie(e,t){if("keyword b"==e&&"else"==t)return O(M("form","else"),V,F)}function Le(e,t){return"await"==t?O(Le):"("==e?O(M(")"),Ae,F):void 0}function Ae(e){return"var"==e?O(ke,De):"variable"==e?O(De):x(De)}function De(e,t){return")"==e?O():";"==e?O(De):"in"==t||"of"==t?(k.marked="keyword",O(q,De)):x(q,De)}function je(e,t){return"*"==t?(k.marked="keyword",O(je)):"variable"==e?(_(t),O(je)):"("==e?O(j,M(")"),ae(Me,")"),F,de,V,R):u&&"<"==t?O(M(">"),ae(Te,">"),F,je):void 0}function Pe(e,t){return"*"==t?(k.marked="keyword",O(Pe)):"variable"==e?(_(t),O(Pe)):"("==e?O(j,M(")"),ae(Me,")"),F,de,R):u&&"<"==t?O(M(">"),ae(Te,">"),F,Pe):void 0}function Re(e,t){return"keyword"==e||"variable"==e?(k.marked="type",O(Re)):"<"==t?O(M(">"),ae(Te,">"),F):void 0}function Me(e,t){return"@"==t&&O(q,Me),"spread"==e?O(Me):u&&I(t)?(k.marked="keyword",O(Me)):u&&"this"==e?O(ce,_e):x(xe,ce,_e)}function Fe(e,t){return"variable"==e?$e(e,t):Ve(e,t)}function $e(e,t){if("variable"==e)return _(t),O(Ve)}function Ve(e,t){return"<"==t?O(M(">"),ae(Te,">"),F,Ve):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(k.marked="keyword"),O(u?fe:q,Ve)):"{"==e?O(M("}"),Be,F):void 0}function Be(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&I(t))&&k.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(Be)):"variable"==e||"keyword"==k.style?(k.marked="property",O(qe,Be)):"number"==e||"string"==e?O(qe,Be):"["==e?O(q,ce,$("]"),qe,Be):"*"==t?(k.marked="keyword",O(Be)):u&&"("==e?x(Pe,Be):";"==e||","==e?O(Be):"}"==e?O():"@"==t?O(q,Be):void 0}function qe(e,t){if("!"==t)return O(qe);if("?"==t)return O(qe);if(":"==e)return O(fe,_e);if("="==t)return O(z);var n=k.state.lexical.prev;return x(n&&"interface"==n.info?Pe:je)}function ze(e,t){return"*"==t?(k.marked="keyword",O(We,$(";"))):"default"==t?(k.marked="keyword",O(q,$(";"))):"{"==e?O(ae(Ge,"}"),We,$(";")):x(V)}function Ge(e,t){return"as"==t?(k.marked="keyword",O($("variable"))):"variable"==e?x(z,Ge):void 0}function Qe(e){return"string"==e?O():"("==e?x(q):"."==e?x(H):x(Ue,He,We)}function Ue(e,t){return"{"==e?se(Ue,"}"):("variable"==e&&_(t),"*"==t&&(k.marked="keyword"),O(Ke))}function He(e){if(","==e)return O(Ue,He)}function Ke(e,t){if("as"==t)return k.marked="keyword",O(Ue)}function We(e,t){if("from"==t)return k.marked="keyword",O(q)}function Ye(e){return"]"==e?O():x(ae(z,"]"))}function Xe(){return x(M("form"),xe,$("{"),M("}"),ae(Je,"}"),F,F)}function Je(){return x(xe,_e)}function Ze(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 j.lex=P.lex=!0,R.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new L(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(),b(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",S(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==F)l=l.prev;else if(u!=Ie&&u!=R)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==H||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,p=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?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||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?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:Ze,skipExpression:function(t){S(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<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=o(n[0]);i!==n[0]&&(t[n[0]]=i)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var l=a[s];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},580:e=>{"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<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==a&&(o+=r.substring(s,a)),s=a+1,o+=n}return s!==a?o+r.substring(s,a):o}},3055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},8563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CharacterStream:()=>$e,CompletionItemKind:()=>mt,DIAGNOSTIC_SEVERITY:()=>cn,FileChangeTypeKind:()=>ht,GraphQLDocumentMode:()=>it,LexRules:()=>Qe,ParseRules:()=>Ue,Position:()=>Vt,Range:()=>$t,RuleKinds:()=>ft,SEVERITY:()=>ln,SuggestionCommand:()=>gt,canUseDirective:()=>kt,collectVariables:()=>Gt,getASTNodeAtPosition:()=>Mt,getAutocompleteSuggestions:()=>yt,getDefinitionQueryResultForArgument:()=>tn,getDefinitionQueryResultForDefinitionNode:()=>rn,getDefinitionQueryResultForField:()=>en,getDefinitionQueryResultForFragmentSpread:()=>nn,getDefinitionQueryResultForNamedType:()=>Zt,getDefinitionState:()=>dt,getDiagnostics:()=>dn,getFieldDef:()=>ct,getFragmentDefinitions:()=>St,getFragmentDependencies:()=>_t,getFragmentDependenciesForAST:()=>Nt,getHoverInformation:()=>bn,getOperationASTFacts:()=>Qt,getOperationFacts:()=>Ut,getOutline:()=>vn,getQueryFacts:()=>Ht,getRange:()=>hn,getTokenAtPosition:()=>st,getTypeInfo:()=>pt,getVariableCompletions:()=>Tt,getVariablesJSONSchema:()=>Rt,isIgnored:()=>Ge,list:()=>Be,offsetToPosition:()=>Bt,onlineParser:()=>We,opt:()=>Ve,p:()=>ze,pointToOffset:()=>Ft,t:()=>qe,validateQuery:()=>pn,validateWithCustomRules:()=>zt});var r=n(5549);function i(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function o(e,t){return function(e,t){if(!t||""===t.trim()||":"===t.trim()||"{"===t.trim())return a(e,(e=>!e.isDeprecated));return a(a(e.map((e=>({proximity:l(s(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,s(e.string))}function a(e,t){const n=e.filter(t);return 0===n.length?e:n}function s(e){return e.toLowerCase().replaceAll(/\W/g,"")}function l(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}const c=(e,t,n)=>{if(!t)return null!=n?n:e;const i=(0,r.getNamedType)(t);return(0,r.isObjectType)(i)||(0,r.isInputObjectType)(i)||(0,r.isListType)(i)||(0,r.isAbstractType)(i)?e+" {\n   $1\n}":null!=n?n:e},u=(e,t,n)=>{if((0,r.isListType)(t)){const n=(0,r.getNamedType)(t.ofType);return e+`[${c("",n,"$1")}]`}return c(e,t,n)},d=e=>{const t=e.args.filter((e=>e.type.toString().endsWith("!")));if(t.length)return e.name+`(${t.map(((e,t)=>`${e.name}: $${t+1}`))}) ${c("",e.type,"\n")}`};var p,f,h,m,g,v,y,b,E,w,T,S,k,x,O,C,_,N,I,L,A,D,j,P,R,M,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,de,pe,fe,he,me,ge,ve,ye,be,Ee,we,Te,Se,ke,xe,Oe,Ce,_e,Ne,Ie,Le,Ae,De,je,Pe,Re,Me;!function(e){e.is=function(e){return"string"==typeof e}}(p||(p={})),function(e){e.is=function(e){return"string"==typeof e}}(f||(f={})),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}}(h||(h={})),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}}(m||(m={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return Me.objectLiteral(t)&&Me.uinteger(t.line)&&Me.uinteger(t.character)}}(g||(g={})),function(e){e.create=function(e,t,n,r){if(Me.uinteger(e)&&Me.uinteger(t)&&Me.uinteger(n)&&Me.uinteger(r))return{start:g.create(e,t),end:g.create(n,r)};if(g.is(e)&&g.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 Me.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)}}(v||(v={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return Me.objectLiteral(t)&&v.is(t.range)&&(Me.string(t.uri)||Me.undefined(t.uri))}}(y||(y={})),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 Me.objectLiteral(t)&&v.is(t.targetRange)&&Me.string(t.targetUri)&&v.is(t.targetSelectionRange)&&(v.is(t.originSelectionRange)||Me.undefined(t.originSelectionRange))}}(b||(b={})),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 Me.objectLiteral(t)&&Me.numberRange(t.red,0,1)&&Me.numberRange(t.green,0,1)&&Me.numberRange(t.blue,0,1)&&Me.numberRange(t.alpha,0,1)}}(E||(E={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Me.objectLiteral(t)&&v.is(t.range)&&E.is(t.color)}}(w||(w={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Me.objectLiteral(t)&&Me.string(t.label)&&(Me.undefined(t.textEdit)||L.is(t))&&(Me.undefined(t.additionalTextEdits)||Me.typedArray(t.additionalTextEdits,L.is))}}(T||(T={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(S||(S={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Me.defined(n)&&(a.startCharacter=n),Me.defined(r)&&(a.endCharacter=r),Me.defined(i)&&(a.kind=i),Me.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return Me.objectLiteral(t)&&Me.uinteger(t.startLine)&&Me.uinteger(t.startLine)&&(Me.undefined(t.startCharacter)||Me.uinteger(t.startCharacter))&&(Me.undefined(t.endCharacter)||Me.uinteger(t.endCharacter))&&(Me.undefined(t.kind)||Me.string(t.kind))}}(k||(k={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return Me.defined(t)&&y.is(t.location)&&Me.string(t.message)}}(x||(x={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(O||(O={})),function(e){e.Unnecessary=1,e.Deprecated=2}(C||(C={})),function(e){e.is=function(e){const t=e;return Me.objectLiteral(t)&&Me.string(t.href)}}(_||(_={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return Me.defined(n)&&(a.severity=n),Me.defined(r)&&(a.code=r),Me.defined(i)&&(a.source=i),Me.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return Me.defined(n)&&v.is(n.range)&&Me.string(n.message)&&(Me.number(n.severity)||Me.undefined(n.severity))&&(Me.integer(n.code)||Me.string(n.code)||Me.undefined(n.code))&&(Me.undefined(n.codeDescription)||Me.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Me.string(n.source)||Me.undefined(n.source))&&(Me.undefined(n.relatedInformation)||Me.typedArray(n.relatedInformation,x.is))}}(N||(N={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return Me.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return Me.defined(t)&&Me.string(t.title)&&Me.string(t.command)}}(I||(I={})),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 Me.objectLiteral(t)&&Me.string(t.newText)&&v.is(t.range)}}(L||(L={})),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 Me.objectLiteral(t)&&Me.string(t.label)&&(Me.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Me.string(t.description)||void 0===t.description)}}(A||(A={})),function(e){e.is=function(e){const t=e;return Me.string(t)}}(D||(D={})),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 L.is(t)&&(A.is(t.annotationId)||D.is(t.annotationId))}}(j||(j={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Me.defined(t)&&q.is(t.textDocument)&&Array.isArray(t.edits)}}(P||(P={})),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&&Me.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Me.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Me.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(R||(R={})),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&&Me.string(t.oldUri)&&Me.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Me.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Me.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(M||(M={})),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&&Me.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Me.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Me.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(F||(F={})),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=>Me.string(e.kind)?R.is(e)||M.is(e)||F.is(e):P.is(e))))}}($||($={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Me.defined(t)&&Me.string(t.uri)}}(V||(V={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Me.defined(t)&&Me.string(t.uri)&&Me.integer(t.version)}}(B||(B={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Me.defined(t)&&Me.string(t.uri)&&(null===t.version||Me.integer(t.version))}}(q||(q={})),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 Me.defined(t)&&Me.string(t.uri)&&Me.string(t.languageId)&&Me.integer(t.version)&&Me.string(t.text)}}(z||(z={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(G||(G={})),function(e){e.is=function(e){const t=e;return Me.objectLiteral(e)&&G.is(t.kind)&&Me.string(t.value)}}(Q||(Q={})),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}(U||(U={})),function(e){e.PlainText=1,e.Snippet=2}(H||(H={})),function(e){e.Deprecated=1}(K||(K={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Me.string(t.newText)&&v.is(t.insert)&&v.is(t.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(Y||(Y={})),function(e){e.is=function(e){const t=e;return t&&(Me.string(t.detail)||void 0===t.detail)&&(Me.string(t.description)||void 0===t.description)}}(X||(X={})),function(e){e.create=function(e){return{label:e}}}(J||(J={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Z||(Z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Me.string(t)||Me.objectLiteral(t)&&Me.string(t.language)&&Me.string(t.value)}}(ee||(ee={})),function(e){e.is=function(e){let t=e;return!!t&&Me.objectLiteral(t)&&(Q.is(t.contents)||ee.is(t.contents)||Me.typedArray(t.contents,ee.is))&&(void 0===e.range||v.is(e.range))}}(te||(te={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ne||(ne={})),function(e){e.create=function(e,t,...n){let r={label:e};return Me.defined(t)&&(r.documentation=t),Me.defined(n)?r.parameters=n:r.parameters=[],r}}(re||(re={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ie||(ie={})),function(e){e.create=function(e,t){let n={range:e};return Me.number(t)&&(n.kind=t),n}}(oe||(oe={})),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}(ae||(ae={})),function(e){e.Deprecated=1}(se||(se={})),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}}(le||(le={})),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}}}}(ce||(ce={})),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&&Me.string(t.name)&&Me.number(t.kind)&&v.is(t.range)&&v.is(t.selectionRange)&&(void 0===t.detail||Me.string(t.detail))&&(void 0===t.deprecated||Me.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(ue||(ue={})),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"}(de||(de={})),function(e){e.Invoked=1,e.Automatic=2}(pe||(pe={})),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 Me.defined(t)&&Me.typedArray(t.diagnostics,N.is)&&(void 0===t.only||Me.typedArray(t.only,Me.string))&&(void 0===t.triggerKind||t.triggerKind===pe.Invoked||t.triggerKind===pe.Automatic)}}(fe||(fe={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):I.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&&Me.string(t.title)&&(void 0===t.diagnostics||Me.typedArray(t.diagnostics,N.is))&&(void 0===t.kind||Me.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||I.is(t.command))&&(void 0===t.isPreferred||Me.boolean(t.isPreferred))&&(void 0===t.edit||$.is(t.edit))}}(he||(he={})),function(e){e.create=function(e,t){let n={range:e};return Me.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return Me.defined(t)&&v.is(t.range)&&(Me.undefined(t.command)||I.is(t.command))}}(me||(me={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Me.defined(t)&&Me.uinteger(t.tabSize)&&Me.boolean(t.insertSpaces)}}(ge||(ge={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return Me.defined(t)&&v.is(t.range)&&(Me.undefined(t.target)||Me.string(t.target))}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return Me.objectLiteral(n)&&v.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ye||(ye={})),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"}(be||(be={})),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"}(Ee||(Ee={})),function(e){e.is=function(e){const t=e;return Me.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(we||(we={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&v.is(t.range)&&Me.string(t.text)}}(Te||(Te={})),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&&v.is(t.range)&&Me.boolean(t.caseSensitiveLookup)&&(Me.string(t.variableName)||void 0===t.variableName)}}(Se||(Se={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&v.is(t.range)&&(Me.string(t.expression)||void 0===t.expression)}}(ke||(ke={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Me.defined(t)&&v.is(e.stoppedLocation)}}(xe||(xe={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Oe||(Oe={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Me.objectLiteral(t)&&(void 0===t.tooltip||Me.string(t.tooltip)||Q.is(t.tooltip))&&(void 0===t.location||y.is(t.location))&&(void 0===t.command||I.is(t.command))}}(Ce||(Ce={})),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 Me.objectLiteral(t)&&g.is(t.position)&&(Me.string(t.label)||Me.typedArray(t.label,Ce.is))&&(void 0===t.kind||Oe.is(t.kind))&&void 0===t.textEdits||Me.typedArray(t.textEdits,L.is)&&(void 0===t.tooltip||Me.string(t.tooltip)||Q.is(t.tooltip))&&(void 0===t.paddingLeft||Me.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Me.boolean(t.paddingRight))}}(_e||(_e={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Ne||(Ne={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Ie||(Ie={})),function(e){e.create=function(e){return{items:e}}}(Le||(Le={})),function(e){e.Invoked=0,e.Automatic=1}(Ae||(Ae={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(De||(De={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(je||(je={})),function(e){e.is=function(e){const t=e;return Me.objectLiteral(t)&&f.is(t.uri)&&Me.string(t.name)}}(Pe||(Pe={})),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<i.length&&s<o.length;){let t=n(i[a],o[s]);e[l++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[l++]=i[a++];for(;s<o.length;)e[l++]=o[s++];return e}e.create=function(e,t,n,r){return new Fe(e,t,n,r)},e.is=function(e){let t=e;return!!(Me.defined(t)&&Me.string(t.uri)&&(Me.undefined(t.languageId)||Me.string(t.languageId))&&Me.uinteger(t.lineCount)&&Me.func(t.getText)&&Me.func(t.positionAt)&&Me.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{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}}(Re||(Re={}));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;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&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 g.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return g.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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Me||(Me={}));class $e{constructor(e){this._start=0,this._pos=0,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)||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 Ve(e){return{ofRule:e}}function Be(e,t){return{ofRule:e,isList:!0,separator:t}}function qe(e,t){return{style:t,match:t=>t.kind===e}}function ze(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const Ge=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Qe={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:/^#.*/},Ue={Document:[Be("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:[He("query"),Ve(Ke("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],Mutation:[He("mutation"),Ve(Ke("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],Subscription:[He("subscription"),Ve(Ke("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],VariableDefinitions:[ze("("),Be("VariableDefinition"),ze(")")],VariableDefinition:["Variable",ze(":"),"Type",Ve("DefaultValue")],Variable:[ze("$","variable"),Ke("variable")],DefaultValue:[ze("="),"Value"],SelectionSet:[ze("{"),Be("Selection"),ze("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Ke("property"),ze(":"),Ke("qualifier"),Ve("Arguments"),Be("Directive"),Ve("SelectionSet")],Field:[Ke("property"),Ve("Arguments"),Be("Directive"),Ve("SelectionSet")],Arguments:[ze("("),Be("Argument"),ze(")")],Argument:[Ke("attribute"),ze(":"),"Value"],FragmentSpread:[ze("..."),Ke("def"),Be("Directive")],InlineFragment:[ze("..."),Ve("TypeCondition"),Be("Directive"),"SelectionSet"],FragmentDefinition:[He("fragment"),Ve(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}(Ke("def"),[He("on")])),"TypeCondition",Be("Directive"),"SelectionSet"],TypeCondition:[He("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:[qe("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[qe("Name","builtin")],NullValue:[qe("Name","keyword")],EnumValue:[Ke("string-2")],ListValue:[ze("["),Be("Value"),ze("]")],ObjectValue:[ze("{"),Be("ObjectField"),ze("}")],ObjectField:[Ke("attribute"),ze(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[ze("["),"Type",ze("]"),Ve(ze("!"))],NonNullType:["NamedType",Ve(ze("!"))],NamedType:[{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:[ze("@","meta"),Ke("meta"),Ve("Arguments")],DirectiveDef:[He("directive"),ze("@","meta"),Ke("meta"),Ve("ArgumentsDef"),He("on"),Be("DirectiveLocation",ze("|"))],InterfaceDef:[He("interface"),Ke("atom"),Ve("Implements"),Be("Directive"),ze("{"),Be("FieldDef"),ze("}")],Implements:[He("implements"),Be("NamedType",ze("&"))],DirectiveLocation:[Ke("string-2")],SchemaDef:[He("schema"),Be("Directive"),ze("{"),Be("OperationTypeDef"),ze("}")],OperationTypeDef:[Ke("keyword"),ze(":"),Ke("atom")],ScalarDef:[He("scalar"),Ke("atom"),Be("Directive")],ObjectTypeDef:[He("type"),Ke("atom"),Ve("Implements"),Be("Directive"),ze("{"),Be("FieldDef"),ze("}")],FieldDef:[Ke("property"),Ve("ArgumentsDef"),ze(":"),"Type",Be("Directive")],ArgumentsDef:[ze("("),Be("InputValueDef"),ze(")")],InputValueDef:[Ke("attribute"),ze(":"),"Type",Ve("DefaultValue"),Be("Directive")],UnionDef:[He("union"),Ke("atom"),Be("Directive"),ze("="),Be("UnionMember",ze("|"))],UnionMember:["NamedType"],EnumDef:[He("enum"),Ke("atom"),Be("Directive"),ze("{"),Be("EnumValueDef"),ze("}")],EnumValueDef:[Ke("string-2"),Be("Directive")],InputDef:[He("input"),Ke("atom"),Be("Directive"),ze("{"),Be("InputValueDef"),ze("}")],ExtendDef:[He("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return r.Kind.SCHEMA_EXTENSION;case"scalar":return r.Kind.SCALAR_TYPE_EXTENSION;case"type":return r.Kind.OBJECT_TYPE_EXTENSION;case"interface":return r.Kind.INTERFACE_TYPE_EXTENSION;case"union":return r.Kind.UNION_TYPE_EXTENSION;case"enum":return r.Kind.ENUM_TYPE_EXTENSION;case"input":return r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[r.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[r.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[r.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[r.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[r.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[r.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[r.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function He(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Ke(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function We(e={eatWhitespace:e=>e.eatWhile(Ge),lexRules:Qe,parseRules:Ue,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Je(e.parseRules,t,r.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?Ze(t):t.needsAdvance&&(t.needsAdvance=!1,et(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;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Je(Xe,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return Je(Xe,t,"Comment"),"comment";const c=Ye({},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.at(-1)<t.indentLevel&&(t.indentLevel=e.at(-1))}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Je(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?et(t,!0):t.needsAdvance=!0,n.style}nt(t)}return Ye(t,c),Je(Xe,t,"Invalid"),"invalidchar"}(t,n,e)}}function Ye(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const Xe={Invalid:[],Comment:[]};function Je(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function Ze(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function et(e,t){var n;if(tt(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const{separator:t}=n;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Ze(e),e.rule&&(tt(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function tt(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function nt(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)Ze(e);e.rule&&et(e,!1)}function rt(e,t){const n=e.split("\n"),r=We();let i=r.startState(),o="",a=new $e("");for(let e=0;e<n.length;e++){for(a=new $e(n[e]);!a.eol()&&(o=r.token(a,i),"BREAK"!==t(a,i,o,e)););t(a,i,o,e),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}var it;!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(it||(it={}));const ot=[r.Kind.SCHEMA_DEFINITION,r.Kind.OPERATION_TYPE_DEFINITION,r.Kind.SCALAR_TYPE_DEFINITION,r.Kind.OBJECT_TYPE_DEFINITION,r.Kind.INTERFACE_TYPE_DEFINITION,r.Kind.UNION_TYPE_DEFINITION,r.Kind.ENUM_TYPE_DEFINITION,r.Kind.INPUT_OBJECT_TYPE_DEFINITION,r.Kind.DIRECTIVE_DEFINITION,r.Kind.SCHEMA_EXTENSION,r.Kind.SCALAR_TYPE_EXTENSION,r.Kind.OBJECT_TYPE_EXTENSION,r.Kind.INTERFACE_TYPE_EXTENSION,r.Kind.UNION_TYPE_EXTENSION,r.Kind.ENUM_TYPE_EXTENSION,r.Kind.INPUT_OBJECT_TYPE_EXTENSION],at=e=>{let t=it.UNKNOWN;if(e)try{(0,r.visit)((0,r.parse)(e),{enter(e){if("Document"!==e.kind)return!!ot.includes(e.kind)&&(t=it.TYPE_SYSTEM,r.BREAK);t=it.EXECUTABLE}})}catch(e){return t}return t};function st(e,t,n=0){let r=null,i=null,o=null;const a=rt(e,((e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return r=s,i=Object.assign({},a),o=e.current(),"BREAK"}));return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:r||a.style}}function lt(e,t,n,r,i){const o=r||st(e,t,1);if(!o)return null;const a="Invalid"===o.state.kind?o.state.prevState:o.state;return a?{token:o,state:a,typeInfo:pt(n,o.state),mode:(null==i?void 0:i.mode)||(s=e,(null==(l=null==i?void 0:i.uri)?void 0:l.endsWith(".graphqls"))?it.TYPE_SYSTEM:at(s))}:null;var s,l}function ct(e,t,n){return n===r.SchemaMetaFieldDef.name&&e.getQueryType()===t?r.SchemaMetaFieldDef:n===r.TypeMetaFieldDef.name&&e.getQueryType()===t?r.TypeMetaFieldDef:n===r.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t)?r.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function ut(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 dt(e){let t;return ut(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function pt(e,t){let n,i,o,a,s,l,c,u,d,p,f;return ut(t,(t=>{var h;switch(t.kind){case ft.QUERY:case"ShortQuery":p=e.getQueryType();break;case ft.MUTATION:p=e.getMutationType();break;case ft.SUBSCRIPTION:p=e.getSubscriptionType();break;case ft.INLINE_FRAGMENT:case ft.FRAGMENT_DEFINITION:t.type&&(p=e.getType(t.type));break;case ft.FIELD:case ft.ALIASED_FIELD:p&&t.name?(s=d?ct(e,d,t.name):null,p=s?s.type:null):s=null;break;case ft.SELECTION_SET:d=(0,r.getNamedType)(p);break;case ft.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case ft.INTERFACE_DEF:t.name&&(c=null,f=new r.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case ft.OBJECT_TYPE_DEF:t.name&&(f=null,c=new r.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case ft.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case ft.FIELD:i=s&&s.args;break;case ft.DIRECTIVE:i=o&&o.args;break;case ft.ALIASED_FIELD:{const n=null===(h=t.prevState)||void 0===h?void 0:h.name;if(!n){i=null;break}const r=d?ct(e,d,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case ft.ARGUMENT:if(i)for(let e=0;e<i.length;e++)if(i[e].name===t.name){n=i[e];break}l=null==n?void 0:n.type;break;case ft.VARIABLE_DEFINITION:case ft.VARIABLE:p=l;break;case ft.ENUM_VALUE:const m=(0,r.getNamedType)(l);a=m instanceof r.GraphQLEnumType?m.getValues().find((e=>e.value===t.name)):null;break;case ft.LIST_VALUE:const g=(0,r.getNullableType)(l);l=g instanceof r.GraphQLList?g.ofType:null;break;case ft.OBJECT_VALUE:const v=(0,r.getNamedType)(l);u=v instanceof r.GraphQLInputObjectType?v.getFields():null;break;case ft.OBJECT_FIELD:const y=t.name&&u?u[t.name]:null;l=null==y?void 0:y.type,s=y,p=s?s.type:null;break;case ft.NAMED_TYPE:t.name&&(p=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:o,enumValue:a,fieldDef:s,inputType:l,objectFieldDefs:u,parentType:d,type:p,interfaceDef:f,objectTypeDef:c}}const ft=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",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"}),ht={Created:1,Changed:2,Deleted:3};var mt;!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}(mt||(mt={}));const gt={command:"editor.action.triggerSuggest",title:"Suggestions"},vt=e=>{const t=[];if(e)try{(0,r.visit)((0,r.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t};function yt(e,t,n,a,s,l){var p;const f=Object.assign(Object.assign({},l),{schema:e}),h=lt(t,n,e,a,l);if(!h)return[];const{state:m,typeInfo:g,mode:v,token:y}=h,{kind:b,step:E,prevState:w}=m;if(b===ft.DOCUMENT)return v===it.TYPE_SYSTEM?function(e){return o(e,[{label:"extend",kind:mt.Function},...bt])}(y):v===it.EXECUTABLE?function(e){return o(e,Et)}(y):function(e){return o(e,[{label:"extend",kind:mt.Function},...Et,...bt])}(y);if(b===ft.EXTEND_DEF)return function(e){return o(e,bt)}(y);if((null===(p=null==w?void 0:w.prevState)||void 0===p?void 0:p.kind)===ft.EXTENSION_DEFINITION&&m.name)return o(y,[]);if((null==w?void 0:w.kind)===r.Kind.SCALAR_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isScalarType).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.OBJECT_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isObjectType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.INTERFACE_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isInterfaceType).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.UNION_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isUnionType).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.ENUM_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isEnumType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.INPUT_OBJECT_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isInputObjectType).map((e=>({label:e.name,kind:mt.Function}))));if(b===ft.IMPLEMENTS||b===ft.NAMED_TYPE&&(null==w?void 0:w.kind)===ft.IMPLEMENTS)return function(e,t,n,a,s){if(t.needsSeparator)return[];const l=i(n.getTypeMap()).filter(r.isInterfaceType),c=l.map((({name:e})=>e)),u=new Set;rt(a,((e,t)=>{var i,o,a,l,d;if(t.name&&(t.kind!==ft.INTERFACE_DEF||c.includes(t.name)||u.add(t.name),t.kind===ft.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===ft.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===(a=s.interfaceDef)||void 0===a?void 0:a.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===(l=s.objectTypeDef)||void 0===l?void 0:l.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 d=s.interfaceDef||s.objectTypeDef,p=((null==d?void 0:d.getInterfaces())||[]).map((({name:e})=>e));return o(e,l.concat([...u].map((e=>({name:e})))).filter((({name:e})=>e!==(null==d?void 0:d.name)&&!p.includes(e))).map((e=>{const t={label:e.name,kind:mt.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(y,m,e,t,g);if(b===ft.SELECTION_SET||b===ft.FIELD||b===ft.ALIASED_FIELD)return function(e,t,n){var a;if(t.parentType){const{parentType:s}=t;let l=[];return"getFields"in s&&(l=i(s.getFields())),(0,r.isCompositeType)(s)&&l.push(r.TypeNameMetaFieldDef),s===(null===(a=null==n?void 0:n.schema)||void 0===a?void 0:a.getQueryType())&&l.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),o(e,l.map(((t,r)=>{var i;const o={sortText:String(r)+t.name,label:t.name,detail:String(t.type),documentation:null!==(i=t.description)&&void 0!==i?i:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:mt.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=d(t),o.insertText||(o.insertText=c(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=H.Snippet,o.insertTextMode=Y.adjustIndentation,o.command=gt)),o})))}return[]}(y,g,f);if(b===ft.ARGUMENTS||b===ft.ARGUMENT&&0===E){const{argDefs:e}=g;if(e)return o(y,e.map((e=>{var t;return{label:e.name,insertText:u(e.name+": ",e.type),insertTextMode:Y.adjustIndentation,insertTextFormat:H.Snippet,command:gt,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:mt.Variable,type:e.type}})))}if((b===ft.OBJECT_VALUE||b===ft.OBJECT_FIELD&&0===E)&&g.objectFieldDefs){const e=i(g.objectFieldDefs),t=b===ft.OBJECT_VALUE?mt.Value:mt.Field;return o(y,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:u(e.name+": ",e.type),insertTextMode:Y.adjustIndentation,insertTextFormat:H.Snippet,command:gt}})))}if(b===ft.ENUM_VALUE||b===ft.LIST_VALUE&&1===E||b===ft.OBJECT_FIELD&&2===E||b===ft.ARGUMENT&&2===E)return function(e,t,n,i){const a=(0,r.getNamedType)(t.inputType),s=Tt(n,i,e).filter((e=>e.detail===(null==a?void 0:a.name)));return a instanceof r.GraphQLEnumType?o(e,a.getValues().map((e=>{var t;return{label:e.name,detail:String(a),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:mt.EnumMember,type:a}})).concat(s)):a===r.GraphQLBoolean?o(e,s.concat([{label:"true",detail:String(r.GraphQLBoolean),documentation:"Not false.",kind:mt.Variable,type:r.GraphQLBoolean},{label:"false",detail:String(r.GraphQLBoolean),documentation:"Not true.",kind:mt.Variable,type:r.GraphQLBoolean}])):s}(y,g,t,e);if(b===ft.VARIABLE&&1===E){const n=(0,r.getNamedType)(g.inputType);return o(y,Tt(t,e,y).filter((e=>e.detail===(null==n?void 0:n.name))))}if(b===ft.TYPE_CONDITION&&1===E||b===ft.NAMED_TYPE&&null!=w&&w.kind===ft.TYPE_CONDITION)return function(e,t,n){let a;if(t.parentType)if((0,r.isAbstractType)(t.parentType)){const e=(0,r.assertAbstractType)(t.parentType),o=n.getPossibleTypes(e),s=Object.create(null);for(const e of o)for(const t of e.getInterfaces())s[t.name]=t;a=o.concat(i(s))}else a=[t.parentType];else a=i(n.getTypeMap()).filter((e=>(0,r.isCompositeType)(e)&&!e.name.startsWith("__")));return o(e,a.map((e=>{const t=(0,r.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:mt.Field}})))}(y,g,e);if(b===ft.FRAGMENT_SPREAD&&1===E)return function(e,t,n,i,a){if(!i)return[];const s=n.getTypeMap(),l=dt(e.state),c=St(i);a&&a.length>0&&c.push(...a);return o(e,c.filter((e=>s[e.typeCondition.name.value]&&!(l&&l.kind===ft.FRAGMENT_DEFINITION&&l.name===e.name.value)&&(0,r.isCompositeType)(t.parentType)&&(0,r.isCompositeType)(s[e.typeCondition.name.value])&&(0,r.doTypesOverlap)(n,t.parentType,s[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:mt.Field,type:s[e.typeCondition.name.value]}))))}(y,g,e,t,Array.isArray(s)?s:vt(s));const T=xt(m);return T.kind===ft.FIELD_DEF?o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isOutputType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function,insertText:(null==l?void 0:l.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:Y.adjustIndentation})))):T.kind===ft.INPUT_VALUE_DEF&&2===E?o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isInputType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function,insertText:(null==l?void 0:l.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:Y.adjustIndentation,insertTextFormat:H.Snippet})))):b===ft.VARIABLE_DEFINITION&&2===E||b===ft.LIST_TYPE&&1===E||b===ft.NAMED_TYPE&&w&&(w.kind===ft.VARIABLE_DEFINITION||w.kind===ft.LIST_TYPE||w.kind===ft.NON_NULL_TYPE)?function(e,t){return o(e,i(t.getTypeMap()).filter(r.isInputType).map((e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:mt.Variable}))))}(y,e):b===ft.DIRECTIVE?function(e,t,n){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?o(e,n.getDirectives().filter((e=>kt(t.prevState,e))).map((e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:mt.Function})))):[]}(y,m,e):b===ft.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find((e=>e.name===t.name));return o(e,(null==r?void 0:r.args.map((e=>({label:e.name,documentation:e.description||"",kind:mt.Field}))))||[])}(y,m,e):[]}const bt=[{label:"type",kind:mt.Function},{label:"interface",kind:mt.Function},{label:"union",kind:mt.Function},{label:"input",kind:mt.Function},{label:"scalar",kind:mt.Function},{label:"schema",kind:mt.Function}],Et=[{label:"query",kind:mt.Function},{label:"mutation",kind:mt.Function},{label:"subscription",kind:mt.Function},{label:"fragment",kind:mt.Function},{label:"{",kind:mt.Constructor}],wt=(e,t)=>{var n,r,i,o,a,s,l,c,u,d;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===(d=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===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function Tt(e,t,n){let r,o=null;const a=Object.create({});return rt(e,((e,i)=>{var s;if((null==i?void 0:i.kind)===ft.VARIABLE&&i.name&&(o=i.name),(null==i?void 0:i.kind)===ft.NAMED_TYPE&&o){const e=wt(i,ft.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(o&&r&&!a[o]){const e="$"===n.string||"Variable"===(null===(s=null==n?void 0:n.state)||void 0===s?void 0:s.kind)?o:"$"+o;a[o]={detail:r.toString(),insertText:e,label:"$"+o,rawInsert:e,type:r,kind:mt.Variable},o=null,r=null}})),i(a)}function St(e){const t=[];return rt(e,((e,n)=>{n.kind===ft.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ft.FRAGMENT_DEFINITION,name:{kind:r.Kind.NAME,value:n.name},selectionSet:{kind:ft.SELECTION_SET,selections:[]},typeCondition:{kind:ft.NAMED_TYPE,name:{kind:r.Kind.NAME,value:n.type}}})})),t}function kt(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:i}=e,{locations:o}=t;switch(n){case ft.QUERY:return o.includes(r.DirectiveLocation.QUERY);case ft.MUTATION:return o.includes(r.DirectiveLocation.MUTATION);case ft.SUBSCRIPTION:return o.includes(r.DirectiveLocation.SUBSCRIPTION);case ft.FIELD:case ft.ALIASED_FIELD:return o.includes(r.DirectiveLocation.FIELD);case ft.FRAGMENT_DEFINITION:return o.includes(r.DirectiveLocation.FRAGMENT_DEFINITION);case ft.FRAGMENT_SPREAD:return o.includes(r.DirectiveLocation.FRAGMENT_SPREAD);case ft.INLINE_FRAGMENT:return o.includes(r.DirectiveLocation.INLINE_FRAGMENT);case ft.SCHEMA_DEF:return o.includes(r.DirectiveLocation.SCHEMA);case ft.SCALAR_DEF:return o.includes(r.DirectiveLocation.SCALAR);case ft.OBJECT_TYPE_DEF:return o.includes(r.DirectiveLocation.OBJECT);case ft.FIELD_DEF:return o.includes(r.DirectiveLocation.FIELD_DEFINITION);case ft.INTERFACE_DEF:return o.includes(r.DirectiveLocation.INTERFACE);case ft.UNION_DEF:return o.includes(r.DirectiveLocation.UNION);case ft.ENUM_DEF:return o.includes(r.DirectiveLocation.ENUM);case ft.ENUM_VALUE:return o.includes(r.DirectiveLocation.ENUM_VALUE);case ft.INPUT_DEF:return o.includes(r.DirectiveLocation.INPUT_OBJECT);case ft.INPUT_VALUE_DEF:switch(null==i?void 0:i.kind){case ft.ARGUMENTS_DEF:return o.includes(r.DirectiveLocation.ARGUMENT_DEFINITION);case ft.INPUT_DEF:return o.includes(r.DirectiveLocation.INPUT_FIELD_DEFINITION)}}return!1}function xt(e){return e.prevState&&e.kind&&[ft.NAMED_TYPE,ft.LIST_TYPE,ft.TYPE,ft.NON_NULL_TYPE].includes(e.kind)?xt(e.prevState):e}var Ot=n(801),Ct=n.n(Ot);const _t=(e,t)=>{if(!t)return[];let n;try{n=(0,r.parse)(e)}catch(e){return[]}return Nt(n,t)},Nt=(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;for(const e of i)!n.has(e)&&t.has(e)&&o.add(Ct()(t.get(e)));const a=[];for(const e of o)(0,r.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&t.get(e.name.value)&&(o.add(Ct()(t.get(e.name.value))),i.add(e.name.value))}}),n.has(e.name.value)||a.push(e);return a};function It(e,t){e.push(t)}function Lt(e,t){(0,r.isNonNullType)(t)?(Lt(e,t.ofType),It(e,"!")):(0,r.isListType)(t)?(It(e,"["),Lt(e,t.ofType),It(e,"]")):It(e,t.name)}function At(e,t,n){const i=[],o="type"in e?e.type:e;return"type"in e&&e.description&&(It(i,e.description),It(i,"\n\n")),It(i,function(e,t){const n=[];return t&&It(n,"```graphql\n"),Lt(n,e),t&&It(n,"\n```"),n.join("")}(o,t)),n?(It(i,"\n"),It(i,n)):!(0,r.isScalarType)(o)&&"description"in o&&o.description?(It(i,"\n"),It(i,o.description)):"ofType"in o&&!(0,r.isScalarType)(o.ofType)&&"description"in o.ofType&&o.ofType.description&&(It(i,"\n"),It(i,o.ofType.description)),i.join("")}const Dt={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}};class jt{constructor(){this.set=new Set}mark(e){return!this.set.has(e)&&(this.set.add(e),!0)}}function Pt(e,t){var n,i;let o=Object.create(null);const a=Object.create(null),s="type"in e?e.type:e,l=(0,r.isNonNullType)(s)?s.ofType:s,c=(0,r.isNonNullType)(s);if((0,r.isScalarType)(l))(null===(n=null==t?void 0:t.scalarSchemas)||void 0===n?void 0:n[l.name])?o=JSON.parse(JSON.stringify(t.scalarSchemas[l.name])):o.type=["string","number","boolean","integer"],c||(Array.isArray(o.type)?o.type.push("null"):o.type?o.type=[o.type,"null"]:o.enum?o.enum.push(null):o.oneOf?o.oneOf.push({type:"null"}):o={oneOf:[o,{type:"null"}]});else if((0,r.isEnumType)(l))o.enum=l.getValues().map((e=>e.name)),c||o.enum.push(null);else if((0,r.isListType)(l)){o.type=c?"array":["array","null"];const{definition:e,definitions:n}=Pt(l.ofType,t);if(o.items=e,n)for(const e of Object.keys(n))a[e]=n[e]}else if((0,r.isInputObjectType)(l)&&(c?o.$ref=`#/definitions/${l.name}`:o.oneOf=[{$ref:`#/definitions/${l.name}`},{type:"null"}],null===(i=null==t?void 0:t.definitionMarker)||void 0===i?void 0:i.mark(l.name))){const e=l.getFields(),n={type:"object",properties:{},required:[]};n.description=At(l),(null==t?void 0:t.useMarkdownDescription)&&(n.markdownDescription=At(l,!0));for(const r of Object.keys(e)){const i=e[r],{required:o,definition:s,definitions:l}=Pt(i,t);if(n.properties[r]=s,o&&n.required.push(r),l)for(const[e,t]of Object.entries(l))a[e]=t}a[l.name]=n}"defaultValue"in e&&void 0!==e.defaultValue&&(o.default=e.defaultValue);const{description:u}=o;return o.description=At(e,!1,u),(null==t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=At(e,!0,u)),{required:c,definition:o,definitions:a}}function Rt(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 jt,scalarSchemas:Object.assign(Object.assign({},Dt),null==t?void 0:t.scalarSchemas)});if(e)for(const[t,o]of Object.entries(e)){const{definition:e,required:a,definitions:s}=Pt(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 Mt(e,t,n){const i=Ft(e,n);let o;return(0,r.visit)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;o=e},leave(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),o}function Ft(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 $t{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 Vt(e,t)}setEnd(e,t){this.end=new Vt(e,t)}}class Vt{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}function Bt(e,t){const n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new Vt(r,t-i-1)}const qt=[r.LoneSchemaDefinitionRule,r.UniqueOperationTypesRule,r.UniqueTypeNamesRule,r.UniqueEnumValueNamesRule,r.UniqueFieldDefinitionNamesRule,r.UniqueDirectiveNamesRule,r.KnownTypeNamesRule,r.KnownDirectivesRule,r.UniqueDirectivesPerLocationRule,r.PossibleTypeExtensionsRule,r.UniqueArgumentNamesRule,r.UniqueInputFieldNamesRule,r.UniqueVariableNamesRule,r.FragmentsOnCompositeTypesRule,r.ProvidedRequiredArgumentsRule];function zt(e,t,n,i,o){const a=r.specifiedRules.filter((e=>e!==r.NoUnusedFragmentsRule&&e!==r.ExecutableDefinitionsRule&&(!i||e!==r.KnownFragmentNamesRule)));return n&&Array.prototype.push.apply(a,n),o&&Array.prototype.push.apply(a,qt),(0,r.validate)(e,t,a).filter((e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===r.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}function Gt(e,t){const n=Object.create(null);for(const i of t.definitions)if("OperationDefinition"===i.kind){const{variableDefinitions:t}=i;if(t)for(const{variable:i,type:o}of t){const t=(0,r.typeFromAST)(e,o);t?n[i.name.value]=t:o.kind===r.Kind.NAMED_TYPE&&"Float"===o.name.value&&(n[i.name.value]=r.GraphQLFloat)}}return n}function Qt(e,t){const n=t?Gt(t,e):void 0,i=[];return(0,r.visit)(e,{OperationDefinition(e){i.push(e)}}),{variableToType:n,operations:i}}function Ut(e,t){if(t)try{const n=(0,r.parse)(t);return Object.assign(Object.assign({},Qt(n,e)),{documentAST:n})}catch(e){return}}const Ht=Ut;var Kt=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 Wt="GraphQL";function Yt(e,t){if(!e)throw new Error(t)}function Xt(e,t){const n=t.loc;return Yt(n,"Expected ASTNode to have a location."),function(e,t){const n=Bt(e,t.start),r=Bt(e,t.end);return new $t(n,r)}(e,n)}function Jt(e,t){const n=t.loc;return Yt(n,"Expected ASTNode to have a location."),Bt(e,n.start)}function Zt(e,t,n){return Kt(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 Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>Xt(e,t))),printedName:r}}))}function en(e,t,n){var r;return Kt(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(an(t||"",n,i))}return{definitions:o,queryRange:[],printedName:[t,e].join(".")}}))}function tn(e,t,n,r){var i,o,a;return Kt(this,void 0,void 0,(function*(){const s=[];for(const{filePath:n,content:l,definition:c}of r){const r=null===(a=null===(o=null===(i=c.fields)||void 0===i?void 0:i.find((e=>e.name.value===t)))||void 0===o?void 0:o.arguments)||void 0===a?void 0:a.find((t=>t.name.value===e));null!=r&&s.push(sn(n||"",l,r))}return{definitions:s,queryRange:[],printedName:`${[n,t].join(".")}(${e})`}}))}function nn(e,t,n){return Kt(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})=>on(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>Xt(e,t))),printedName:r}}))}function rn(e,t,n){var r;return{definitions:[on(e,t,n)],queryRange:n.name?[Xt(t,n.name)]:[],printedName:null===(r=n.name)||void 0===r?void 0:r.value}}function on(e,t,n){const{name:r}=n;if(!r)throw new Error("Expected ASTNode to have a Name.");return{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}function an(e,t,n){const{name:r}=n;return Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}function sn(e,t,n){const{name:r}=n;return Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}const ln={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},cn={[ln.Error]:1,[ln.Warning]:2,[ln.Information]:3,[ln.Hint]:4},un=(e,t)=>{if(!e)throw new Error(t)};function dn(e,t=null,n,i,o){var a,s;let l=null,c="";o&&(c="string"==typeof o?o:o.reduce(((e,t)=>e+(0,r.print)(t)+"\n\n"),""));const u=c?`${e}\n\n${c}`:e;try{l=(0,r.parse)(u)}catch(e){if(e instanceof r.GraphQLError){const t=hn(null!==(s=null===(a=e.locations)||void 0===a?void 0:a[0])&&void 0!==s?s:{line:0,column:0},u);return[{severity:cn.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return pn(l,t,n,i)}function pn(e,t=null,n,i){if(!t)return[];const o=zt(t,e,n,i).flatMap((e=>fn(e,cn.Error,"Validation"))),a=(0,r.validate)(t,e,[r.NoDeprecatedCustomRule]).flatMap((e=>fn(e,cn.Warning,"Deprecation")));return o.concat(a)}function fn(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){un(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=mn(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new $t(new Vt(o.line-1,o.column-1),new Vt(o.line-1,l))})}}return r}function hn(e,t){const n=We(),r=n.startState(),i=t.split("\n");un(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t<e.line;t++)for(o=new $e(i[t]);!o.eol()&&"invalidchar"!==n.token(o,r););un(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),l=o.getCurrentPosition();return new $t(new Vt(a,s),new Vt(a,l))}function mn(e){const t=e.loc;return un(t,"Expected ASTNode to have a location."),t}const{INLINE_FRAGMENT:gn}=r.Kind;function vn(e){let t;try{t=(0,r.parse)(e)}catch(e){return null}const n=function(e){const t=t=>({representativeName:t.name,startPosition:Bt(e,t.loc.start),endPosition:Bt(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field(e){const n=e.alias?[yn("plain",e.alias),yn("plain",": ")]:[];return n.push(yn("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[yn("keyword",e.operation),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e){const t=[];for(let r=0;r<e.length;r++){const i=(n=e[r]).kind===gn?n.selectionSet:n;Array.isArray(i)?t.push(...i):t.push(i)}var n;return t}(e.selections),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[yn("keyword","fragment"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","interface"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","enum"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[yn("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","type"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","input"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[yn("plain","..."),yn("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[yn("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[yn("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,r.visit)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function yn(e,t){return{kind:e,value:t}}function bn(e,t,n,r,i){const o=Object.assign(Object.assign({},i),{schema:e}),a=lt(t,n,e,r);if(!a)return"";const{typeInfo:s,token:l}=a,{kind:c,step:u}=l.state;if("Field"===c&&0===u&&s.fieldDef||"AliasedField"===c&&2===u&&s.fieldDef||"ObjectField"===c&&0===u&&s.fieldDef){const e=[];return En(e,o),function(e,t,n){Tn(e,t,n),kn(e,t,n,t.type)}(e,s,o),wn(e,o),On(e,0,s.fieldDef),e.join("").trim()}if("Directive"===c&&1===u&&s.directiveDef){const e=[];return En(e,o),Sn(e,s),wn(e,o),On(e,0,s.directiveDef),e.join("").trim()}if("Variable"===c&&s.type){const e=[];return En(e,o),xn(e,s,o,s.type),wn(e,o),On(e,0,s.type),e.join("").trim()}if("Argument"===c&&0===u&&s.argDef){const e=[];return En(e,o),function(e,t,n){if(t.directiveDef?Sn(e,t):t.fieldDef&&Tn(e,t,n),!t.argDef)return;const{name:r}=t.argDef;Cn(e,"("),Cn(e,r),kn(e,t,n,t.inputType),Cn(e,")")}(e,s,o),wn(e,o),On(e,0,s.argDef),e.join("").trim()}if("EnumValue"===c&&s.enumValue&&"description"in s.enumValue){const e=[];return En(e,o),function(e,t,n){if(!t.enumValue)return;const{name:r}=t.enumValue;xn(e,t,n,t.inputType),Cn(e,"."),Cn(e,r)}(e,s,o),wn(e,o),On(e,0,s.enumValue),e.join("").trim()}if("NamedType"===c&&s.type&&"description"in s.type){const e=[];return En(e,o),xn(e,s,o,s.type),wn(e,o),On(e,0,s.type),e.join("").trim()}return""}function En(e,t){t.useMarkdown&&Cn(e,"```graphql\n")}function wn(e,t){t.useMarkdown&&Cn(e,"\n```")}function Tn(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(xn(e,t,n,t.parentType),Cn(e,".")),Cn(e,r)}function Sn(e,t,n){t.directiveDef&&Cn(e,"@"+t.directiveDef.name)}function kn(e,t,n,r){Cn(e,": "),xn(e,t,n,r)}function xn(e,t,n,i){i&&(i instanceof r.GraphQLNonNull?(xn(e,t,n,i.ofType),Cn(e,"!")):i instanceof r.GraphQLList?(Cn(e,"["),xn(e,t,n,i.ofType),Cn(e,"]")):Cn(e,i.name))}function On(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(Cn(e,"\n\n"),Cn(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason||null;r&&(Cn(e,"\n\n"),Cn(e,"Deprecated: "),Cn(e,r))}(e,0,n)}function Cn(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: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(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!=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!==(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 p of o.selections)switch(p.kind){case r.Kind.FIELD:{if(!c(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(!c(n,p)||!u(e,p,i))continue;l(e,t,n,i,p.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=p.name.value;if(s.has(r)||!c(n,p))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 d}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=x,t.buildExecutionContext=O,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=M;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),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),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;x(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 C(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),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 x(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:l,fieldResolver:c,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==l){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)===l&&(p=e);break;case g.Kind.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!p)return null!=l?[new f.GraphQLError(`Unknown operation named "${l}".`)]:[new f.GraphQLError("Must provide an operation.")];const m=null!==(n=p.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:p,variableValues:v.coerced,fieldResolver:null!=c?c:R,typeResolver:null!=u?u:P,subscribeFieldResolver:null!=d?d:R,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,d.promiseForObject)(o).finally((()=>{throw e}));throw e}return a?(0,d.promiseForObject)(o):o}function _(e,t,n,r,i){var o;const a=M(e.schema,t,r[0]);if(!a)return;const s=a.type,c=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,d=N(e,a,r,t,i);try{const t=c(n,(0,w.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,d);let o;return o=(0,l.isPromise)(t)?t.then((t=>L(e,s,r,d,i,t))):L(e,s,r,d,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 d=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(d):d}(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 j(t,o,n);return C(e,t,o,i,a)}));if(!s)throw j(t,o,n)}return C(e,t,o,i,a)}function j(e,t,n){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const P=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<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if((0,l.isPromise)(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0};t.defaultTypeResolver=P;const R=function(e,t,n,r){if((0,s.isObjectLike)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function M(e,t,n){const r=n.name.value;return r===y.SchemaMetaFieldDef.name&&e.getQueryType()===t?y.SchemaMetaFieldDef:r===y.TypeMetaFieldDef.name&&e.getQueryType()===t?y.TypeMetaFieldDef:r===y.TypeNameMetaFieldDef.name?y.TypeNameMetaFieldDef:t.getFields()[r]}t.defaultFieldResolver=R},8259:(e,t,n)=>{"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),l=n(6107),c=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,c.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,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,d.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,p.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),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,c.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,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,p.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: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,l.execute)({schema:t,document:m,rootValue:i,contextValue:c,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 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;n<o;++n)s.push(i(e[n],t));return 1===a?s.push("... 1 more item"):a>1&&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(;r<e.length&&o<t.length;){let a=e.charCodeAt(r),s=t.charCodeAt(o);if(i(a)&&i(s)){let l=0;do{++r,l=10*l+a-n,a=e.charCodeAt(r)}while(i(a)&&l>0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(l<c)return-1;if(l>c)return 1}else{if(a<s)return-1;if(a>s)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.length<i.length){const e=r;r=i,i=e}const a=r.length,s=i.length;if(a-s>t)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)}c<a&&(a=c),o[t]=c}if(a>t)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<t;++r)n[r]=e.charCodeAt(r);return n}},2036:(e,t,n)=>{"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;t<e.length;++t){var a;const s=e[t],l=i(s);l!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&l<n&&(n=l))}return e.map(((e,t)=>0===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;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&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,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<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}},3932:(e,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 l.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 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 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),l=n(6083),c=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 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 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<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return g(e,o);case 33:return h(e,s.TokenKind.BANG,o,o+1);case 36:return h(e,s.TokenKind.DOLLAR,o,o+1);case 38:return h(e,s.TokenKind.AMP,o,o+1);case 40:return h(e,s.TokenKind.PAREN_L,o,o+1);case 41:return h(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return h(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return h(e,s.TokenKind.COLON,o,o+1);case 61:return h(e,s.TokenKind.EQUALS,o,o+1);case 64:return h(e,s.TokenKind.AT,o,o+1);case 91:return h(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return h(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return h(e,s.TokenKind.BRACE_L,o,o+1);case 124:return h(e,s.TokenKind.PIPE,o,o+1);case 125:return h(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?x(e,o):b(e,o)}if((0,a.isDigit)(t)||45===t)return v(e,o,t);if((0,a.isNameStart)(t))return O(e,o);throw(0,r.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||u(n,o)?`Unexpected character: ${f(e,o)}.`:`Invalid character: ${f(e,o)}.`)}return h(e,s.TokenKind.EOF,i,i)}function g(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else{if(!u(n,i))break;i+=2}}return h(e,s.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function v(e,t,n){const i=e.source.body;let o=t,l=n,c=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,a.isDigit)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=y(e,o,l),l=i.charCodeAt(o);if(46===l&&(c=!0,l=i.charCodeAt(++o),o=y(e,o,l),l=i.charCodeAt(o)),69!==l&&101!==l||(c=!0,l=i.charCodeAt(++o),43!==l&&45!==l||(l=i.charCodeAt(++o)),o=y(e,o,l),l=i.charCodeAt(o)),46===l||(0,a.isNameStart)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return h(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function y(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function b(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,l="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return l+=n.slice(a,o),h(e,s.TokenKind.STRING,t,o+1,l);if(92!==i){if(10===i||13===i)break;if(c(i))++o;else{if(!u(n,o))throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`);o+=2}}else{l+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?E(e,o):w(e,o):k(e,o);l+=t.value,o+=t.size,a=o}}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}function E(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|S(e),i<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function w(e,t){const n=e.source.body,i=T(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=T(n,t+8);if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function T(e,t){return S(e.charCodeAt(t))<<12|S(e.charCodeAt(t+1))<<8|S(e.charCodeAt(t+2))<<4|S(e.charCodeAt(t+3))}function S(e){return e>=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 x(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,l=t+3,d=l,p="";const m=[];for(;l<i;){const i=n.charCodeAt(l);if(34===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){p+=n.slice(d,l),m.push(p);const r=h(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==i&&13!==i)if(c(i))++l;else{if(!u(n,l))throw(0,r.syntaxError)(e.source,l,`Invalid character within String: ${f(e,l)}.`);l+=2}else p+=n.slice(d,l),m.push(p),13===i&&10===n.charCodeAt(l+1)?l+=2:++l,p="",d=l,a=l;else p+=n.slice(d,l),d=l+1,l+=4}throw(0,r.syntaxError)(e.source,l,"Unterminated string.")}function O(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return h(e,s.TokenKind.NAME,t,i,n.slice(t,i))}t.Lexer=l},9530:(e,t,n)=>{"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,`${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(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 ${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!==c.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===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 ${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(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 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)||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`,d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+o([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",d[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${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=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+(d(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+(d(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 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="<SOF>",e.EOF="<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,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 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,d,p,y,b),l===s)break;if(!1===l){if(!e){y.pop();continue}}else if(void 0!==l&&(g.push([d,l]),!e)){if(!(0,o.isNode)(l)){y.pop();continue}v=l}}var T;void 0===l&&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!==(T=n[v.kind])&&void 0!==T?T:[],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<e.length;++t){const{enter:n,leave:s}=l(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const c={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const l=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=c}return n};var r=n(3028),i=n(9657),o=n(6257),a=n(7030);const s=Object.freeze({});function l(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}}t.BREAK=s},3506:(e,t,n)=>{"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<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new i.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new i.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}},3754:(e,t,n)=>{"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(!x(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(!O(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL List type.`);return e},t.assertNamedType=function(e){if(!M(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(!R(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(!P(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(;P(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=x,t.isInputType=_,t.isInterfaceType=T,t.isLeafType=I,t.isListType=O,t.isNamedType=M,t.isNonNullType=C,t.isNullableType=R,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=P,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),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)||w(e)||T(e)||S(e)||k(e)||x(e)||O(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 x(e){return(0,s.instanceOf)(e,Z)}function O(e){return(0,s.instanceOf)(e,D)}function C(e){return(0,s.instanceOf)(e,j)}function _(e){return E(e)||k(e)||x(e)||P(e)&&_(e.ofType)}function N(e){return E(e)||w(e)||T(e)||S(e)||k(e)||P(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 j{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 P(e){return O(e)||C(e)}function R(e){return b(e)&&!C(e)}function M(e){return E(e)||w(e)||T(e)||S(e)||k(e)||x(e)}function F(e){return"function"==typeof e?e():e}function $(e){return"function"==typeof e?e():e}t.GraphQLNonNull=j;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,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,l.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=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,p.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,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}}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,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=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(!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 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),d=n(1062);function p(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(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:[l.DirectiveLocation.FIELD,l.DirectiveLocation.FRAGMENT_SPREAD,l.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:[l.DirectiveLocation.FIELD_DEFINITION,l.DirectiveLocation.ARGUMENT_DEFINITION,l.DirectiveLocation.INPUT_FIELD_DEFINITION,l.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:[l.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=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(d))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const d=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(p))),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=d;const p=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=p;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,d,p,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 d=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||n<u)throw new o.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,r.inspect)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(e)}`);if(e>c||e<u)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.Kind.INT)throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,s.print)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>c||t<u)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});t.GraphQLInt=d;const p=new l.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",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.isFinite(n))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.FLOAT&&e.kind!==a.Kind.INT)throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,s.print)(e)}`,e);return parseFloat(e.value)}});t.GraphQLFloat=p;const f=new l.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=v(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.GraphQLError(`String cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.STRING)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLString=f;const h=new l.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=v(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.BOOLEAN)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLBoolean=h;const m=new l.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=v(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseLiteral(e){if(e.kind!==a.Kind.STRING&&e.kind!==a.Kind.INT)throw new o.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,s.print)(e),{nodes:e});return e.value}});t.GraphQLID=m;const g=Object.freeze([f,d,p,h,m]);function v(e){if((0,i.isObjectLike)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}t.specifiedScalarTypes=g},4648:(e,t,n)=>{"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),l=n(6257),c=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,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=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),l=n(8685),c=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 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 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 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 d of Object.values(n.getFields())){const p=d.name,f=i[p];if(f){var o,l;(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===(l=f.astNode)||void 0===l?void 0:l.type]);for(const i of d.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}.${p}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${p}(${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}.${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}.`,[...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:()=>O(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[...d.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: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 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),x)}function x(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:O(e.args)}}function O(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),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),l=n(6506),c=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,c.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function h(e,t,n,c){if((0,p.isNonNullType)(t))return null!=e?h(e,t.ofType,n,c):void n((0,l.pathToArray)(c),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,l.addPath)(c,t,void 0);return h(e,r,n,i)})):[h(e,r,n,c)]}if((0,p.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return void n((0,l.pathToArray)(c),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,l.addPath)(c,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,l.pathToArray)(c),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,l.pathToArray)(c),e,new d.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}return o}if((0,p.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof d.GraphQLError?n((0,l.pathToArray)(c),e,r):n((0,l.pathToArray)(c),e,new d.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,l.pathToArray)(c),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===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),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 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 x=Object.create(null);for(const t of e.types)x[t.name]=(O=t,(0,p.isIntrospectionType)(O)||(0,f.isSpecifiedScalarType)(O)?O:(0,u.isScalarType)(O)?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)})}(O):(0,u.isObjectType)(O)?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),...R(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,u.isInterfaceType)(O)?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),...R(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(O):(0,u.isUnionType)(O)?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)})}(O):(0,u.isEnumType)(O)?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)})}(O):(0,u.isInputObjectType)(O)?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)})}(O):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(O)));var O;for(const e of g){var C;const t=e.name.value;x[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(x),directives:[...e.directives.map((function(e){const t=e.toConfig();return new d.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,A)})})),...T.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:M(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 x[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]=j(n.type)}return t}function j(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:x[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function P(e){return e.kind===l.Kind.LIST_TYPE?new u.GraphQLList(P(e.type)):e.kind===l.Kind.NON_NULL_TYPE?new u.GraphQLNonNull(P(e.type)):j(e)}function R(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:P(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:M(n.arguments),deprecationReason:E(n),astNode:n}}}return t}function M(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=P(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=P(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(j))&&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(j))&&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:()=>R(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:()=>R(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 d;const t=[e,...r];return new u.GraphQLInputObjectType({name:n,description:null===(d=e.description)||void 0===d?void 0:d.value,fields:()=>F(t),astNode:e,extensionASTNodes:r})}}}}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 w(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),l=n(585),c=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,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=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,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=O(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=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(...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=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(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=x(n.defaultValue,n.type),a=x(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 x(e,t){const n=(0,d.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,l.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,...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 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),l=n(434),c=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),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)(p(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: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 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 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),l=n(8685),c=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,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),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 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,p.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 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 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 M.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 P.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return R.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return x.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return O.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 j.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),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),w=n(1843),T=n(3618),S=n(5566),k=n(9529),x=n(7091),O=n(7027),C=n(5988),_=n(3191),N=n(7909),I=n(964),L=n(4281),A=n(502),D=n(105),j=n(3171),P=n(1813),R=n(3084),M=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 d=e.getDocument().definitions;for(const e of d)e.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,c,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 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))}}(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),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,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&&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<a.length;i++)for(let s=i+1;s<a.length;s++){const l=h(e,n,r,!1,o,a[i],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){d(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)p(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,a]of o){const o=u(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(a)}))}}}};var r=n(9657),i=n(1702),o=n(7030),a=n(585),s=n(3754),l=n(1152),c=n(6693);function u(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+u(t))).join(" and "):e}function d(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),d(e,t,n,r,i,o,s))}}function p(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),[d,h]=y(e,n,l);f(e,t,n,r,i,c,d);for(const a of h)p(e,t,n,r,i,o,a);for(const o of u)p(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,x=b.selectionSet;if(k&&x){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)d(e,l,t,n,r,c,i);for(const i of u)d(e,l,t,n,r,h,i);for(const i of u)for(const o of m)p(e,l,t,n,r,i,o);return l}(e,t,n,w,(0,s.getNamedType)(T),k,(0,s.getNamedType)(S),x);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<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}},6839:(e,t,n)=>{"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:p,ObjectTypeExtension:p,InterfaceTypeExtension:p,UnionTypeExtension:p,EnumTypeExtension:p,InputObjectTypeExtension:p};function p(c){const p=c.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)?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 "${p}".`,{nodes:f?[f,c]:c}))}}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: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 d={[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(),p=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of p)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(d),(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 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){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 d=(0,o.collectFields)(n,u,l,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 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(),d=(0,l.typeFromAST)(t,u.type);if(d&&!c(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),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),d=n(502),p=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),x=n(9529),O=n(1813),C=n(3084),_=n(7091),N=n(7027),I=n(5988),L=n(105),A=n(3171),D=n(3191),j=n(7909),P=n(964),R=n(4281);const M=Object.freeze([r.ExecutableDefinitionsRule,I.UniqueOperationNamesRule,u.LoneAnonymousOperationRule,w.SingleFieldSubscriptionsRule,c.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,P.VariablesAreInputTypesRule,E.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,_.UniqueFragmentNamesRule,l.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,v.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,D.UniqueVariableNamesRule,f.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,s.KnownDirectivesRule,x.UniqueDirectivesPerLocationRule,a.KnownArgumentNamesRule,S.UniqueArgumentNamesRule,j.ValuesOfCorrectTypeRule,b.ProvidedRequiredArgumentsRule,R.VariablesInAllowedPositionRule,g.OverlappingFieldsCanBeMergedRule,N.UniqueInputFieldNamesRule]);t.specifiedRules=M;const F=Object.freeze([d.LoneSchemaDefinitionRule,L.UniqueOperationTypesRule,A.UniqueTypeNamesRule,O.UniqueEnumValueNamesRule,C.UniqueFieldDefinitionNamesRule,T.UniqueArgumentDefinitionNamesRule,k.UniqueDirectiveNamesRule,c.KnownTypeNamesRule,s.KnownDirectivesRule,x.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,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 c.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),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,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=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},3072:(e,t)=>{"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,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 w(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 c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function T(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,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 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)===p},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===d||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===p||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="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 l=[];function c(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:c(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?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(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 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({},l,e),this.__compiled__={},this.__tlds__=c,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,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<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__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<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var o={compressToBase64:function(e){if(null==e)return"";var n=o._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:o._decompress(e.length,32,(function(n){return i(t,e.charAt(n))}))},compressToUTF16:function(t){return null==t?"":o._compress(t,15,(function(t){return e(t+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:o._decompress(e.length,16384,(function(t){return e.charCodeAt(t)-32}))},compressToUint8Array:function(e){for(var t=o.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var a=t.charCodeAt(r);n[2*r]=a>>>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<i;r++)n[r]=256*t[2*r]+t[2*r+1];var a=[];return n.forEach((function(t){a.push(e(t))})),o.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":o._compress(e,6,(function(e){return n.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),o._decompress(e.length,32,(function(t){return i(n,e.charAt(t))})))},compress:function(t){return o._compress(t,16,(function(t){return e(t)}))},_compress:function(e,t,n){if(null==e)return"";var r,i,o,a={},s={},l="",c="",u="",d=2,p=3,f=2,h=[],m=0,g=0;for(o=0;o<e.length;o+=1)if(l=e.charAt(o),Object.prototype.hasOwnProperty.call(a,l)||(a[l]=p++,s[l]=!0),c=u+l,Object.prototype.hasOwnProperty.call(a,c))u=c;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++),a[c]=p++,u=String(l)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(i=2,r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=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,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,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(d[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;d[f++]=e(a),u=f-1,p--;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;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]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\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),d=/[&<>"]/,p=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};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 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++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)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<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s}},7311:(e,t,n)=>{"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<n;){if((i=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=a,l.str=r(e.slice(s+1,t)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return l}},1246:(e,t,n)=>{"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),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 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=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<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(7759),e.exports=o},6321:(e,t,n)=>{"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<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(1839),e.exports=o},5552:(e,t,n)=>{"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<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=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<a;i++)o[i](s)},a.prototype.State=n(979),e.exports=a},73:e=>{"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"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,l,c,u,d,p=e[t],f=p.info?i(p.info).trim():"",h="",m="";return f&&(h=(c=f.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,m)||o(p.content)).indexOf("<pre")?s+"\n":f?(l=p.attrIndex("class"),u=p.attrs?p.attrs.slice():[],l<0?u.push(["class",n.langPrefix+h]):(u[l]=u[l].slice(),u[l][1]+=" "+n.langPrefix+h),d={attrs:u},"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\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?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\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;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},2378:e=>{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},2941:(e,t,n)=>{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,E,w,T,S,k,x=e.lineMax,O=e.bMarks[t]+e.tShift[t],C=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(l=f=e.sCount[t]+1,32===e.src.charCodeAt(O)?(O++,l++,f++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[t]+f)%4==3?(O++,l++,f++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=O;O<C&&(a=e.src.charCodeAt(O),r(a));)9===a?f+=4-(f+e.bsCount[t]+(o?1:0))%4:f++,O++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(E?1:0),u=O>=C,y=[e.sCount[t]],e.sCount[t]=f-l,b=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],T=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(k=e.sCount[p]<e.blkIndent,!((O=e.bMarks[p]+e.tShift[p])>=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(O++)||k){if(u)break;for(w=!1,s=0,c=T.length;s<c;s++)if(T[s](e,p,n,!0)){w=!0;break}if(w){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(l=f=e.sCount[p]+1,32===e.src.charCodeAt(O)?(O++,l++,f++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[p]+f)%4==3?(O++,l++,f++,o=!1):o=!0):E=!1,h.push(e.bMarks[p]),e.bMarks[p]=O;O<C&&(a=e.src.charCodeAt(O),r(a));)9===a?f+=4-(f+e.bsCount[p]+(o?1:0))%4:f++,O++;u=O>=C,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(E?1:0),y.push(e.sCount[p]),e.sCount[p]=f-l,b.push(e.tShift[p]),e.tShift[p]=O-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(S=e.push("blockquote_open","blockquote",1)).markup=">",S.map=d=[t,0],e.md.block.tokenize(e,t,p),(S=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=v,d[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}},5711:e=>{"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<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=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,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(l=p,(o=(p=e.skipChars(p,i))-l)<3)return!1;if(u=e.src.slice(l,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=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,i))-l<o||(p=e.skipSpaces(p))<f)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,o,!0),c.markup=u,c.map=[t,e.line],!0}},634:(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(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c<u&&a<=6;)a++,o=e.src.charCodeAt(++c);return!(a>6||c<u&&!r(o)||(i||(u=e.skipSpacesBack(u,c),(s=e.skipCharsBack(u,35,c))>c&&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<u;){if((s=e.src.charCodeAt(c++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3||(i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(o))),0))}},1857:(e,t,n)=>{"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],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","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<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(l))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],u=e.eMarks[a],l=e.src.slice(c,u),o[i][1].test(l)){0!==l.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},9648:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,c,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";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=c)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(d),e.parentType=p,!0)}},6686:(e,t,n)=>{"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<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=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<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,s,l,c,u,d,p,f,h,m,g,v,y,b,E,w,T,S,k,x,O,C,_,N,I,L,A,D,j=!1,P=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(j=!0),(_=o(e,t))>=0){if(p=!0,I=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(I,_-1)),j&&1!==y)return!1}else{if(!((_=i(e,t))>=0))return!1;p=!1}if(j&&e.skipSpaces(_)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(_-1),r)return!0;for(g=e.tokens.length,p?(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<n;){for(C=_,b=e.eMarks[E],d=w=e.sCount[E]+_-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))w+=4-(w+e.bsCount[E])%4;else{if(32!==a)break;w++}C++}if((u=(s=C)>=b?1:w-d)>4&&(u=1),c=d+u,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),D.map=f=[t,0],p&&(D.info=e.src.slice(I,_-1)),O=e.tight,x=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||(P=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[t]=x,e.sCount[t]=k,e.tight=O,(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]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(L=!1,l=0,h=A.length;l<h;l++)if(A[l](e,E,n,!0)){L=!0;break}if(L)break;if(p){if((_=o(e,E))<0)break;I=e.bMarks[E]+e.tShift[E]}else if((_=i(e,E))<0)break;if(v!==e.src.charCodeAt(_-1))break}return(D=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=E,e.line=E,e.parentType=S,P&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},7046:e=>{"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";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i<o;i++)if(c[i](e,l,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},6897:(e,t,n)=>{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t,n,o){var a,s,l,c,u,d,p,f,h,m,g,v,y,b,E,w,T=0,S=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],x=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(S))return!1;for(;++S<k;)if(93===e.src.charCodeAt(S)&&92!==e.src.charCodeAt(S-1)){if(S+1===k)return!1;if(58!==e.src.charCodeAt(S+1))return!1;break}for(c=e.lineMax,E=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";x<c&&!e.isEmpty(x);x++)if(!(e.sCount[x]-e.blkIndent>3||e.sCount[x]<0)){for(b=!1,d=0,p=E.length;d<p;d++)if(E[d](e,x,c,!0)){b=!0;break}if(b)break}for(k=(y=e.getLines(t,x,e.blkIndent,!1).trim()).length,S=1;S<k;S++){if(91===(a=y.charCodeAt(S)))return!1;if(93===a){h=S;break}(10===a||92===a&&++S<k&&10===y.charCodeAt(S))&&T++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(S=h+2;S<k;S++)if(10===(a=y.charCodeAt(S)))T++;else if(!i(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,S,k)).ok)return!1;if(u=e.md.normalizeLink(g.str),!e.md.validateLink(u))return!1;for(s=S=g.pos,l=T+=g.lines,v=S;S<k;S++)if(10===(a=y.charCodeAt(S)))T++;else if(!i(a))break;for(g=e.md.helpers.parseLinkTitle(y,S,k),S<k&&v!==S&&g.ok?(w=g.str,S=g.pos,T+=g.lines):(w="",S=s,T=l);S<k&&(a=y.charCodeAt(S),i(a));)S++;if(S<k&&10!==y.charCodeAt(S)&&w)for(w="",S=s,T=l;S<k&&(a=y.charCodeAt(S),i(a));)S++;return!(S<k&&10!==y.charCodeAt(S)||!(f=r(y.slice(1,h)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:w,href:u}),e.parentType=m,e.line=t+T+1),0))}},7759:(e,t,n)=>{"use strict";var r=n(5099),i=n(9963).isSpace;function o(e,t,n,r){var o,a,s,l,c,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=l=u=d=0,c=(a=this.src).length;l<c;l++){if(o=a.charCodeAt(l),!p){if(i(o)){u++,9===o?d+=4-d%4:d++;continue}p=!0}10!==o&&l!==c-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),p=!1,u=0,d=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&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;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)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,d,p=e;if(e>=t)return"";for(u=new Array(t-e),o=0;p<t;p++,o++){for(a=0,d=l=this.bMarks[p],c=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];l<c&&a<n;){if(s=this.src.charCodeAt(l),i(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(l-d<this.tShift[p]))break;a++}l++}u[o]=a>n?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);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,t,n,a){var s,l,c,u,d,p,f,h,m,g,v,y,b,E,w,T,S,k;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((c=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(S=e.src.charCodeAt(c++))&&45!==S&&58!==S)return!1;if(c>=e.eMarks[p])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<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!r(s))return!1;c++}for(f=(l=i(e,t+1)).split("|"),g=[],u=0;u<f.length;u++){if(!(v=f[u].trim())){if(0===u||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=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<f.length;u++)m=e.push("th_open","th",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),p=t+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(w=!1,u=0,d=T.length;u<d;u++)if(T[u](e,p,n,!0)){w=!0;break}if(w)break;if(!(l=i(e,p).trim()))break;if(e.sCount[p]-e.blkIndent>=4)break;for((f=o(l)).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<h;u++)m=e.push("td_open","td",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u]?f[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=p),m=e.push("table_close","table",-1),y[1]=p,e.parentType=E,e.line=p,!0}},3437:e=>{"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<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},986:(e,t,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,d,p,f,h,m,g,v,y,b,E,w=e.tokens;if(e.md.options.linkify)for(n=0,o=w.length;n<o;n++)if("inline"===w[n].type&&e.md.linkify.pretest(w[n].content))for(m=0,t=(a=w[n].children).length-1;t>=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(E=l.content,/^<a[>\s]/i.test(E)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(d=l.content,b=e.md.linkify.match(d),c=[],h=l.level,f=0,u=0;u<b.length;u++)g=b[u].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[u].text,y=b[u].schema?"mailto:"!==b[u].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[u].index)>f&&((s=new e.Token("text","",0)).content=d.slice(f,p),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<d.length&&((s=new e.Token("text","",0)).content=d.slice(f),s.level=h,c.push(s)),w[n].children=a=r(a,t,c)}}else for(t--;a[t].level!==l.level&&"link_open"!==a[t].type;)t--}},803:e=>{"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,d,p,f,h,m,g,v,y,b,E,w,T,S,k,x,O,C;for(x=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,S=x.length-1;S>=0&&!(x[S].level<=f);S--);if(x.length=S+1,"text"===a.type){d=0,p=(c=a.content).length;e:for(;d<p&&(s.lastIndex=d,u=s.exec(c));){if(w=T=!0,d=u.index+1,k="'"===u[0],m=32,u.index-1>=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,d<p)g=c.charCodeAt(d);else for(S=n+1;S<e.length&&"softbreak"!==e[S].type&&"hardbreak"!==e[S].type;S++)if(e[S].content){g=e[S].content.charCodeAt(0);break}if(v=o(m)||i(String.fromCharCode(m)),y=o(g)||i(String.fromCharCode(g)),b=r(m),(E=r(g))?w=!1:y&&(b||v||(w=!1)),b?T=!1:v&&(E||y||(T=!1)),34===g&&'"'===u[0]&&m>=48&&m<=57&&(T=w=!1),w&&T&&(w=v,T=y),w||T){if(T)for(S=x.length-1;S>=0&&(h=x[S],!(x[S].level<f));S--)if(h.single===k&&x[S].level===f){h=x[S],k?(O=t.md.options.quotes[2],C=t.md.options.quotes[3]):(O=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=l(a.content,u.index,C),e[h.token].content=l(e[h.token].content,h.pos,O),d+=C.length-1,h.token===n&&(d+=O.length-1),p=(c=a.content).length,x.length=S;continue e}w?x.push({token:n,pos:u.index,single:k,level:f}):T&&k&&(a.content=l(a.content,u.index,"’"))}else k&&(a.content=l(a.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=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<r&&96===e.src.charCodeAt(u);)u++;if(l=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-a)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},5940:e=>{"use strict";function t(e,t){var n,r,i,o,a,s,l,c,u={},d=t.length;if(d){var p=0,f=-2,h=[];for(n=0;n<d;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&f===i.token-1||(p=n),f=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],s=r=p-h[p]-1;r>a;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<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},3898:e=>{"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<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},8103:(e,t,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,d=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<d)if(35===e.src.charCodeAt(u+1)){if(c=e.src.slice(u).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(u).match(l))&&i(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},1231:(e,t,n)=>{"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<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},961:(e,t,n)=>{"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,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(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)<b&&40===e.src.charCodeAt(u)){for(u++;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(u>=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&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<b&&g!==u&&p.ok)for(f=p.str,u=p.pos;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);else f="";if(u>=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u<b&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(d=e.env.references[r(s)]))return e.pos=y,!1;v=d.href,f=d.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,d,p="",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&&40===e.src.charCodeAt(c)){for(v=!1,c++;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",g=c;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&g!==c&&u.ok)for(f=u.str,c=u.pos;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);}(c>=m||41!==e.src.charCodeAt(c))&&(v=!0),c++}if(v){if(void 0===e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(g,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(d=e.env.references[r(a)]))return e.pos=h,!1;p=d.href,f=d.title}return t||(e.pos=l,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=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<i&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}},979:(e,t,n)=>{"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,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<v&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<v?this.src.charCodeAt(h):32,d=a(n)||o(String.fromCharCode(n)),f=a(r)||o(String.fromCharCode(r)),u=i(n),(p=i(r))?m=!1:f&&(u||d||(m=!1)),u?g=!1:d&&(p||f||(g=!1)),t?(l=m,c=g):(l=m&&(!g||d),c=g&&(!m||f)),{can_open:l,can_close:c,length:s}},s.prototype.Token=r,e.exports=s},7141:e=>{"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.q=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},2015:e=>{"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<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},7729:e=>{"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},5099:e=>{"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<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=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<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,a,s,l,c="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=i[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=r<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(c+=(l=r<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((l=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?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<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(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})(.*)$/,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;r<l.length;r++)-1!==(f=m.indexOf(l[r]))&&(-1===E||f<E)&&(E=f);for(-1!==(b=-1===E?m.lastIndexOf("@"):m.lastIndexOf("@",E))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),E=-1,r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===E||f<E)&&(E=f);-1===E&&(E=m.length),":"===m[E-1]&&E--;var w=m.slice(0,E);m=m.slice(E),this.parseHost(w),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T){var S=this.hostname.split(/\./);for(r=0,o=S.length;r<o;r++){var k=S[r];if(k&&!k.match(c)){for(var x="",O=0,C=k.length;O<C;O++)k.charCodeAt(O)>127?x+="x":x+=k[O];if(!x.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),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}},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 d(e){throw new RangeError(l[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<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const h=e=>String.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<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p<n;){const l=o;for(let t=1,a=i;;a+=i){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:i;l>=i&&d("invalid-input"),l>c((r-o)/t)&&d("overflow"),o+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(l<f)break;const h=i-f;t>c(r/h)&&d("overflow"),t*=h}const f=t.length+1;s=g(o-l,f,0==l),c(o/f)>r-a&&d("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 p=l;for(l&&t.push("-");p<n;){let n=r;for(const t of e)t>=o&&t<n&&(n=t);const f=p+1;n-o>c((r-a)/f)&&d("overflow"),a+=(n-o)*f,o=n;for(const n of e)if(n<o&&++a>r&&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<r)break;const o=e-r,a=i-r;t.push(u(m(r+o%a,0))),e=c(o/a)}t.push(u(m(e,0))),s=g(a,f,p===l),a=0,++p}++a,++o}return t.join("")},b=function(e){return p(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},E=function(e){return p(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},w={version:"2.3.1",ucs2:{decode:f,encode:h},decode:v,encode:y,toASCII:E,toUnicode:b}},6663:(e,t,n)=>{"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 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){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]=d(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=p(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"),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 c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,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===p||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||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 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<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},528:e=>{"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.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},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},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},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<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4357:e=>{"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":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"𝔉","ffr":"𝔣","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","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":"Ĳ","ijlig":"ĳ","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":"ŉ","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<e.length;u++){n=e[u][0],i=e[u][1],o=e[u][2];for(var s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&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={57:0,524:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,a=n[0],s=n[1],l=n[2],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);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=self.webpackChunkwp_graphql=self.webpackChunkwp_graphql||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=r.O(void 0,[431],(()=>r(6612)));i=r.O(i)})();
\ No newline at end of file
+        `}).then((e=>{const t=e?.data?wS(e.data):null;t!==a&&s(t),l(!1)}),(e=>{console.error(`Failure running getIntrospectionQuery: ${JSON.stringify(e,null,2)}`),l(!1)}))}),[i]);const[p,f]=(0,o.useState)((()=>{const e=u&&u.find((e=>e.id===c));return e?e.id:"graphiql"})());return p?(0,r.createElement)(SS,{"data-testid":"graphiql-router"},(0,r.createElement)(xi,{style:{height:"calc(100vh - 32px)",width:"100%"}},(0,r.createElement)(kS,{setQueryParams:n,setCurrentScreen:f,currentScreen:p,screens:u}),(0,r.createElement)(xi,{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)(xi,{className:"router-screen","data-testid":`router-screen-${t.id}`},t?.render(e)):null})(e)))):null}).displayName||CS.name||"Component")+")",_S);var xS,CS,_S,NS,IS,LS,AS=n(4291),DS=pE?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",PS=function(e){var t,n=e.client,i=e.children,o=((t=r.createContext[DS])||(Object.defineProperty(r.createContext,DS,{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__?Ay(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):Ay(e.client,26),r.createElement(o.Provider,{value:e},i)}))};const{hooks:RS,AppContextProvider:MS,useAppContext:jS}=window.wpGraphiQL,FS=()=>{const e=jS();return RS.applyFilters("graphiql_app",(0,r.createElement)(OS,null),{appContext:e})},$S={push:e=>{history.replaceState(null,null,e.href)},replace:e=>{history.replaceState(null,null,e.href)}},VS=()=>{const e=RS.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"),RS.doAction("graphiql_rendered"),n(!0)}}),[]),t?(0,r.createElement)(Pm,{history:$S},(0,r.createElement)(Im,{config:e},(e=>{const{query:t,setQuery:n}=e;return(0,r.createElement)(MS,{queryParams:t,setQueryParams:n},(0,r.createElement)(PS,{client:sS((0,AS.yP)())},(0,r.createElement)(FS,null)))}))):null};document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("graphiql");e&&(o.createRoot?(0,o.createRoot)(e).render((0,r.createElement)(VS,null)):(0,o.render)((0,r.createElement)(VS,null),e))}))},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,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)(l()),[v,y]=(0,i.useState)(n);let b={endpoint:m,setEndpoint:g,nonce:p,setNonce:f,schema:s,setSchema:c,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}},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(8563);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)&&(d(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,": "),d(e,t,n,r)}function d(e,t,n,r){r instanceof i.GraphQLNonNull?(d(e,t,n,r.ofType),f(e,"!")):r instanceof i.GraphQLList?(f(e,"["),d(e,t,n,r.ofType),f(e,"]")):f(e,(null==r?void 0:r.name)||"","type-name",n,(0,s.getTypeReference)(t,r))}function p(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),p(n,t,h.fieldDef),n):"Directive"===i&&1===o&&h.directiveDef?(c(n=document.createElement("div"),h,t),p(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),p(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)||"";d(e,t,n,t.inputType),f(e,"."),f(e,i,"enum-value",n,(0,s.getEnumValueReference)(t))}(n=document.createElement("div"),h,t),p(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(d(n=document.createElement("div"),h,t,h.type),p(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(8563),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(8563);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<n.argDefs.length;l++)if(n.argDefs[l].name===t.name){n.argDef=n.argDefs[l];break}n.inputType=null===(o=n.argDef)||void 0===o?void 0:o.type;break;case"EnumValue":var c=n.inputType?(0,i.getNamedType)(n.inputType):null;n.enumValue=c instanceof i.GraphQLEnumType?function(e){for(var n=0;n<e.length;n++)if(e[n].value===t.name)return e[n]}(c.getValues()):null;break;case"ListValue":var u=n.inputType?(0,i.getNullableType)(n.inputType):null;n.inputType=u instanceof i.GraphQLList?u.ofType:null;break;case"ObjectValue":var d=n.inputType?(0,i.getNamedType)(n.inputType):null;n.objectFieldDefs=d instanceof i.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":var p=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==p?void 0:p.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}},364:(e,t)=>{"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,d=Math.max(0,window.innerWidth-s-15);d>t.left&&(d=t.left),r.style.opacity="1",r.style.top=c+"px",r.style.left=d+"px";var p=function(){clearTimeout(u)},f=function(){clearTimeout(u),u=setTimeout(h,200)},h=function(){i.default.off(r,"mouseover",p),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",p),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 d(){var e=o,t=[];if(m("{"),!y("}")){do{t.push(p())}while(y(","));m("}")}return{kind:"Object",start:e,end:s,members:t}}function p(){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 d();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=d();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 a<i&&(a++,l=a===i?0:r.charCodeAt(a)),l}function E(){for(s=a;9===l||10===l||13===l||32===l;)b();if(0!==l){switch(o=a,l){case 34:return c="String",function(){for(b();34!==l&&l>31;)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(8563),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 d=Object.keys(c);return(0,s.default)(e,t,d.map((function(e){return{text:'"'.concat(e,'": '),type:c[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===l)&&u.fields){var p=Object.keys(u.fields).map((function(e){return u.fields[e]}));return(0,s.default)(e,t,p.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 d(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.')]]:d(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 d(n,e)})):d(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?d(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 p(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[p(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?d(s,n.value).forEach((function(t){var n=a(t,2),i=n[0],o=n[1];r.push(p(e,i,o))})):r.push(p(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(8563);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,d=a(u,e),p=u.getLine(e.line);if(null!=p&&(l=e,c=p,!/\bstring\b/.test(u.getTokenTypeAt(r(l.line,0)))||/^[\'\"\`]/.test(c))){var f=s.lineComment||d.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;i<h;++i){var a=-1===(l=u.getLine(i)).search(n)?l:l.slice(0,o(l));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<h;++i){var l=u.getLine(i),c=t.length;(g||n.test(l))&&(l.slice(0,c)!=t&&(c=o(l)),u.replaceRange(t+f+m,r(i,0),r(i,c)))}}else for(i=e.line;i<h;++i)(g||n.test(u.getLine(i)))&&u.replaceRange(f+m,r(i,0))}))}else(s.blockCommentStart||d.blockCommentStart)&&(s.fullLines=!0,u.blockComment(e,i,s))}})),e.defineExtension("blockComment",(function(e,o,s){s||(s=t);var l=this,c=a(l,e),u=s.blockCommentStart||c.blockCommentStart,d=s.blockCommentEnd||c.blockCommentEnd;if(u&&d){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(e.line,0)))){var p=Math.min(o.line,l.lastLine());p!=e.line&&0==o.ch&&n.test(l.getLine(p))&&--p;var f=null==s.padding?" ":s.padding;e.line>p||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(p));l.replaceRange(f+d,r(p)),l.replaceRange(u+f,r(e.line,0));var a=s.blockCommentLead||c.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=p;++h)(h!=p||t)&&l.replaceRange(a+f,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(d,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()),d=Math.min(e.line,u),p=o.lineComment||c.lineComment,f=[],h=null==o.padding?" ":o.padding;e:if(p){for(var m=d;m<=u;++m){var g=l.getLine(m),v=g.indexOf(p);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=d;e<=u;++e){var t=f[e-d],n=t.indexOf(p),i=n+p.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(d),T=w.indexOf(y);if(-1==T)return!1;var S=u==d?w:l.getLine(u),k=S.indexOf(b,u==d?T+y.length:0),O=r(d,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(d,T),r(d,e)),E)for(var t=d+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)d.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,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,c)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,c)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),c()),13==t.keyCode&&i(d.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 d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var p=0;p<s.length;++p){var f=s[p];!function(t){e.on(f,"click",(function(n){e.e_preventDefault(n),d(),t&&t(c)}))}(i[p]),e.on(f,"blur",(function(){--u,setTimeout((function(){u<=0&&d()}),200)})),e.on(f,"focus",(function(){++u}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),l&&(o=setTimeout(c,l)),c}))}(n(5237))},5218:(e,t,n)=>{!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<a.length;l++){if(!a[l].empty())return e.Pass;var c=u(t,a[l].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var d=a[l].head;t.replaceRange("",n(d.line,d.ch-1),n(d.line,d.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;a<o.length;a++){if(!o[a].empty())return e.Pass;var c=u(t,o[a].head);if(!c||i.indexOf(c)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),l(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),u=a.indexOf(i);if(-1==u)return e.Pass;for(var p,f=r(o,"closeBefore"),h=r(o,"triples"),m=a.charAt(u+1)==i,g=t.listSelections(),v=u%2==0,y=0;y<g.length;y++){var b,E=g[y],w=E.head,T=t.getRange(w,n(w.line,w.ch+1));if(v&&!E.empty())b="surround";else if(!m&&v||T!=i)if(m&&w.ch>1&&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&&d(t,w)?"both":h.indexOf(i)>=0&&t.getRange(w,n(w.line,w.ch+3))==i+i+i?"skipThree":"skip";if(p){if(p!=b)return e.Pass}else p=b}var k=u%2?a.charAt(u-1):i,O=u%2?i:a.charAt(u+1);t.operation((function(){if("skip"==p)l(t,1);else if("skipThree"==p)l(t,3);else if("surround"==p){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=k+e[n]+O;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=c(e[n]);t.setSelections(e)}else"both"==p?(t.replaceSelection(k+O,null),t.triggerElectric(k+O),l(t,-1)):"addFour"==p&&(t.replaceSelection(k+k+k+k,"before"),l(t,1))}))}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{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 d(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),d=!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(!d)return null;var p=">"==d.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(p>0?1:0)),p,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:p>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=i(s),p=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),f=t.line;f!=p;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(d.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<c.length;u++){var d=c[u].empty()&&o(e,c[u].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var p=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:p})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:p}))}}if(l.length){t&&e.state.focused&&e.focus();var f=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return f;setTimeout(f,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(5237))},795:(e,t,n)=>{!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&&c<r.ch)break;if(a=n.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(a))return{ch:c+1,tokenType:a,pair:t};s=c-1}else{if(1==l)break;l=1,s=o.length}}}function s(t){var r,o,a=1,s=n.lastLine(),l=t.ch;e:for(var c=i;c<=s;++c)for(var u=n.getLine(c),d=c==i?l:0;;){var p=u.indexOf(t.pair[0],d),f=u.indexOf(t.pair[1],d);if(p<0&&(p=u.length),f<0&&(f=u.length),(d=Math.min(p,f))==u.length)break;if(n.getTokenTypeAt(e.Pos(c,d+1))==t.tokenType)if(d==p)++a;else if(! --a){r=c,o=d;break e}++d}return null==r||i==r?null:{from:e.Pos(i,l),to:e.Pos(r,o)}}for(var l=[],c=0;c<t.length;c++){var u=a(t[c]);u&&l.push(u)}for(l.sort((function(e,t){return e.ch-t.ch})),c=0;c<l.length;c++){var d=s(l[c]);if(d)return d}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.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(n<t.firstLine()||n>t.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.line<s)return null;if("fold"===o)return r;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var c=l(!0);if(r(t,i,"scanUp"))for(;!c&&n.line>t.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){d.clear(),e.e_preventDefault(t)}));var d=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.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<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))}(n(5237))},1274:(e,t,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",d),t.off("fold",p),t.off("unfold",p),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",d),t.on("fold",p),t.on("unfold",p),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<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,l=n-1,c=e.foldOption(s,"minFoldSize"),u=e.foldOption(s,"rangeFinder"),d="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),p="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++l;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,l)){if(d&&a&&d.test(a.className))return;o=i(s.indicatorFolded)}else{var f=t(l,0),h=u&&u(e,f);if(h&&h.to.line-h.from.line>=c){if(p&&a&&p.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 d(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.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(5237),n(8948))},9751:(e,t,n)=>{!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;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new n(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var r=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e){return"string"==typeof e?e:e.text}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(n,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=r,this.picked=!1;var i=this,s=n.cm,l=s.getInputField().ownerDocument,c=l.defaultView||l.parentWindow,u=this.hints=l.createElement("ul");u.setAttribute("role","listbox"),u.setAttribute("aria-expanded","true"),u.id=this.id;var d=n.cm.options.theme;u.className="CodeMirror-hints "+d,this.selectedHint=r.selectedHint||0;for(var p=r.list,f=0;f<p.length;++f){var h=u.appendChild(l.createElement("li")),m=p[f],g="CodeMirror-hint"+(f!=this.selectedHint?"":" "+t);null!=m.className&&(g=m.className+" "+g),h.className=g,f==this.selectedHint&&h.setAttribute("aria-selected","true"),h.id=this.id+"-"+f,h.setAttribute("role","option"),m.render?m.render(h,r,m):h.appendChild(l.createTextNode(m.displayText||o(m))),h.hintId=f}var v=n.options.container||l.body,y=s.cursorCoords(n.options.alignWithWord?r.from:null),b=y.left,E=y.bottom,w=!0,T=0,S=0;if(v!==l.body){var k=-1!==["absolute","relative","fixed"].indexOf(c.getComputedStyle(v).position)?v:v.offsetParent,O=k.getBoundingClientRect(),x=l.body.getBoundingClientRect();T=O.left-x.left-k.scrollLeft,S=O.top-x.top-k.scrollTop}u.style.left=b-T+"px",u.style.top=E-S+"px";var C=c.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),_=c.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);v.appendChild(u),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var N,I=n.options.moveOnOverlap?u.getBoundingClientRect():new DOMRect,L=!!n.options.paddingForScrollbar&&u.scrollHeight>u.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.top<D?(A>D&&(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:p.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",p[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<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=r((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;l(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new s(this,t),e.signal(t,"shown")))}},s.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(n,r){if(n>=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.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.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;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);l(r[o],e,n,(function(e){e&&e.list.length>0?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<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,r.length)==r&&l.push(u)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var c={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,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";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,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,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(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 i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);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 i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),c=[],u=0;u<s.length;++u){var d=s[u].__annotation;d&&c.push(d)}c.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a];o.appendChild(l(s))}r(e,n,o,i)}(e,c,t)}}(e,t)},this.waitingFor=0}var o={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function a(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&function(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function s(t,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",(function(e){r(t,e,n,l)})),s}function l(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function c(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)!function(t,n){var r=t.state.lint,i=++r.waitingFor;function o(){i=-1,t.off("change",o)}t.on("change",o),n(t.getValue(),(function(n,a){t.off("change",o),r.waitingFor==i&&(a&&n instanceof e&&(n=a),t.operation((function(){u(t,n)})))}),r.linterOptions,t)}(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){u(t,e)}))})):t.operation((function(){u(t,o)}))}}}function u(e,n){var r,i,o=e.state.lint;if(o){var c=o.options;a(e);for(var u=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),d=0;d<u.length;++d){var p=u[d];if(p){for(var f=null,h=o.hasGutter&&document.createDocumentFragment(),m=0;m<p.length;++m){var g=p[m],v=g.severity;v||(v="error"),i=v,f="error"==(r=f)?r:i,c.formatAnnotation&&(g=c.formatAnnotation(g)),o.hasGutter&&h.appendChild(l(g)),g.to&&o.marked.push(e.markText(g.from,g.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+v,__annotation:g}))}o.hasGutter&&e.setGutterMarker(d,t,s(e,h,f,p.length>1,c.tooltips)),c.highlightLines&&e.addLineClass(d,"wrap","CodeMirror-lint-line-"+f)}}c.onUpdateLinting&&c.onUpdateLinting(n,u,e)}}function d(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){c(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,r,o){if(o&&o!=e.Init&&(a(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 s=n.getOption("gutters"),l=!1,u=0;u<s.length;++u)s[u]==t&&(l=!0);var p=n.state.lint=new i(n,r,l);p.options.lintOnChange&&n.on("change",d),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),c(n)}})),e.defineExtension("performLint",(function(){c(this)}))}(n(5237))},8820:(e,t,n)=>{!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:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(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 p=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),p&&(p.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&&((p=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(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 d(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 p(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function f(e){var t=p("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),p("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return t.setAttribute("for","CodeMirror-search-field"),p("",null,t," ",p("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function h(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function m(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l=t?e.phrase("Replace all:"):e.phrase("Replace:"),c=p("",null,p("span",{className:"CodeMirror-search-label"},l),function(e){return p("",null," ",p("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",p("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}(e));o(e,c,l,r,(function(n){n&&(n=s(n),o(e,function(e){return p("",null,p("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",p("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)h(e,n,r);else{d(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return p("",null,p("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",p("button",{},e.phrase("Yes"))," ",p("button",{},e.phrase("No"))," ",p("button",{},e.phrase("All"))," ",p("button",{},e.phrase("Stop")))}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){h(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){d(e),c(e)},e.commands.findPersistent=function(e){d(e),c(e,!1,!0)},e.commands.findPersistentNext=function(e){c(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){c(e,!0,!0,!0)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=d,e.commands.replace=m,e.commands.replaceAll=function(e){m(e,!0)}}(n(5237),n(3653),n(8527))},3653:(e,t,n)=>{!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;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),c=t.exec(l);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,c=n.line,u=e.lastLine();c<=u;){for(var d=0;d<l&&!(c>u);d++){var p=e.getLine(c++);s=null==s?p:s+"\n"+p}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,d=n.line,p=e.firstLine();d>=p;){for(var f=0;f<s&&d>=p;f++){var h=e.getLine(d--);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=d+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 d(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 p(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,p=e.lastLine()+1-l.length;c<=p;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=d(f,h,m,s)+u,{from:r(c,d(f,h,m,s)+u),to:r(c,d(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<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),b=s(y),E=l[l.length-1];if(b.slice(0,E.length)==E)return{from:r(c,d(f,h,g,s)+u),to:r(c+l.length-1,d(y,b,E.length,s))}}}}function f(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,p=e.firstLine()-1+l.length;c>=p;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,d(f,h,m,s)),to:r(c,d(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<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(c,d(f,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?f:p)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?c:a)(e,t,r)}:this.matches=function(n,r){return(n?u:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(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,d=0;c!=u;c+=i,d++){var p=o.charAt(i<0?c-1:c),f="_"!=p&&e.isWordChar(p)?"w":"o";if("w"==f&&p.toUpperCase()==p&&(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<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=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;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.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<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),c=a?new RegExp("\\b"+l+"\\b"):l,u=t.getSearchCursor(c,i),d=u.findNext();if(d||(d=(u=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),u.from(),u.to()))return;t.addSelection(u.from(),u.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,c=t.scanForBracket(l,-1);if(!c)return!1;for(;;){var u=t.scanForBracket(l,1);if(!u)return!1;if(u.ch==s.charAt(s.indexOf(c.ch)+1)){var d=n(c.pos.line,c.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:d,head:u.pos});break}if(!(c=t.scanForBracket(c.pos,-1)))return!1}l=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function c(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function u(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l];if(!c.empty()){for(var u=c.from().line,d=c.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(u,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],c=s[a+1],u=n(l,0),d=n(c),p=t.getRange(u,d,!1);r?p.sort((function(e,t){return e<t?-i:e==t?0:i})):p.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(p,u,d),o&&e.push({anchor:u,head:n(c+1,0)})}o&&t.setSelections(e,0)}))}function d(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(c=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(c.from(),c.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=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 p(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=p(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;s<r.length;s++){var l=r[s],c=l.from().line-1,u=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--u,c>o?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.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<o?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=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<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),c=s.start;c<=s.end;c++){var u=c-t;c==s.end&&(a=n(u,e.getLine(u).length+1)),u<e.lastLine()&&(e.replaceRange(" ",n(u),n(u+1,/^\s*/.exec(e.getLine(u+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){u(e,!0,1)},t.reverseSortLines=function(e){u(e,!0,-1)},t.sortLinesInsensitive=function(e){u(e,!1,1)},t.reverseSortLinesInsensitive=function(e){u(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=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){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(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=p(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),d=u&&+u[1],p=/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=p&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(p=!1,l=!0);var S=b&&(c||p&&(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.length;++o)i.appendChild(t[o]);return i}function L(e,t,n,r){var i=I(e,t,n,r);return i.setAttribute("role","presentation"),i}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function P(e,t){var n=e.className;O(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!O(n[r]).test(t)&&(t+=" "+n[r]);return t}x=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var M=function(e){e.select()};function j(e){return e.display.wrapper.ownerDocument}function F(e){return $(e.display.wrapper)}function $(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function V(e){return j(e).defaultView}function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function q(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function z(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=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<e.length;++n)if(e[n]==t)return n;return-1}G.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},G.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},K={origin:"*mouse"},W={origin:"+move"};function Y(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function J(e){for(;X.length<=e;)X.push(Z(X)+" ");return X[e]}function Z(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&q(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-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 pe(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)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 fe=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,d=[],p=0;p<u;++p)d.push((l=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var f=0,h=c;f<u;++f){var m=d[f];"m"==m?d[f]=h:h=m}for(var g=0,v=c;g<u;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":n.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,E=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==E&&"1"==d[b+1]?d[b]="1":","!=w||E!=d[b+1]||"1"!=E&&"n"!=E||(d[b]=E),E=w}for(var T=0;T<u;++T){var S=d[T];if(","==S)d[T]="N";else if("%"==S){var k=void 0;for(k=T+1;k<u&&"%"==d[k];++k);for(var O=T&&"!"==d[T-1]||k<u&&"1"==d[k]?"1":"N",x=T;x<k;++x)d[x]=O;T=k-1}}for(var C=0,_=c;C<u;++C){var N=d[C];"L"==_&&"1"==N?d[C]="L":n.test(N)&&(_=N)}for(var I=0;I<u;++I)if(t.test(d[I])){var L=void 0;for(L=I+1;L<u&&t.test(d[L]);++L);for(var A="L"==(I?d[I-1]:c),D=A==("L"==(L<u?d[L]:c))?A?"L":"R":c,P=I;P<L;++P)d[P]=D;I=L-1}for(var R,M=[],j=0;j<u;)if(r.test(d[j])){var F=j;for(++j;j<u&&r.test(d[j]);++j);M.push(new o(0,F,j))}else{var $=j,V=M.length,B="rtl"==s?1:0;for(++j;j<u&&"L"!=d[j];++j);for(var q=$;q<j;)if(i.test(d[q])){$<q&&(M.splice(V,0,new o(1,$,q)),V+=B);var z=q;for(++q;q<j&&i.test(d[q]);++q);M.splice(V,0,new o(2,z,q)),V+=B,$=q}else++q;$<j&&M.splice(V,0,new o(1,$,j))}return"ltr"==s&&(1==M[0].level&&(R=a.match(/^\s+/))&&(M[0].from=R[0].length,M.unshift(new o(0,0,R[0].length))),1==Z(M).level&&(R=a.match(/\s+$/))&&(Z(M).to-=R[0].length,M.push(new o(0,u-R[0].length,u)))),"rtl"==s?M.reverse():M}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var me=[],ge=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||me).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||me}function ye(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=Q(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ee(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function we(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==Q(n,t[r])&&n.push(t[r])}function Te(e,t){return ve(e,t).length>0}function Se(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Oe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){ke(e),Oe(e)}function _e(e){return e.target||e.srcElement}function Ne(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 Ie,Le,Ae=function(){if(a&&s<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ie){var t=I("span","​");N(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ie=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ie?I("span","​"):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Pe(e){if(null!=Le)return Le;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)&&(Le=r.right-n.right<3)}var Re,Me=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/)},je=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)},Fe="oncopy"in(Re=I("div"))||(Re.setAttribute("oncopy","return;"),"function"==typeof Re.oncopy),$e=null;var Ve={},Be={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function ze(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=ze(t);var n=Ve[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Qe.hasOwnProperty(t.name)){var i=Qe[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 Qe={};function Ue(e,t){q(t,Qe.hasOwnProperty(e)?Qe[e]:Qe[e]={})}function He(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 Ke(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 We(e,t,n){return!e.startState||e.startState(t,n)}var Ye=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 Xe(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<o){n=i;break}t-=o}return n.lines[t]}function Je(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ze(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=Q(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ct(e,t){return at(e,t)<0?t:e}function ut(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function pt(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Xe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}(t,Xe(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=pt(e,t[r]);return n}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?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},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=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 gt(e,t,n,r){var i=[e.state.modeGen],o={};Ot(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,Ot(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&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(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function vt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&He(e.doc.mode,r.state),o=gt(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 yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(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=Xe(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ht?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&&Xe(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,We(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Ye(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Et(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function Et(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.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,n){return t instanceof ht?new mt(e,He(e.mode,t.state),n,t.lookAhead):new mt(e,He(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?He(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Xe(a,(t=pt(a,t)).line),c=yt(e,t.line,n),u=new Ye(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=wt(s,u,c.state),r&&o.push(new Tt(u,i,He(a.mode,c.state)));return r?o:new Tt(u,i,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ot(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Ye(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&kt(Et(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(wt(n,d,r.state,p),o),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var h=Math.min(d.pos,c+5e3);i(h,u),c=h}}var xt=!1,Ct=!1;function _t(e,t,n){this.marker=e,this.from=t,this.to=n}function Nt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function It(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Lt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new _t(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<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=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.from<t);(r||(r=[])).push(new _t(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,u=Z(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var p=s[d];if(null==p.to){var f=Nt(l,p.marker);f?c&&(p.to=null==f.to?null:f.to+u):p.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=u),null==m.from?Nt(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=At(s)),l&&l!=s&&(l=At(l));var g=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new _t(s[b].marker,null,null));for(var E=0;E<y;++E)g.push(v);g.push(l)}return g}function At(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Dt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Pt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Rt(e){return e.inclusiveLeft?-1:0}function Mt(e){return e.inclusiveRight?1:0}function jt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Rt(e)-Rt(t);return o?-o:at(r.to,i.to)||Mt(e)-Mt(t)||t.id-e.id}function Ft(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||jt(n,i.marker)<0)&&(n=i.marker);return n}function $t(e){return Ft(e,!0)}function Vt(e){return Ft(e,!1)}function Bt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function qt(e,t,n,r,i){var o=Xe(e,t),a=Ct&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=at(c.from,n)||Rt(l.marker)-Rt(i),d=at(c.to,r)||Mt(l.marker)-Mt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.from,r)<=0:at(c.from,r)<0)))return!0}}}function zt(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function Gt(e,t){var n=Xe(e,t),r=zt(n);return n==r?t:tt(r)}function Qt(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!Ut(e,r))return t;for(;n=Vt(r);)r=n.find(1,!0).line;return tt(r)+1}function Ut(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Ht(e,t,r))return!0}}function Ht(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Ht(e,r.line,Nt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ht(e,t,i))return!0}function Kt(e){for(var t=0,n=(e=zt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Wt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=$t(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Vt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Yt(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=Wt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Wt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Xt=function(e,t,n){this.text=e,Pt(this,t),this.height=n?n(this):1};function Jt(e){e.parent=null,Dt(e)}Xt.prototype.lineNo=function(){return tt(this)},Se(Xt);var Zt={},en={};function tn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?en:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function nn(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=on,Pe(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=an(r.addToken,a)),r.map=[],ln(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(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(De(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 be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function rn(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function on(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;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var h=d.exec(t),m=h?h.index-f:t.length-f;if(m){var g=document.createTextNode(u.slice(f,f+m));a&&s<9?c.appendChild(I("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(I("span",J(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(I("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(I("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||p||o||l){var E=n||"";r&&(E+=r),i&&(E+=i);var w=I("span",[c],E,o);if(l)for(var T in l)l.hasOwnProperty(T)&&"style"!=T&&"class"!=T&&w.setAttribute(T,l[T]);return e.content.appendChild(w)}e.content.appendChild(c)}}function an(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,p=0;p<t.length&&!((d=t[p]).to>c&&d.from<=c);p++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function sn(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 ln(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,p,f=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",p=null,d=null,v=1/0;for(var y=[],b=void 0,E=0;E<r.length;++E){var w=r[E],T=w.marker;if("bookmark"==T.type&&w.from==h&&T.widgetNode)y.push(T);else if(w.from<=h&&(null==w.to||w.to>h||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&&((p||(p={})).title=T.title),T.attributes)for(var S in T.attributes)(p||(p={}))[S]=T.attributes[S];T.collapsed&&(!d||jt(d.marker,T)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==v&&(c+=" "+b[k]);if(!d||d.from==h)for(var O=0;O<y.length;++O)sn(t,0,y[O]);if(d&&(d.from||0)==h){if(sn(t,(null==d.to?f+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=f)break;for(var x=Math.min(f,v);;){if(g){var C=h+g.length;if(!d){var _=C>x?g.slice(0,x-h):g;t.addToken(t,_,a?a+l:l,u,h+_.length==v?c:"",s,p)}if(C>=x){g=g.slice(x-h),h=x;break}h=C,u=""}g=i.slice(o,o=n[m++]),a=tn(n[m++],t.cm.options)}}else for(var N=1;N<n.length;N+=2)t.addToken(t,i.slice(o,o=n[N]),tn(n[N+1],t.cm.options))}function cn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Vt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?tt(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function un(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new cn(e.doc,Xe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var dn=null;var pn=null;function fn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);dn?r=dn.delayedCallbacks:pn?r=pn:(r=pn=[],setTimeout(hn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function hn(){var e=pn;pn=null;for(var t=0;t<e.length;++t)e[t]()}function mn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?yn(e,t):"gutter"==o?En(e,t,n,r):"class"==o?bn(e,t):"widget"==o&&wn(e,t,r)}t.changes=null}function gn(e){return e.node==e.text&&(e.node=I("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function vn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):nn(e,t)}function yn(e,t){var n=t.text.className,r=vn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,bn(e,t)):n&&(t.text.className=n)}function bn(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=gn(t);t.background=r.insertBefore(I("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?gn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function En(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=gn(t);t.gutterBackground=I("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=gn(t),s=t.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(I("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(I("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=O("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Sn(e,t,n)}function Tn(e,t,n,r){var i=vn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),bn(e,t),En(e,t,n,r),Sn(e,t,r),t.node}function Sn(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=gn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),On(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),fn(l,"redraw")}}function On(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function xn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),N(t.display.measure,I("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Cn(e,t){for(var n=_e(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Nn(e){return e.lineSpace.offsetTop}function In(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=N(e.measure,I("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function An(e){return 50-e.display.nativeBarWidth}function Dn(e){return e.display.scroller.clientWidth-An(e)-e.display.barWidth}function Pn(e){return e.display.scroller.clientHeight-An(e)-e.display.barHeight}function Rn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Mn(e,t,n,r){return $n(e,Fn(e,t),n,r)}function jn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[gr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Fn(e,t){var n=tt(t),r=jn(e,n);r&&!r.text?r=null:r&&r.changes&&(mn(e,r,n,dr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=tt(t=zt(t)),r=e.display.externalMeasured=new cn(e.doc,t,n);r.lineN=n;var i=r.built=nn(e,r);return r.text=i.pre,N(e.display.lineMeasure,i.pre),r}(e,t));var i=Rn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function $n(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Dn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&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=qn(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&le(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&le(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():zn(x(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=$e)return $e;var t=N(e,I("span","x")),n=t.getBoundingClientRect(),r=x(t,0,1).getBoundingClientRect();return $e=Math.abs(n.left-r.left)>1}(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&&(d=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+ur(e.display),top:h.top,bottom:h.bottom}:Bn}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;b<y.length-1&&!(v<y[b]);b++);var E=b?y[b-1]:0,w=y[b],T={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:E,bottom:w};return i.left||i.right||(T.bogus=!0),e.options.singleCursorHeightPerLine||(T.rtop=m,T.rbottom=g),T}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Vn,Bn={left:0,right:0,top:0,bottom:0};function qn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(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<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function zn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Gn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Qn(e){e.display.externalMeasure=null,_(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Gn(e.display.view[t])}function Un(e){Qn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Hn(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Kn(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Wn(e){var t=zt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=xn(t[r]));return n}function Yn(e,t,n,r,i){if(!i){var o=Wn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Kt(t);if("local"==r?a+=Nn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Kn(j(e)));var l=s.left+("window"==r?0:Hn(j(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Xn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Hn(j(e)),i-=Kn(j(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Jn(e,t,n,r,i){return r||(r=Xe(e.doc,t.line)),Yn(e,r,Mn(e,r,t.ch,i),n)}function Zn(e,t,n,r,i,o){function a(t,a){var s=$n(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Yn(e,r,s,n)}r=r||Xe(e.doc,t.line),i||(i=Fn(e,r));var s=he(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=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 d=pe(s,l,c),p=de,f=u(l,d,"before"==c);return null!=p&&(f.other=u(l,p,"before"!=c)),f}function er(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=ur(e.display)*t.ch);var r=Xe(e.doc,t.line),i=Kt(r)+Nn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function tr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function nr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return tr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return tr(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,i);;){var s=ar(e,a,i,t,n),l=Bt(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=Xe(r,i=c.line)}}function rr(e,t,n,r){r-=Wn(t);var i=t.text.length,o=ue((function(t){return $n(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return $n(e,n,t).top>r}),o,i)}}function ir(e,t,n,r){return n||(n=Fn(e,t)),rr(e,t,n,Yn(e,t,$n(e,n,r),"line").top)}function or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ar(e,t,n,r,i){i-=Kt(t);var o=Fn(e,t),a=Wn(t),s=0,l=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?lr:sr)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var p,f,h=null,m=null,g=ue((function(t){var n=$n(e,o,t);return n.top+=a,n.bottom+=a,!!or(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<m.right-r,b=y==c;g=h+(b?0:1),f=b?"after":"before",p=y?m.left:m.right}else{c||g!=l&&g!=s||g++,f=0==g?"after":g==t.text.length?"before":$n(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var E=Zn(e,ot(n,g,f),"line",t,o);p=E.left,v=i<E.top?-1:i>=E.bottom?1:0}return tr(n,g=ce(t.text,g,1),f,v,r-p)}function sr(e,t,n,r,i,o,a){var s=ue((function(s){var l=i[s],c=1!=l.level;return or(Zn(e,ot(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=Zn(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,r);or(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function lr(e,t,n,r,i,o,a){var s=rr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p<i.length;p++){var f=i[p];if(!(f.from>=c||f.to<=l)){var h=$n(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=h<o?o-h+1e9:h-o;(!u||d>m)&&(u=f,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function cr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Vn){Vn=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vn.appendChild(document.createTextNode("x")),Vn.appendChild(I("br"));Vn.appendChild(document.createTextNode("x"))}N(e.measure,Vn);var n=Vn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),_(e.measure),n||1}function ur(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:pr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function pr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function fr(e){var t=cr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ur(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function hr(e){var t=e.doc,n=fr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function mr(e,t,n,r){var i=e.display;if(!n&&"true"==_e(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=nr(e,o,a);if(r&&c.xRel>0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=z(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((o-Ln(e.display).left)/ur(e.display))-u))}return c}function gr(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;r<n.length;r++)if((t-=n[r].size)<0)return r}function vr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Gt(e.doc,t)<i.viewTo&&br(e);else if(n<=i.viewFrom)Ct&&Qt(e.doc,n+r)>i.viewFrom?br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)br(e);else if(t<=i.viewFrom){var o=Er(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):br(e)}else if(n>=i.viewTo){var a=Er(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):br(e)}else{var s=Er(e,t,t,-1),l=Er(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):br(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function yr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[gr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==Q(a,n)&&a.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Er(e,t,n,r){var i,o=gr(e,t),a=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Gt(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 wr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Tr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Sr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&kr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&kr(e,l.head,i);c||xr(e,l,o)}}return r}function kr(e,t,n){var r=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(I("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Jn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?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 Or(e,t){return e.top-t.top||e.left-t.left}function xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Ln(e.display),s=a.left,l=Math.max(r.sizerWidth,Dn(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 d(t,n,r){var o,a,d=Xe(i,t),p=d.text.length;function f(n,r){return Jn(e,ot(t,n),"div",d,r)}function h(t,n,r){var i=ir(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||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?p:r,(function(e,t,i,d){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==p,w=0==d,T=!m||d==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.bottom<y.top&&u(s,v.bottom,null,y.top),u(_,y.top,N-_,y.bottom)}(!o||Or(v,o)<0)&&(o=v),Or(y,o)<0&&(o=y),(!a||Or(v,a)<0)&&(a=v),Or(y,a)<0&&(a=y)})),{start:o,end:a}}var p=t.from(),f=t.to();if(p.line==f.line)d(p.line,p.ch,f.ch);else{var h=Xe(i,p.line),m=Xe(i,f.line),g=zt(h)==zt(m),v=d(p.line,p.ch,g?h.text.length+1:null).end,y=d(f.line,g?0:null,f.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(o)}function Cr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Lr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function _r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ir(e))}function Nr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Lr(e))}),100)}function Ir(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(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()),Cr(e))}function Lr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(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 Ar(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<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,p=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;d=f-n,n=f}else{var h=c.node.getBoundingClientRect();d=h.bottom-h.top,!u&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(c.line,d),Dr(c.line),c.rest))for(var g=0;g<c.rest.length;g++)Dr(c.rest[g]);if(p>e.display.sizerWidth){var v=Math.ceil(p/ur(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 Dr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Pr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Nn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,Kt(Xe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,Kt(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Rr(e,t){var n=e.display,r=cr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Pn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+In(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Dn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>f+p-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function Mr(e,t){null!=t&&($r(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function jr(e){$r(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Fr(e,t,n){null==t&&null==n||$r(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function $r(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Vr(e,er(e,t.from),er(e,t.to),t.margin))}function Vr(e,t,n,r){var i=Rr(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});Fr(e,i.scrollLeft,i.scrollTop)}function Br(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||hi(e,{top:t}),qr(e,t,!0),n&&hi(e),ci(e,100))}function qr(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 zr(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,vi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Gr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+In(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+An(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Qr=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),ge(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ge(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qr.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}},Qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qr.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},Qr.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)}))},Qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function Hr(e,t){t||(t=Gr(e));var n=e.display.barWidth,r=e.display.barHeight;Kr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Ar(e),Kr(e,Gr(e)),n=e.display.barWidth,r=e.display.barHeight}function Kr(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=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Wr={native:Qr,null:Ur};function Yr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Wr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(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?zr(e,t):Br(e,t)}),e),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)}var Xr=0;function Jr(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:++Xr,markArrays:null},t=e.curOp,dn?dn.ops.push(t):t.ownsGroup=dn={ops:[t],delayedCallbacks:[]}}function Zr(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<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{dn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)ei(t[n]);for(var r=0;r<t.length;r++)ti(t[r]);for(var i=0;i<t.length;i++)ni(t[i]);for(var o=0;o<t.length;o++)ri(t[o]);for(var a=0;a<t.length;a++)ii(t[a])}(e)}))}function ei(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=An(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=An(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&Yt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=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 ti(e){e.updatedDisplay=e.mustUpdate&&pi(e.cm,e.update)}function ni(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ar(t),e.barMeasure=Gr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(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+An(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Dn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ri(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(F(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Hr(t,e.barMeasure),e.updatedDisplay&&gi(t,e.barMeasure),e.selectionChanged&&Cr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&_r(e.cm)}function ii(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&fi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&qr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&zr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!Ee(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=I("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Nn(e.display))+"px;\n                         height: "+(t.bottom-t.top+An(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?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 a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,c=Rr(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,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Br(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(zr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,pt(r,e.scrollToPos.from),pt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&be(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function oi(e,t){if(e.curOp)return t();Jr(e);try{return t()}finally{Zr(e)}}function ai(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Jr(e);try{return t.apply(e,arguments)}finally{Zr(e)}}}function si(e){return function(){if(this.curOp)return e.apply(this,arguments);Jr(this);try{return e.apply(this,arguments)}finally{Zr(this)}}}function li(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Jr(t);try{return e.apply(this,arguments)}finally{Zr(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(ui,e))}function ui(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(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?He(t.mode,r.state):null,l=gt(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 d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&p<a.length;++p)d=a[p]!=o.styles[p];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ci(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&oi(e,(function(){for(var t=0;t<i.length;t++)yr(e,i[t],"text")}))}}var di=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Pr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Dn(e),this.force=n,this.dims=dr(e),this.events=[]};function pi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return br(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==wr(e))return!1;yi(e)&&(br(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.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ct&&(o=Gt(e.doc,o),a=Qt(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=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(gr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(un(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,gr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Kt(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=wr(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,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var f=i&&null!=t&&t<=u&&p.lineNumber;p.changes&&(Q(p.changes,"gutter")>-1&&(f=!1),mn(e,p,u,n)),f&&(_(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,u)))),a=p.node.nextSibling}else{var h=Tn(e,p,u,n);o.insertBefore(h,a)}u+=p.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,ci(e,400)),n.updateLineNumbers=null,!0}function fi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Dn(e))r&&(t.visible=Pr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+In(e.display)-Pn(e),n.top)}),t.visible=Pr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!pi(e,t))break;Ar(e);var i=Gr(e);Tr(e),Hr(e,i),gi(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 hi(e,t){var n=new di(e,t);if(pi(e,n)){Ar(e),fi(e,n);var r=Gr(e);Tr(e),Hr(e,r),gi(e,r),n.finish()}}function mi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function gi(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+An(e)+"px"}function vi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=pr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function yi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(I("div",[I("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",mi(e.display),!0}return!1}function bi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Ei(e){var t=e.gutters,n=e.gutterSpecs;_(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",mi(e)}function wi(e){Ei(e.display),vr(e),vi(e)}function Ti(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=L("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=L("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=L("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[c],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=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=bi(i.gutters,i.lineNumbers),Ei(o),r.init(o)}di.prototype.signal=function(e,t){Te(e,t)&&this.events.push(arguments)},di.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var Si=0,ki=null;function Oi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function xi(e){var t=Oi(e);return t.x*=ki,t.y*=ki,t}function Ci(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=Oi(t),i=r.x,o=r.y,a=ki;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.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<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!p&&null!=a)return o&&h&&Br(e,Math.max(0,c.scrollTop+o*a)),zr(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&h)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,E=e.doc.scrollTop,w=E+s.wrapper.clientHeight;y<0?E=Math.max(0,E+y-50):w=Math.min(e.doc.height,w+y+50),hi(e,{top:E,bottom:w})}Si<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ki=(ki*Si+n)/(Si+1),++Si)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?ki=-.53:n?ki=15:u?ki=-.7:f&&(ki=-1/3);var _i=function(e,t){this.ranges=e,this.primIndex=t};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ni(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new _i(e,this.primIndex)},_i.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},_i.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var Ni=function(e,t){this.anchor=e,this.head=t};function Ii(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=Q(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new Ni(d?u:c,d?c:u))}}return new _i(t,n)}function Li(e,t){return new _i([new Ni(e,t||e)],0)}function Ai(e){return e.text?ot(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Di(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return Ai(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+=Ai(t).ch-t.to.ch),ot(n,r)}function Pi(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ni(Di(i.anchor,t),Di(i.head,t)))}return Ii(e.cm,n,e.sel.primIndex)}function Ri(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function Mi(e){e.doc.mode=Ge(e.options,e.doc.modeOption),ji(e)}function ji(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ci(e,100),e.state.modeGen++,e.curOp&&vr(e)}function Fi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function $i(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){(function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Dt(e),Pt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)})(e,n,i,r),fn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Xt(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Xe(e,s.line),d=Xe(e,l.line),p=Z(c),f=i(c.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Fi(e,t)){var m=a(0,c.length-1);o(d,d.text,f),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+p+u.text.slice(l.ch),f);else{var g=a(1,c.length-1);g.push(new Xt(p+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,p+d.text.slice(l.ch),f);var v=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function Vi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Bi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,hr(e),Mi(e),qi(e),e.options.direction=t.direction,e.options.lineWrapping||Yt(e),e.options.mode=t.modeOption,vr(e)}function qi(e){("rtl"==e.doc.direction?P:C)(e.display.lineDiv,"CodeMirror-rtl")}function zi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Gi(e,t){var n={from:lt(t.from),to:Ai(t),text:Je(e,t.from,t.to)};return Wi(e,n,t.from.line,t.to.line+1),Vi(e,(function(e){return Wi(e,n,t.from.line,t.to.line+1)}),!0),n}function Qi(e){for(;e.length&&Z(e).ranges;)e.pop()}function Ui(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Qi(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=Ai(t):o.changes.push(Gi(e,t));else{var l=Z(i.done);for(l&&l.ranges||Ki(e.sel,i.done),o={changes:[Gi(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||be(e,"historyAdded")}function Hi(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,Z(i.done),t))?i.done[i.done.length-1]=t:Ki(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Qi(i.undone)}function Ki(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Wi(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 Yi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Xi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Yi(n[i]));return r}(e,t),r=Lt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ji(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?_i.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&Q(t,Number(u[1]))>-1&&(Z(s)[d]=c[d],delete c[d])}}}return r}function Zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new Ni(i,t)}return new Ni(n||t,t)}function eo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),oo(e,new _i([Zi(e.sel.primary(),t,n,i)],0),r)}function to(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Zi(e.sel.ranges[o],t[o],null,i);oo(e,Ii(e.cm,r,e.sel.primIndex),n)}function no(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,oo(e,Ii(e.cm,i,e.sel.primIndex),r)}function ro(e,t,n,r){oo(e,Li(t,n),r)}function io(e,t,n){var r=e.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=t,ao(e,t,n)):oo(e,t,n)}function oo(e,t,n){ao(e,t,n),Hi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ao(e,t,n){(Te(e,"beforeSelectionChange")||e.cm&&Te(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ni(pt(e,t[n].anchor),pt(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ii(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);so(e,co(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||jr(e.cm)}function so(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,we(e.cm)),fn(e,"cursorActivity",e))}function lo(e){so(e,co(e,e.sel,null,!1))}function co(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=po(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:po(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ni(l,c))}return i?Ii(e.cm,i,t.primIndex):t}function uo(e,t,n,r,i){var o=Xe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),p=void 0;if((r<0?u:c)&&(d=fo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(p=at(d,n))&&(r<0?p<0:p>0))return uo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=fo(e,f,r,f.line==t.line?o:null)),f?uo(e,f,t,r,i):null}}return t}function po(e,t,n,r,i){var o=r||1;return uo(e,t,n,o,i)||!i&&uo(e,t,n,o,!0)||uo(e,t,n,-o,i)||!i&&uo(e,t,n,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function fo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,ot(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function ho(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),H)}function mo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=pt(e,t)),n&&(r.to=pt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function go(e,t,n){if(e.cm){if(!e.cm.curOp)return ai(e.cm,go)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"))||(t=mo(e,t,!0))){var r=xt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=Q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(at(c.to,s.from)<0||at(c.from,s.to)>0)){var u=[l,1],d=at(c.from,s.from),p=at(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&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)vo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else vo(e,t)}}function vo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=Pi(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),Eo(e,t,n,Lt(e,t));var r=[];Vi(e,(function(e,n){n||-1!=Q(r,e.history)||(ko(e.history,t),r.push(e.history)),Eo(e,t,null,Lt(e,t))}))}}function yo(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<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Ki(i,l),n&&!i.equals(e.sel))return void oo(e,i,{clearRedo:!1});a=i}var u=[];Ki(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,d&&!mo(e,r,!1))return s.length=0,{};u.push(Gi(e,r));var o=n?Pi(e,r):Z(s);Eo(e,r,o,Xi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ai(r)});var a=[];Vi(e,(function(e,t){t||-1!=Q(a,e.history)||(ko(e.history,r),a.push(e.history)),Eo(e,r,null,Xi(e,r))}))},f=i.changes.length-1;f>=0;--f){var h=p(f);if(h)return h.v}}}}function bo(e,t){if(0!=t&&(e.first+=t,e.sel=new _i(ee(e.sel.ranges,(function(e){return new Ni(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)yr(e.cm,r,"gutter")}}function Eo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ai(e.cm,Eo)(e,t,n,r);if(t.to.line<e.first)bo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);bo(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Je(e,t.from,t.to),n||(n=Pi(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=tt(zt(Xe(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&&we(e),$i(r,t,n,fr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Wt(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.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Xe(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ci(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?vr(e):o.line!=a.line||1!=t.text.length||Fi(e.doc,t)?vr(e,o.line,a.line+1,c):yr(e,o.line,"text");var u=Te(e,"changes"),d=Te(e,"change");if(d||u){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&fn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):$i(e,t,r),ao(e,n,H),e.cantEdit&&po(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function wo(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),go(e,{from:n,to:r,text:t,origin:i})}function To(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function So(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)To(o.ranges[s].anchor,t,n,r),To(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=ot(c.from.line+r,c.from.ch),c.to=ot(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ko(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;So(e.done,n,r,i),So(e.undone,n,r,i)}function Oo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Xe(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&yr(e.cm,i,n),o)}function xo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Co(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ni.prototype.from=function(){return ut(this.anchor,this.head)},Ni.prototype.to=function(){return ct(this.anchor,this.head)},Ni.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},xo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Jt(i),fn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Co.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof xo))){var s=[];this.collapse(s),this.children=[new xo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new xo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Co(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=Q(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Co(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var _o=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function No(e,t,n){Kt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mr(e,n)}_o.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=xn(this);et(n,Math.max(0,n.height-o)),e&&(oi(e,(function(){No(e,n,-o),yr(e,r,"widget")})),fn(e,"lineWidgetCleared",e,this,r))}},_o.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=xn(this)-t;i&&(Ut(this.doc,r)||et(r,r.height+i),n&&oi(n,(function(){n.curOp.forceUpdate=!0,No(n,r,i),fn(n,"lineWidgetChanged",n,e,tt(r))})))},Se(_o);var Io=0,Lo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Io};function Ao(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=q(r)).shared=!1;var o=[Ao(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Vi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ao(e,pt(e,t),pt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Z(o)})),new Do(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ai(e.cm,Ao)(e,t,n,r,i);var o=new Lo(e,i),a=at(t,n);if(r&&q(r,o,!1),a>0||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(qt(e,t.line,t,n,o)||t.line!=n.line&&qt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Ui(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&&zt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(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 _t(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){Ut(e,t)&&et(t,0)})),o.clearOnEnter&&ge(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Io,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)vr(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++)yr(c,u,"text");o.atomic&&lo(c.doc),fn(c,"markerAdded",c,o)}return o}Lo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Jr(e),Te(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Nt(a.markedSpans,this);e&&!this.collapsed?yr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=It(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&et(a,cr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=zt(this.lines[l]),u=Wt(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&vr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&lo(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Zr(e),this.parent&&this.parent.clear()}},Lo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Nt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},Lo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&oi(r,(function(){var i=t.line,o=tt(t.line),a=jn(r,o);if(a&&(Gn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=xn(n)-s;l&&et(i,i.height+l)}fn(r,"markerChanged",r,e)}))},Lo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=Q(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Lo.prototype.detachLine=function(e){if(this.lines.splice(Q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Se(Lo);var Do=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Po(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function Ro(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Vi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==Q(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Do.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fn(this,"clear")}},Do.prototype.find=function(e,t){return this.primary.find(e,t)},Se(Do);var Mo=0,jo=function(e,t,n,r,i){if(!(this instanceof jo))return new jo(e,t,n,r,i);null==n&&(n=0),Co.call(this,[new xo([new Xt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=Li(o),this.history=new zi(null),this.id=++Mo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),$i(this,{from:o,to:o,text:e}),oo(this,Li(o),H)};jo.prototype=ne(Co.prototype,{constructor:jo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:li((function(e){var t=ot(this.first,0),n=this.first+this.size-1;go(this,{from:t,to:ot(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fr(this.cm,0,0),oo(this,Li(t),H)})),replaceRange:function(e,t,n,r){wo(this,e,t=pt(this,t),n=n?pt(this,n):t,r)},getRange:function(e,t,n){var r=Je(this,pt(this,e),pt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Xe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),zt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:li((function(e,t,n){ro(this,pt(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:li((function(e,t,n){ro(this,pt(this,e),pt(this,t||e),n)})),extendSelection:li((function(e,t,n){eo(this,pt(this,e),t&&pt(this,t),n)})),extendSelections:li((function(e,t){to(this,ft(this,e),t)})),extendSelectionsBy:li((function(e,t){to(this,ft(this,ee(this.sel.ranges,e)),t)})),setSelections:li((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ni(pt(this,e[i].anchor),pt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),oo(this,Ii(this.cm,r,t),n)}})),addSelection:li((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ni(pt(this,e),pt(this,t||e))),oo(this,Ii(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:li((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ri(s.from,i,o),c=Ri(Ai(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=at(u.head,u.anchor)<0;r[a]=new Ni(d?c:l,d?l:c)}else r[a]=new Ni(l,l)}return new _i(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)go(this,r[l]);s?io(this,s):this.cm&&jr(this.cm)})),undo:li((function(){yo(this,"undo")})),redo:li((function(){yo(this,"redo")})),undoSelection:li((function(){yo(this,"undo",!0)})),redoSelection:li((function(){yo(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.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new zi(this.history),Vi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ji(this.history.done),undone:Ji(this.history.undone)}},setHistory:function(e){var t=this.history=new zi(this.history);t.done=Ji(e.done.slice(0),null,!0),t.undone=Ji(e.undone.slice(0),null,!0)},setGutterMarker:li((function(e,t,n){return Oo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:li((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Oo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Xe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:li((function(e,t,n){return Oo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(O(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:li((function(e,t,n){return Oo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(O(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:li((function(e,t,n){return function(e,t,n,r){var i=new _o(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Oo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Kt(t)<e.scrollTop;et(t,t.height+xn(i)),r&&Mr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&fn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ao(this,pt(this,e),pt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ao(this,e=pt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=pt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=pt(this,e),t=pt(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<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=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;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),pt(this,ot(n,t))},indexFromPos:function(e){var t=(e=pt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new jo(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new jo(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=Ao(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Po(this)),r},unlinkDoc:function(e){if(e instanceof Da&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ro(Po(this));break}if(e.history==this.history){var n=[e.id];Vi(e,(function(e){return n.push(e.id)}),!0),e.history=new zi(null),e.history.done=Ji(this.history.done,n),e.history.undone=Ji(this.history.undone,n)}},iterLinkedDocs:function(e){Vi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:li((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&oi(t=this.cm,(function(){qi(t),vr(t)})))}))}),jo.prototype.eachLine=jo.prototype.iter;var Fo=0;function $o(e){var t=this;if(Vo(t),!Ee(t,e)&&!Cn(t.display,e)){ke(e),a&&(Fo=+new Date);var n=mr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ai(t,(function(){var e={from:n=pt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};go(t.doc,e),io(t.doc,Li(pt(t.doc,n),pt(t.doc,Ai(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==Q(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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 p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),ao(t.doc,Li(n,n)),p)for(var f=0;f<p.length;++f)wo(t.doc,"",p[f].anchor,p[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Vo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Bo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var qo=!1;function zo(){var e;qo||(ge(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Bo(Go)}),100))})),ge(window,"blur",(function(){return Bo(Lr)})),qo=!0)}function Go(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Qo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Qo[Uo+48]=Qo[Uo+96]=String(Uo);for(var Ho=65;Ho<=90;Ho++)Qo[Ho]=String.fromCharCode(Ho);for(var Ko=1;Ko<=12;Ko++)Qo[Ko+111]=Qo[Ko+63235]="F"+Ko;var Wo={};function Yo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Xo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=ee(n.split(" "),Yo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Jo(e,t,n,r){var i=(t=na(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Jo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Jo(e,t.fallthrough[o],n,r);if(a)return a}}}function Zo(e){var t="string"==typeof e?e:Qo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function ea(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(S?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(S?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function ta(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Qo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),ea(n,e,t))}function na(e){return"string"==typeof e?Wo[e]:e}function ra(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,Z(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}oi(e,(function(){for(var t=r.length-1;t>=0;t--)wo(e.doc,"",r[t].from,r[t].to,"+delete");jr(e)}))}function ia(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function oa(e,t,n){var r=ia(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function aa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Fn(t,n);a=i<0?n.text.length-1:0;var u=$n(t,c,a).top;a=ue((function(e){return $n(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ia(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}Wo.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"},Wo.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"},Wo.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"},Wo.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"]},Wo.default=b?Wo.macDefault:Wo.pcDefault;var sa={selectAll:ho,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),H)},killLine:function(e){return ra(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return ra(e,(function(t){return{from:ot(t.from().line,0),to:pt(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return ra(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return ra(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return ra(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return la(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ca(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Xe(e.doc,t),r=function(e){for(var t;t=Vt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=tt(r)),aa(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),W)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),W)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ca(e,t.head):r}),W)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=z(e.getLine(o.line),o.ch,r);t.push(J(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return oi(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Xe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)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 a=Xe(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ni(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return oi(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<t.length;r++)e.indentLine(t[r].from().line,null,!0);jr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function la(e,t){var n=Xe(e.doc,t),r=zt(n);return r!=n&&(t=tt(r)),aa(!0,e,r,t,1)}function ca(e,t){var n=la(e,t.line),r=Xe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ua(e,t,n){if("string"==typeof t&&!(t=sa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var da=new G;function pa(e,t,n,r){var i=e.state.keySeq;if(i){if(Zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:da.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),fa(e,i+" "+t,n,r))return!0}return fa(e,t,n,r)}function fa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Jo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Jo(t,e.options.extraKeys,n,e)||Jo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&fn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Cr(e)),!!i}function ha(e,t){var n=ta(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?pa(e,"Shift-"+n,t,(function(t){return ua(e,t,!0)}))||pa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ua(e,t)})):pa(e,n,t,(function(t){return ua(e,t)})))}var ma=null;function ga(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(F(t)),Ee(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ha(t,e);p&&(ma=i?r:null,i||88!=r||Fe||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}P(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}(t)}}function va(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ee(this,e)}function ya(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Cn(t.display,e)||Ee(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==ma)return ma=null,void ke(e);if(!p||e.which&&!(e.which<10)||!ha(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return pa(e,"'"+n+"'",t,(function(t){return ua(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var ba,Ea,wa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function Ta(e){var t=this,n=t.display;if(!(Ee(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Cn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Oa(t,e)){var r=mr(t,e),i=Ne(e),o=r?function(e,t){var n=+new Date;return Ea&&Ea.compare(n,e,t)?(ba=Ea=null,"triple"):ba&&ba.compare(n,e,t)?(Ea=new wa(n,e,t),ba=null,"double"):(ba=new wa(n,e,t),Ea=null,"single")}(r,i):"single";V(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),pa(e,ea(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=sa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(B(_r,e),0):e.curOp.focus=D(F(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=E?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Ae&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(at((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=ai(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Nr(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",c),o||(ke(t),r.addNew||eo(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},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(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&&Nr(e);var i=e.display,o=e.doc;ke(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 Ni(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ni(n,n)),n=mr(e,t,!0,!0),l=-1;else{var d=Sa(e,n,r.unit);s=r.extend?Zi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,oo(o,Ii(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(oo(o,Ii(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):no(o,l,s,K):(l=0,oo(o,new _i([s],0),K),c=o.sel);var p=n;function f(t){if(0!=at(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=z(Xe(o,n.line).text,n.ch,a),d=z(Xe(o,t.line).text,t.ch,a),f=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Xe(o,m).text,y=Y(v,f,a);f==h?i.push(new Ni(ot(m,y),ot(m,y))):v.length>y&&i.push(new Ni(ot(m,y),ot(m,Y(v,h,a))))}i.length||i.push(new Ni(n,n)),oo(o,Ii(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,w=Sa(e,t,r.unit),T=E.anchor;at(w.anchor,T)>0?(b=w.head,T=ut(E.from(),w.anchor)):(b=w.anchor,T=ct(E.to(),w.head));var S=c.ranges.slice(0);S[l]=function(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=pe(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=pe(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=o[c+(l?-1:0)],f=l==(1==p.level),h=f?p.from:p.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new Ni(new ot(n.line,h,m),r)}(e,new Ni(pt(o,T),b)),oo(o,Ii(e,S,l),K)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=mr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,p)){e.curOp.focus=D(F(e)),f(a);var s=Pr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(ai(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(ai(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",y),ye(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=ai(e,(function(e){0!==e.buttons&&Ne(e)?g(e):v(e)})),b=ai(e,v);e.state.selectingText=b,ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):_e(e)==n.scroller&&ke(e):2==i?(r&&eo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):Nr(t)))}}function Sa(e,t,n){if("char"==n)return new Ni(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ni(ot(t.line,0),pt(e.doc,ot(t.line+1,0)));var r=n(e,t);return new Ni(r.from,r.to)}function ka(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&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Te(e,n))return xe(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return be(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),xe(t)}}function Oa(e,t){return ka(e,t,"gutterClick",!0)}function xa(e,t){Cn(e.display,t)||function(e,t){return!!Te(e,"gutterContextMenu")&&ka(e,t,"gutterContextMenu",!1)}(e,t)||Ee(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Ca(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}wa.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button};var _a={toString:function(){return"CodeMirror.Init"}},Na={},Ia={};function La(e,t,n){if(!t!=!(n&&n!=_a)){var r=e.display.dragFunctions,i=t?ge:ye;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 Aa(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"),Yt(e)),hr(e),vr(e),Un(e),setTimeout((function(){return Hr(e)}),100)}function Da(e,t){var n=this;if(!(this instanceof Da))return new Da(e,t);this.options=t=t?q(t):{},q(Na,t,!1);var r=t.value;"string"==typeof r?r=new jo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Da.inputStyles[t.inputStyle](this),o=this.display=new Ti(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ca(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yr(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;ge(t.scroller,"mousedown",ai(e,Ta)),ge(t.scroller,"dblclick",a&&s<11?ai(e,(function(t){if(!Ee(e,t)){var n=mr(e,t);if(n&&!Oa(e,t)&&!Cn(e.display,t)){ke(t);var r=e.findWordAt(n);eo(e.doc,r.anchor,r.head)}}})):function(t){return Ee(e,t)||ke(t)}),ge(t.scroller,"contextmenu",(function(t){return xa(e,t)})),ge(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||xa(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}ge(t.scroller,"touchstart",(function(i){if(!Ee(e,i)&&!o(i)&&!Oa(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)}})),ge(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ge(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Cn(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 Ni(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new Ni(ot(a.line,0),pt(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()})),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Br(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ge(t.scroller,"mousewheel",(function(t){return Ci(e,t)})),ge(t.scroller,"DOMMouseScroll",(function(t){return Ci(e,t)})),ge(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Ee(e,t)||Ce(t)},over:function(t){Ee(e,t)||(function(e,t){var n=mr(e,t);if(n){var r=document.createDocumentFragment();kr(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),Ce(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))Ce(t);else if(!Ee(e,t)&&!Cn(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==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ai(e,$o),leave:function(t){Ee(e,t)||Vo(e)}};var c=t.input.getField();ge(c,"keyup",(function(t){return va.call(e,t)})),ge(c,"keydown",ai(e,ga)),ge(c,"keypress",ai(e,ya)),ge(c,"focus",(function(t){return Ir(e,t)})),ge(c,"blur",(function(t){return Lr(e,t)}))}(this),zo(),Jr(this),this.curOp.forceUpdate=!0,Bi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Ir(n)}),20):Lr(this),Ia)Ia.hasOwnProperty(c)&&Ia[c](this,t[c],_a);yi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Pa.length;++u)Pa[u](this);Zr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Da.defaults=Na,Da.optionHandlers=Ia;var Pa=[];function Ra(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(o,t),l=z(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?z(Xe(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 d="",p=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)p+=a,d+="\t";if(p<c&&(d+=J(c-p)),d!=u)return wo(o,d,ot(t,0),ot(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var g=ot(t,u.length);no(o,h,new Ni(g,g));break}}}Da.defineInitHook=function(e){return Pa.push(e)};var Ma=null;function ja(e){Ma=e}function Fa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Me(t),c=null;if(s&&r.ranges.length>1)if(Ma&&Ma.text.join("\n")==t){if(r.ranges.length%Ma.text.length==0){c=[];for(var u=0;u<Ma.text.length;u++)c.push(o.splitLines(Ma.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=ee(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var f=r.ranges[p],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?m=ot(m.line,Math.min(Xe(o,m.line).text.length,m.ch+Z(l).length)):s&&Ma&&Ma.lineWise&&Ma.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:c?c[p%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};go(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&Va(e,t),jr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $a(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||oi(t,(function(){return Fa(t,n,0,null,"paste")})),!0}function Va(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<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Ra(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ra(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Ba(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function qa(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function za(){var e=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=I("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Ga(e,t,n,r,i){var o=t,a=n,s=Xe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(o){var a,c;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return oa(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=pe(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<n.ch))return oa(t,n,r);var s,l=function(e,n){return ia(t,e instanceof ot?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||Fn(e,t),ir(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,p=l(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=u.end:p>=a.from&&p>=u.begin)){var f=d?"before":"after";return new ot(n.line,p,f)}}var h=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=h(o+r,r,u);if(m)return m;var g=r>0?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):oa(s,t,n);if(null==a){if(o||((c=t.line+l)<e.first||c>=e.first+e.size||(t=new ot(c,t.ch,t.sticky),!(s=Xe(e,c)))))return!1;t=aa(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,d="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||c(!f);f=!1){var h=s.text.charAt(t.ch)||"\n",m=oe(h,p)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||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=po(e,t,o,a,!0);return st(o,g)&&(g.hitSide=!0),g}function Qa(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*cr(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=nr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ua=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 Ha(e,t){var n=jn(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),i=Rn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=pe(o,t.ch)%2?"right":"left");var s=qn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ka(e,t){return t&&(e.bad=!0),e}function Wa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ka(e.clipPos(ot(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<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ya(o,t,n)}}function Ya(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!A(r,t))return Ka(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return Ka(ot(tt(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(u,d)}}}var d=u(a,s,n);if(d)return Ka(d,i);for(var p=s.nextSibling,f=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=u(p,p.firstChild,0))return Ka(ot(d.line,d.ch-f),i);f+=p.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=u(h,h.firstChild,-1))return Ka(ot(d.line,d.ch+m),i);m+=h.textContent.length}}Ua.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Ee(r,e)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);ja({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,H),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Ma.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=za(),l=s.firstChild;qa(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ma.text.join("\n");var c=D($(i));M(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,qa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ge(i,"paste",(function(e){!o(e)||Ee(r,e)||$a(e,r)||s<=11&&setTimeout(ai(r,(function(){return t.updateFromDOM()})),20)})),ge(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ge(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ge(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ge(i,"touchstart",(function(){return n.forceCompositionEnd()})),ge(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ge(i,"copy",a),ge(i,"cut",a)},Ua.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var e=Sr(this.cm,!1);return e.focus=D($(this.div))==this.div,e},Ua.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ua.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Wa(t,e.anchorNode,e.anchorOffset),s=Wa(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ut(a,s),i)||0!=at(ct(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Ha(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Ha(t,o);if(!u){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&u){var f,h=e.rangeCount&&e.getRangeAt(0);try{f=x(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ua.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ua.prototype.showMultipleSelections=function(e){N(this.cm.display.cursorDiv,e.cursors),N(this.cm.display.selectionDiv,e.selection)},Ua.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ua.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)},Ua.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D($(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ua.prototype.blur=function(){this.div.blur()},Ua.prototype.getField=function(){return this.div},Ua.prototype.supportsTouch=function(){return!0},Ua.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):oi(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Ua.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ua.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Wa(t,e.anchorNode,e.anchorOffset),r=Wa(t,e.focusNode,e.focusOffset);n&&r&&oi(t,(function(){oo(t.doc,Li(n,r),H),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ua.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Xe(r.doc,a.line-1).length)),s.ch==Xe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=gr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=gr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=tt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=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 d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,p=t.getAttribute("cm-marker");if(p){var f=e.findMarks(ot(r,0),ot(i+1,0),(g=+p,function(e){return e.id==g}));return void(f.length&&(o=f[0].find(0))&&u(Je(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;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,c,t,l)),p=Je(r.doc,ot(t,0),ot(l,Xe(r.doc,l).text.length));d.length>1&&p.length>1;)if(Z(d)==Z(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var f=0,h=0,m=d[0],g=p[0],v=Math.min(m.length,g.length);f<v&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=Z(d),b=Z(p),E=Math.min(y.length-(1==d.length?f:0),b.length-(1==p.length?f:0));h<E&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==p.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=ot(t,f),T=ot(l,p.length?Z(p).length-h:0);return d.length>1||d[0]||at(w,T)?(wo(r.doc,d,w,T,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.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))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||oi(this.cm,(function(){return vr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable="false"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ai(this.cm,Fa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var Xa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null,this.resetting=!1};Xa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Ee(r,e)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);ja({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,H):(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"),ge(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ge(i,"paste",(function(e){Ee(r,e)||$a(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",(function(t){if(!Cn(e,t)&&!Ee(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)}})),ge(e.lineSpace,"selectstart",(function(t){Cn(e,t)||ke(t)})),ge(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"})}})),ge(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Xa.prototype.createField=function(e){this.wrapper=za(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;qa(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Xa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Xa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Sr(e);if(e.options.moveInputWithCursor){var i=Zn(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},Xa.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")},Xa.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}},Xa.prototype.getField=function(){return this.textarea},Xa.prototype.supportsTouch=function(){return!1},Xa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D($(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Xa.prototype.blur=function(){this.textarea.blur()},Xa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xa.prototype.receivedFocus=function(){this.slowPoll()},Xa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Xa.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))}))},Xa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(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);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return oi(t,(function(){Fa(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||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},Xa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Xa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=mr(n,e),c=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ai(n,oo)(n.doc,Li(o),H);var u,d=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){Ce(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(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=d,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?ai(n,ho)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Xa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Xa.prototype.setUneditable=function(){},Xa.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!=_a&&i(e,t,n)}:i)}e.defineOption=n,e.Init=_a,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Mi(e)}),!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){ji(e),Un(e),vr(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(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)wo(e.doc,t,n[i],ot(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!=_a&&e.refresh()})),n("specialCharPlaceholder",rn,(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){Ca(e),wi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=na(t),i=n!=_a&&na(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Aa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=bi(t,e.options.lineNumbers),wi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?pr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Hr(e)}),!0),n("scrollbarStyle","native",(function(e){Yr(e),Hr(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=bi(e.options.gutters,t),wi(e)}),!0),n("firstLineNumber",1,wi,!0),n("lineNumberFormatter",(function(e){return e}),wi,!0),n("showCursorWhenSelecting",!1,Tr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Lr(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,La),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Tr,!0),n("singleCursorHeightPerLine",!0,Tr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ji,!0),n("addModeClass",!1,ji,!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,ji,!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)}(Da),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)&&ai(this,t[e])(this,n,i),be(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"](na(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:si((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");(function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)})(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,vr(this)})),removeOverlay:si((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void vr(this)}})),indentLine:si((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Ra(this,e,t,n)})),indentSelection:si((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ra(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&jr(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;l<n;++l)Ra(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&no(this.doc,r,new Ni(o,c[r].to()),H)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=vt(this,Xe(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)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==Q(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?pt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Jn(this,pt(this.doc,e),t||"page")},coordsChar:function(e,t){return nr(this,(e=Xn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Xn(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Xe(this.doc,e)}else r=e;return Yn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Kt(r):0)},defaultTextHeight:function(){return cr(this.display)},defaultCharWidth:function(){return ur(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=Zn(this,pt(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 d=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>p&&(u=p-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=Rr(o,a)).scrollTop&&Br(o,s.scrollTop),null!=s.scrollLeft&&zr(o,s.scrollLeft))},triggerOnKeyDown:si(ga),triggerOnKeyPress:si(ya),triggerOnKeyUp:va,triggerOnMouseDown:si(Ta),execCommand:function(e){if(sa.hasOwnProperty(e))return sa[e].call(null,this)},triggerElectric:si((function(e){Va(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=pt(this.doc,e),a=0;a<t&&!(o=Ga(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:si((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ga(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),W)})),deleteH:si((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ra(this,(function(n){var i=Ga(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=pt(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Qa(this,l,i,n)).hitSide)break}return a},moveV:si((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Qa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Mr(n,Jn(n,l,"div").top-s.top),l}),W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ni(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?P(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(F(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:si((function(e,t){Fr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-An(this)-this.display.barHeight,width:e.scrollWidth-An(this)-this.display.barWidth,clientHeight:Pn(this),clientWidth:Dn(this)}},scrollIntoView:si((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){$r(e),e.curOp.scrollToPos=t}(this,e):Vr(this,e.from,e.to,e.margin)})),setSize:si((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Qn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){yr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return oi(this,e)},startOperation:function(){return Jr(this)},endOperation:function(){return Zr(this)},refresh:si((function(){var e=this.display.cachedTextHeight;vr(this),this.curOp.forceUpdate=!0,Un(this),Fr(this,this.doc.scrollLeft,this.doc.scrollTop),mi(this.display),(null==e||Math.abs(e-cr(this.display))>.5||this.options.lineWrapping)&&hr(this),be(this,"refresh",this)})),swapDoc:si((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Bi(this,e),Un(this),this.display.input.reset(),Fr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(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}},Se(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})}}(Da);var Ja="iter insert remove copy getEditor constructor".split(" ");for(var Za in jo.prototype)jo.prototype.hasOwnProperty(Za)&&Q(Ja,Za)<0&&(Da.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(jo.prototype[Za]));return Se(jo),Da.inputStyles={textarea:Xa,contenteditable:Ua},Da.defineMode=function(e){Da.defaults.mode||"null"==e||(Da.defaults.mode=e),qe.apply(this,arguments)},Da.defineMIME=function(e,t){Be[e]=t},Da.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Da.defineMIME("text/plain","null"),Da.defineExtension=function(e,t){Da.prototype[e]=t},Da.defineDocExtension=function(e,t){jo.prototype[e]=t},Da.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&&(ge(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&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Da((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=xi,e.Doc=jo,e.splitLines=Me,e.countColumn=z,e.findColumn=Y,e.isWordChar=ie,e.Pass=U,e.signal=be,e.Line=Xt,e.changeEnd=Ai,e.scrollbarModel=Wr,e.Pos=ot,e.cmpPos=at,e.modes=Ve,e.mimeModes=Be,e.resolveMode=ze,e.getMode=Ge,e.modeExtensions=Qe,e.extendMode=Ue,e.copyState=He,e.startState=We,e.innerMode=Ke,e.commands=sa,e.keyMap=Wo,e.keyName=ta,e.isModifierKey=Zo,e.lookupKey=Jo,e.normalizeKeyMap=Xo,e.StringStream=Ye,e.SharedTextMarker=Do,e.TextMarker=Lo,e.LineWidget=_o,e.e_preventDefault=ke,e.e_stopPropagation=Oe,e.e_stop=Ce,e.addClass=P,e.contains=A,e.rmClass=C,e.keyNames=Qo}(Da),Da.version="5.65.18",Da}()},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,d=n.wordCharacters||/[\w$\xa1-\uffff]/,p=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")):Ze(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(d))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(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(i)){var o=p[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())}function b(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="([{}])".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(d.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 E={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(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 T(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 S(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?q:V)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&T(e,r)?"variable-2":t}}var k={state:null,column:null,marked:null,cc:null};function O(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function x(){return O.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function _(e){var t=k.state;if(k.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=N(e,t.context);if(null!=r)return void(t.context=r)}else if(!C(e,t.localVars))return void(t.localVars=new A(e,t.localVars));n.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new A(e,t.globalVars))}}function N(e,t){if(t){if(t.block){var n=N(e,t.prev);return n?n==t.prev?t:new L(n,t.vars,!0):null}return C(e,t.vars)?t:new L(t.prev,new A(e,t.vars),!1)}return null}function I(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function L(e,t,n){this.prev=e,this.vars=t,this.block=n}function A(e,t){this.name=e,this.next=t}var D=new A("this",new A("arguments",null));function P(){k.state.context=new L(k.state.context,k.state.localVars,!1),k.state.localVars=D}function R(){k.state.context=new L(k.state.context,k.state.localVars,!0),k.state.localVars=null}function M(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function j(e,t){var n=function(){var n=k.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 w(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function $(e){return function t(n){return n==e?x():";"==e||"}"==n||")"==n||"]"==n?O():x(t)}}function V(e,t){return"var"==e?x(j("vardef",t),ke,$(";"),F):"keyword a"==e?x(j("form"),G,V,F):"keyword b"==e?x(j("form"),V,F):"keyword d"==e?k.stream.match(/^\s*$/,!1)?x():x(j("stat"),U,$(";"),F):"debugger"==e?x($(";")):"{"==e?x(j("}"),R,le,F,M):";"==e?x():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==F&&k.state.cc.pop()(),x(j("form"),G,V,F,Ie)):"function"==e?x(Pe):"for"==e?x(j("form"),R,Le,V,M,F):"class"==e||u&&"interface"==t?(k.marked="keyword",x(j("form","class"==e?e:t),$e,F)):"variable"==e?u&&"declare"==t?(k.marked="keyword",x(V)):u&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?x(Xe):"type"==t?x(Me,$("operator"),fe,$(";")):x(j("form"),Oe,$("{"),j("}"),le,F,F)):u&&"namespace"==t?(k.marked="keyword",x(j("form"),q,V,F)):u&&"abstract"==t?(k.marked="keyword",x(V)):x(j("stat"),te):"switch"==e?x(j("form"),G,$("{"),j("}","switch"),R,le,F,F,M):"case"==e?x(q,$(":")):"default"==e?x($(":")):"catch"==e?x(j("form"),P,B,V,F,M):"export"==e?x(j("stat"),ze,F):"import"==e?x(j("stat"),Qe,F):"async"==e?x(V):"@"==t?x(q,V):O(j("stat"),q,$(";"),F)}function B(e){if("("==e)return x(je,$(")"))}function q(e,t){return Q(e,t,!1)}function z(e,t){return Q(e,t,!0)}function G(e){return"("!=e?O():x(j(")"),U,$(")"),F)}function Q(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?J:X;if("("==e)return x(P,j(")"),ae(je,")"),F,$("=>"),r,M);if("variable"==e)return O(P,Oe,$("=>"),r,M)}var i=n?K:H;return E.hasOwnProperty(e)?x(i):"function"==e?x(Pe,i):"class"==e||u&&"interface"==t?(k.marked="keyword",x(j("form"),Fe,F)):"keyword c"==e||"async"==e?x(n?z:q):"("==e?x(j(")"),U,$(")"),F,i):"operator"==e||"spread"==e?x(n?z:q):"["==e?x(j("]"),Ye,F,i):"{"==e?se(re,"}",null,i):"quasi"==e?O(W,i):"new"==e?x(function(e){return function(t){return"."==t?x(e?ee:Z):"variable"==t&&u?x(we,e?K:H):O(e?z:q)}}(n)):x()}function U(e){return e.match(/[;\}\)\],]/)?O():O(q)}function H(e,t){return","==e?x(U):K(e,t,!1)}function K(e,t,n){var r=0==n?H:K,i=0==n?q:z;return"=>"==e?x(P,n?J:X,M):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?x(r):u&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(j(">"),ae(fe,">"),F,r):"?"==t?x(q,$(":"),i):x(i):"quasi"==e?O(W,r):";"!=e?"("==e?se(z,")","call",r):"."==e?x(ne,r):"["==e?x(j("]"),U,$("]"),F,r):u&&"as"==t?(k.marked="keyword",x(fe,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),x(i)):void 0:void 0}function W(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?x(W):x(U,Y)}function Y(e){if("}"==e)return k.marked="string-2",k.state.tokenize=y,x(W)}function X(e){return b(k.stream,k.state),O("{"==e?V:q)}function J(e){return b(k.stream,k.state),O("{"==e?V:z)}function Z(e,t){if("target"==t)return k.marked="keyword",x(H)}function ee(e,t){if("target"==t)return k.marked="keyword",x(K)}function te(e){return":"==e?x(F,V):O(H,$(";"),F)}function ne(e){if("variable"==e)return k.marked="property",x()}function re(e,t){return"async"==e?(k.marked="property",x(re)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?x(ie):(u&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),x(oe))):"number"==e||"string"==e?(k.marked=s?"property":k.style+" property",x(oe)):"jsonld-keyword"==e?x(oe):u&&I(t)?(k.marked="keyword",x(re)):"["==e?x(q,ce,$("]"),oe):"spread"==e?x(z,oe):"*"==t?(k.marked="keyword",x(re)):":"==e?O(oe):void 0;var n}function ie(e){return"variable"!=e?O(oe):(k.marked="property",x(Pe))}function oe(e){return":"==e?x(z):"("==e?O(Pe):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),x((function(n,r){return n==t||r==t?O():O(e)}),r)}return i==t||o==t?x():n&&n.indexOf(";")>-1?O(e):x($(t))}return function(n,i){return n==t||i==t?x():O(e,r)}}function se(e,t,n){for(var r=3;r<arguments.length;r++)k.cc.push(arguments[r]);return x(j(t,n),ae(e,t),F)}function le(e){return"}"==e?x():O(V,le)}function ce(e,t){if(u){if(":"==e)return x(fe);if("?"==t)return x(ce)}}function ue(e,t){if(u&&(":"==e||"in"==t))return x(fe)}function de(e){if(u&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?x(q,pe,fe):x(fe)}function pe(e,t){if("is"==t)return k.marked="keyword",x()}function fe(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(k.marked="keyword",x("typeof"==t?z:fe)):"variable"==e||"void"==t?(k.marked="type",x(Ee)):"|"==t||"&"==t?x(fe):"string"==e||"number"==e||"atom"==e?x(Ee):"["==e?x(j("]"),ae(fe,"]",","),F,Ee):"{"==e?x(j("}"),me,F,Ee):"("==e?x(ae(be,")"),he,Ee):"<"==e?x(ae(fe,">"),fe):"quasi"==e?O(ve,Ee):void 0}function he(e){if("=>"==e)return x(fe)}function me(e){return e.match(/[\}\)\]]/)?x():","==e||";"==e?x(me):O(ge,me)}function ge(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",x(ge)):"?"==t||"number"==e||"string"==e?x(ge):":"==e?x(fe):"["==e?x($("variable"),ue,$("]"),ge):"("==e?O(Re,ge):e.match(/[;\}\)\],]/)?void 0:x()}function ve(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?x(ve):x(fe,ye)}function ye(e){if("}"==e)return k.marked="string-2",k.state.tokenize=y,x(ve)}function be(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?x(be):":"==e?x(fe):"spread"==e?x(be):O(fe)}function Ee(e,t){return"<"==t?x(j(">"),ae(fe,">"),F,Ee):"|"==t||"."==e||"&"==t?x(fe):"["==e?x(fe,$("]"),Ee):"extends"==t||"implements"==t?(k.marked="keyword",x(fe)):"?"==t?x(fe,$(":"),fe):void 0}function we(e,t){if("<"==t)return x(j(">"),ae(fe,">"),F,Ee)}function Te(){return O(fe,Se)}function Se(e,t){if("="==t)return x(fe)}function ke(e,t){return"enum"==t?(k.marked="keyword",x(Xe)):O(Oe,ce,_e,Ne)}function Oe(e,t){return u&&I(t)?(k.marked="keyword",x(Oe)):"variable"==e?(_(t),x()):"spread"==e?x(Oe):"["==e?se(Ce,"]"):"{"==e?se(xe,"}"):void 0}function xe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?x(Oe):"}"==e?O():"["==e?x(q,$("]"),$(":"),xe):x($(":"),Oe,_e)):(_(t),x(_e))}function Ce(){return O(Oe,_e)}function _e(e,t){if("="==t)return x(z)}function Ne(e){if(","==e)return x(ke)}function Ie(e,t){if("keyword b"==e&&"else"==t)return x(j("form","else"),V,F)}function Le(e,t){return"await"==t?x(Le):"("==e?x(j(")"),Ae,F):void 0}function Ae(e){return"var"==e?x(ke,De):"variable"==e?x(De):O(De)}function De(e,t){return")"==e?x():";"==e?x(De):"in"==t||"of"==t?(k.marked="keyword",x(q,De)):O(q,De)}function Pe(e,t){return"*"==t?(k.marked="keyword",x(Pe)):"variable"==e?(_(t),x(Pe)):"("==e?x(P,j(")"),ae(je,")"),F,de,V,M):u&&"<"==t?x(j(">"),ae(Te,">"),F,Pe):void 0}function Re(e,t){return"*"==t?(k.marked="keyword",x(Re)):"variable"==e?(_(t),x(Re)):"("==e?x(P,j(")"),ae(je,")"),F,de,M):u&&"<"==t?x(j(">"),ae(Te,">"),F,Re):void 0}function Me(e,t){return"keyword"==e||"variable"==e?(k.marked="type",x(Me)):"<"==t?x(j(">"),ae(Te,">"),F):void 0}function je(e,t){return"@"==t&&x(q,je),"spread"==e?x(je):u&&I(t)?(k.marked="keyword",x(je)):u&&"this"==e?x(ce,_e):O(Oe,ce,_e)}function Fe(e,t){return"variable"==e?$e(e,t):Ve(e,t)}function $e(e,t){if("variable"==e)return _(t),x(Ve)}function Ve(e,t){return"<"==t?x(j(">"),ae(Te,">"),F,Ve):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(k.marked="keyword"),x(u?fe:q,Ve)):"{"==e?x(j("}"),Be,F):void 0}function Be(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&I(t))&&k.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",x(Be)):"variable"==e||"keyword"==k.style?(k.marked="property",x(qe,Be)):"number"==e||"string"==e?x(qe,Be):"["==e?x(q,ce,$("]"),qe,Be):"*"==t?(k.marked="keyword",x(Be)):u&&"("==e?O(Re,Be):";"==e||","==e?x(Be):"}"==e?x():"@"==t?x(q,Be):void 0}function qe(e,t){if("!"==t)return x(qe);if("?"==t)return x(qe);if(":"==e)return x(fe,_e);if("="==t)return x(z);var n=k.state.lexical.prev;return O(n&&"interface"==n.info?Re:Pe)}function ze(e,t){return"*"==t?(k.marked="keyword",x(We,$(";"))):"default"==t?(k.marked="keyword",x(q,$(";"))):"{"==e?x(ae(Ge,"}"),We,$(";")):O(V)}function Ge(e,t){return"as"==t?(k.marked="keyword",x($("variable"))):"variable"==e?O(z,Ge):void 0}function Qe(e){return"string"==e?x():"("==e?O(q):"."==e?O(H):O(Ue,He,We)}function Ue(e,t){return"{"==e?se(Ue,"}"):("variable"==e&&_(t),"*"==t&&(k.marked="keyword"),x(Ke))}function He(e){if(","==e)return x(Ue,He)}function Ke(e,t){if("as"==t)return k.marked="keyword",x(Ue)}function We(e,t){if("from"==t)return k.marked="keyword",x(q)}function Ye(e){return"]"==e?x():O(ae(z,"]"))}function Xe(){return O(j("form"),Oe,$("{"),j("}"),ae(Je,"}"),F,F)}function Je(){return O(Oe,_e)}function Ze(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 P.lex=R.lex=!0,M.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new L(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(),b(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",S(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==F)l=l.prev;else if(u!=Ie&&u!=M)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==H||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,p=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?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||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?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:Ze,skipExpression:function(t){S(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<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=o(n[0]);i!==n[0]&&(t[n[0]]=i)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var l=a[s];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},580:e=>{"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<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==a&&(o+=r.substring(s,a)),s=a+1,o+=n}return s!==a?o+r.substring(s,a):o}},3055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},8563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CharacterStream:()=>$e,CompletionItemKind:()=>mt,DIAGNOSTIC_SEVERITY:()=>cn,FileChangeTypeKind:()=>ht,GraphQLDocumentMode:()=>it,LexRules:()=>Qe,ParseRules:()=>Ue,Position:()=>Vt,Range:()=>$t,RuleKinds:()=>ft,SEVERITY:()=>ln,SuggestionCommand:()=>gt,canUseDirective:()=>kt,collectVariables:()=>Gt,getASTNodeAtPosition:()=>jt,getAutocompleteSuggestions:()=>yt,getDefinitionQueryResultForArgument:()=>tn,getDefinitionQueryResultForDefinitionNode:()=>rn,getDefinitionQueryResultForField:()=>en,getDefinitionQueryResultForFragmentSpread:()=>nn,getDefinitionQueryResultForNamedType:()=>Zt,getDefinitionState:()=>dt,getDiagnostics:()=>dn,getFieldDef:()=>ct,getFragmentDefinitions:()=>St,getFragmentDependencies:()=>_t,getFragmentDependenciesForAST:()=>Nt,getHoverInformation:()=>bn,getOperationASTFacts:()=>Qt,getOperationFacts:()=>Ut,getOutline:()=>vn,getQueryFacts:()=>Ht,getRange:()=>hn,getTokenAtPosition:()=>st,getTypeInfo:()=>pt,getVariableCompletions:()=>Tt,getVariablesJSONSchema:()=>Mt,isIgnored:()=>Ge,list:()=>Be,offsetToPosition:()=>Bt,onlineParser:()=>We,opt:()=>Ve,p:()=>ze,pointToOffset:()=>Ft,t:()=>qe,validateQuery:()=>pn,validateWithCustomRules:()=>zt});var r=n(5549);function i(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function o(e,t){return function(e,t){if(!t||""===t.trim()||":"===t.trim()||"{"===t.trim())return a(e,(e=>!e.isDeprecated));return a(a(e.map((e=>({proximity:l(s(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,s(e.string))}function a(e,t){const n=e.filter(t);return 0===n.length?e:n}function s(e){return e.toLowerCase().replaceAll(/\W/g,"")}function l(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}const c=(e,t,n)=>{if(!t)return null!=n?n:e;const i=(0,r.getNamedType)(t);return(0,r.isObjectType)(i)||(0,r.isInputObjectType)(i)||(0,r.isListType)(i)||(0,r.isAbstractType)(i)?e+" {\n   $1\n}":null!=n?n:e},u=(e,t,n)=>{if((0,r.isListType)(t)){const n=(0,r.getNamedType)(t.ofType);return e+`[${c("",n,"$1")}]`}return c(e,t,n)},d=e=>{const t=e.args.filter((e=>e.type.toString().endsWith("!")));if(t.length)return e.name+`(${t.map(((e,t)=>`${e.name}: $${t+1}`))}) ${c("",e.type,"\n")}`};var p,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,de,pe,fe,he,me,ge,ve,ye,be,Ee,we,Te,Se,ke,Oe,xe,Ce,_e,Ne,Ie,Le,Ae,De,Pe,Re,Me,je;!function(e){e.is=function(e){return"string"==typeof e}}(p||(p={})),function(e){e.is=function(e){return"string"==typeof e}}(f||(f={})),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}}(h||(h={})),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}}(m||(m={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return je.objectLiteral(t)&&je.uinteger(t.line)&&je.uinteger(t.character)}}(g||(g={})),function(e){e.create=function(e,t,n,r){if(je.uinteger(e)&&je.uinteger(t)&&je.uinteger(n)&&je.uinteger(r))return{start:g.create(e,t),end:g.create(n,r)};if(g.is(e)&&g.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 je.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)}}(v||(v={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return je.objectLiteral(t)&&v.is(t.range)&&(je.string(t.uri)||je.undefined(t.uri))}}(y||(y={})),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 je.objectLiteral(t)&&v.is(t.targetRange)&&je.string(t.targetUri)&&v.is(t.targetSelectionRange)&&(v.is(t.originSelectionRange)||je.undefined(t.originSelectionRange))}}(b||(b={})),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 je.objectLiteral(t)&&je.numberRange(t.red,0,1)&&je.numberRange(t.green,0,1)&&je.numberRange(t.blue,0,1)&&je.numberRange(t.alpha,0,1)}}(E||(E={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return je.objectLiteral(t)&&v.is(t.range)&&E.is(t.color)}}(w||(w={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return je.objectLiteral(t)&&je.string(t.label)&&(je.undefined(t.textEdit)||L.is(t))&&(je.undefined(t.additionalTextEdits)||je.typedArray(t.additionalTextEdits,L.is))}}(T||(T={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(S||(S={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return je.defined(n)&&(a.startCharacter=n),je.defined(r)&&(a.endCharacter=r),je.defined(i)&&(a.kind=i),je.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return je.objectLiteral(t)&&je.uinteger(t.startLine)&&je.uinteger(t.startLine)&&(je.undefined(t.startCharacter)||je.uinteger(t.startCharacter))&&(je.undefined(t.endCharacter)||je.uinteger(t.endCharacter))&&(je.undefined(t.kind)||je.string(t.kind))}}(k||(k={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return je.defined(t)&&y.is(t.location)&&je.string(t.message)}}(O||(O={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(x||(x={})),function(e){e.Unnecessary=1,e.Deprecated=2}(C||(C={})),function(e){e.is=function(e){const t=e;return je.objectLiteral(t)&&je.string(t.href)}}(_||(_={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return je.defined(n)&&(a.severity=n),je.defined(r)&&(a.code=r),je.defined(i)&&(a.source=i),je.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return je.defined(n)&&v.is(n.range)&&je.string(n.message)&&(je.number(n.severity)||je.undefined(n.severity))&&(je.integer(n.code)||je.string(n.code)||je.undefined(n.code))&&(je.undefined(n.codeDescription)||je.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(je.string(n.source)||je.undefined(n.source))&&(je.undefined(n.relatedInformation)||je.typedArray(n.relatedInformation,O.is))}}(N||(N={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return je.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return je.defined(t)&&je.string(t.title)&&je.string(t.command)}}(I||(I={})),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 je.objectLiteral(t)&&je.string(t.newText)&&v.is(t.range)}}(L||(L={})),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 je.objectLiteral(t)&&je.string(t.label)&&(je.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(je.string(t.description)||void 0===t.description)}}(A||(A={})),function(e){e.is=function(e){const t=e;return je.string(t)}}(D||(D={})),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 L.is(t)&&(A.is(t.annotationId)||D.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return je.defined(t)&&q.is(t.textDocument)&&Array.isArray(t.edits)}}(R||(R={})),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&&je.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||je.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||je.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(M||(M={})),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&&je.string(t.oldUri)&&je.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||je.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||je.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(j||(j={})),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&&je.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||je.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||je.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||D.is(t.annotationId))}}(F||(F={})),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=>je.string(e.kind)?M.is(e)||j.is(e)||F.is(e):R.is(e))))}}($||($={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return je.defined(t)&&je.string(t.uri)}}(V||(V={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return je.defined(t)&&je.string(t.uri)&&je.integer(t.version)}}(B||(B={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return je.defined(t)&&je.string(t.uri)&&(null===t.version||je.integer(t.version))}}(q||(q={})),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 je.defined(t)&&je.string(t.uri)&&je.string(t.languageId)&&je.integer(t.version)&&je.string(t.text)}}(z||(z={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(G||(G={})),function(e){e.is=function(e){const t=e;return je.objectLiteral(e)&&G.is(t.kind)&&je.string(t.value)}}(Q||(Q={})),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}(U||(U={})),function(e){e.PlainText=1,e.Snippet=2}(H||(H={})),function(e){e.Deprecated=1}(K||(K={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&je.string(t.newText)&&v.is(t.insert)&&v.is(t.replace)}}(W||(W={})),function(e){e.asIs=1,e.adjustIndentation=2}(Y||(Y={})),function(e){e.is=function(e){const t=e;return t&&(je.string(t.detail)||void 0===t.detail)&&(je.string(t.description)||void 0===t.description)}}(X||(X={})),function(e){e.create=function(e){return{label:e}}}(J||(J={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Z||(Z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return je.string(t)||je.objectLiteral(t)&&je.string(t.language)&&je.string(t.value)}}(ee||(ee={})),function(e){e.is=function(e){let t=e;return!!t&&je.objectLiteral(t)&&(Q.is(t.contents)||ee.is(t.contents)||je.typedArray(t.contents,ee.is))&&(void 0===e.range||v.is(e.range))}}(te||(te={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ne||(ne={})),function(e){e.create=function(e,t,...n){let r={label:e};return je.defined(t)&&(r.documentation=t),je.defined(n)?r.parameters=n:r.parameters=[],r}}(re||(re={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ie||(ie={})),function(e){e.create=function(e,t){let n={range:e};return je.number(t)&&(n.kind=t),n}}(oe||(oe={})),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}(ae||(ae={})),function(e){e.Deprecated=1}(se||(se={})),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}}(le||(le={})),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}}}}(ce||(ce={})),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&&je.string(t.name)&&je.number(t.kind)&&v.is(t.range)&&v.is(t.selectionRange)&&(void 0===t.detail||je.string(t.detail))&&(void 0===t.deprecated||je.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(ue||(ue={})),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"}(de||(de={})),function(e){e.Invoked=1,e.Automatic=2}(pe||(pe={})),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 je.defined(t)&&je.typedArray(t.diagnostics,N.is)&&(void 0===t.only||je.typedArray(t.only,je.string))&&(void 0===t.triggerKind||t.triggerKind===pe.Invoked||t.triggerKind===pe.Automatic)}}(fe||(fe={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):I.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&&je.string(t.title)&&(void 0===t.diagnostics||je.typedArray(t.diagnostics,N.is))&&(void 0===t.kind||je.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||I.is(t.command))&&(void 0===t.isPreferred||je.boolean(t.isPreferred))&&(void 0===t.edit||$.is(t.edit))}}(he||(he={})),function(e){e.create=function(e,t){let n={range:e};return je.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return je.defined(t)&&v.is(t.range)&&(je.undefined(t.command)||I.is(t.command))}}(me||(me={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return je.defined(t)&&je.uinteger(t.tabSize)&&je.boolean(t.insertSpaces)}}(ge||(ge={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return je.defined(t)&&v.is(t.range)&&(je.undefined(t.target)||je.string(t.target))}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return je.objectLiteral(n)&&v.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ye||(ye={})),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"}(be||(be={})),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"}(Ee||(Ee={})),function(e){e.is=function(e){const t=e;return je.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(we||(we={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&v.is(t.range)&&je.string(t.text)}}(Te||(Te={})),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&&v.is(t.range)&&je.boolean(t.caseSensitiveLookup)&&(je.string(t.variableName)||void 0===t.variableName)}}(Se||(Se={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&v.is(t.range)&&(je.string(t.expression)||void 0===t.expression)}}(ke||(ke={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return je.defined(t)&&v.is(e.stoppedLocation)}}(Oe||(Oe={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(xe||(xe={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return je.objectLiteral(t)&&(void 0===t.tooltip||je.string(t.tooltip)||Q.is(t.tooltip))&&(void 0===t.location||y.is(t.location))&&(void 0===t.command||I.is(t.command))}}(Ce||(Ce={})),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 je.objectLiteral(t)&&g.is(t.position)&&(je.string(t.label)||je.typedArray(t.label,Ce.is))&&(void 0===t.kind||xe.is(t.kind))&&void 0===t.textEdits||je.typedArray(t.textEdits,L.is)&&(void 0===t.tooltip||je.string(t.tooltip)||Q.is(t.tooltip))&&(void 0===t.paddingLeft||je.boolean(t.paddingLeft))&&(void 0===t.paddingRight||je.boolean(t.paddingRight))}}(_e||(_e={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Ne||(Ne={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Ie||(Ie={})),function(e){e.create=function(e){return{items:e}}}(Le||(Le={})),function(e){e.Invoked=0,e.Automatic=1}(Ae||(Ae={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(De||(De={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Pe||(Pe={})),function(e){e.is=function(e){const t=e;return je.objectLiteral(t)&&f.is(t.uri)&&je.string(t.name)}}(Re||(Re={})),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<i.length&&s<o.length;){let t=n(i[a],o[s]);e[l++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[l++]=i[a++];for(;s<o.length;)e[l++]=o[s++];return e}e.create=function(e,t,n,r){return new Fe(e,t,n,r)},e.is=function(e){let t=e;return!!(je.defined(t)&&je.string(t.uri)&&(je.undefined(t.languageId)||je.string(t.languageId))&&je.uinteger(t.lineCount)&&je.func(t.getText)&&je.func(t.positionAt)&&je.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{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}}(Me||(Me={}));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;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&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 g.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return g.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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(je||(je={}));class $e{constructor(e){this._start=0,this._pos=0,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)||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 Ve(e){return{ofRule:e}}function Be(e,t){return{ofRule:e,isList:!0,separator:t}}function qe(e,t){return{style:t,match:t=>t.kind===e}}function ze(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const Ge=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Qe={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:/^#.*/},Ue={Document:[Be("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:[He("query"),Ve(Ke("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],Mutation:[He("mutation"),Ve(Ke("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],Subscription:[He("subscription"),Ve(Ke("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],VariableDefinitions:[ze("("),Be("VariableDefinition"),ze(")")],VariableDefinition:["Variable",ze(":"),"Type",Ve("DefaultValue")],Variable:[ze("$","variable"),Ke("variable")],DefaultValue:[ze("="),"Value"],SelectionSet:[ze("{"),Be("Selection"),ze("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Ke("property"),ze(":"),Ke("qualifier"),Ve("Arguments"),Be("Directive"),Ve("SelectionSet")],Field:[Ke("property"),Ve("Arguments"),Be("Directive"),Ve("SelectionSet")],Arguments:[ze("("),Be("Argument"),ze(")")],Argument:[Ke("attribute"),ze(":"),"Value"],FragmentSpread:[ze("..."),Ke("def"),Be("Directive")],InlineFragment:[ze("..."),Ve("TypeCondition"),Be("Directive"),"SelectionSet"],FragmentDefinition:[He("fragment"),Ve(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}(Ke("def"),[He("on")])),"TypeCondition",Be("Directive"),"SelectionSet"],TypeCondition:[He("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:[qe("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[qe("Name","builtin")],NullValue:[qe("Name","keyword")],EnumValue:[Ke("string-2")],ListValue:[ze("["),Be("Value"),ze("]")],ObjectValue:[ze("{"),Be("ObjectField"),ze("}")],ObjectField:[Ke("attribute"),ze(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[ze("["),"Type",ze("]"),Ve(ze("!"))],NonNullType:["NamedType",Ve(ze("!"))],NamedType:[{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:[ze("@","meta"),Ke("meta"),Ve("Arguments")],DirectiveDef:[He("directive"),ze("@","meta"),Ke("meta"),Ve("ArgumentsDef"),He("on"),Be("DirectiveLocation",ze("|"))],InterfaceDef:[He("interface"),Ke("atom"),Ve("Implements"),Be("Directive"),ze("{"),Be("FieldDef"),ze("}")],Implements:[He("implements"),Be("NamedType",ze("&"))],DirectiveLocation:[Ke("string-2")],SchemaDef:[He("schema"),Be("Directive"),ze("{"),Be("OperationTypeDef"),ze("}")],OperationTypeDef:[Ke("keyword"),ze(":"),Ke("atom")],ScalarDef:[He("scalar"),Ke("atom"),Be("Directive")],ObjectTypeDef:[He("type"),Ke("atom"),Ve("Implements"),Be("Directive"),ze("{"),Be("FieldDef"),ze("}")],FieldDef:[Ke("property"),Ve("ArgumentsDef"),ze(":"),"Type",Be("Directive")],ArgumentsDef:[ze("("),Be("InputValueDef"),ze(")")],InputValueDef:[Ke("attribute"),ze(":"),"Type",Ve("DefaultValue"),Be("Directive")],UnionDef:[He("union"),Ke("atom"),Be("Directive"),ze("="),Be("UnionMember",ze("|"))],UnionMember:["NamedType"],EnumDef:[He("enum"),Ke("atom"),Be("Directive"),ze("{"),Be("EnumValueDef"),ze("}")],EnumValueDef:[Ke("string-2"),Be("Directive")],InputDef:[He("input"),Ke("atom"),Be("Directive"),ze("{"),Be("InputValueDef"),ze("}")],ExtendDef:[He("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return r.Kind.SCHEMA_EXTENSION;case"scalar":return r.Kind.SCALAR_TYPE_EXTENSION;case"type":return r.Kind.OBJECT_TYPE_EXTENSION;case"interface":return r.Kind.INTERFACE_TYPE_EXTENSION;case"union":return r.Kind.UNION_TYPE_EXTENSION;case"enum":return r.Kind.ENUM_TYPE_EXTENSION;case"input":return r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[r.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[r.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[r.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[r.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[r.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[r.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[r.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function He(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Ke(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function We(e={eatWhitespace:e=>e.eatWhile(Ge),lexRules:Qe,parseRules:Ue,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Je(e.parseRules,t,r.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?Ze(t):t.needsAdvance&&(t.needsAdvance=!1,et(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;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Je(Xe,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return Je(Xe,t,"Comment"),"comment";const c=Ye({},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.at(-1)<t.indentLevel&&(t.indentLevel=e.at(-1))}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Je(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?et(t,!0):t.needsAdvance=!0,n.style}nt(t)}return Ye(t,c),Je(Xe,t,"Invalid"),"invalidchar"}(t,n,e)}}function Ye(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const Xe={Invalid:[],Comment:[]};function Je(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function Ze(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function et(e,t){var n;if(tt(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const{separator:t}=n;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Ze(e),e.rule&&(tt(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function tt(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function nt(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)Ze(e);e.rule&&et(e,!1)}function rt(e,t){const n=e.split("\n"),r=We();let i=r.startState(),o="",a=new $e("");for(let e=0;e<n.length;e++){for(a=new $e(n[e]);!a.eol()&&(o=r.token(a,i),"BREAK"!==t(a,i,o,e)););t(a,i,o,e),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}var it;!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(it||(it={}));const ot=[r.Kind.SCHEMA_DEFINITION,r.Kind.OPERATION_TYPE_DEFINITION,r.Kind.SCALAR_TYPE_DEFINITION,r.Kind.OBJECT_TYPE_DEFINITION,r.Kind.INTERFACE_TYPE_DEFINITION,r.Kind.UNION_TYPE_DEFINITION,r.Kind.ENUM_TYPE_DEFINITION,r.Kind.INPUT_OBJECT_TYPE_DEFINITION,r.Kind.DIRECTIVE_DEFINITION,r.Kind.SCHEMA_EXTENSION,r.Kind.SCALAR_TYPE_EXTENSION,r.Kind.OBJECT_TYPE_EXTENSION,r.Kind.INTERFACE_TYPE_EXTENSION,r.Kind.UNION_TYPE_EXTENSION,r.Kind.ENUM_TYPE_EXTENSION,r.Kind.INPUT_OBJECT_TYPE_EXTENSION],at=e=>{let t=it.UNKNOWN;if(e)try{(0,r.visit)((0,r.parse)(e),{enter(e){if("Document"!==e.kind)return!!ot.includes(e.kind)&&(t=it.TYPE_SYSTEM,r.BREAK);t=it.EXECUTABLE}})}catch(e){return t}return t};function st(e,t,n=0){let r=null,i=null,o=null;const a=rt(e,((e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return r=s,i=Object.assign({},a),o=e.current(),"BREAK"}));return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:r||a.style}}function lt(e,t,n,r,i){const o=r||st(e,t,1);if(!o)return null;const a="Invalid"===o.state.kind?o.state.prevState:o.state;return a?{token:o,state:a,typeInfo:pt(n,o.state),mode:(null==i?void 0:i.mode)||(s=e,(null==(l=null==i?void 0:i.uri)?void 0:l.endsWith(".graphqls"))?it.TYPE_SYSTEM:at(s))}:null;var s,l}function ct(e,t,n){return n===r.SchemaMetaFieldDef.name&&e.getQueryType()===t?r.SchemaMetaFieldDef:n===r.TypeMetaFieldDef.name&&e.getQueryType()===t?r.TypeMetaFieldDef:n===r.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t)?r.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function ut(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 dt(e){let t;return ut(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function pt(e,t){let n,i,o,a,s,l,c,u,d,p,f;return ut(t,(t=>{var h;switch(t.kind){case ft.QUERY:case"ShortQuery":p=e.getQueryType();break;case ft.MUTATION:p=e.getMutationType();break;case ft.SUBSCRIPTION:p=e.getSubscriptionType();break;case ft.INLINE_FRAGMENT:case ft.FRAGMENT_DEFINITION:t.type&&(p=e.getType(t.type));break;case ft.FIELD:case ft.ALIASED_FIELD:p&&t.name?(s=d?ct(e,d,t.name):null,p=s?s.type:null):s=null;break;case ft.SELECTION_SET:d=(0,r.getNamedType)(p);break;case ft.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case ft.INTERFACE_DEF:t.name&&(c=null,f=new r.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case ft.OBJECT_TYPE_DEF:t.name&&(f=null,c=new r.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case ft.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case ft.FIELD:i=s&&s.args;break;case ft.DIRECTIVE:i=o&&o.args;break;case ft.ALIASED_FIELD:{const n=null===(h=t.prevState)||void 0===h?void 0:h.name;if(!n){i=null;break}const r=d?ct(e,d,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case ft.ARGUMENT:if(i)for(let e=0;e<i.length;e++)if(i[e].name===t.name){n=i[e];break}l=null==n?void 0:n.type;break;case ft.VARIABLE_DEFINITION:case ft.VARIABLE:p=l;break;case ft.ENUM_VALUE:const m=(0,r.getNamedType)(l);a=m instanceof r.GraphQLEnumType?m.getValues().find((e=>e.value===t.name)):null;break;case ft.LIST_VALUE:const g=(0,r.getNullableType)(l);l=g instanceof r.GraphQLList?g.ofType:null;break;case ft.OBJECT_VALUE:const v=(0,r.getNamedType)(l);u=v instanceof r.GraphQLInputObjectType?v.getFields():null;break;case ft.OBJECT_FIELD:const y=t.name&&u?u[t.name]:null;l=null==y?void 0:y.type,s=y,p=s?s.type:null;break;case ft.NAMED_TYPE:t.name&&(p=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:o,enumValue:a,fieldDef:s,inputType:l,objectFieldDefs:u,parentType:d,type:p,interfaceDef:f,objectTypeDef:c}}const ft=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",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"}),ht={Created:1,Changed:2,Deleted:3};var mt;!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}(mt||(mt={}));const gt={command:"editor.action.triggerSuggest",title:"Suggestions"},vt=e=>{const t=[];if(e)try{(0,r.visit)((0,r.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t};function yt(e,t,n,a,s,l){var p;const f=Object.assign(Object.assign({},l),{schema:e}),h=lt(t,n,e,a,l);if(!h)return[];const{state:m,typeInfo:g,mode:v,token:y}=h,{kind:b,step:E,prevState:w}=m;if(b===ft.DOCUMENT)return v===it.TYPE_SYSTEM?function(e){return o(e,[{label:"extend",kind:mt.Function},...bt])}(y):v===it.EXECUTABLE?function(e){return o(e,Et)}(y):function(e){return o(e,[{label:"extend",kind:mt.Function},...Et,...bt])}(y);if(b===ft.EXTEND_DEF)return function(e){return o(e,bt)}(y);if((null===(p=null==w?void 0:w.prevState)||void 0===p?void 0:p.kind)===ft.EXTENSION_DEFINITION&&m.name)return o(y,[]);if((null==w?void 0:w.kind)===r.Kind.SCALAR_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isScalarType).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.OBJECT_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isObjectType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.INTERFACE_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isInterfaceType).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.UNION_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isUnionType).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.ENUM_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isEnumType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function}))));if((null==w?void 0:w.kind)===r.Kind.INPUT_OBJECT_TYPE_EXTENSION)return o(y,Object.values(e.getTypeMap()).filter(r.isInputObjectType).map((e=>({label:e.name,kind:mt.Function}))));if(b===ft.IMPLEMENTS||b===ft.NAMED_TYPE&&(null==w?void 0:w.kind)===ft.IMPLEMENTS)return function(e,t,n,a,s){if(t.needsSeparator)return[];const l=i(n.getTypeMap()).filter(r.isInterfaceType),c=l.map((({name:e})=>e)),u=new Set;rt(a,((e,t)=>{var i,o,a,l,d;if(t.name&&(t.kind!==ft.INTERFACE_DEF||c.includes(t.name)||u.add(t.name),t.kind===ft.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===ft.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===(a=s.interfaceDef)||void 0===a?void 0:a.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===(l=s.objectTypeDef)||void 0===l?void 0:l.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 d=s.interfaceDef||s.objectTypeDef,p=((null==d?void 0:d.getInterfaces())||[]).map((({name:e})=>e));return o(e,l.concat([...u].map((e=>({name:e})))).filter((({name:e})=>e!==(null==d?void 0:d.name)&&!p.includes(e))).map((e=>{const t={label:e.name,kind:mt.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(y,m,e,t,g);if(b===ft.SELECTION_SET||b===ft.FIELD||b===ft.ALIASED_FIELD)return function(e,t,n){var a;if(t.parentType){const{parentType:s}=t;let l=[];return"getFields"in s&&(l=i(s.getFields())),(0,r.isCompositeType)(s)&&l.push(r.TypeNameMetaFieldDef),s===(null===(a=null==n?void 0:n.schema)||void 0===a?void 0:a.getQueryType())&&l.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),o(e,l.map(((t,r)=>{var i;const o={sortText:String(r)+t.name,label:t.name,detail:String(t.type),documentation:null!==(i=t.description)&&void 0!==i?i:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:mt.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=d(t),o.insertText||(o.insertText=c(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=H.Snippet,o.insertTextMode=Y.adjustIndentation,o.command=gt)),o})))}return[]}(y,g,f);if(b===ft.ARGUMENTS||b===ft.ARGUMENT&&0===E){const{argDefs:e}=g;if(e)return o(y,e.map((e=>{var t;return{label:e.name,insertText:u(e.name+": ",e.type),insertTextMode:Y.adjustIndentation,insertTextFormat:H.Snippet,command:gt,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:mt.Variable,type:e.type}})))}if((b===ft.OBJECT_VALUE||b===ft.OBJECT_FIELD&&0===E)&&g.objectFieldDefs){const e=i(g.objectFieldDefs),t=b===ft.OBJECT_VALUE?mt.Value:mt.Field;return o(y,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:u(e.name+": ",e.type),insertTextMode:Y.adjustIndentation,insertTextFormat:H.Snippet,command:gt}})))}if(b===ft.ENUM_VALUE||b===ft.LIST_VALUE&&1===E||b===ft.OBJECT_FIELD&&2===E||b===ft.ARGUMENT&&2===E)return function(e,t,n,i){const a=(0,r.getNamedType)(t.inputType),s=Tt(n,i,e).filter((e=>e.detail===(null==a?void 0:a.name)));return a instanceof r.GraphQLEnumType?o(e,a.getValues().map((e=>{var t;return{label:e.name,detail:String(a),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:mt.EnumMember,type:a}})).concat(s)):a===r.GraphQLBoolean?o(e,s.concat([{label:"true",detail:String(r.GraphQLBoolean),documentation:"Not false.",kind:mt.Variable,type:r.GraphQLBoolean},{label:"false",detail:String(r.GraphQLBoolean),documentation:"Not true.",kind:mt.Variable,type:r.GraphQLBoolean}])):s}(y,g,t,e);if(b===ft.VARIABLE&&1===E){const n=(0,r.getNamedType)(g.inputType);return o(y,Tt(t,e,y).filter((e=>e.detail===(null==n?void 0:n.name))))}if(b===ft.TYPE_CONDITION&&1===E||b===ft.NAMED_TYPE&&null!=w&&w.kind===ft.TYPE_CONDITION)return function(e,t,n){let a;if(t.parentType)if((0,r.isAbstractType)(t.parentType)){const e=(0,r.assertAbstractType)(t.parentType),o=n.getPossibleTypes(e),s=Object.create(null);for(const e of o)for(const t of e.getInterfaces())s[t.name]=t;a=o.concat(i(s))}else a=[t.parentType];else a=i(n.getTypeMap()).filter((e=>(0,r.isCompositeType)(e)&&!e.name.startsWith("__")));return o(e,a.map((e=>{const t=(0,r.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:mt.Field}})))}(y,g,e);if(b===ft.FRAGMENT_SPREAD&&1===E)return function(e,t,n,i,a){if(!i)return[];const s=n.getTypeMap(),l=dt(e.state),c=St(i);a&&a.length>0&&c.push(...a);return o(e,c.filter((e=>s[e.typeCondition.name.value]&&!(l&&l.kind===ft.FRAGMENT_DEFINITION&&l.name===e.name.value)&&(0,r.isCompositeType)(t.parentType)&&(0,r.isCompositeType)(s[e.typeCondition.name.value])&&(0,r.doTypesOverlap)(n,t.parentType,s[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:mt.Field,type:s[e.typeCondition.name.value]}))))}(y,g,e,t,Array.isArray(s)?s:vt(s));const T=Ot(m);return T.kind===ft.FIELD_DEF?o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isOutputType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function,insertText:(null==l?void 0:l.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:Y.adjustIndentation})))):T.kind===ft.INPUT_VALUE_DEF&&2===E?o(y,Object.values(e.getTypeMap()).filter((e=>(0,r.isInputType)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:mt.Function,insertText:(null==l?void 0:l.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:Y.adjustIndentation,insertTextFormat:H.Snippet})))):b===ft.VARIABLE_DEFINITION&&2===E||b===ft.LIST_TYPE&&1===E||b===ft.NAMED_TYPE&&w&&(w.kind===ft.VARIABLE_DEFINITION||w.kind===ft.LIST_TYPE||w.kind===ft.NON_NULL_TYPE)?function(e,t){return o(e,i(t.getTypeMap()).filter(r.isInputType).map((e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:mt.Variable}))))}(y,e):b===ft.DIRECTIVE?function(e,t,n){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?o(e,n.getDirectives().filter((e=>kt(t.prevState,e))).map((e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:mt.Function})))):[]}(y,m,e):b===ft.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find((e=>e.name===t.name));return o(e,(null==r?void 0:r.args.map((e=>({label:e.name,documentation:e.description||"",kind:mt.Field}))))||[])}(y,m,e):[]}const bt=[{label:"type",kind:mt.Function},{label:"interface",kind:mt.Function},{label:"union",kind:mt.Function},{label:"input",kind:mt.Function},{label:"scalar",kind:mt.Function},{label:"schema",kind:mt.Function}],Et=[{label:"query",kind:mt.Function},{label:"mutation",kind:mt.Function},{label:"subscription",kind:mt.Function},{label:"fragment",kind:mt.Function},{label:"{",kind:mt.Constructor}],wt=(e,t)=>{var n,r,i,o,a,s,l,c,u,d;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===(d=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===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function Tt(e,t,n){let r,o=null;const a=Object.create({});return rt(e,((e,i)=>{var s;if((null==i?void 0:i.kind)===ft.VARIABLE&&i.name&&(o=i.name),(null==i?void 0:i.kind)===ft.NAMED_TYPE&&o){const e=wt(i,ft.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(o&&r&&!a[o]){const e="$"===n.string||"Variable"===(null===(s=null==n?void 0:n.state)||void 0===s?void 0:s.kind)?o:"$"+o;a[o]={detail:r.toString(),insertText:e,label:"$"+o,rawInsert:e,type:r,kind:mt.Variable},o=null,r=null}})),i(a)}function St(e){const t=[];return rt(e,((e,n)=>{n.kind===ft.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ft.FRAGMENT_DEFINITION,name:{kind:r.Kind.NAME,value:n.name},selectionSet:{kind:ft.SELECTION_SET,selections:[]},typeCondition:{kind:ft.NAMED_TYPE,name:{kind:r.Kind.NAME,value:n.type}}})})),t}function kt(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:i}=e,{locations:o}=t;switch(n){case ft.QUERY:return o.includes(r.DirectiveLocation.QUERY);case ft.MUTATION:return o.includes(r.DirectiveLocation.MUTATION);case ft.SUBSCRIPTION:return o.includes(r.DirectiveLocation.SUBSCRIPTION);case ft.FIELD:case ft.ALIASED_FIELD:return o.includes(r.DirectiveLocation.FIELD);case ft.FRAGMENT_DEFINITION:return o.includes(r.DirectiveLocation.FRAGMENT_DEFINITION);case ft.FRAGMENT_SPREAD:return o.includes(r.DirectiveLocation.FRAGMENT_SPREAD);case ft.INLINE_FRAGMENT:return o.includes(r.DirectiveLocation.INLINE_FRAGMENT);case ft.SCHEMA_DEF:return o.includes(r.DirectiveLocation.SCHEMA);case ft.SCALAR_DEF:return o.includes(r.DirectiveLocation.SCALAR);case ft.OBJECT_TYPE_DEF:return o.includes(r.DirectiveLocation.OBJECT);case ft.FIELD_DEF:return o.includes(r.DirectiveLocation.FIELD_DEFINITION);case ft.INTERFACE_DEF:return o.includes(r.DirectiveLocation.INTERFACE);case ft.UNION_DEF:return o.includes(r.DirectiveLocation.UNION);case ft.ENUM_DEF:return o.includes(r.DirectiveLocation.ENUM);case ft.ENUM_VALUE:return o.includes(r.DirectiveLocation.ENUM_VALUE);case ft.INPUT_DEF:return o.includes(r.DirectiveLocation.INPUT_OBJECT);case ft.INPUT_VALUE_DEF:switch(null==i?void 0:i.kind){case ft.ARGUMENTS_DEF:return o.includes(r.DirectiveLocation.ARGUMENT_DEFINITION);case ft.INPUT_DEF:return o.includes(r.DirectiveLocation.INPUT_FIELD_DEFINITION)}}return!1}function Ot(e){return e.prevState&&e.kind&&[ft.NAMED_TYPE,ft.LIST_TYPE,ft.TYPE,ft.NON_NULL_TYPE].includes(e.kind)?Ot(e.prevState):e}var xt=n(801),Ct=n.n(xt);const _t=(e,t)=>{if(!t)return[];let n;try{n=(0,r.parse)(e)}catch(e){return[]}return Nt(n,t)},Nt=(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;for(const e of i)!n.has(e)&&t.has(e)&&o.add(Ct()(t.get(e)));const a=[];for(const e of o)(0,r.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&t.get(e.name.value)&&(o.add(Ct()(t.get(e.name.value))),i.add(e.name.value))}}),n.has(e.name.value)||a.push(e);return a};function It(e,t){e.push(t)}function Lt(e,t){(0,r.isNonNullType)(t)?(Lt(e,t.ofType),It(e,"!")):(0,r.isListType)(t)?(It(e,"["),Lt(e,t.ofType),It(e,"]")):It(e,t.name)}function At(e,t,n){const i=[],o="type"in e?e.type:e;return"type"in e&&e.description&&(It(i,e.description),It(i,"\n\n")),It(i,function(e,t){const n=[];return t&&It(n,"```graphql\n"),Lt(n,e),t&&It(n,"\n```"),n.join("")}(o,t)),n?(It(i,"\n"),It(i,n)):!(0,r.isScalarType)(o)&&"description"in o&&o.description?(It(i,"\n"),It(i,o.description)):"ofType"in o&&!(0,r.isScalarType)(o.ofType)&&"description"in o.ofType&&o.ofType.description&&(It(i,"\n"),It(i,o.ofType.description)),i.join("")}const Dt={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}};class Pt{constructor(){this.set=new Set}mark(e){return!this.set.has(e)&&(this.set.add(e),!0)}}function Rt(e,t){var n,i;let o=Object.create(null);const a=Object.create(null),s="type"in e?e.type:e,l=(0,r.isNonNullType)(s)?s.ofType:s,c=(0,r.isNonNullType)(s);if((0,r.isScalarType)(l))(null===(n=null==t?void 0:t.scalarSchemas)||void 0===n?void 0:n[l.name])?o=JSON.parse(JSON.stringify(t.scalarSchemas[l.name])):o.type=["string","number","boolean","integer"],c||(Array.isArray(o.type)?o.type.push("null"):o.type?o.type=[o.type,"null"]:o.enum?o.enum.push(null):o.oneOf?o.oneOf.push({type:"null"}):o={oneOf:[o,{type:"null"}]});else if((0,r.isEnumType)(l))o.enum=l.getValues().map((e=>e.name)),c||o.enum.push(null);else if((0,r.isListType)(l)){o.type=c?"array":["array","null"];const{definition:e,definitions:n}=Rt(l.ofType,t);if(o.items=e,n)for(const e of Object.keys(n))a[e]=n[e]}else if((0,r.isInputObjectType)(l)&&(c?o.$ref=`#/definitions/${l.name}`:o.oneOf=[{$ref:`#/definitions/${l.name}`},{type:"null"}],null===(i=null==t?void 0:t.definitionMarker)||void 0===i?void 0:i.mark(l.name))){const e=l.getFields(),n={type:"object",properties:{},required:[]};n.description=At(l),(null==t?void 0:t.useMarkdownDescription)&&(n.markdownDescription=At(l,!0));for(const r of Object.keys(e)){const i=e[r],{required:o,definition:s,definitions:l}=Rt(i,t);if(n.properties[r]=s,o&&n.required.push(r),l)for(const[e,t]of Object.entries(l))a[e]=t}a[l.name]=n}"defaultValue"in e&&void 0!==e.defaultValue&&(o.default=e.defaultValue);const{description:u}=o;return o.description=At(e,!1,u),(null==t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=At(e,!0,u)),{required:c,definition:o,definitions:a}}function Mt(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 Pt,scalarSchemas:Object.assign(Object.assign({},Dt),null==t?void 0:t.scalarSchemas)});if(e)for(const[t,o]of Object.entries(e)){const{definition:e,required:a,definitions:s}=Rt(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 jt(e,t,n){const i=Ft(e,n);let o;return(0,r.visit)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;o=e},leave(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),o}function Ft(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 $t{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 Vt(e,t)}setEnd(e,t){this.end=new Vt(e,t)}}class Vt{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}function Bt(e,t){const n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new Vt(r,t-i-1)}const qt=[r.LoneSchemaDefinitionRule,r.UniqueOperationTypesRule,r.UniqueTypeNamesRule,r.UniqueEnumValueNamesRule,r.UniqueFieldDefinitionNamesRule,r.UniqueDirectiveNamesRule,r.KnownTypeNamesRule,r.KnownDirectivesRule,r.UniqueDirectivesPerLocationRule,r.PossibleTypeExtensionsRule,r.UniqueArgumentNamesRule,r.UniqueInputFieldNamesRule,r.UniqueVariableNamesRule,r.FragmentsOnCompositeTypesRule,r.ProvidedRequiredArgumentsRule];function zt(e,t,n,i,o){const a=r.specifiedRules.filter((e=>e!==r.NoUnusedFragmentsRule&&e!==r.ExecutableDefinitionsRule&&(!i||e!==r.KnownFragmentNamesRule)));return n&&Array.prototype.push.apply(a,n),o&&Array.prototype.push.apply(a,qt),(0,r.validate)(e,t,a).filter((e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===r.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}function Gt(e,t){const n=Object.create(null);for(const i of t.definitions)if("OperationDefinition"===i.kind){const{variableDefinitions:t}=i;if(t)for(const{variable:i,type:o}of t){const t=(0,r.typeFromAST)(e,o);t?n[i.name.value]=t:o.kind===r.Kind.NAMED_TYPE&&"Float"===o.name.value&&(n[i.name.value]=r.GraphQLFloat)}}return n}function Qt(e,t){const n=t?Gt(t,e):void 0,i=[];return(0,r.visit)(e,{OperationDefinition(e){i.push(e)}}),{variableToType:n,operations:i}}function Ut(e,t){if(t)try{const n=(0,r.parse)(t);return Object.assign(Object.assign({},Qt(n,e)),{documentAST:n})}catch(e){return}}const Ht=Ut;var Kt=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 Wt="GraphQL";function Yt(e,t){if(!e)throw new Error(t)}function Xt(e,t){const n=t.loc;return Yt(n,"Expected ASTNode to have a location."),function(e,t){const n=Bt(e,t.start),r=Bt(e,t.end);return new $t(n,r)}(e,n)}function Jt(e,t){const n=t.loc;return Yt(n,"Expected ASTNode to have a location."),Bt(e,n.start)}function Zt(e,t,n){return Kt(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 Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>Xt(e,t))),printedName:r}}))}function en(e,t,n){var r;return Kt(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(an(t||"",n,i))}return{definitions:o,queryRange:[],printedName:[t,e].join(".")}}))}function tn(e,t,n,r){var i,o,a;return Kt(this,void 0,void 0,(function*(){const s=[];for(const{filePath:n,content:l,definition:c}of r){const r=null===(a=null===(o=null===(i=c.fields)||void 0===i?void 0:i.find((e=>e.name.value===t)))||void 0===o?void 0:o.arguments)||void 0===a?void 0:a.find((t=>t.name.value===e));null!=r&&s.push(sn(n||"",l,r))}return{definitions:s,queryRange:[],printedName:`${[n,t].join(".")}(${e})`}}))}function nn(e,t,n){return Kt(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})=>on(e||"",t,n)));return{definitions:o,queryRange:o.map((n=>Xt(e,t))),printedName:r}}))}function rn(e,t,n){var r;return{definitions:[on(e,t,n)],queryRange:n.name?[Xt(t,n.name)]:[],printedName:null===(r=n.name)||void 0===r?void 0:r.value}}function on(e,t,n){const{name:r}=n;if(!r)throw new Error("Expected ASTNode to have a Name.");return{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}function an(e,t,n){const{name:r}=n;return Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}function sn(e,t,n){const{name:r}=n;return Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Jt(t,n),range:Xt(t,n),name:r.value||"",language:Wt,projectRoot:e}}const ln={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},cn={[ln.Error]:1,[ln.Warning]:2,[ln.Information]:3,[ln.Hint]:4},un=(e,t)=>{if(!e)throw new Error(t)};function dn(e,t=null,n,i,o){var a,s;let l=null,c="";o&&(c="string"==typeof o?o:o.reduce(((e,t)=>e+(0,r.print)(t)+"\n\n"),""));const u=c?`${e}\n\n${c}`:e;try{l=(0,r.parse)(u)}catch(e){if(e instanceof r.GraphQLError){const t=hn(null!==(s=null===(a=e.locations)||void 0===a?void 0:a[0])&&void 0!==s?s:{line:0,column:0},u);return[{severity:cn.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return pn(l,t,n,i)}function pn(e,t=null,n,i){if(!t)return[];const o=zt(t,e,n,i).flatMap((e=>fn(e,cn.Error,"Validation"))),a=(0,r.validate)(t,e,[r.NoDeprecatedCustomRule]).flatMap((e=>fn(e,cn.Warning,"Deprecation")));return o.concat(a)}function fn(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){un(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=mn(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new $t(new Vt(o.line-1,o.column-1),new Vt(o.line-1,l))})}}return r}function hn(e,t){const n=We(),r=n.startState(),i=t.split("\n");un(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t<e.line;t++)for(o=new $e(i[t]);!o.eol()&&"invalidchar"!==n.token(o,r););un(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),l=o.getCurrentPosition();return new $t(new Vt(a,s),new Vt(a,l))}function mn(e){const t=e.loc;return un(t,"Expected ASTNode to have a location."),t}const{INLINE_FRAGMENT:gn}=r.Kind;function vn(e){let t;try{t=(0,r.parse)(e)}catch(e){return null}const n=function(e){const t=t=>({representativeName:t.name,startPosition:Bt(e,t.loc.start),endPosition:Bt(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field(e){const n=e.alias?[yn("plain",e.alias),yn("plain",": ")]:[];return n.push(yn("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[yn("keyword",e.operation),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e){const t=[];for(let r=0;r<e.length;r++){const i=(n=e[r]).kind===gn?n.selectionSet:n;Array.isArray(i)?t.push(...i):t.push(i)}var n;return t}(e.selections),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[yn("keyword","fragment"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","interface"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","enum"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[yn("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","type"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[yn("keyword","input"),yn("whitespace"," "),yn("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[yn("plain","..."),yn("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[yn("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[yn("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,r.visit)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function yn(e,t){return{kind:e,value:t}}function bn(e,t,n,r,i){const o=Object.assign(Object.assign({},i),{schema:e}),a=lt(t,n,e,r);if(!a)return"";const{typeInfo:s,token:l}=a,{kind:c,step:u}=l.state;if("Field"===c&&0===u&&s.fieldDef||"AliasedField"===c&&2===u&&s.fieldDef||"ObjectField"===c&&0===u&&s.fieldDef){const e=[];return En(e,o),function(e,t,n){Tn(e,t,n),kn(e,t,n,t.type)}(e,s,o),wn(e,o),xn(e,0,s.fieldDef),e.join("").trim()}if("Directive"===c&&1===u&&s.directiveDef){const e=[];return En(e,o),Sn(e,s),wn(e,o),xn(e,0,s.directiveDef),e.join("").trim()}if("Variable"===c&&s.type){const e=[];return En(e,o),On(e,s,o,s.type),wn(e,o),xn(e,0,s.type),e.join("").trim()}if("Argument"===c&&0===u&&s.argDef){const e=[];return En(e,o),function(e,t,n){if(t.directiveDef?Sn(e,t):t.fieldDef&&Tn(e,t,n),!t.argDef)return;const{name:r}=t.argDef;Cn(e,"("),Cn(e,r),kn(e,t,n,t.inputType),Cn(e,")")}(e,s,o),wn(e,o),xn(e,0,s.argDef),e.join("").trim()}if("EnumValue"===c&&s.enumValue&&"description"in s.enumValue){const e=[];return En(e,o),function(e,t,n){if(!t.enumValue)return;const{name:r}=t.enumValue;On(e,t,n,t.inputType),Cn(e,"."),Cn(e,r)}(e,s,o),wn(e,o),xn(e,0,s.enumValue),e.join("").trim()}if("NamedType"===c&&s.type&&"description"in s.type){const e=[];return En(e,o),On(e,s,o,s.type),wn(e,o),xn(e,0,s.type),e.join("").trim()}return""}function En(e,t){t.useMarkdown&&Cn(e,"```graphql\n")}function wn(e,t){t.useMarkdown&&Cn(e,"\n```")}function Tn(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(On(e,t,n,t.parentType),Cn(e,".")),Cn(e,r)}function Sn(e,t,n){t.directiveDef&&Cn(e,"@"+t.directiveDef.name)}function kn(e,t,n,r){Cn(e,": "),On(e,t,n,r)}function On(e,t,n,i){i&&(i instanceof r.GraphQLNonNull?(On(e,t,n,i.ofType),Cn(e,"!")):i instanceof r.GraphQLList?(Cn(e,"["),On(e,t,n,i.ofType),Cn(e,"]")):Cn(e,i.name))}function xn(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(Cn(e,"\n\n"),Cn(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason||null;r&&(Cn(e,"\n\n"),Cn(e,"Deprecated: "),Cn(e,r))}(e,0,n)}function Cn(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: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(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!=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!==(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 p of o.selections)switch(p.kind){case r.Kind.FIELD:{if(!c(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(!c(n,p)||!u(e,p,i))continue;l(e,t,n,i,p.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=p.name.value;if(s.has(r)||!c(n,p))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 d}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),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),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,p.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: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==l){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)===l&&(p=e);break;case g.Kind.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!p)return null!=l?[new f.GraphQLError(`Unknown operation named "${l}".`)]:[new f.GraphQLError("Must provide an operation.")];const m=null!==(n=p.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:p,variableValues:v.coerced,fieldResolver:null!=c?c:M,typeResolver:null!=u?u:R,subscribeFieldResolver:null!=d?d: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,d.promiseForObject)(o).finally((()=>{throw e}));throw e}return a?(0,d.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,d=N(e,a,r,t,i);try{const t=c(n,(0,w.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,d);let o;return o=(0,l.isPromise)(t)?t.then((t=>L(e,s,r,d,i,t))):L(e,s,r,d,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 d=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(d):d}(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<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if((0,l.isPromise)(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0};t.defaultTypeResolver=R;const M=function(e,t,n,r){if((0,s.isObjectLike)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function j(e,t,n){const r=n.name.value;return r===y.SchemaMetaFieldDef.name&&e.getQueryType()===t?y.SchemaMetaFieldDef:r===y.TypeMetaFieldDef.name&&e.getQueryType()===t?y.TypeMetaFieldDef:r===y.TypeNameMetaFieldDef.name?y.TypeNameMetaFieldDef:t.getFields()[r]}t.defaultFieldResolver=M},8259:(e,t,n)=>{"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),l=n(6107),c=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,c.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,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,d.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,p.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),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,c.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,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,p.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: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,l.execute)({schema:t,document:m,rootValue:i,contextValue:c,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 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;n<o;++n)s.push(i(e[n],t));return 1===a?s.push("... 1 more item"):a>1&&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(;r<e.length&&o<t.length;){let a=e.charCodeAt(r),s=t.charCodeAt(o);if(i(a)&&i(s)){let l=0;do{++r,l=10*l+a-n,a=e.charCodeAt(r)}while(i(a)&&l>0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(l<c)return-1;if(l>c)return 1}else{if(a<s)return-1;if(a>s)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.length<i.length){const e=r;r=i,i=e}const a=r.length,s=i.length;if(a-s>t)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)}c<a&&(a=c),o[t]=c}if(a>t)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<t;++r)n[r]=e.charCodeAt(r);return n}},2036:(e,t,n)=>{"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;t<e.length;++t){var a;const s=e[t],l=i(s);l!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&l<n&&(n=l))}return e.map(((e,t)=>0===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;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&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,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<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}},3932:(e,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 l.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 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 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),l=n(6083),c=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 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 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<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return g(e,o);case 33:return h(e,s.TokenKind.BANG,o,o+1);case 36:return h(e,s.TokenKind.DOLLAR,o,o+1);case 38:return h(e,s.TokenKind.AMP,o,o+1);case 40:return h(e,s.TokenKind.PAREN_L,o,o+1);case 41:return h(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return h(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return h(e,s.TokenKind.COLON,o,o+1);case 61:return h(e,s.TokenKind.EQUALS,o,o+1);case 64:return h(e,s.TokenKind.AT,o,o+1);case 91:return h(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return h(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return h(e,s.TokenKind.BRACE_L,o,o+1);case 124:return h(e,s.TokenKind.PIPE,o,o+1);case 125:return h(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?O(e,o):b(e,o)}if((0,a.isDigit)(t)||45===t)return v(e,o,t);if((0,a.isNameStart)(t))return x(e,o);throw(0,r.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||u(n,o)?`Unexpected character: ${f(e,o)}.`:`Invalid character: ${f(e,o)}.`)}return h(e,s.TokenKind.EOF,i,i)}function g(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else{if(!u(n,i))break;i+=2}}return h(e,s.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function v(e,t,n){const i=e.source.body;let o=t,l=n,c=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,a.isDigit)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=y(e,o,l),l=i.charCodeAt(o);if(46===l&&(c=!0,l=i.charCodeAt(++o),o=y(e,o,l),l=i.charCodeAt(o)),69!==l&&101!==l||(c=!0,l=i.charCodeAt(++o),43!==l&&45!==l||(l=i.charCodeAt(++o)),o=y(e,o,l),l=i.charCodeAt(o)),46===l||(0,a.isNameStart)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return h(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function y(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function b(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,l="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return l+=n.slice(a,o),h(e,s.TokenKind.STRING,t,o+1,l);if(92!==i){if(10===i||13===i)break;if(c(i))++o;else{if(!u(n,o))throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`);o+=2}}else{l+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?E(e,o):w(e,o):k(e,o);l+=t.value,o+=t.size,a=o}}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}function E(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|S(e),i<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function w(e,t){const n=e.source.body,i=T(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=T(n,t+8);if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function T(e,t){return S(e.charCodeAt(t))<<12|S(e.charCodeAt(t+1))<<8|S(e.charCodeAt(t+2))<<4|S(e.charCodeAt(t+3))}function S(e){return e>=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,d=l,p="";const m=[];for(;l<i;){const i=n.charCodeAt(l);if(34===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){p+=n.slice(d,l),m.push(p);const r=h(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==i&&13!==i)if(c(i))++l;else{if(!u(n,l))throw(0,r.syntaxError)(e.source,l,`Invalid character within String: ${f(e,l)}.`);l+=2}else p+=n.slice(d,l),m.push(p),13===i&&10===n.charCodeAt(l+1)?l+=2:++l,p="",d=l,a=l;else p+=n.slice(d,l),d=l+1,l+=4}throw(0,r.syntaxError)(e.source,l,"Unterminated string.")}function x(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return h(e,s.TokenKind.NAME,t,i,n.slice(t,i))}t.Lexer=l},9530:(e,t,n)=>{"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,`${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(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 ${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!==c.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===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 ${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(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 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)||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`,d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+o([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",d[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${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=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+(d(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+(d(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 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="<SOF>",e.EOF="<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,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 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,d,p,y,b),l===s)break;if(!1===l){if(!e){y.pop();continue}}else if(void 0!==l&&(g.push([d,l]),!e)){if(!(0,o.isNode)(l)){y.pop();continue}v=l}}var T;void 0===l&&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!==(T=n[v.kind])&&void 0!==T?T:[],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<e.length;++t){const{enter:n,leave:s}=l(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const c={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const l=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=c}return n};var r=n(3028),i=n(9657),o=n(6257),a=n(7030);const s=Object.freeze({});function l(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}}t.BREAK=s},3506:(e,t,n)=>{"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<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new i.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new i.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}},3754:(e,t,n)=>{"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),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)||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,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,l.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=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,p.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,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}}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,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=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(!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 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),d=n(1062);function p(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(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:[l.DirectiveLocation.FIELD,l.DirectiveLocation.FRAGMENT_SPREAD,l.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:[l.DirectiveLocation.FIELD_DEFINITION,l.DirectiveLocation.ARGUMENT_DEFINITION,l.DirectiveLocation.INPUT_FIELD_DEFINITION,l.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:[l.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=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(d))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const d=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(p))),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=d;const p=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=p;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,d,p,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 d=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||n<u)throw new o.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,r.inspect)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(e)}`);if(e>c||e<u)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.Kind.INT)throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,s.print)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>c||t<u)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});t.GraphQLInt=d;const p=new l.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",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.isFinite(n))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.FLOAT&&e.kind!==a.Kind.INT)throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,s.print)(e)}`,e);return parseFloat(e.value)}});t.GraphQLFloat=p;const f=new l.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=v(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.GraphQLError(`String cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.STRING)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLString=f;const h=new l.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=v(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.BOOLEAN)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLBoolean=h;const m=new l.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=v(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseLiteral(e){if(e.kind!==a.Kind.STRING&&e.kind!==a.Kind.INT)throw new o.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,s.print)(e),{nodes:e});return e.value}});t.GraphQLID=m;const g=Object.freeze([f,d,p,h,m]);function v(e){if((0,i.isObjectLike)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}t.specifiedScalarTypes=g},4648:(e,t,n)=>{"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),l=n(6257),c=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,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=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),l=n(8685),c=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 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 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 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 d of Object.values(n.getFields())){const p=d.name,f=i[p];if(f){var o,l;(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===(l=f.astNode)||void 0===l?void 0:l.type]);for(const i of d.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}.${p}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${p}(${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}.${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}.`,[...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[...d.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 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 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),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),l=n(6506),c=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,c.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function h(e,t,n,c){if((0,p.isNonNullType)(t))return null!=e?h(e,t.ofType,n,c):void n((0,l.pathToArray)(c),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,l.addPath)(c,t,void 0);return h(e,r,n,i)})):[h(e,r,n,c)]}if((0,p.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return void n((0,l.pathToArray)(c),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,l.addPath)(c,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,l.pathToArray)(c),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,l.pathToArray)(c),e,new d.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}return o}if((0,p.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof d.GraphQLError?n((0,l.pathToArray)(c),e,r):n((0,l.pathToArray)(c),e,new d.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,l.pathToArray)(c),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===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),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 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,p.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 d.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,A)})})),...T.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: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 d;const t=[e,...r];return new u.GraphQLInputObjectType({name:n,description:null===(d=e.description)||void 0===d?void 0:d.value,fields:()=>F(t),astNode:e,extensionASTNodes:r})}}}}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 w(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),l=n(585),c=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=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,d.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,l.print)((0,p.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 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),l=n(434),c=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),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)(p(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: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 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 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),l=n(8685),c=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,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),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 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,p.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 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 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),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),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 d=e.getDocument().definitions;for(const e of d)e.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,c,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 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))}}(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),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,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&&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<a.length;i++)for(let s=i+1;s<a.length;s++){const l=h(e,n,r,!1,o,a[i],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){d(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)p(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,a]of o){const o=u(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(a)}))}}}};var r=n(9657),i=n(1702),o=n(7030),a=n(585),s=n(3754),l=n(1152),c=n(6693);function u(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+u(t))).join(" and "):e}function d(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),d(e,t,n,r,i,o,s))}}function p(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),[d,h]=y(e,n,l);f(e,t,n,r,i,c,d);for(const a of h)p(e,t,n,r,i,o,a);for(const o of u)p(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)d(e,l,t,n,r,c,i);for(const i of u)d(e,l,t,n,r,h,i);for(const i of u)for(const o of m)p(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<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}},6839:(e,t,n)=>{"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:p,ObjectTypeExtension:p,InterfaceTypeExtension:p,UnionTypeExtension:p,EnumTypeExtension:p,InputObjectTypeExtension:p};function p(c){const p=c.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)?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 "${p}".`,{nodes:f?[f,c]:c}))}}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: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 d={[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(),p=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:c.specifiedDirectives;for(const e of p)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(d),(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 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){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 d=(0,o.collectFields)(n,u,l,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 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(),d=(0,l.typeFromAST)(t,u.type);if(d&&!c(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),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),d=n(502),p=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,p.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([d.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,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 c.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),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,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=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},3072:(e,t)=>{"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,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 w(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 c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function T(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,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 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)===p},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===d||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===p||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="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 l=[];function c(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:c(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?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(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 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({},l,e),this.__compiled__={},this.__tlds__=c,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,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<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__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<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var o={compressToBase64:function(e){if(null==e)return"";var n=o._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:o._decompress(e.length,32,(function(n){return i(t,e.charAt(n))}))},compressToUTF16:function(t){return null==t?"":o._compress(t,15,(function(t){return e(t+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:o._decompress(e.length,16384,(function(t){return e.charCodeAt(t)-32}))},compressToUint8Array:function(e){for(var t=o.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var a=t.charCodeAt(r);n[2*r]=a>>>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<i;r++)n[r]=256*t[2*r]+t[2*r+1];var a=[];return n.forEach((function(t){a.push(e(t))})),o.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":o._compress(e,6,(function(e){return n.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),o._decompress(e.length,32,(function(t){return i(n,e.charAt(t))})))},compress:function(t){return o._compress(t,16,(function(t){return e(t)}))},_compress:function(e,t,n){if(null==e)return"";var r,i,o,a={},s={},l="",c="",u="",d=2,p=3,f=2,h=[],m=0,g=0;for(o=0;o<e.length;o+=1)if(l=e.charAt(o),Object.prototype.hasOwnProperty.call(a,l)||(a[l]=p++,s[l]=!0),c=u+l,Object.prototype.hasOwnProperty.call(a,c))u=c;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++),a[c]=p++,u=String(l)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(i=2,r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=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,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,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(d[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;d[f++]=e(a),u=f-1,p--;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;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]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\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),d=/[&<>"]/,p=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};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 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++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)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<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s}},7311:(e,t,n)=>{"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<n;){if((i=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=a,l.str=r(e.slice(s+1,t)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return l}},1246:(e,t,n)=>{"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),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 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=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<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(7759),e.exports=o},6321:(e,t,n)=>{"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<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(1839),e.exports=o},5552:(e,t,n)=>{"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<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=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<a;i++)o[i](s)},a.prototype.State=n(979),e.exports=a},73:e=>{"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"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,l,c,u,d,p=e[t],f=p.info?i(p.info).trim():"",h="",m="";return f&&(h=(c=f.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,m)||o(p.content)).indexOf("<pre")?s+"\n":f?(l=p.attrIndex("class"),u=p.attrs?p.attrs.slice():[],l<0?u.push(["class",n.langPrefix+h]):(u[l]=u[l].slice(),u[l][1]+=" "+n.langPrefix+h),d={attrs:u},"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\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?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\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;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},2378:e=>{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},2941:(e,t,n)=>{"use strict";var r=n(9963).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,c,u,d,p,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&&(a=e.src.charCodeAt(x),r(a));)9===a?f+=4-(f+e.bsCount[t]+(o?1:0))%4:f++,x++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(E?1:0),u=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",p=t+1;p<n&&(k=e.sCount[p]<e.blkIndent,!((x=e.bMarks[p]+e.tShift[p])>=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(x++)||k){if(u)break;for(w=!1,s=0,c=T.length;s<c;s++)if(T[s](e,p,n,!0)){w=!0;break}if(w){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(l=f=e.sCount[p]+1,32===e.src.charCodeAt(x)?(x++,l++,f++,o=!1,E=!0):9===e.src.charCodeAt(x)?(E=!0,(e.bsCount[p]+f)%4==3?(x++,l++,f++,o=!1):o=!0):E=!1,h.push(e.bMarks[p]),e.bMarks[p]=x;x<C&&(a=e.src.charCodeAt(x),r(a));)9===a?f+=4-(f+e.bsCount[p]+(o?1:0))%4:f++,x++;u=x>=C,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(E?1:0),y.push(e.sCount[p]),e.sCount[p]=f-l,b.push(e.tShift[p]),e.tShift[p]=x-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(S=e.push("blockquote_open","blockquote",1)).markup=">",S.map=d=[t,0],e.md.block.tokenize(e,t,p),(S=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=O,e.parentType=v,d[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}},5711:e=>{"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<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=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,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(l=p,(o=(p=e.skipChars(p,i))-l)<3)return!1;if(u=e.src.slice(l,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=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,i))-l<o||(p=e.skipSpaces(p))<f)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,o,!0),c.markup=u,c.map=[t,e.line],!0}},634:(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(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c<u&&a<=6;)a++,o=e.src.charCodeAt(++c);return!(a>6||c<u&&!r(o)||(i||(u=e.skipSpacesBack(u,c),(s=e.skipCharsBack(u,35,c))>c&&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<u;){if((s=e.src.charCodeAt(c++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3||(i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(o))),0))}},1857:(e,t,n)=>{"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],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","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<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(l))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],u=e.eMarks[a],l=e.src.slice(c,u),o[i][1].test(l)){0!==l.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},9648:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,c,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";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=c)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(d),e.parentType=p,!0)}},6686:(e,t,n)=>{"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<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=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<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,s,l,c,u,d,p,f,h,m,g,v,y,b,E,w,T,S,k,O,x,C,_,N,I,L,A,D,P=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(P=!0),(_=o(e,t))>=0){if(p=!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;p=!1}if(P&&e.skipSpaces(_)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(_-1),r)return!0;for(g=e.tokens.length,p?(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<n;){for(C=_,b=e.eMarks[E],d=w=e.sCount[E]+_-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))w+=4-(w+e.bsCount[E])%4;else{if(32!==a)break;w++}C++}if((u=(s=C)>=b?1:w-d)>4&&(u=1),c=d+u,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),D.map=f=[t,0],p&&(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]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(L=!1,l=0,h=A.length;l<h;l++)if(A[l](e,E,n,!0)){L=!0;break}if(L)break;if(p){if((_=o(e,E))<0)break;I=e.bMarks[E]+e.tShift[E]}else if((_=i(e,E))<0)break;if(v!==e.src.charCodeAt(_-1))break}return(D=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=E,e.line=E,e.parentType=S,R&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},7046:e=>{"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";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=c.length;i<o;i++)if(c[i](e,l,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},6897:(e,t,n)=>{"use strict";var r=n(9963).normalizeReference,i=n(9963).isSpace;e.exports=function(e,t,n,o){var a,s,l,c,u,d,p,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(;++S<k;)if(93===e.src.charCodeAt(S)&&92!==e.src.charCodeAt(S-1)){if(S+1===k)return!1;if(58!==e.src.charCodeAt(S+1))return!1;break}for(c=e.lineMax,E=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";O<c&&!e.isEmpty(O);O++)if(!(e.sCount[O]-e.blkIndent>3||e.sCount[O]<0)){for(b=!1,d=0,p=E.length;d<p;d++)if(E[d](e,O,c,!0)){b=!0;break}if(b)break}for(k=(y=e.getLines(t,O,e.blkIndent,!1).trim()).length,S=1;S<k;S++){if(91===(a=y.charCodeAt(S)))return!1;if(93===a){h=S;break}(10===a||92===a&&++S<k&&10===y.charCodeAt(S))&&T++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(S=h+2;S<k;S++)if(10===(a=y.charCodeAt(S)))T++;else if(!i(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,S,k)).ok)return!1;if(u=e.md.normalizeLink(g.str),!e.md.validateLink(u))return!1;for(s=S=g.pos,l=T+=g.lines,v=S;S<k;S++)if(10===(a=y.charCodeAt(S)))T++;else if(!i(a))break;for(g=e.md.helpers.parseLinkTitle(y,S,k),S<k&&v!==S&&g.ok?(w=g.str,S=g.pos,T+=g.lines):(w="",S=s,T=l);S<k&&(a=y.charCodeAt(S),i(a));)S++;if(S<k&&10!==y.charCodeAt(S)&&w)for(w="",S=s,T=l;S<k&&(a=y.charCodeAt(S),i(a));)S++;return!(S<k&&10!==y.charCodeAt(S)||!(f=r(y.slice(1,h)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:w,href:u}),e.parentType=m,e.line=t+T+1),0))}},7759:(e,t,n)=>{"use strict";var r=n(5099),i=n(9963).isSpace;function o(e,t,n,r){var o,a,s,l,c,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=l=u=d=0,c=(a=this.src).length;l<c;l++){if(o=a.charCodeAt(l),!p){if(i(o)){u++,9===o?d+=4-d%4:d++;continue}p=!0}10!==o&&l!==c-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),p=!1,u=0,d=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&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;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)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,d,p=e;if(e>=t)return"";for(u=new Array(t-e),o=0;p<t;p++,o++){for(a=0,d=l=this.bMarks[p],c=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];l<c&&a<n;){if(s=this.src.charCodeAt(l),i(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(l-d<this.tShift[p]))break;a++}l++}u[o]=a>n?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);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,t,n,a){var s,l,c,u,d,p,f,h,m,g,v,y,b,E,w,T,S,k;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((c=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(S=e.src.charCodeAt(c++))&&45!==S&&58!==S)return!1;if(c>=e.eMarks[p])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<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!r(s))return!1;c++}for(f=(l=i(e,t+1)).split("|"),g=[],u=0;u<f.length;u++){if(!(v=f[u].trim())){if(0===u||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=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<f.length;u++)m=e.push("th_open","th",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),p=t+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(w=!1,u=0,d=T.length;u<d;u++)if(T[u](e,p,n,!0)){w=!0;break}if(w)break;if(!(l=i(e,p).trim()))break;if(e.sCount[p]-e.blkIndent>=4)break;for((f=o(l)).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<h;u++)m=e.push("td_open","td",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u]?f[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=p),m=e.push("table_close","table",-1),y[1]=p,e.parentType=E,e.line=p,!0}},3437:e=>{"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<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},986:(e,t,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,d,p,f,h,m,g,v,y,b,E,w=e.tokens;if(e.md.options.linkify)for(n=0,o=w.length;n<o;n++)if("inline"===w[n].type&&e.md.linkify.pretest(w[n].content))for(m=0,t=(a=w[n].children).length-1;t>=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(E=l.content,/^<a[>\s]/i.test(E)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(d=l.content,b=e.md.linkify.match(d),c=[],h=l.level,f=0,u=0;u<b.length;u++)g=b[u].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[u].text,y=b[u].schema?"mailto:"!==b[u].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[u].index)>f&&((s=new e.Token("text","",0)).content=d.slice(f,p),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<d.length&&((s=new e.Token("text","",0)).content=d.slice(f),s.level=h,c.push(s)),w[n].children=a=r(a,t,c)}}else for(t--;a[t].level!==l.level&&"link_open"!==a[t].type;)t--}},803:e=>{"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,d,p,f,h,m,g,v,y,b,E,w,T,S,k,O,x,C;for(O=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,S=O.length-1;S>=0&&!(O[S].level<=f);S--);if(O.length=S+1,"text"===a.type){d=0,p=(c=a.content).length;e:for(;d<p&&(s.lastIndex=d,u=s.exec(c));){if(w=T=!0,d=u.index+1,k="'"===u[0],m=32,u.index-1>=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,d<p)g=c.charCodeAt(d);else for(S=n+1;S<e.length&&"softbreak"!==e[S].type&&"hardbreak"!==e[S].type;S++)if(e[S].content){g=e[S].content.charCodeAt(0);break}if(v=o(m)||i(String.fromCharCode(m)),y=o(g)||i(String.fromCharCode(g)),b=r(m),(E=r(g))?w=!1:y&&(b||v||(w=!1)),b?T=!1:v&&(E||y||(T=!1)),34===g&&'"'===u[0]&&m>=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<f));S--)if(h.single===k&&O[S].level===f){h=O[S],k?(x=t.md.options.quotes[2],C=t.md.options.quotes[3]):(x=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=l(a.content,u.index,C),e[h.token].content=l(e[h.token].content,h.pos,x),d+=C.length-1,h.token===n&&(d+=x.length-1),p=(c=a.content).length,O.length=S;continue e}w?O.push({token:n,pos:u.index,single:k,level:f}):T&&k&&(a.content=l(a.content,u.index,"’"))}else k&&(a.content=l(a.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=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<r&&96===e.src.charCodeAt(u);)u++;if(l=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-a)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},5940:e=>{"use strict";function t(e,t){var n,r,i,o,a,s,l,c,u={},d=t.length;if(d){var p=0,f=-2,h=[];for(n=0;n<d;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&f===i.token-1||(p=n),f=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],s=r=p-h[p]-1;r>a;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<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},3898:e=>{"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<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},8103:(e,t,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,d=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<d)if(35===e.src.charCodeAt(u+1)){if(c=e.src.slice(u).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(u).match(l))&&i(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},1231:(e,t,n)=>{"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<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},961:(e,t,n)=>{"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,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(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)<b&&40===e.src.charCodeAt(u)){for(u++;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(u>=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&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<b&&g!==u&&p.ok)for(f=p.str,u=p.pos;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);else f="";if(u>=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u<b&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(d=e.env.references[r(s)]))return e.pos=y,!1;v=d.href,f=d.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,d,p="",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&&40===e.src.charCodeAt(c)){for(v=!1,c++;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?c=u.pos:p="",g=c;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&g!==c&&u.ok)for(f=u.str,c=u.pos;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);}(c>=m||41!==e.src.charCodeAt(c))&&(v=!0),c++}if(v){if(void 0===e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(g,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(d=e.env.references[r(a)]))return e.pos=h,!1;p=d.href,f=d.title}return t||(e.pos=l,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=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<i&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}},979:(e,t,n)=>{"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,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<v&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<v?this.src.charCodeAt(h):32,d=a(n)||o(String.fromCharCode(n)),f=a(r)||o(String.fromCharCode(r)),u=i(n),(p=i(r))?m=!1:f&&(u||d||(m=!1)),u?g=!1:d&&(p||f||(g=!1)),t?(l=m,c=g):(l=m&&(!g||d),c=g&&(!m||f)),{can_open:l,can_close:c,length:s}},s.prototype.Token=r,e.exports=s},7141:e=>{"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.q=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},2015:e=>{"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<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},7729:e=>{"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},5099:e=>{"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<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=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<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,a,s,l,c="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=i[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=r<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(c+=(l=r<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((l=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?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<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(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})(.*)$/,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;r<l.length;r++)-1!==(f=m.indexOf(l[r]))&&(-1===E||f<E)&&(E=f);for(-1!==(b=-1===E?m.lastIndexOf("@"):m.lastIndexOf("@",E))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),E=-1,r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===E||f<E)&&(E=f);-1===E&&(E=m.length),":"===m[E-1]&&E--;var w=m.slice(0,E);m=m.slice(E),this.parseHost(w),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T){var S=this.hostname.split(/\./);for(r=0,o=S.length;r<o;r++){var k=S[r];if(k&&!k.match(c)){for(var O="",x=0,C=k.length;x<C;x++)k.charCodeAt(x)>127?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),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}},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 d(e){throw new RangeError(l[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<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const h=e=>String.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<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p<n;){const l=o;for(let t=1,a=i;;a+=i){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:i;l>=i&&d("invalid-input"),l>c((r-o)/t)&&d("overflow"),o+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(l<f)break;const h=i-f;t>c(r/h)&&d("overflow"),t*=h}const f=t.length+1;s=g(o-l,f,0==l),c(o/f)>r-a&&d("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 p=l;for(l&&t.push("-");p<n;){let n=r;for(const t of e)t>=o&&t<n&&(n=t);const f=p+1;n-o>c((r-a)/f)&&d("overflow"),a+=(n-o)*f,o=n;for(const n of e)if(n<o&&++a>r&&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<r)break;const o=e-r,a=i-r;t.push(u(m(r+o%a,0))),e=c(o/a)}t.push(u(m(e,0))),s=g(a,f,p===l),a=0,++p}++a,++o}return t.join("")},b=function(e){return p(e,(function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e}))},E=function(e){return p(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},w={version:"2.3.1",ucs2:{decode:f,encode:h},decode:v,encode:y,toASCII:E,toUnicode:b}},6663:(e,t,n)=>{"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 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){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]=d(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=p(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"),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 c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,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===p||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||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 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<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},528:e=>{"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.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},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},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<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4357:e=>{"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":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"𝔉","ffr":"𝔣","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","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":"Ĳ","ijlig":"ĳ","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":"ŉ","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<e.length;u++){n=e[u][0],i=e[u][1],o=e[u][2];for(var s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&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={57:0,524:0,431:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,a=n[0],s=n[1],l=n[2],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);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=self.webpackChunkwp_graphql=self.webpackChunkwp_graphql||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=r.O(void 0,[431],(()=>r(8633)));i=r.O(i)})();
\ No newline at end of file
diff --git a/build/extensions.asset.php b/build/extensions.asset.php
index 8b98011c5..aacf3eb48 100644
--- a/build/extensions.asset.php
+++ b/build/extensions.asset.php
@@ -1,1 +1,1 @@
-<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '68ad3d8b622b2d64ff0f');
+<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '72bcf21912629c604280');
diff --git a/build/extensions.js b/build/extensions.js
index e43a3ca9a..4656fb22b 100644
--- a/build/extensions.js
+++ b/build/extensions.js
@@ -1,1 +1,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.wp.element,n=window.React,a=window.wp.i18n,i=window.wp.components,s=window.wp.apiFetch;var l=e.n(s);const r=window.ReactJSXRuntime,o=({plugin:e})=>{const{installing:s,activating:o,status:p,error:c,installPlugin:u,activatePlugin:d}=((e,t)=>{const[i,s]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),[p,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(""),w=(e,t="")=>{c(e),d(t)},h=async(n=t)=>{if(o(!0),w((0,a.__)("Activating...","wp-graphql")),!n){let t=new URL(e).pathname.split("/").filter(Boolean).pop();n=`${t}/${t}.php`}try{const t=await l()({path:`/wp/v2/plugins/${n}`,method:"PUT",data:{status:"active"},headers:{"X-WP-Nonce":wpgraphqlExtensions.nonce}});if("active"===t.status)return w((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 t.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 w((0,a.__)("Activation failed","wp-graphql"),e.message||(0,a.__)("Activation failed","wp-graphql")),e}finally{s(!1),o(!1)}};return{installing:i,activating:r,status:p,error:u,installPlugin:async()=>{s(!0),w((0,a.__)("Installing...","wp-graphql"));let n=new URL(e).pathname.split("/").filter(Boolean).pop();try{if("inactive"!==(await l()({path:"/wp/v2/plugins",method:"POST",data:{slug:n,status:"inactive"},headers:{"X-WP-Nonce":wpgraphqlExtensions.nonce}})).status)throw new Error((0,a.__)("Installation failed","wp-graphql"));await h(t)}catch(e){if(!e.message.includes("destination folder already exists"))throw w((0,a.__)("Installation failed","wp-graphql"),e.message||(0,a.__)("Installation failed","wp-graphql")),s(!1),e;await h(t)}},activatePlugin:h}})(e.plugin_url,e.plugin_path),[w,h]=(0,t.useState)(e.installed),[g,_]=(0,t.useState)(e.active),[m,x]=(0,t.useState)(!0);(0,t.useEffect)((()=>{h(e.installed),_(e.active)}),[e]);const b=new URL(e.plugin_url).host,{buttonText:f,buttonDisabled:v}=((e,t,n,i,s,l,r)=>{let o,p=!1,c=null;const u=e=>()=>window.open(e,"_blank");if(s)o=(0,a.__)("Installing...","wp-graphql"),p=!0;else if(l)o=(0,a.__)("Activating...","wp-graphql"),p=!0;else if(i)o=(0,a.__)("Active","wp-graphql"),p=!0;else if(n)o=(0,a.__)("Activate","wp-graphql"),c=r;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=r;break;default:o=(0,a.__)("View Plugin","wp-graphql"),c=u(t)}}return{buttonText:o,buttonDisabled:p,buttonOnClick:c}})(0,e.plugin_url,w,g,s,o),q=({author:e})=>e&&e.name&&e.homepage?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("em",{children:"By "}),(0,r.jsx)("cite",{children:(0,r.jsx)("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:e.name})},e.homepage)]}):null;return(0,r.jsxs)("div",{className:"plugin-card",children:[(0,r.jsxs)("div",{className:"plugin-card-top",children:[(0,r.jsxs)("div",{className:"name column-name",children:[(0,r.jsx)("h2",{children:e.name}),(0,r.jsx)(q,{author:e.author}),e.experiment&&(0,r.jsx)("em",{className:"plugin-experimental",children:"(experimental)"})]}),(0,r.jsx)("div",{className:"action-links",children:(0,r.jsxs)("ul",{className:"plugin-action-buttons",children:[b.includes("wordpress.org")&&(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",className:"button "+(g?"button-disabled":"button-primary"),disabled:v,onClick:async()=>{const t=w,n=g;try{w?(await d(e.plugin_path),_(!0)):(await u(),h(!0),_(!0))}catch(e){h(t),_(n)}finally{window.wpgraphqlExtensions.extensions=window.wpgraphqlExtensions.extensions.map((t=>t.plugin_url===e.plugin_url?{...t,installed:w,active:g}:t))}},children:[f,(s||o)&&(0,r.jsx)(i.Spinner,{})]})}),b.includes("github.com")&&(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.plugin_url,target:"_blank",rel:"noopener noreferrer",className:"button button-secondary",children:(0,a.__)("View on GitHub","wp-graphql")})}),e.support_url&&(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.support_url,target:"_blank",rel:"noopener noreferrer",className:"thickbox open-plugin-details-modal",children:(0,a.__)("Get Support","wp-graphql")})}),e.settings_url&&(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.settings_url,children:(0,a.__)("Settings","wp-graphql")})})]})}),(0,r.jsx)("div",{className:"desc column-description",children:(0,r.jsx)("p",{children:e.description})})]}),c&&m&&(0,r.jsx)(i.Notice,{status:"error",isDismissible:!0,onRemove:()=>x(!1),children:c})]})},p=()=>{const[e,t]=(0,n.useState)([]);return(0,n.useEffect)((()=>{window.wpgraphqlExtensions&&window.wpgraphqlExtensions.extensions&&t(window.wpgraphqlExtensions.extensions)}),[]),(0,r.jsx)("div",{className:"wp-clearfix",children:(0,r.jsx)("div",{className:"plugin-cards",children:e.map((e=>(0,r.jsx)(o,{plugin:e},e.plugin_url)))})})};document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("wpgraphql-extensions");e&&(0,t.createRoot)(e).render((0,t.createElement)(p))}))})();
\ No newline at end of file
+(()=>{"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/build/graphiqlAuthSwitch.asset.php b/build/graphiqlAuthSwitch.asset.php
index bccf6f790..18ff3333a 100644
--- a/build/graphiqlAuthSwitch.asset.php
+++ b/build/graphiqlAuthSwitch.asset.php
@@ -1,1 +1,1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-element'), 'version' => '1bbe114c588ffebb9cde');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => '1c697254ccd0d5209f22');
diff --git a/build/graphiqlAuthSwitch.js b/build/graphiqlAuthSwitch.js
index 5e7270720..5d8524f02 100644
--- a/build/graphiqlAuthSwitch.js
+++ b/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<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=d(n,v);try{l(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"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<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],f=t[l];if(!1===(o=n?n.call(r,u,f,l):void 0)||void 0===o&&u!==f)return!1}return!0}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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.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.wp.element,t=window.ReactJSXRuntime,{hooks:r}=wpGraphiQL,o=(0,e.createContext)(),i=()=>(0,e.useContext)(o),a=({children:n})=>{const[i,a]=(0,e.useState)((()=>{const e=window?.localStorage.getItem("graphiql:usePublicFetcher");return!(e&&"false"===e)})()),s=r.applyFilters("graphiql_auth_switch_context_default_value",{usePublicFetcher:i,setUsePublicFetcher:a,toggleUsePublicFetcher:()=>{const e=!i;window.localStorage.setItem("graphiql:usePublicFetcher",e.toString()),a(e)}});return(0,t.jsx)(o.Provider,{value:s,children:n})},s=window.React;var c=n.n(s),l=n(6942),u=n.n(l);function f(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return s.createElement("div",{className:u()("".concat(n,"-content"),i),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(null,arguments)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function m(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.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)?y(e,t):void 0}}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const S=window.ReactDOM;var k=n.n(S);function C(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var O={},E=[];function $(e,t){}function A(e,t){}function j(e,t,n){t||O[n]||(e(!1,n),O[n]=!0)}function M(e,t){j($,e,t)}M.preMessage=function(e){E.push(e)},M.resetWarned=function(){O={}},M.noteOnce=function(e,t){j(A,e,t)};const P=M;var R=n(4363),z=function(e,t){"function"==typeof e?e(t):"object"===p(e)&&e&&"current"in e&&(e.current=t)},T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){z(t,e)}))}},_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=t,"value"in(o=s.useRef({})).current&&!function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}(o.current.condition,r)||(o.current.value=T.apply(void 0,t),o.current.condition=r),o.current.value;var r,o},I=function(e){var t,n,r=(0,R.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===R.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===R.ForwardRef)};Number(s.version.split(".")[0]);const N=s.createContext(null);function L(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(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 H=C()?s.useLayoutEffect:s.useEffect,B=function(e,t){var n=s.useRef(!0);H((function(){return e(n.current)}),t),H((function(){return n.current=!1,function(){n.current=!0}}),[])},D=function(e,t){B((function(t){if(!t)return e()}),t)};const F=B;var W=[],X="data-rc-order",G="data-rc-priority",q=new Map;function V(){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 Y(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function U(e){return Array.from((q.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(!C())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(X,a),s&&i&&c.setAttribute(G,"".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(X)))return!1;var t=Number(e.getAttribute(G)||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(V(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=v(v({},n),{},{styles:o});!function(e,t){var n=q.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;q.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(V(i),t),u}var ee="rc-util-locker-".concat(Date.now()),te=0;function ne(e){var t=!!e,n=x(s.useState((function(){return te+=1,"".concat(ee,"_").concat(te)})),1)[0];F((function(){if(t){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,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;J("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Q(n);var o;return function(){Q(n)}}),[t,n])}var re=!1,oe=function(e){return!1!==e&&(C()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},ie=s.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,c=e.children,l=x(s.useState(n),2),u=l[0],f=l[1],d=u||n;s.useEffect((function(){(a||n)&&f(n)}),[n,a]);var p=x(s.useState((function(){return oe(o)})),2),h=p[0],m=p[1];s.useEffect((function(){var e=oe(o);m(null!=e?e:null)}));var g=function(e){var t=x(s.useState((function(){return C()?document.createElement("div"):null})),1)[0],n=s.useRef(!1),r=s.useContext(N),o=x(s.useState(W),2),i=o[0],a=o[1],c=r||(n.current?void 0:function(e){a((function(t){return[e].concat(L(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 F((function(){return e?r?r(l):l():u(),u}),[e]),F((function(){i.length&&(i.forEach((function(e){return e()})),a(W))}),[i]),[t,c]}(d&&!h),v=x(g,2),b=v[0],y=v[1],w=null!=h?h:b;ne(r&&n&&C()&&(w===b||w===document.body));var k=null;c&&I(c)&&t&&(k=c.ref);var O=_(k,t);if(!d||!C()||void 0===h)return null;var E=!1===w||re,$=c;return t&&($=s.cloneElement(c,{ref:O})),s.createElement(N.Provider,{value:y},E?$:(0,S.createPortal)($,w))}));const ae=ie;function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return c().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(se(e)):(0,R.isFragment)(e)&&e.props?n=n.concat(se(e.props.children,t)):n.push(e))})),n}function ce(e){return e instanceof HTMLElement||e instanceof SVGElement}function le(e){var t,n=function(e){return e&&"object"===p(e)&&ce(e.nativeElement)?e.nativeElement:ce(e)?e:null}(e);return n||(e instanceof c().Component?null===(t=k().findDOMNode)||void 0===t?void 0:t.call(k(),e):null)}var ue=s.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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),de="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,pe=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),he="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(pe):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},me=["top","right","bottom","left","width","height","size","weight"],ge="undefined"!=typeof MutationObserver,ve=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){he(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},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);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ye=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||pe},we=Oe(0,0,0,0);function xe(e){return parseFloat(e)||0}function Se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+xe(e["border-"+n+"-width"])}),0)}var ke="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ye(e).SVGGraphicsElement}:function(e){return e instanceof ye(e).SVGElement&&"function"==typeof e.getBBox};function Ce(e){return de?ke(e)?function(e){var t=e.getBBox();return Oe(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return we;var r=ye(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=xe(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=xe(r.width),c=xe(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=Se(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Se(r,"top","bottom")+a)),!function(e){return e===ye(e).document.documentElement}(e)){var l=Math.round(s+i)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return Oe(o.left,o.top,s,c)}(e):we}function Oe(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Ee=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Oe(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ce(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$e=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return be(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);be(this,{target:e,contentRect:n})},Ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new fe,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ye(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ee(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ye(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new $e(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},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,ze=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 Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function Ie(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}function Le(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&&Ne(e,t)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}function Be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Be=function(){return!!e})()}function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(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 De(e)}function We(e){var t=Be();return function(){var n,r=He(e);if(t){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fe(this,n)}}var Xe=function(e){Le(n,e);var t=We(n);function n(){return Te(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function Ge(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),i=s.useRef(null),a=s.useContext(ue),c="function"==typeof n,l=c?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!c&&s.isValidElement(l)&&I(l),d=f?l.ref:null,h=_(d,o),m=function(){var e;return le(o.current)||(o.current&&"object"===p(o.current)?le(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||le(i.current)};s.useImperativeHandle(t,(function(){return m()}));var g=s.useRef(e);g.current=e;var b=s.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,c=e.offsetWidth,l=e.offsetHeight,f=Math.floor(i),d=Math.floor(s);if(u.current.width!==f||u.current.height!==d||u.current.offsetWidth!==c||u.current.offsetHeight!==l){var p={width:f,height:d,offsetWidth:c,offsetHeight:l};u.current=p;var h=c===Math.round(i)?i:c,m=l===Math.round(s)?s:l,b=v(v({},p),{},{offsetWidth:h,offsetHeight:m});null==a||a(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return s.useEffect((function(){var e,t,n=m();return n&&!r&&(e=n,t=b,Re.has(e)||(Re.set(e,new Set),ze.observe(e)),Re.get(e).add(t)),function(){return function(e,t){Re.has(e)&&(Re.get(e).delete(t),Re.get(e).size||(ze.unobserve(e),Re.delete(e)))}(n,b)}}),[o.current,r]),s.createElement(Xe,{ref:i},f?s.cloneElement(l,{ref:h}):l)}const qe=s.forwardRef(Ge);function Ve(e,t){var n=e.children;return("function"==typeof n?[n]:se(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return s.createElement(qe,d({},e,{key:o,ref:0===r?t:void 0}),n)}))}var Ye=s.forwardRef(Ve);Ye.Collection=function(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(ue),a=s.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return s.createElement(ue.Provider,{value:a},t)};const Ue=Ye;function Ze(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ke(e){return function(e){return Ze(e)instanceof ShadowRoot}(e)?Ze(e):null}function Qe(e){var t=s.useRef();t.current=e;var n=s.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var Je=0,et=v({},s).useId;const tt=et?function(e){var t=et();return e||t}:function(e){var t=x(s.useState("ssr-id"),2),n=t[0],r=t[1];return s.useEffect((function(){var e=Je;Je+=1,r("rc_unique_".concat(e))}),[]),e||n};var nt=s.createContext({}),rt=function(e){Le(n,e);var t=We(n);function n(){return Te(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);const ot=rt;function it(e){var t=s.useRef(!1),n=x(s.useState(e),2),r=n[0],o=n[1];return s.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function at(e){return void 0!==e}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var st="none",ct="appear",lt="enter",ut="leave",ft="none",dt="prepare",pt="start",ht="active",mt="end",gt="prepared";function vt(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 bt,yt,wt,xt=(bt=C(),yt="undefined"!=typeof window?window:{},wt={animationend:vt("Animation","AnimationEnd"),transitionend:vt("Transition","TransitionEnd")},bt&&("AnimationEvent"in yt||delete wt.animationend.animation,"TransitionEvent"in yt||delete wt.transitionend.transition),wt),St={};if(C()){var kt=document.createElement("div");St=kt.style}var Ct={};function Ot(e){if(Ct[e])return Ct[e];var t=xt[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in St)return Ct[e]=t[i],Ct[e]}return""}var Et=Ot("animationend"),$t=Ot("transitionend"),At=!(!Et||!$t),jt=Et||"animationend",Mt=$t||"transitionend";function Pt(e,t){return e?"object"===p(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Rt=C()?s.useLayoutEffect:s.useEffect;var zt=function(e){return+setTimeout(e,16)},Tt=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(zt=function(e){return window.requestAnimationFrame(e)},Tt=function(e){return window.cancelAnimationFrame(e)});var _t=0,It=new Map;function Nt(e){It.delete(e)}var Lt=function(e){var t=_t+=1;return function n(r){if(0===r)Nt(t),e();else{var o=zt((function(){n(r-1)}));It.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Lt.cancel=function(e){var t=It.get(e);return Nt(e),Tt(t)};const Ht=Lt;var Bt=[dt,pt,ht,mt],Dt=[dt,gt],Ft=!1;function Wt(e){return e===ht||e===mt}function Xt(e,t,n,r){var o,i,a,c,l=r.motionEnter,u=void 0===l||l,f=r.motionAppear,d=void 0===f||f,p=r.motionLeave,h=void 0===p||p,g=r.motionDeadline,b=r.motionLeaveImmediately,y=r.onAppearPrepare,w=r.onEnterPrepare,S=r.onLeavePrepare,k=r.onAppearStart,C=r.onEnterStart,O=r.onLeaveStart,E=r.onAppearActive,$=r.onEnterActive,A=r.onLeaveActive,j=r.onAppearEnd,M=r.onEnterEnd,P=r.onLeaveEnd,R=r.onVisibleChanged,z=x(it(),2),T=z[0],_=z[1],I=(o=st,i=s.useReducer((function(e){return e+1}),0),a=x(i,2)[1],c=s.useRef(o),[Qe((function(){return c.current})),Qe((function(e){c.current="function"==typeof e?e(c.current):e,a()}))]),N=x(I,2),L=N[0],H=N[1],B=x(it(null),2),D=B[0],F=B[1],W=L(),X=(0,s.useRef)(!1),G=(0,s.useRef)(null);function q(){return n()}var V=(0,s.useRef)(!1);function Y(){H(st),F(null,!0)}var U=Qe((function(e){var t=L();if(t!==st){var n=q();if(!e||e.deadline||e.target===n){var r,o=V.current;t===ct&&o?r=null==j?void 0:j(n,e):t===lt&&o?r=null==M?void 0:M(n,e):t===ut&&o&&(r=null==P?void 0:P(n,e)),o&&!1!==r&&Y()}}})),Z=function(e){var t=(0,s.useRef)();function n(t){t&&(t.removeEventListener(Mt,e),t.removeEventListener(jt,e))}return s.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Mt,e),r.addEventListener(jt,e),t.current=r)},n]}(U),K=x(Z,1)[0],Q=function(e){switch(e){case ct:return m(m(m({},dt,y),pt,k),ht,E);case lt:return m(m(m({},dt,w),pt,C),ht,$);case ut:return m(m(m({},dt,S),pt,O),ht,A);default:return{}}},J=s.useMemo((function(){return Q(W)}),[W]),ee=x(function(e,t,n){var r=x(it(ft),2),o=r[0],i=r[1],a=function(){var e=s.useRef(null);function t(){Ht.cancel(e.current)}return s.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ht((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=x(a,2),l=c[0],u=c[1],f=t?Dt:Bt;return Rt((function(){if(o!==ft&&o!==mt){var e=f.indexOf(o),t=f[e+1],r=n(o);r===Ft?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),s.useEffect((function(){return function(){u()}}),[]),[function(){i(dt,!0)},o]}(W,!e,(function(e){if(e===dt){var t=J[dt];return t?t(q()):Ft}var n;return ne in J&&F((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===ht&&W!==st&&(K(q()),g>0&&(clearTimeout(G.current),G.current=setTimeout((function(){U({deadline:!0})}),g))),ne===gt&&Y(),!0})),2),te=ee[0],ne=ee[1],re=Wt(ne);V.current=re,Rt((function(){_(t);var n,r=X.current;X.current=!0,!r&&t&&d&&(n=ct),r&&t&&u&&(n=lt),(r&&!t&&h||!r&&b&&!t&&h)&&(n=ut);var o=Q(n);n&&(e||o[dt])?(H(n),te()):H(st)}),[t]),(0,s.useEffect)((function(){(W===ct&&!d||W===lt&&!u||W===ut&&!h)&&H(st)}),[d,u,h]),(0,s.useEffect)((function(){return function(){X.current=!1,clearTimeout(G.current)}}),[]);var oe=s.useRef(!1);(0,s.useEffect)((function(){T&&(oe.current=!0),void 0!==T&&W===st&&((oe.current||T)&&(null==R||R(T)),oe.current=!0)}),[T,W]);var ie=D;return J[dt]&&ne===pt&&(ie=v({transition:"none"},ie)),[W,ne,ie,null!=T?T:t]}const Gt=function(e){var t=e;"object"===p(e)&&(t=e.transitionSupport);var n=s.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,c=e.forceRender,l=e.children,f=e.motionName,d=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,s.useContext(nt).motion),g=(0,s.useRef)(),b=(0,s.useRef)(),y=x(Xt(h,o,(function(){try{return g.current instanceof HTMLElement?g.current:le(b.current)}catch(e){return null}}),e),4),w=y[0],S=y[1],k=y[2],C=y[3],O=s.useRef(C);C&&(O.current=!0);var E,$=s.useCallback((function(e){g.current=e,z(n,e)}),[n]),A=v(v({},p),{},{visible:o});if(l)if(w===st)E=C?l(v({},A),$):!a&&O.current&&d?l(v(v({},A),{},{className:d}),$):c||!a&&!d?l(v(v({},A),{},{style:{display:"none"}}),$):null;else{var j;S===dt?j="prepare":Wt(S)?j="active":S===pt&&(j="start");var M=Pt(f,"".concat(w,"-").concat(j));E=l(v(v({},A),{},{className:u()(Pt(f,w),m(m({},M,M&&j),f,"string"==typeof f)),style:k}),$)}else E=null;return s.isValidElement(E)&&I(E)&&(E.ref||(E=s.cloneElement(E,{ref:$}))),s.createElement(ot,{ref:b},E)}));return n.displayName="CSSMotion",n}(At);var qt="add",Vt="keep",Yt="remove",Ut="removed";function Zt(e){var t;return v(v({},t=e&&"object"===p(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Kt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Zt)}var Qt=["component","children","onVisibleChanged","onAllRemoved"],Jt=["status"],en=["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]:Gt,t=function(t){Le(r,t);var n=We(r);function r(){var e;Te(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return m(De(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),m(De(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:v(v({},e),{},{status:Ut})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Ut})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Ie(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,c=(r.onAllRemoved,b(r,Qt)),l=o||s.Fragment,u={};return en.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,s.createElement(l,c,n.map((function(n,r){var o=n.status,c=b(n,Jt),l=o===qt||o===Vt;return s.createElement(e,d({},u,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(e){null==a||a(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return i(v(v({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Kt(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Kt(e),a=Kt(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return v(v({},e),{},{status:qt})}))),r=i),n.push(v(v({},s),{},{status:Vt})),r+=1,t=!0;break}}t||n.push(v(v({},e),{},{status:Yt}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return v(v({},e),{},{status:qt})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Yt}))).forEach((function(t){t.key===e&&(t.status=Vt)}))})),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!==Ut||e.status!==Yt}))}}}]),r}(s.Component);m(t,"defaultProps",{component:"div"})}(At);const tn=Gt;function nn(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,c=i.content,l=o.x,f=void 0===l?0:l,d=o.y,p=void 0===d?0:d,h=s.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.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 s.createElement("div",{ref:h,className:u()("".concat(t,"-arrow"),a),style:m},c)}function rn(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(tn,d({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return s.createElement("div",{style:{zIndex:r},className:u()("".concat(t,"-mask"),n)})})):null}var on=s.memo((function(e){return e.children}),(function(e,t){return t.cache}));const an=on;var sn=s.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,c=e.onVisibleChanged,l=e.open,f=e.keepDom,p=e.fresh,h=e.onClick,m=e.mask,g=e.arrow,b=e.arrowPos,y=e.align,w=e.motion,S=e.maskMotion,k=e.forceRender,C=e.getPopupContainer,O=e.autoDestroy,E=e.portal,$=e.zIndex,A=e.onMouseEnter,j=e.onMouseLeave,M=e.onPointerEnter,P=e.onPointerDownCapture,R=e.ready,z=e.offsetX,_=e.offsetY,I=e.offsetR,N=e.offsetB,L=e.onAlign,H=e.onPrepare,B=e.stretch,D=e.targetWidth,W=e.targetHeight,X="function"==typeof n?n():n,G=l||f,q=(null==C?void 0:C.length)>0,V=x(s.useState(!C||!q),2),Y=V[0],U=V[1];if(F((function(){!Y&&q&&a&&U(!0)}),[Y,q,a]),!Y)return null;var Z="auto",K={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(R||!l){var Q,J=y.points,ee=y.dynamicInset||(null===(Q=y._experimental)||void 0===Q?void 0:Q.dynamicInset),te=ee&&"r"===J[0][1],ne=ee&&"b"===J[0][0];te?(K.right=I,K.left=Z):(K.left=z,K.right=Z),ne?(K.bottom=N,K.top=Z):(K.top=_,K.bottom=Z)}var re={};return B&&(B.includes("height")&&W?re.height=W:B.includes("minHeight")&&W&&(re.minHeight=W),B.includes("width")&&D?re.width=D:B.includes("minWidth")&&D&&(re.minWidth=D)),l||(re.pointerEvents="none"),s.createElement(E,{open:k||G,getContainer:C&&function(){return C(a)},autoDestroy:O},s.createElement(rn,{prefixCls:o,open:l,zIndex:$,mask:m,motion:S}),s.createElement(Ue,{onResize:L,disabled:!l},(function(e){return s.createElement(tn,d({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:"".concat(o,"-hidden")},w,{onAppearPrepare:H,onEnterPrepare:H,visible:l,onVisibleChanged:function(e){var t;null==w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),c(e)}}),(function(n,a){var c=n.className,f=n.style,d=u()(o,c,r);return s.createElement("div",{ref:T(e,t,a),className:d,style:v(v(v(v({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},K),re),f),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:A,onMouseLeave:j,onPointerEnter:M,onClick:h,onPointerDownCapture:P},g&&s.createElement(nn,{prefixCls:o,arrow:g,arrowPos:b,align:y}),s.createElement(an,{cache:!l&&!p},X))}))})))}));const cn=sn;var ln=s.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=I(n),i=s.useCallback((function(e){z(t,r?r(e):e)}),[r]),a=_(i,n.ref);return o?s.cloneElement(n,{ref:a}):n}));const un=ln,fn=s.createContext(null);function dn(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 hn(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function mn(e){return e.ownerDocument.defaultView}function gn(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=mn(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 vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function bn(e){return vn(parseFloat(e),0)}function yn(e,t){var n=v({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=mn(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=bn(i),m=bn(a),g=bn(s),v=bn(c),b=vn(Math.round(l.width/d*1e3)/1e3),y=vn(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=bn(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 wn(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 xn(e,t){var n=x(t||[],2),r=n[0],o=n[1];return[wn(e.width,r),wn(e.height,o)]}function Sn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function kn(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 Cn(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 On=["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 En=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,t=s.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,c=void 0===a?"hover":a,l=t.showAction,f=t.hideAction,d=t.popupVisible,p=t.defaultPopupVisible,h=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,g=t.mouseEnterDelay,y=t.mouseLeaveDelay,w=void 0===y?.1:y,S=t.focusDelay,k=t.blurDelay,C=t.mask,O=t.maskClosable,E=void 0===O||O,$=t.getPopupContainer,A=t.forceRender,j=t.autoDestroy,M=t.destroyPopupOnHide,P=t.popup,R=t.popupClassName,z=t.popupStyle,T=t.popupPlacement,_=t.builtinPlacements,I=void 0===_?{}:_,N=t.popupAlign,H=t.zIndex,B=t.stretch,D=t.getPopupClassNameFromAlign,W=t.fresh,X=t.alignPoint,G=t.onPopupClick,q=t.onPopupAlign,V=t.arrow,Y=t.popupMotion,U=t.maskMotion,Z=t.popupTransitionName,K=t.popupAnimation,Q=t.maskTransitionName,J=t.maskAnimation,ee=t.className,te=t.getTriggerDOMNode,ne=b(t,On),re=j||M||!1,oe=x(s.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=s.useRef({}),le=s.useContext(fn),ue=s.useMemo((function(){return{registerSubPopup:function(e,t){se.current[e]=t,null==le||le.registerSubPopup(e,t)}}}),[le]),fe=tt(),de=x(s.useState(null),2),pe=de[0],he=de[1],me=s.useRef(null),ge=Qe((function(e){me.current=e,ce(e)&&pe!==e&&he(e),null==le||le.registerSubPopup(fe,e)})),ve=x(s.useState(null),2),be=ve[0],ye=ve[1],we=s.useRef(null),xe=Qe((function(e){ce(e)&&be!==e&&(ye(e),we.current=e)})),Se=s.Children.only(i),ke=(null==Se?void 0:Se.props)||{},Ce={},Oe=Qe((function(e){var t,n,r=be;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}))})),Ee=hn(o,Y,K,Z),$e=hn(o,U,J,Q),Ae=x(s.useState(p||!1),2),je=Ae[0],Me=Ae[1],Pe=null!=d?d:je,Re=Qe((function(e){void 0===d&&Me(e)}));F((function(){Me(d||!1)}),[d]);var ze=s.useRef(Pe);ze.current=Pe;var Te=s.useRef([]);Te.current=[];var _e=Qe((function(e){var t;Re(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:Pe)!==e&&(Te.current.push(e),null==h||h(e))})),Ie=s.useRef(),Ne=function(){clearTimeout(Ie.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ne(),0===t?_e(e):Ie.current=setTimeout((function(){_e(e)}),1e3*t)};s.useEffect((function(){return Ne}),[]);var He=x(s.useState(!1),2),Be=He[0],De=He[1];F((function(e){e&&!Pe||De(!0)}),[Pe]);var Fe=x(s.useState(null),2),We=Fe[0],Xe=Fe[1],Ge=x(s.useState(null),2),qe=Ge[0],Ve=Ge[1],Ye=function(e){Ve([e.clientX,e.clientY])},Ze=x(function(e,t,n,r,o,i,a){var c=x(s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=c[0],u=c[1],f=s.useRef(0),d=s.useMemo((function(){return t?gn(t):[]}),[t]),p=s.useRef({});e||(p.current={});var h=Qe((function(){if(t&&n&&e){var s,c,l,f,h,m=t,g=m.ownerDocument,b=mn(m).getComputedStyle(m),y=b.width,w=b.height,S=b.position,k=m.style.left,C=m.style.top,O=m.style.right,E=m.style.bottom,$=m.style.overflow,A=v(v({},o[r]),i),j=g.createElement("div");if(null===(s=m.parentElement)||void 0===s||s.appendChild(j),j.style.left="".concat(m.offsetLeft,"px"),j.style.top="".concat(m.offsetTop,"px"),j.style.position=S,j.style.height="".concat(m.offsetHeight,"px"),j.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var M,P,R=n.getBoundingClientRect();R.x=null!==(M=R.x)&&void 0!==M?M:R.left,R.y=null!==(P=R.y)&&void 0!==P?P:R.top,h={x:R.x,y:R.y,width:R.width,height:R.height}}var z=m.getBoundingClientRect();z.x=null!==(c=z.x)&&void 0!==c?c:z.left,z.y=null!==(l=z.y)&&void 0!==l?l:z.top;var T=g.documentElement,_=T.clientWidth,I=T.clientHeight,N=T.scrollWidth,L=T.scrollHeight,H=T.scrollTop,B=T.scrollLeft,D=z.height,F=z.width,W=h.height,X=h.width,G={left:0,top:0,right:_,bottom:I},q={left:-B,top:-H,right:N-B,bottom:L-H},V=A.htmlRegion,Y="visible",U="visibleFirst";"scroll"!==V&&V!==U&&(V=Y);var Z=V===U,K=yn(q,d),Q=yn(G,d),J=V===Y?Q:K,ee=Z?Q:J;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var te=m.getBoundingClientRect();m.style.left=k,m.style.top=C,m.style.right=O,m.style.bottom=E,m.style.overflow=$,null===(f=m.parentElement)||void 0===f||f.removeChild(j);var ne=vn(Math.round(F/parseFloat(y)*1e3)/1e3),re=vn(Math.round(D/parseFloat(w)*1e3)/1e3);if(0===ne||0===re||ce(n)&&!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}(n))return;var oe=A.offset,ie=A.targetOffset,ae=x(xn(z,oe),2),se=ae[0],le=ae[1],ue=x(xn(h,ie),2),fe=ue[0],de=ue[1];h.x-=fe,h.y-=de;var pe=x(A.points||[],2),he=pe[0],me=Sn(pe[1]),ge=Sn(he),ve=kn(h,me),be=kn(z,ge),ye=v({},A),we=ve.x-be.x+se,xe=ve.y-be.y+le;function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=z.x+e,o=z.y+t,i=r+F,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,ke,Ce,Oe,Ee=ht(we,xe),$e=ht(we,xe,Q),Ae=kn(h,["t","l"]),je=kn(z,["t","l"]),Me=kn(h,["b","r"]),Pe=kn(z,["b","r"]),Re=A.overflow||{},ze=Re.adjustX,Te=Re.adjustY,_e=Re.shiftX,Ie=Re.shiftY,Ne=function(e){return"boolean"==typeof e?e:e>=0};function mt(){Se=z.y+xe,ke=Se+D,Ce=z.x+we,Oe=Ce+F}mt();var Le=Ne(Te),He=ge[0]===me[0];if(Le&&"t"===ge[0]&&(ke>ee.bottom||p.current.bt)){var Be=xe;He?Be-=D-W:Be=Ae.y-Pe.y-le;var De=ht(we,Be),Fe=ht(we,Be,Q);De>Ee||De===Ee&&(!Z||Fe>=$e)?(p.current.bt=!0,xe=Be,le=-le,ye.points=[Cn(ge,0),Cn(me,0)]):p.current.bt=!1}if(Le&&"b"===ge[0]&&(Se<ee.top||p.current.tb)){var We=xe;He?We+=D-W:We=Me.y-je.y-le;var Xe=ht(we,We),Ge=ht(we,We,Q);Xe>Ee||Xe===Ee&&(!Z||Ge>=$e)?(p.current.tb=!0,xe=We,le=-le,ye.points=[Cn(ge,0),Cn(me,0)]):p.current.tb=!1}var qe=Ne(ze),Ve=ge[1]===me[1];if(qe&&"l"===ge[1]&&(Oe>ee.right||p.current.rl)){var Ye=we;Ve?Ye-=F-X:Ye=Ae.x-Pe.x-se;var Ue=ht(Ye,xe),Ze=ht(Ye,xe,Q);Ue>Ee||Ue===Ee&&(!Z||Ze>=$e)?(p.current.rl=!0,we=Ye,se=-se,ye.points=[Cn(ge,1),Cn(me,1)]):p.current.rl=!1}if(qe&&"r"===ge[1]&&(Ce<ee.left||p.current.lr)){var Ke=we;Ve?Ke+=F-X:Ke=Me.x-je.x-se;var Qe=ht(Ke,xe),Je=ht(Ke,xe,Q);Qe>Ee||Qe===Ee&&(!Z||Je>=$e)?(p.current.lr=!0,we=Ke,se=-se,ye.points=[Cn(ge,1),Cn(me,1)]):p.current.lr=!1}mt();var et=!0===_e?0:_e;"number"==typeof et&&(Ce<Q.left&&(we-=Ce-Q.left-se,h.x+X<Q.left+et&&(we+=h.x-Q.left+X-et)),Oe>Q.right&&(we-=Oe-Q.right-se,h.x>Q.right-et&&(we+=h.x-Q.right+et)));var tt=!0===Ie?0:Ie;"number"==typeof tt&&(Se<Q.top&&(xe-=Se-Q.top-le,h.y+W<Q.top+tt&&(xe+=h.y-Q.top+W-tt)),ke>Q.bottom&&(xe-=ke-Q.bottom-le,h.y>Q.bottom-tt&&(xe+=h.y-Q.bottom+tt)));var nt=z.x+we,rt=nt+F,ot=z.y+xe,it=ot+D,at=h.x,st=at+X,ct=h.y,lt=ct+W,ut=(Math.max(nt,at)+Math.min(rt,st))/2-nt,ft=(Math.max(ot,ct)+Math.min(it,lt))/2-ot;null==a||a(t,ye);var dt=te.right-z.x-(we+z.width),pt=te.bottom-z.y-(xe+z.height);1===ne&&(we=Math.round(we),dt=Math.round(dt)),1===re&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:we/ne,offsetY:xe/re,offsetR:dt/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:ft/re,scaleX:ne,scaleY:re,align:ye})}})),m=function(){u((function(e){return v(v({},e),{},{ready:!1})}))};return F(m,[r]),F((function(){e||m()}),[e]),[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()}))}]}(Pe,pe,X&&null!==qe?qe:be,T,I,N,q),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(e,t,n,r){return s.useMemo((function(){var o=dn(null!=n?n:t),i=dn(null!=r?r:t),a=new Set(o),s=new Set(i);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,r])}(ie,c,l,f),dt=x(ft,2),pt=dt[0],ht=dt[1],mt=pt.has("click"),gt=ht.has("click")||ht.has("contextMenu"),vt=Qe((function(){Be||ut()}));!function(e,t,n,r){F((function(){if(e&&t&&n){var o=n,i=gn(t),a=gn(o),s=mn(o),c=new Set([s].concat(L(i),L(a)));function l(){r(),ze.current&&X&&gt&&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])}(Pe,be,pe,vt),F((function(){vt()}),[qe,T]),F((function(){!Pe||null!=I&&I[T]||vt()}),[JSON.stringify(N)]);var bt=s.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,c=i[a];if(pn(null===(s=e[c])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(I,o,lt,X);return u()(e,null==D?void 0:D(lt))}),[lt,D,I,o,X]);s.useImperativeHandle(n,(function(){return{nativeElement:we.current,popupElement:me.current,forceAlign:vt}}));var yt=x(s.useState(0),2),wt=yt[0],xt=yt[1],St=x(s.useState(0),2),kt=St[0],Ct=St[1],Ot=function(){if(B&&be){var e=be.getBoundingClientRect();xt(e.width),Ct(e.height)}};function Et(e,t,n,r){Ce[e]=function(o){var i;null==r||r(o),Le(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];null===(i=ke[e])||void 0===i||i.call.apply(i,[ke,o].concat(s))}}F((function(){We&&(ut(),We(),Xe(null))}),[We]),(mt||gt)&&(Ce.onClick=function(e){var t;ze.current&&gt?Le(!1):!ze.current&&mt&&(Ye(e),Le(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ke.onClick)||void 0===t||t.call.apply(t,[ke,e].concat(r))});var $t,At,jt=function(e,t,n,r,o,i,a,c){var l=s.useRef(e);l.current=e;var u=s.useRef(!1);return s.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){u.current=!1},s=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||c(!1)},f=mn(r);f.addEventListener("pointerdown",e,!0),f.addEventListener("mousedown",s,!0),f.addEventListener("contextmenu",s,!0);var d=Ke(n);return d&&(d.addEventListener("mousedown",s,!0),d.addEventListener("contextmenu",s,!0)),function(){f.removeEventListener("pointerdown",e,!0),f.removeEventListener("mousedown",s,!0),f.removeEventListener("contextmenu",s,!0),d&&(d.removeEventListener("mousedown",s,!0),d.removeEventListener("contextmenu",s,!0))}}}),[t,n,r,o,i]),function(){u.current=!0}}(Pe,gt,be,pe,C,E,Oe,Le),Mt=pt.has("hover"),Pt=ht.has("hover");Mt&&(Et("onMouseEnter",!0,g,(function(e){Ye(e)})),Et("onPointerEnter",!0,g,(function(e){Ye(e)})),$t=function(e){(Pe||Be)&&null!=pe&&pe.contains(e.target)&&Le(!0,g)},X&&(Ce.onMouseMove=function(e){var t;null===(t=ke.onMouseMove)||void 0===t||t.call(ke,e)})),Pt&&(Et("onMouseLeave",!1,w),Et("onPointerLeave",!1,w),At=function(){Le(!1,w)}),pt.has("focus")&&Et("onFocus",!0,S),ht.has("focus")&&Et("onBlur",!1,k),pt.has("contextMenu")&&(Ce.onContextMenu=function(e){var t;ze.current&&ht.has("contextMenu")?Le(!1):(Ye(e),Le(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ke.onContextMenu)||void 0===t||t.call.apply(t,[ke,e].concat(r))}),ee&&(Ce.className=u()(ke.className,ee));var Rt=v(v({},ke),Ce),zt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ne[e]&&(zt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Rt[e])||void 0===t||t.call.apply(t,[Rt].concat(r)),ne[e].apply(ne,r)})}));var Tt=s.cloneElement(Se,v(v({},Rt),zt)),_t={x:it,y:at},It=V?v({},!0!==V?V:{}):null;return s.createElement(s.Fragment,null,s.createElement(Ue,{disabled:!Pe,ref:xe,onResize:function(){Ot(),vt()}},s.createElement(un,{getTriggerDOMNode:te},Tt)),s.createElement(fn.Provider,{value:ue},s.createElement(cn,{portal:e,ref:ge,prefixCls:o,popup:P,className:u()(R,bt),style:z,target:be,onMouseEnter:$t,onMouseLeave:At,onPointerEnter:$t,zIndex:H,open:Pe,keepDom:Be,fresh:W,onClick:G,onPointerDownCapture:jt,mask:C,motion:Ee,maskMotion:$e,onVisibleChanged:function(e){De(!1),ut(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){Ot(),Xe((function(){return e}))}))},forceRender:A,autoDestroy:re,getPopupContainer:$,align:lt,arrow:It,arrowPos:_t,ready:Je,offsetX:et,offsetY:nt,offsetR:rt,offsetB:ot,onAlign:vt,stretch:B,targetWidth:wt/st,targetHeight:kt/ct})))}));return t}(ae);var $n={shiftX:64,adjustY:1},An={adjustX:1,shiftY:!0},jn=[0,0],Mn={left:{points:["cr","cl"],overflow:An,offset:[-4,0],targetOffset:jn},right:{points:["cl","cr"],overflow:An,offset:[4,0],targetOffset:jn},top:{points:["bc","tc"],overflow:$n,offset:[0,-4],targetOffset:jn},bottom:{points:["tc","bc"],overflow:$n,offset:[0,4],targetOffset:jn},topLeft:{points:["bl","tl"],overflow:$n,offset:[0,-4],targetOffset:jn},leftTop:{points:["tr","tl"],overflow:An,offset:[-4,0],targetOffset:jn},topRight:{points:["br","tr"],overflow:$n,offset:[0,-4],targetOffset:jn},rightTop:{points:["tl","tr"],overflow:An,offset:[4,0],targetOffset:jn},bottomRight:{points:["tr","br"],overflow:$n,offset:[0,4],targetOffset:jn},rightBottom:{points:["bl","br"],overflow:An,offset:[4,0],targetOffset:jn},bottomLeft:{points:["tl","bl"],overflow:$n,offset:[0,4],targetOffset:jn},leftBottom:{points:["br","bl"],overflow:An,offset:[-4,0],targetOffset:jn}},Pn=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Rn=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,c=e.mouseLeaveDelay,l=void 0===c?.1:c,u=e.overlayStyle,p=e.prefixCls,h=void 0===p?"rc-tooltip":p,m=e.children,g=e.onVisibleChange,y=e.afterVisibleChange,w=e.transitionName,x=e.animation,S=e.motion,k=e.placement,C=void 0===k?"right":k,O=e.align,E=void 0===O?{}:O,$=e.destroyTooltipOnHide,A=void 0!==$&&$,j=e.defaultVisible,M=e.getTooltipContainer,P=e.overlayInnerStyle,R=(e.arrowContent,e.overlay),z=e.id,T=e.showArrow,_=void 0===T||T,I=b(e,Pn),N=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,(function(){return N.current}));var L=v({},I);return"visible"in e&&(L.popupVisible=e.visible),s.createElement(En,d({popupClassName:n,prefixCls:h,popup:function(){return s.createElement(f,{key:"content",prefixCls:h,id:z,overlayInnerStyle:P},R)},action:o,builtinPlacements:Mn,popupPlacement:C,ref:N,popupAlign:E,getPopupContainer:M,onPopupVisibleChange:g,afterPopupVisibleChange:y,popupTransitionName:w,popupAnimation:x,popupMotion:S,defaultPopupVisible:j,autoDestroy:A,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:a,arrow:_},L),m)};const zn=(0,s.forwardRef)(Rn),Tn=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 In(e){return e.join("%")}const Nn=function(){function e(t){Te(this,e),m(this,"instanceId",void 0),m(this,"cache",new Map),this.instanceId=t}return Ie(e,[{key:"get",value:function(e){return this.opGet(In(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(In(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 Dn=s.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 Nn(e)}(),defaultCache:!0});const Fn=Dn;new RegExp("CALC_UNIT","g");var Wn=function(){function e(){Te(this,e),m(this,"cache",void 0),m(this,"keys",void 0),m(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ie(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]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=x(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();m(Wn,"MAX_CACHE_SIZE",20),m(Wn,"MAX_CACHE_OFFSET",5);var Xn=0,Gn=function(){function e(t){Te(this,e),m(this,"derivatives",void 0),m(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Xn,0===t.length&&t.length,Xn+=1}return Ie(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),qn=new Wn,Vn=new WeakMap,Yn={},Un=new WeakMap;function Zn(e){var t=Un.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Gn?t+=r.id:r&&"object"===p(r)?t+=Zn(r):t+=r})),t=Tn(t),Un.set(e,t)),t}function Kn(e,t){return Tn("".concat(t,"_").concat(Zn(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Qn=C();function Jn(e){return"number"==typeof e?"".concat(e,"px"):e}function er(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=v(v({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(m(r={},Ln,t),m(r,Hn,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"<style ".concat(i,">").concat(e,"</style>")}var tr=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()},nr=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(""),"}"):""},rr=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=x(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=tr(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,nr(r,t,{scope:null==n?void 0:n.scope})]},or=v({},s).useInsertionEffect;const ir=or?function(e,t,n){return or((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),F((function(){return t(!0)}),n)},ar=void 0!==v({},s).useInsertionEffect?function(e){var t=[],n=!1;return s.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 sr(e,t,n,r,o){var i=s.useContext(Fn).cache,a=In([e].concat(L(t))),c=ar([a]),l=function(e){i.opUpdate(a,(function(t){var r=x(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};s.useMemo((function(){l()}),[a]);var u=i.opGet(a)[1];return ir((function(){null==o||o(u)}),(function(e){return l((function(t){var n=x(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(u)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=x(t||[],2),o=n[0],s=void 0===o?0:o,l=n[1];return 0==s-1?(c((function(){!e&&i.opGet(a)||null==r||r(l,!1)})),null):[s-1,l]}))}}),[a]),u}var cr={},lr=new Map;var ur="token";function fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(Fn),o=r.cache.instanceId,i=r.container,a=n.salt,c=void 0===a?"":a,l=n.override,u=void 0===l?cr:l,f=n.formatToken,d=n.getComputedToken,p=n.cssVar,h=function(e,n){for(var r=Vn,o=0;o<n.length;o+=1){var i=n[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(Yn)||r.set(Yn,Object.assign.apply(Object,[{}].concat(L(t)))),r.get(Yn)}(0,t),m=Zn(h),g=Zn(u),b=p?Zn(p):"",y=sr(ur,[c,e.id,m,g,b],(function(){var t,n=d?d(h,u,e):function(e,t,n,r){var o=v(v({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(h,u,e,f),r=v({},n),o="";if(p){var i=x(rr(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Kn(n,c);n._tokenKey=a,r._tokenKey=Kn(r,c);var s=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=s,function(e){lr.set(e,(lr.get(e)||0)+1)}(s);var l="".concat("css","-").concat(Tn(a));return n._hashId=l,[n,l,r,o,(null==p?void 0:p.key)||""]}),(function(e){!function(e,t){lr.set(e,(lr.get(e)||0)-1);var n=Array.from(lr.keys()),r=n.filter((function(e){return(lr.get(e)||0)<=0}));n.length-r.length>0&&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),lr.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=x(e,4),n=t[0],r=t[3];if(p&&r){var a=J(r,Tn("css-variables-".concat(n._themeKey)),{mark:Hn,prepend:"queue",attachTo:i,priority:-999});a[Bn]=o,a.setAttribute(Ln,n._themeKey)}}));return y}const dr={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 pr="comm",hr="rule",mr="decl",gr=Math.abs,vr=String.fromCharCode;function br(e){return e.trim()}function yr(e,t,n){return e.replace(t,n)}function wr(e,t,n){return e.indexOf(t,n)}function xr(e,t){return 0|e.charCodeAt(t)}function Sr(e,t,n){return e.slice(t,n)}function kr(e){return e.length}function Cr(e,t){return t.push(e),e}function Or(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Er(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mr:return e.return=e.return||e.value;case pr:return"";case"@keyframes":return e.return=e.value+"{"+Or(e.children,r)+"}";case hr:if(!kr(e.value=e.props.join(",")))return""}return kr(n=Or(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var $r=1,Ar=1,jr=0,Mr=0,Pr=0,Rr="";function zr(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$r,column:Ar,length:a,return:"",siblings:s}}function Tr(){return Pr=Mr>0?xr(Rr,--Mr):0,Ar--,10===Pr&&(Ar=1,$r--),Pr}function _r(){return Pr=Mr<jr?xr(Rr,Mr++):0,Ar++,10===Pr&&(Ar=1,$r++),Pr}function Ir(){return xr(Rr,Mr)}function Nr(){return Mr}function Lr(e,t){return Sr(Rr,e,t)}function Hr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Br(e){return br(Lr(Mr-1,Wr(91===e?e+2:40===e?e+1:e)))}function Dr(e){for(;(Pr=Ir())&&Pr<33;)_r();return Hr(e)>2||Hr(Pr)>3?"":" "}function Fr(e,t){for(;--t&&_r()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return Lr(e,Nr()+(t<6&&32==Ir()&&32==_r()))}function Wr(e){for(;_r();)switch(Pr){case e:return Mr;case 34:case 39:34!==e&&39!==e&&Wr(Pr);break;case 40:41===e&&Wr(e);break;case 92:_r()}return Mr}function Xr(e,t){for(;_r()&&e+Pr!==57&&(e+Pr!==84||47!==Ir()););return"/*"+Lr(t,Mr-1)+"*"+vr(47===e?e:_r())}function Gr(e){for(;!Hr(Ir());)_r();return Lr(e,Mr)}function qr(e){return function(e){return Rr="",e}(Vr("",null,null,null,[""],e=function(e){return $r=Ar=1,jr=kr(Rr=e),Mr=0,[]}(e),0,[0],e))}function Vr(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=_r()){case 40:if(108!=h&&58==xr(k,f-1)){-1!=wr(k+=yr(Br(b),"&","&\f"),"&\f",gr(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Br(b);break;case 9:case 10:case 13:case 32:k+=Dr(h);break;case 92:k+=Fr(Nr()-1,7);continue;case 47:switch(Ir()){case 42:case 47:Cr(Ur(Xr(_r(),Nr()),t,n,c),c),5!=Hr(h||1)&&5!=Hr(Ir()||1)||!kr(k)||" "===Sr(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[l++]=kr(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(k=yr(k,/\f/g,"")),p>0&&(kr(k)-f||0===m&&47===h)&&Cr(p>32?Zr(k+";",r,n,f-1,c):Zr(yr(k," ","")+";",r,n,f-2,c),c);break;case 59:k+=";";default:if(Cr(S=Yr(k,t,n,l,u,o,s,y,w=[],x=[],f,i),i),123===b)if(0===u)Vr(k,t,S,S,w,i,f,s,x);else switch(99===d&&110===xr(k,3)?100:d){case 100:case 108:case 109:case 115:Vr(e,S,S,r&&Cr(Yr(e,S,S,0,0,o,s,y,o,w=[],f,x),x),o,x,f,s,r?w:x);break;default:Vr(k,S,S,S,[""],x,0,s,x)}}l=u=p=0,m=v=1,y=k="",f=a;break;case 58:f=1+kr(k),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Tr())continue;switch(k+=vr(b),b*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(kr(k)-1)*v,v=1;break;case 64:45===Ir()&&(k+=Br(_r())),d=Ir(),u=f=kr(y=k+=Gr(Nr())),b++;break;case 45:45===h&&2==kr(k)&&(m=0)}}return i}function Yr(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;m<r;++m)for(var b=0,y=Sr(e,d+1,d=gr(g=a[m])),w=e;b<h;++b)(w=br(g>0?p[b]+" "+y:yr(y,/&\f/g,p[b])))&&(c[v++]=w);return zr(e,t,n,0===o?hr:s,c,l,u,f)}function Ur(e,t,n,r){return zr(e,t,n,pr,vr(Pr),Sr(e,2,-2),0,r)}function Zr(e,t,n,r,o){return zr(e,t,n,mr,Sr(e,0,r),Sr(e,r+1,-1),r,o)}var Kr,Qr="data-ant-cssinjs-cache-path",Jr="_FILE_STYLE__",eo=!0;var to="_multi_value_";function no(e){return Or(qr(e),Er).replace(/\{%%%\:[^;];}/g,";")}var ro=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,d=(n.linters,""),h={};function m(t){var r=t.getName(s);if(!h[r]){var o=x(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];h[r]="@keyframes ".concat(t.getName(s)).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)d+="".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"!==p(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===p(e)&&e&&("_skip_check_"in e||to in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;dr[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(s)),d+="".concat(n,":").concat(r,";")}var f=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===p(r)&&null!=r&&r[to]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var g=!1,b=t.trim(),y=!1;(o||i)&&s?b.startsWith("@")?g=!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(L(n.slice(1))).join(" ")}));return i.join(",")}("&"===b?"":t,s,l):!o||s||"&"!==b&&""!==b||(b="",y=!0);var w=x(e(r,n,{root:y,injectHash:g,parentSelectors:[].concat(L(a),[b])}),2),S=w[0],k=w[1];h=v(v({},h),k),d+="".concat(b).concat(S)}}))}})),o?c&&(d="@layer ".concat(c.name," {").concat(d,"}"),c.dependencies&&(h["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):d="{".concat(d,"}"),[d,h]};function oo(e,t){return Tn("".concat(e.join("%")).concat(t))}function io(){return null}var ao="style";function so(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,l=e.order,u=void 0===l?0:l,f=s.useContext(Fn),p=f.autoClear,h=(f.mock,f.defaultCache),g=f.hashPriority,b=f.container,y=f.ssrInline,w=f.transformers,S=f.linters,k=f.cache,O=f.layer,E=n._tokenKey,$=[E];O&&$.push("layer"),$.push.apply($,L(r));var A=Qn,j=sr(ao,$,(function(){var e=$.join("|");if(function(e){return function(){if(!Kr&&(Kr={},C())){var e=document.createElement("div");e.className=Qr,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];Kr[n]=r}));var n,r=document.querySelector("style[".concat(Qr,"]"));r&&(eo=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Kr[e]}(e)){var n=function(e){var t=Kr[e],n=null;if(t&&C())if(eo)n=Jr;else{var r=document.querySelector("style[".concat(Hn,'="').concat(Kr[e],'"]'));r?n=r.innerHTML:delete Kr[e]}return[n,t]}(e),a=x(n,2),s=a[0],l=a[1];if(s)return[s,E,l,{},c,u]}var f=t(),d=x(ro(f,{hashId:o,hashPriority:g,layer:O?i:void 0,path:r.join("-"),transformers:w,linters:S}),2),p=d[0],h=d[1],m=no(p),v=oo($,m);return[m,E,v,h,c,u]}),(function(e,t){var n=x(e,3)[2];(t||p)&&Qn&&Q(n,{mark:Hn})}),(function(e){var t=x(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(A&&n!==Jr){var i={mark:Hn,prepend:!O&&"queue",attachTo:b,priority:u},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var c=[],l=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):l.push(e)})),c.forEach((function(e){J(no(o[e]),"_layer-".concat(e),v(v({},i),{},{prepend:!0}))}));var f=J(n,r,i);f[Bn]=k.instanceId,f.setAttribute(Ln,E),l.forEach((function(e){J(no(o[e]),"_effect-".concat(e),i)}))}})),M=x(j,3),P=M[0],R=M[1],z=M[2];return function(e){var t,n;return t=y&&!A&&h?s.createElement("style",d({},(m(n={},Ln,R),m(n,Hn,z),n),{dangerouslySetInnerHTML:{__html:P}})):s.createElement(io,null),s.createElement(s.Fragment,null,t,e)}}var co="cssVar";var lo;m(lo={},ao,(function(e,t,n){var r=x(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=er(o,i,a,d,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=er(no(s[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[l,a,f]})),m(lo,ur,(function(e,t,n){var r=x(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,er(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),m(lo,co,(function(e,t,n){var r=x(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;return o?[-999,i,er(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var uo=function(){function e(t,n){Te(this,e),m(this,"name",void 0),m(this,"style",void 0),m(this,"_keyframe",!0),this.name=t,this.style=n}return Ie(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 fo=uo;function po(e){return e.notSplit=!0,e}function ho(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 mo(e){return Math.min(1,Math.max(0,e))}function go(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vo(e){return e<=1?"".concat(100*Number(e),"%"):e}function bo(e){return 1===e.length?"0"+e:String(e)}function yo(e,t,n){e=ho(e,255),t=ho(t,255),n=ho(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+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:s}}function wo(e,t,n){return n<0&&(n+=1),n>1&&(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 xo(e,t,n){e=ho(e,255),t=ho(t,255),n=ho(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<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:c,v:a}}function So(e,t,n,r){var o=[bo(Math.round(e).toString(16)),bo(Math.round(t).toString(16)),bo(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ko(e){return Co(e)/255}function Co(e){return parseInt(e,16)}po(["borderTop","borderBottom"]),po(["borderTop"]),po(["borderBottom"]),po(["borderLeft","borderRight"]),po(["borderLeft"]),po(["borderRight"]);var Oo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Eo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(Oo[e])e=Oo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Mo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Mo.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mo.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Mo.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mo.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Mo.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mo.hex8.exec(e))?{r:Co(n[1]),g:Co(n[2]),b:Co(n[3]),a:ko(n[4]),format:t?"name":"hex8"}:(n=Mo.hex6.exec(e))?{r:Co(n[1]),g:Co(n[2]),b:Co(n[3]),format:t?"name":"hex"}:(n=Mo.hex4.exec(e))?{r:Co(n[1]+n[1]),g:Co(n[2]+n[2]),b:Co(n[3]+n[3]),a:ko(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=Mo.hex3.exec(e))&&{r:Co(n[1]+n[1]),g:Co(n[2]+n[2]),b:Co(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(Po(e.r)&&Po(e.g)&&Po(e.b)?(t=function(e,t,n){return{r:255*ho(e,255),g:255*ho(t,255),b:255*ho(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Po(e.h)&&Po(e.s)&&Po(e.v)?(r=vo(e.s),o=vo(e.v),t=function(e,t,n){e=6*ho(e,360),t=ho(t,100),n=ho(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,s,n][c],g:255*[s,n,n,a,i,i][c],b:255*[i,i,s,n,n,a][c]}}(e.h,r,o),a=!0,s="hsv"):Po(e.h)&&Po(e.s)&&Po(e.l)&&(r=vo(e.s),i=vo(e.l),t=function(e,t,n){var r,o,i;if(e=ho(e,360),t=ho(t,100),n=ho(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=wo(s,a,e+1/3),o=wo(s,a,e),i=wo(s,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=go(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var $o="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Ao="[\\s|\\(]+(".concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")\\s*\\)?"),jo="[\\s|\\(]+(".concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")\\s*\\)?"),Mo={CSS_UNIT:new RegExp($o),rgb:new RegExp("rgb"+Ao),rgba:new RegExp("rgba"+jo),hsl:new RegExp("hsl"+Ao),hsla:new RegExp("hsla"+jo),hsv:new RegExp("hsv"+Ao),hsva:new RegExp("hsva"+jo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Po(e){return Boolean(Mo.CSS_UNIT.exec(String(e)))}var Ro=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function zo(e){var t=xo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function To(e){var t=e.r,n=e.g,r=e.b;return"#".concat(So(t,n,r,!1))}function _o(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 Io(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),Number(r.toFixed(2)));var r}function No(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function Lo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Eo(e),o=5;o>0;o-=1){var i=zo(r),a=To(Eo({h:_o(i,o,!0),s:Io(i,o,!0),v:No(i,o,!0)}));n.push(a)}n.push(To(r));for(var s=1;s<=4;s+=1){var c=zo(r),l=To(Eo({h:_o(c,s),s:Io(c,s),v:No(c,s)}));n.push(l)}return"dark"===t.theme?Ro.map((function(e){var r,o,i,a=e.index,s=e.opacity;return To((r=Eo(t.backgroundColor||"#141414"),i=100*s/100,{r:((o=Eo(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 Ho=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ho.primary=Ho[5];var Bo=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Bo.primary=Bo[5];var Do=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Do.primary=Do[5];var Fo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Fo.primary=Fo[5];var Wo=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Wo.primary=Wo[5];var Xo=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Xo.primary=Xo[5];var Go=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Go.primary=Go[5];var qo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];qo.primary=qo[5];var Vo=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Vo.primary=Vo[5];var Yo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Yo.primary=Yo[5];var Uo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Uo.primary=Uo[5];var Zo=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Zo.primary=Zo[5];var Ko=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ko.primary=Ko[5];var Qo=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Qo.primary=Qo[5];var Jo=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Jo.primary=Jo[5];var ei=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];ei.primary=ei[5];var ti=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];ti.primary=ti[5];var ni=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];ni.primary=ni[5];var ri=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ri.primary=ri[5];var oi=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];oi.primary=oi[5];var ii=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];ii.primary=ii[5];var ai=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];ai.primary=ai[5];var si=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];si.primary=si[5];var ci=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];ci.primary=ci[5];var li=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];li.primary=li[5];var ui=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ui.primary=ui[5];const fi={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"},di=Object.assign(Object.assign({},fi),{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 pi=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=Eo(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=go(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=xo(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=xo(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=yo(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=yo(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),So(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=[bo(Math.round(e).toString(16)),bo(Math.round(t).toString(16)),bo(Math.round(n).toString(16)),bo((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*ho(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*ho(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="#"+So(this.r,this.g,this.b,!1),t=0,n=Object.entries(Oo);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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=mo(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=mo(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=mo(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=mo(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;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const hi=(e,t)=>new pi(e).setAlpha(t).toRgbString(),mi=(e,t)=>new pi(e).darken(t).toHexString(),gi=e=>{const t=Lo(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]}},vi=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:hi(r,.88),colorTextSecondary:hi(r,.65),colorTextTertiary:hi(r,.45),colorTextQuaternary:hi(r,.25),colorFill:hi(r,.15),colorFillSecondary:hi(r,.06),colorFillTertiary:hi(r,.04),colorFillQuaternary:hi(r,.02),colorBgLayout:mi(n,4),colorBgContainer:mi(n,0),colorBgElevated:mi(n,0),colorBgSpotlight:hi(r,.85),colorBgBlur:"transparent",colorBorder:mi(n,15),colorBorderSecondary:mi(n,6)}},bi=(yi=function(e){const t=Object.keys(fi).map((t=>{const n=Lo(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 pi("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:gi,generateNeutralColorPalettes:vi})),(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))},wi=Array.isArray(yi)?yi:[yi],qn.has(wi)||qn.set(wi,new Gn(wi)),qn.get(wi));var yi,wi;const xi={token:di,override:{override:di},hashed:!0},Si=c().createContext(xi);function ki(e){return e>=0&&e<=255}const Ci=function(e,t){const{r:n,g:r,b:o,a:i}=new pi(e).toRgb();if(i<1)return e;const{r:a,g:s,b:c}=new pi(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(ki(t)&&ki(i)&&ki(l))return new pi({r:t,g:i,b:l,a:Math.round(100*e)/100}).toRgbString()}return new pi({r:n,g:r,b:o,a:1}).toRgbString()};function Oi(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(di).forEach((e=>{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:Ci(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:Ci(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ci(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:Ci(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 pi("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new pi("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new pi("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 Ei=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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $i={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Ai={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},ji={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Mi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ei(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Oi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ei(n,["theme"]);let i=o;r&&(i=Mi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Pi(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=c().useContext(Si),i=`5.15.4-${t||""}`,a=n||bi,[s,l,u]=fr(a,[di,e],{salt:i,override:r,getComputedToken:Mi,formatToken:Oi,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$i,ignore:Ai,preserve:ji}});return[a,u,t?l:"",s,o]}const Ri=c().createContext(void 0),zi=100,Ti={Modal:zi,Drawer:zi,Popover:zi,Popconfirm:zi,Tooltip:zi,Tour:zi},_i={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const Ii=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function Ni(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 Li=(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 ${Jn(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Hi(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Bi(e,t){return e?t:{}}function Di(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"},Li(e,t,o)),{"&:before":{background:t}})]},Bi(!!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}}})),Bi(!!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}}})),Bi(!!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}})),Bi(!!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 Fi={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"]}},Wi={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"]}},Xi=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Gi(e,t){return((e,t,n)=>c().isValidElement(e)?c().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}function qi(){}const Vi=s.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:Yi}=Vi,Ui=s.createContext(null),Zi=e=>{let{children:t}=e;return s.createElement(Ui.Provider,{value:null},t)},Ki=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}},Qi=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"}}}),Ji=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i;return{[a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ea=e=>({animationDuration:e,animationFillMode:"both"}),ta=e=>({animationDuration:e,animationFillMode:"both"}),na=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({},ea(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},ta(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"}}},ra=new fo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),oa=new fo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ia=new fo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aa=new fo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),sa=new fo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ca=new fo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),la={zoom:{inKeyframes:ra,outKeyframes:oa},"zoom-big":{inKeyframes:ia,outKeyframes:aa},"zoom-big-fast":{inKeyframes:ia,outKeyframes:aa},"zoom-left":{inKeyframes:new fo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new fo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new fo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new fo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:sa,outKeyframes:ca},"zoom-down":{inKeyframes:new fo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new fo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},ua=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=la[t];return[na(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}}]},fa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function da(e,t){return fa.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 pa="undefined"!=typeof CSSINJS_STATISTIC;let ha=!0;function ma(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!pa)return Object.assign.apply(Object,[{}].concat(t));ha=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ha=!0,r}const ga={};function va(){}function ba(e,t,n){return t=He(t),Fe(e,Be()?Reflect.construct(t,n||[],He(e).constructor):t.apply(e,n))}const ya=Ie((function e(){Te(this,e)}));let wa=function(e){function t(e){var n;return Te(this,t),(n=ba(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Le(t,e),Ie(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}}])}(ya);const xa="CALC_UNIT";function Sa(e){return"number"==typeof e?`${e}${xa}`:e}let ka=function(e){function t(e){var n;return Te(this,t),(n=ba(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=Sa(e):"string"==typeof e&&(n.result=e),n}return Le(t,e),Ie(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} + ${Sa(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} - ${Sa(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(`${xa}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(ya);const Ca=(e,t,n)=>{var r;return"function"==typeof n?n(ma(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},Oa=(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 Ea(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[c,l,u,f,d]=Pi(),{getPrefixCls:p,iconPrefixCls:h,csp:m}=(0,s.useContext)(Vi),g=p(),v=d?"css":"js",b=(e=>{const t="css"===e?ka:wa;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;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Jn(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Jn(e))).join(",")})`}}}(v),x={theme:c,token:f,hashId:u,nonce:()=>null==m?void 0:m.nonce,clientOnly:r.clientOnly,order:r.order||-999};so(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Qi(f)}])),((e,t)=>{const[n,r]=Pi();so({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=so(Object.assign(Object.assign({},x),{path:[a,e,h]}),(()=>{if(!1===r.injectStyle)return[];const{token:a,flush:s}=(e=>{let t,n=e,r=va;return pa&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ha&&t.add(n),e[n])}),r=(e,n)=>{var r;ga[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=ga[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(f),c=Ca(i,l,n),p=`.${e}`,m=Oa(i,l,c,{deprecatedTokens:r.deprecatedTokens});d&&Object.keys(c).forEach((e=>{c[e]=`var(${tr(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("-")}`)(i,d.prefix))})`}));const v=ma(a,{componentCls:p,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:b,max:y,min:w},d?c:m),x=t(v,{hashId:u,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return s(i,m),[!1===r.resetStyle?null:Ji(v,e,o),x]}));return[S,u]}}const $a=(e,t,n,r)=>{const o=Ea(e,t,n,r),i=((e,t,n)=>{function r(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=null!=n?n:{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach((e=>{a[r(e)]=o[e]}));const l=o=>{let{rootCls:i,cssVar:c}=o;const[,l]=Pi();return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,c=e.scope,l=void 0===c?"":c,u=(0,s.useContext)(Fn),f=u.cache.instanceId,d=u.container,p=a._tokenKey,h=[].concat(L(e.path),[n,l,p]),m=sr(co,h,(function(){var e=t(),a=x(rr(e,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,oo(h,c),n]}),(function(e){var t=x(e,3)[2];Qn&&Q(t,{mark:Hn})}),(function(e){var t=x(e,3),r=t[1],o=t[2];if(r){var i=J(r,o,{mark:Hn,prepend:"queue",attachTo:d,priority:-999});i[Bn]=f,i.setAttribute(Ln,n)}}))}({path:[e],prefix:c.prefix,key:null==c?void 0:c.key,unitless:Object.assign(Object.assign({},$i),a),ignore:Ai,token:l,scope:i},(()=>{const o=Ca(e,l,t),i=Oa(e,l,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{i[r(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=Pi();return[r=>i&&n?c().createElement(c().Fragment,null,c().createElement(l,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}},Aa=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({},Ki(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:`${Jn(e.calc(l).div(2).equal())} ${Jn(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,8)}},[`${t}-content`]:{position:"relative"}}),da(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Di(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ja=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Hi({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ni(ma(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ma=function(e){const t=$a("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ma(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Aa(o),ua(e,"zoom-big-fast")]}),ja,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Pa=fa.map((e=>`${e}-inverse`));function Ra(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?fa.includes(e):[].concat(L(Pa),L(fa)).includes(e)}function za(e,t){const n=Ra(t),r=u()({[`${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 Ta=s.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:f,overlayInnerStyle:d,children:p,afterOpenChange:h,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:v=!0,title:b,overlay:y,builtinPlacements:w,arrowPointAtCenter:S=!1,autoAdjustOverflow:k=!0}=e,C=!!v,[,O]=Pi(),{getPopupContainer:E,getPrefixCls:$,direction:A}=s.useContext(Vi),j=(()=>{const e=()=>{};return e.deprecated=qi,e})(),M=s.useRef(null),P=()=>{var e;null===(e=M.current)||void 0===e||e.forceAlign()};s.useImperativeHandle(t,(()=>({forceAlign:P,forcePopupAlign:()=>{j.deprecated(!1,"forcePopupAlign","forceAlign"),P()}})));const[R,z]=(T=!1,_={value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible},N=(I=_||{}).defaultValue,L=I.value,H=I.onChange,B=I.postState,F=x(it((function(){return at(L)?L:at(N)?"function"==typeof N?N():N:T})),2),W=F[0],X=F[1],G=void 0!==L?L:W,q=B?B(G):G,V=Qe(H),Y=x(it([G]),2),U=Y[0],Z=Y[1],D((function(){var e=U[0];W!==e&&V(W,e)}),[U]),D((function(){at(L)||X(L)}),[L]),[q,Qe((function(e,t){X(e,t),Z([G],t)}))]);var T,_,I,N,L,H,B,F,W,X,G,q,V,Y,U,Z;const K=!b&&!y&&0!==b,Q=s.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),w||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,c={};return Object.keys(Fi).forEach((e=>{const l=r&&Wi[e]||Fi[e],u=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Xi.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=Hi({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,w,O]),J=s.useMemo((()=>0===b?b:y||b||""),[y,b]),ee=s.createElement(Zi,null,"function"==typeof J?J():J),{getPopupContainer:te,placement:ne="top",mouseEnterDelay:re=.1,mouseLeaveDelay:oe=.1,overlayStyle:ie,rootClassName:ae}=e,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ce=$("tooltip",o),le=$(),ue=e["data-popover-inject"];let fe=R;"open"in e||"visible"in e||!K||(fe=!1);const de=s.isValidElement(p)&&!function(e){return e&&c().isValidElement(e)&&e.type===c().Fragment}(p)?p:s.createElement("span",null,p),pe=de.props,he=pe.className&&"string"!=typeof pe.className?pe.className:u()(pe.className,i||`${ce}-open`),[me,ge,ve]=Ma(ce,!ue),be=za(ce,f),ye=be.arrowStyle,we=Object.assign(Object.assign({},d),be.overlayStyle),xe=u()(l,{[`${ce}-rtl`]:"rtl"===A},be.className,ae,ge,ve),[Se,ke]=function(e,t){const[,n]=Pi(),r=c().useContext(Ri);if(void 0!==t)return[t,t];let o=null!=r?r:0;return e in Ti?(o+=(r?0:n.zIndexPopupBase)+Ti[e],o=Math.min(o,n.zIndexPopupBase+1e3)):o+=_i[e],[void 0===r?t:o,o]}("Tooltip",se.zIndex),Ce=s.createElement(zn,Object.assign({},se,{zIndex:Se,showArrow:C,placement:ne,mouseEnterDelay:re,mouseLeaveDelay:oe,prefixCls:ce,overlayClassName:xe,overlayStyle:Object.assign(Object.assign({},ye),ie),getTooltipContainer:te||a||E,ref:M,builtinPlacements:Q,overlay:ee,visible:fe,onVisibleChange:t=>{var n,r;z(!K&&t),K||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=h?h:m,overlayInnerStyle:we,arrowContent:s.createElement("span",{className:`${ce}-arrow-content`}),motion:{motionName:Ii(le,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),fe?Gi(de,{className:he}):de);return me(s.createElement(Ri.Provider,{value:ke},Ce))}));Ta._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:c}=s.useContext(Vi),l=c("tooltip",t),[d,p,h]=Ma(l),m=za(l,i),g=m.arrowStyle,v=Object.assign(Object.assign({},a),m.overlayStyle),b=u()(p,h,l,`${l}-pure`,`${l}-placement-${r}`,n,m.className);return d(s.createElement("div",{className:b,style:g},s.createElement("div",{className:`${l}-arrow`}),s.createElement(f,Object.assign({},e,{className:p,prefixCls:l,overlayInnerStyle:v}),o)))};const _a=Ta,Ia=new fo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Na=new fo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),La=new fo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Ha=new fo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Ba=new fo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Da=new fo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Fa=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return ma(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%)"})},Wa=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}},Xa=$a("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=da(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({},Ki(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:Jn(f),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(f).div(2).equal(),boxShadow:`0 0 0 ${Jn(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:Jn(d),borderRadius:h(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Jn(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 ${Jn(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:Da,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:Ia,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:Na,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:La,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Ha,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Ba,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%)"}}})}})(Fa(e))),Wa),Ga=$a(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=da(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({},Ki(e)),{position:"absolute",top:r,padding:`0 ${Jn(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Jn(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:`${Jn(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"}})}})(Fa(e))),Wa);function qa(e){let t,{prefixCls:n,value:r,current:o,offset:i=0}=e;return i&&(t={position:"absolute",top:`${i}00%`,left:0}),s.createElement("span",{style:t,className:u()(`${n}-only-unit`,{current:o})},r)}function Va(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function Ya(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,c]=s.useState(o),[l,u]=s.useState(i),f=()=>{c(o),u(i)};let d,p;if(s.useEffect((()=>{const e=setTimeout((()=>{f()}),1e3);return()=>{clearTimeout(e)}}),[o]),a===o||Number.isNaN(o)||Number.isNaN(a))d=[s.createElement(qa,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{d=[];const t=o+10,n=[];for(let e=o;e<=t;e+=1)n.push(e);const r=n.findIndex((e=>e%10===a));d=n.map(((t,n)=>{const o=t%10;return s.createElement(qa,Object.assign({},e,{key:t,value:o,offset:n-r,current:n===r}))})),p={transform:`translateY(${-Va(a,o,l<i?1:-1)}00%)`}}return s.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:f},d)}const Ua=s.forwardRef(((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:c,show:l,component:f="sup",children: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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=s.useContext(Vi),m=h("scroll-number",n),g=Object.assign(Object.assign({},p),{"data-show":l,style:a,className:u()(m,o,i),title:c});let v=r;if(r&&Number(r)%1==0){const e=String(r).split("");v=s.createElement("bdi",null,e.map(((t,n)=>s.createElement(Ya,{prefixCls:m,count:Number(r),value:t,key:e.length-n}))))}return a&&a.borderColor&&(g.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),d?Gi(d,(e=>({className:u()(`${m}-custom-component`,null==e?void 0:e.className,i)}))):s.createElement(f,Object.assign({},g,{ref:t}),v)})),Za=Ua;const Ka=(e,t)=>{var n,r,o,i,a;const{prefixCls:c,scrollNumberPrefixCls:l,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}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:A,direction:j,badge:M}=s.useContext(Vi),P=A("badge",c),[R,z,T]=Xa(P),_=m>g?`${g}+`:m,I="0"===_||0===_,N=(null!=d||null!=h)&&(null===m||I&&!E),L=v&&!I,H=L?"":_,B=(0,s.useMemo)((()=>(null==H||""===H||I&&!E)&&!L),[H,I,E,L]),D=(0,s.useRef)(m);B||(D.current=m);const F=D.current,W=(0,s.useRef)(H);B||(W.current=H);const X=W.current,G=(0,s.useRef)(L);B||(G.current=L);const q=(0,s.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]),V=null!=y?y:"string"==typeof F||"number"==typeof F?F:void 0,Y=B||!p?null:s.createElement("span",{className:`${P}-status-text`},p),U=F&&"object"==typeof F?Gi(F,(e=>({style:Object.assign(Object.assign({},q),e.style)}))):void 0,Z=Ra(h,!1),K=u()(null==C?void 0:C.indicator,null===(n=null==M?void 0:M.classNames)||void 0===n?void 0:n.indicator,{[`${P}-status-dot`]:N,[`${P}-status-${d}`]:!!d,[`${P}-color-${h}`]:Z}),Q={};h&&!Z&&(Q.color=h,Q.background=h);const J=u()(P,{[`${P}-status`]:N,[`${P}-not-a-wrapper`]:!f,[`${P}-rtl`]:"rtl"===j},S,k,null==M?void 0:M.className,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.root,null==C?void 0:C.root,z,T);if(!f&&N){const e=q.color;return R(s.createElement("span",Object.assign({},$,{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(o=null==M?void 0:M.styles)||void 0===o?void 0:o.root),q)}),s.createElement("span",{className:K,style: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),Q)}),p&&s.createElement("span",{style:{color:e},className:`${P}-status-text`},p)))}return R(s.createElement("span",Object.assign({ref:t},$,{className:J,style:Object.assign(Object.assign({},null===(a=null==M?void 0:M.styles)||void 0===a?void 0:a.root),null==O?void 0:O.root)}),f,s.createElement(tn,{visible:!B,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t,ref:n}=e;var r,o;const i=A("scroll-number",l),a=G.current,c=u()(null==C?void 0:C.indicator,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.indicator,{[`${P}-dot`]:a,[`${P}-count`]:!a,[`${P}-count-sm`]:"small"===b,[`${P}-multiple-words`]:!a&&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===(o=null==M?void 0:M.styles)||void 0===o?void 0:o.indicator),q);return h&&!Z&&(f=f||{},f.background=h),s.createElement(Za,{prefixCls:i,show:!B,motionClassName:t,className:c,count:X,title:V,style:f,key:"scrollNumber",ref:n},U)})),Y))},Qa=s.forwardRef(Ka);Qa.Ribbon=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:c="end",rootClassName:l}=e,{getPrefixCls:f,direction:d}=s.useContext(Vi),p=f("ribbon",n),h=`${p}-wrapper`,[m,g,v]=Ga(p,h),b=Ra(o,!1),y=u()(p,`${p}-placement-${c}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${o}`]:b},t),w={},x={};return o&&!b&&(w.background=o,x.color=o),m(s.createElement("div",{className:u()(h,l,g,v)},i,s.createElement("div",{className:u()(y,g),style:Object.assign(Object.assign({},w),r)},s.createElement("span",{className:`${p}-text`},a),s.createElement("div",{className:`${p}-corner`,style:x}))))};const Ja=Qa,es=["xxl","xl","lg","md","sm","xs"];const ts=e=>{const[,,,,t]=Pi();return t?`${e}-css-var`:""},ns=s.createContext(void 0),rs=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,s.useRef)({}),n=function(){const[,e]=s.useReducer((e=>e+1),0);return e}(),r=function(){const[,e]=Pi(),t=(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(es).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<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return c().useMemo((()=>{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],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}();return F((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current},os=s.createContext({}),is=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({},Ki(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Jn(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"}})}},as=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}}}},ss=$a("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ma(e,{avatarBg:n,avatarColor:t});return[is(r),as(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 cs=(e,t)=>{const[n,r]=s.useState(1),[o,i]=s.useState(!1),[a,l]=s.useState(!0),f=s.useRef(null),d=s.useRef(null),p=T(t,f),{getPrefixCls:h,avatar:m}=s.useContext(Vi),g=s.useContext(os),v=()=>{if(!d.current||!f.current)return;const t=d.current.offsetWidth,n=f.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&r(n-2*o<t?(n-2*o)/t:1)}};s.useEffect((()=>{i(!0)}),[]),s.useEffect((()=>{l(!0),r(1)}),[e.src]),s.useEffect(v,[e.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}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=(e=>{const t=c().useContext(ns);return c().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])})((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=rs(R),_=s.useMemo((()=>{if("object"!=typeof P)return{};const e=es.find((e=>z[e])),t=P[e];return t?{width:t,height:t,fontSize:t&&(k||A)?t/2:18}:{}}),[z,P]),I=h("avatar",b),N=ts(I),[L,H,B]=ss(I,N),D=u()({[`${I}-lg`]:"large"===P,[`${I}-sm`]:"small"===P}),F=s.isValidElement(x),W=y||(null==g?void 0:g.shape)||"circle",X=u()(I,D,null==m?void 0:m.className,`${I}-${W}`,{[`${I}-image`]:F||x&&a,[`${I}-icon`]:!!k},B,N,C,O,H),G="number"==typeof P?{width:P,height:P,fontSize:k?P/2:18}:{};let q;if("string"==typeof x&&a)q=s.createElement("img",{src:x,draggable:$,srcSet:S,onError:()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&l(!1)},alt:E,crossOrigin:j});else if(F)q=x;else if(k)q=k;else if(o||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};q=s.createElement(Ue,{onResize:v},s.createElement("span",{className:`${I}-string`,ref:d,style:Object.assign({},t)},A))}else q=s.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:d},A);return delete M.onError,delete M.gap,L(s.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),_),null==m?void 0:m.style),M.style),className:X,ref:p}),q))},ls=s.forwardRef(cs),us=e=>e?"function"==typeof e?e():e:null,fs=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({},Ki(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}})},Di(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},ds=e=>{const{componentCls:t}=e;return{[t]:fa.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ps=$a("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=ma(e,{popoverBg:t,popoverColor:n});return[fs(r),ds(r),ua(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},Ni(e)),Hi({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 hs=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:c,children:l}=e;return s.createElement("div",{className:u()(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(f,Object.assign({},e,{className:t,prefixCls:n}),l||((e,t,n)=>t||n?s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${e}-title`},us(t)),s.createElement("div",{className:`${e}-inner-content`},us(n))):null)(n,a,c)))};const ms=e=>{let{title:t,content:n,prefixCls:r}=e;return s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${r}-title`},us(t)),s.createElement("div",{className:`${r}-inner-content`},us(n)))},gs=s.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:c="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:f=.1,overlayStyle: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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=s.useContext(Vi),m=h("popover",n),[g,v,b]=ps(m),y=h(),w=u()(i,v,b);return g(s.createElement(_a,Object.assign({placement:a,trigger:c,mouseEnterDelay:l,mouseLeaveDelay:f,overlayStyle:d},p,{prefixCls:m,overlayClassName:w,ref:t,overlay:r||o?s.createElement(ms,{prefixCls:m,title:r,content:o}):null,transitionName:Ii(y,"zoom-big",p.transitionName),"data-popover-inject":!0})))}));gs._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className"]),{getPrefixCls:o}=s.useContext(Vi),i=o("popover",t),[a,c,l]=ps(i);return a(s.createElement(hs,Object.assign({},r,{prefixCls:i,hashId:c,className:u()(n,l)})))};const vs=gs,bs=e=>{const{size:t,shape:n}=s.useContext(os),r=s.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return s.createElement(os.Provider,{value:r},e.children)},ys=ls;ys.Group=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Vi),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:c,maxStyle:l,size:f,shape:d,maxPopoverPlacement:p="top",maxPopoverTrigger:h="hover",children:m}=e,g=t("avatar",r),v=`${g}-group`,b=ts(g),[y,w,x]=ss(g,b),S=u()(v,{[`${v}-rtl`]:"rtl"===n},x,b,o,i,w),k=se(m).map(((e,t)=>Gi(e,{key:`avatar-key-${t}`}))),C=k.length;if(c&&c<C){const e=k.slice(0,c),t=k.slice(c,C);return e.push(s.createElement(vs,{key:"avatar-popover-key",content:t,trigger:h,placement:p,overlayClassName:`${v}-popover`,destroyTooltipOnHide:!0},s.createElement(ls,{style:l},"+"+(C-c)))),y(s.createElement(bs,{shape:d,size:f},s.createElement("div",{className:S,style:a},e)))}return y(s.createElement(bs,{shape:d,size:f},s.createElement("div",{className:S,style:a},k)))};const ws=ys,xs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},Ss=(0,s.createContext)({});function ks(e){return"object"===p(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===p(e.icon)||"function"==typeof e.icon)}function Cs(){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 Os(e,t,n){return n?c().createElement(e.tag,v(v({key:t},Cs(e.attrs)),n),(e.children||[]).map((function(n,r){return Os(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c().createElement(e.tag,v({key:t},Cs(e.attrs)),(e.children||[]).map((function(n,r){return Os(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Es(e){return Lo(e)[0]}function $s(e){return e?Array.isArray(e)?e:[e]:[]}var As=["icon","className","onClick","style","primaryColor","secondaryColor"],js={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ms=function(e){var t,n,r,o,i,a,c,l=e.icon,u=e.className,f=e.onClick,d=e.style,p=e.primaryColor,h=e.secondaryColor,m=b(e,As),g=s.useRef(),y=js;if(p&&(y={primaryColor:p,secondaryColor:h||Es(p)}),t=g,n=(0,s.useContext)(Ss),r=n.csp,o=n.prefixCls,i="\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&&(i=i.replace(/anticon/g,o)),(0,s.useEffect)((function(){var e=Ke(t.current);J(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=ks(l),c="icon should be icon definiton, but got ".concat(l),P(a,"[@ant-design/icons] ".concat(c)),!ks(l))return null;var w=l;return w&&"function"==typeof w.icon&&(w=v(v({},w),{},{icon:w.icon(y.primaryColor,y.secondaryColor)})),Os(w.icon,"svg-".concat(w.name),v(v({className:u,onClick:f,style:d,"data-icon":w.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:g}))};Ms.displayName="IconReact",Ms.getTwoToneColors=function(){return v({},js)},Ms.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;js.primaryColor=t,js.secondaryColor=n||Es(t),js.calculated=!!n};const Ps=Ms;function Rs(e){var t=x($s(e),2),n=t[0],r=t[1];return Ps.setTwoToneColors({primaryColor:n,secondaryColor:r})}var zs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rs(Vo.primary);var Ts=s.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,c=e.onClick,l=e.twoToneColor,f=b(e,zs),p=s.useContext(Ss),h=p.prefixCls,g=void 0===h?"anticon":h,v=p.rootClassName,y=u()(v,g,m(m({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!o||"loading"===r.name),n),w=a;void 0===w&&c&&(w=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,k=x($s(l),2),C=k[0],O=k[1];return s.createElement("span",d({role:"img","aria-label":r.name},f,{ref:t,tabIndex:w,onClick:c,className:y}),s.createElement(Ps,{icon:r,primaryColor:C,secondaryColor:O,style:S}))}));Ts.displayName="AntdIcon",Ts.getTwoToneColor=function(){var e=Ps.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ts.setTwoToneColor=Rs;const _s=Ts;var Is=function(e,t){return s.createElement(_s,d({},e,{ref:t,icon:xs}))};const Ns=s.forwardRef(Is);var Ls=n(2833),Hs=n.n(Ls);const Bs=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,T=m=p=0,I=0,N=0,L=0,H=0,B=c.length,D=B-1,F="",W="",X="",G="";I<B;){if(h=c.charCodeAt(I),I===D&&0!==k+O+C+S&&(0!==k&&(h=47===k?10:47),O=C=S=0,B++,D++),0===k+O+C+S){if(I===D&&(0<N&&(F=F.replace(f,"")),0<F.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:F+=c.charAt(I)}h=59}switch(h){case 123:for(p=(F=F.trim()).charCodeAt(0),m=1,H=++I;I<B;){switch(h=c.charCodeAt(I)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(I+1)){case 42:case 47:e:{for(T=I+1;T<D;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&I+2!==T){I=T+1;break e}break;case 10:if(47===h){I=T+1;break e}}I=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;I++<D&&c.charCodeAt(I)!==h;);}if(0===m)break;I++}if(m=c.substring(H,I),0===p&&(p=(F=F.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<N&&(F=F.replace(f,"")),h=F.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=P}if(H=(m=t(r,N,m,h,d+1)).length,0<z&&(w=s(3,m,N=n(P,F,L),r,A,$,H,h,d,l),F=N.join(""),void 0!==w&&0===(H=(m=w.trim()).length)&&(h=0,m="")),0<H)switch(h){case 115:F=F.replace(x,a);case 100:case 109:case 45:m=F+"{"+m+"}";break;case 107:m=(F=F.replace(v,"$1 $2"))+"{"+m+"}",m=1===M||2===M&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=F+m,112===l&&(W+=m,m="")}else m=""}else m=t(r,n(r,F,L),m,l,d+1);X+=m,m=L=N=T=p=0,F="",h=c.charCodeAt(++I);break;case 125:case 59:if(1<(H=(F=(0<N?F.replace(f,""):F).trim()).length))switch(0===T&&(p=F.charCodeAt(0),45===p||96<p&&123>p)&&(H=(F=F.replace(" ",":")).length),0<z&&void 0!==(w=s(1,F,r,e,A,$,W.length,l,d,l))&&0===(H=(F=w.trim()).length)&&(F="\0\0"),p=F.charCodeAt(0),h=F.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){G+=F+c.charAt(I);break}default:58!==F.charCodeAt(H-1)&&(W+=o(F,p,h,F.charCodeAt(2)))}L=N=T=p=0,F="",h=c.charCodeAt(++I)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==l&&0<F.length&&(N=1,F+="\0"),0<z*_&&s(0,F,r,e,A,$,W.length,l,d,l),$=1,A++;break;case 59:case 125:if(0===k+O+C+S){$++;break}default:switch($++,g=c.charAt(I),h){case 9:case 32:if(0===O+S+k)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+k+S&&(N=L=1,g="\f"+g);break;case 108:if(0===O+k+S+j&&0<T)switch(I-T){case 2:112===E&&58===c.charCodeAt(I-3)&&(j=E);case 8:111===R&&(j=R)}break;case 58:0===O+k+S&&(T=I);break;case 44:0===k+C+O+S&&(N=1,g+="\r");break;case 34:case 39:0===k&&(O=O===h?0:0===O?h:O);break;case 91:0===O+k+C&&S++;break;case 93:0===O+k+C&&S--;break;case 41:0===O+k+S&&C--;break;case 40:0===O+k+S&&(0===p&&(2*E+3*R==533||(p=1)),C++);break;case 64:0===k+C+O+S+T+m&&(m=1);break;case 42:case 47:if(!(0<O+S+C))switch(k){case 0:switch(2*h+3*c.charCodeAt(I+1)){case 235:k=47;break;case 220:H=I,k=42}break;case 42:47===h&&42===E&&H+2!==I&&(33===c.charCodeAt(H+2)&&(W+=c.substring(H,I+1)),g="",k=0)}}0===k&&(F+=g)}R=E,E=h,I++}if(0<(H=W.length)){if(N=r,0<z&&void 0!==(w=s(2,W,N,e,A,$,H,l,d,l))&&0===(W=w).length)return G+W+X;if(W=N.join(",")+"{"+W+"}",0!=M*j){switch(2!==M||i(W,2)||(j=0),j){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}j=0}}return G+W+X}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(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&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===M||2===M&&i(c,1)?"-webkit-"+c+c:c}if(0===M||2===M&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,c,u){for(var f,d=0,p=t;d<z;++d)switch(f=R[d].call(l,e,p,n,r,o,i,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?M=1:(M=2,T=e):M=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<z){var o=s(-1,n,r,r,A,$,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<z&&void 0!==(o=s(-2,i,r,r,A,$,i.length,0,0,0))&&(i=o),j=0,$=A=1,i}var u=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,$=1,A=1,j=0,M=1,P=[],R=[],z=0,T=null,_=0;return l.use=function e(t){switch(t){case void 0:case null:z=R.length=0;break;default:if("function"==typeof t)R[z++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else _=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},Ds={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};function Fs(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ws=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xs=Fs((function(e){return Ws.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Gs=n(4146),qs=n.n(Gs);function Vs(){return(Vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ys=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Us=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,R.typeOf)(e)},Zs=Object.freeze([]),Ks=Object.freeze({});function Qs(e){return"function"==typeof e}function Js(e){return e.displayName||e.name||"Component"}function ec(e){return e&&"string"==typeof e.styledComponentId}var tc="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",nc="undefined"!=typeof window&&"HTMLElement"in window,rc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function oc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var ic=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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&oc(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),ac=new Map,sc=new Map,cc=1,lc=function(e){if(ac.has(e))return ac.get(e);for(;sc.has(cc);)cc++;var t=cc++;return ac.set(e,t),sc.set(t,e),t},uc=function(e){return sc.get(e)},fc=function(e,t){t>=cc&&(cc=t+1),ac.set(e,t),sc.set(t,e)},dc="style["+tc+'][data-styled-version="5.3.5"]',pc=new RegExp("^"+tc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),hc=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},mc=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(pc);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(fc(l,c),hc(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},gc=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},vc=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(tc))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(tc,"active"),r.setAttribute("data-styled-version","5.3.5");var a=gc();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},bc=function(){function e(e){var t=this.element=vc(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<r;n++){var o=t[n];if(o.ownerNode===e)return o}oc(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),yc=function(){function e(e){var t=this.element=vc(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),wc=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),xc=nc,Sc={isServer:!nc,useCSSOMInjection:!rc},kc=function(){function e(e,t,n){void 0===e&&(e=Ks),void 0===t&&(t={}),this.options=Vs({},Sc,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&nc&&xc&&(xc=!1,function(e){for(var t=document.querySelectorAll(dc),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(tc)&&(mc(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return lc(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Vs({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new wc(o):r?new bc(o):new yc(o),new ic(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(lc(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(lc(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(lc(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=uc(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=tc+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Cc=/(a)(d)/gi,Oc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ec(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Oc(t%52)+n;return(Oc(t%52)+n).replace(Cc,"$1-$2")}var $c=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ac=function(e){return $c(5381,e)};function jc(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Qs(n)&&!ec(n))return!1}return!0}var Mc=Ac("5.3.5"),Pc=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&jc(e),this.componentId=t,this.baseHash=$c(Mc,t),this.baseStyle=n,kc.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Yc(this.rules,e,t,n).join(""),a=Ec($c(this.baseHash,i)>>>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=$c(this.baseHash,n.hash),u="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)u+=d;else if(d){var p=Yc(d,e,t,n),h=Array.isArray(p)?p.join(""):p;l=$c(l,h+f),u+=h}}if(u){var m=Ec(l>>>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}(),Rc=/^\s*\/\/.*$/gm,zc=[":","[",".","#"];function Tc(e){var t,n,r,o,i=void 0===e?Ks:e,a=i.options,s=void 0===a?Ks:a,c=i.plugins,l=void 0===c?Zs:c,u=new Bs(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!==zc.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Rc,""),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||oc(15),$c(e,t.name)}),5381).toString():"",h}var _c=c().createContext(),Ic=(_c.Consumer,c().createContext()),Nc=(Ic.Consumer,new kc),Lc=Tc();function Hc(){return(0,s.useContext)(_c)||Nc}function Bc(e){var t=(0,s.useState)(e.stylisPlugins),n=t[0],r=t[1],o=Hc(),i=(0,s.useMemo)((function(){var t=o;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]),a=(0,s.useMemo)((function(){return Tc({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,s.useEffect)((function(){Hs()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),c().createElement(_c.Provider,{value:i},c().createElement(Ic.Provider,{value:a},e.children))}var Dc=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Lc);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 oc(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=Lc),this.name+e.hash},e}(),Fc=/([A-Z])/,Wc=/([A-Z])/g,Xc=/^ms-/,Gc=function(e){return"-"+e.toLowerCase()};function qc(e){return Fc.test(e)?e.replace(Wc,Gc).replace(Xc,"-ms-"):e}var Vc=function(e){return null==e||!1===e||""===e};function Yc(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Yc(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Vc(e)?"":ec(e)?"."+e.styledComponentId:Qs(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Yc(e(t),t,n,r):e instanceof Dc?n?(e.inject(n,r),e.getName(r)):e:Us(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Vc(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Qs(t[a])?i.push(qc(a)+":",t[a],";"):Us(t[a])?i.push.apply(i,e(t[a],a)):i.push(qc(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Ds?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var Uc=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Zc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Qs(e)||Us(e)?Uc(Yc(Ys(Zs,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Uc(Yc(Ys(e,n)))}new Set;var Kc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qc=/(^-|-$)/g;function Jc(e){return e.replace(Kc,"-").replace(Qc,"")}function el(e){return"string"==typeof e&&!0}var tl=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},nl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function rl(e,t,n){var r=e[n];tl(t)&&tl(r)?ol(r,t):e[n]=t}function ol(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(tl(a))for(var s in a)nl(s)&&rl(e,a[s],s)}return e}var il=c().createContext();il.Consumer;var al={};function sl(e,t,n){var r=ec(e),o=!el(e),i=t.attrs,a=void 0===i?Zs:i,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Jc(e);al[n]=(al[n]||0)+1;var r=n+"-"+function(e){return Ec(Ac(e)>>>0)}("5.3.5"+n+al[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,f=t.displayName,d=void 0===f?function(e){return el(e)?"styled."+e:"Styled("+Js(e)+")"}(e):f,p=t.displayName&&t.componentId?Jc(t.displayName)+"-"+t.componentId:t.componentId||u,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;r&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var g,v=new Pc(n,p,r?e.componentStyle:void 0),b=v.isStatic&&0===a.length,y=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,f=e.target,d=function(e,t,n){void 0===e&&(e=Ks);var r=Vs({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Qs(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=Ks),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,s.useContext)(il),a)||Ks,t,o),p=d[0],h=d[1],m=function(e,t,n){var r=Hc(),o=(0,s.useContext)(Ic)||Lc;return t?e.generateAndInjectStyles(Ks,r,o):e.generateAndInjectStyles(n,r,o)}(i,r,p),g=n,v=h.$as||t.$as||h.as||t.as||f,b=el(v),y=h!==t?Vs({},t,{},h):t,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(l?l(x,Xs,v):!b||Xs(x))&&(w[x]=y[x]));return t.style&&h.style!==t.style&&(w.style=Vs({},t.style,{},h.style)),w.className=Array.prototype.concat(c,u,m!==u?m:null,t.className,h.className).filter(Boolean).join(" "),w.ref=g,(0,s.createElement)(v,w)}(g,e,t,b)};return y.displayName=d,(g=c().forwardRef(y)).attrs=h,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=m,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Zs,g.styledComponentId=p,g.target=r?e.target:e,g.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(el(e)?e:Jc(Js(e)));return sl(e,Vs({},o,{attrs:h,componentId:i}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ol({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},o&&qs()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var cl,ll=function(e){return function e(t,n,r){if(void 0===r&&(r=Ks),!(0,R.isValidElementType)(n))return oc(1,String(n));var o=function(){return t(n,r,Zc.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Vs({},r,{},o))},o.attrs=function(o){return e(t,n,Vs({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(sl,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){ll[e]=ll(e)})),(cl=function(e,t){this.rules=e,this.componentId=t,this.isStatic=jc(e),kc.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var o=r(Yc(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},cl.removeStyles=function(e,t){t.clearRules(this.componentId+e)},cl.renderStyles=function(e,t,n,r){e>2&&kc.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=gc();return"<style "+[n&&'nonce="'+n+'"',tc+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?oc(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return oc(2);var n=((t={})[tc]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=gc();return r&&(n.nonce=r),[c().createElement("style",Vs({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new kc({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?oc(2):c().createElement(Bc,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return oc(3)}}();const ul=ll.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,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<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=d(n,v);try{l(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"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<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],f=t[l];if(!1===(o=n?n.call(r,u,f,l):void 0)||void 0===o&&u!==f)return!1}return!0}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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.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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.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=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.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)?b(e,t):void 0}}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const x=window.ReactDOM;var S=n.n(x);function k(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var C={},O=[];function E(e,t){}function $(e,t){}function A(e,t,n){t||C[n]||(e(!1,n),C[n]=!0)}function M(e,t){A(E,e,t)}M.preMessage=function(e){O.push(e)},M.resetWarned=function(){C={}},M.noteOnce=function(e,t){A($,e,t)};const j=M;var P=n(4363),R=function(e,t){"function"==typeof e?e(t):"object"===d(e)&&e&&"current"in e&&(e.current=t)},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){R(t,e)}))}},T=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return o=n,"value"in(i=e.useRef({})).current&&!function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}(i.current.condition,o)||(i.current.value=z.apply(void 0,n),i.current.condition=o),i.current.value;var o,i},_=function(e){var t,n,r=(0,P.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===P.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===P.ForwardRef)};Number(e.version.split(".")[0]);const I=e.createContext(null);function N(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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 L=k()?e.useLayoutEffect:e.useEffect,H=function(t,n){var r=e.useRef(!0);L((function(){return t(r.current)}),n),L((function(){return r.current=!1,function(){r.current=!0}}),[])},B=function(e,t){H((function(t){if(!t)return e()}),t)};const D=H;var F=[],W="data-rc-order",X="data-rc-priority",G=new Map;function q(){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 V(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Y(e){return Array.from((G.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function U(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=V(t),u=l.firstChild;if(r){if(s){var f=(t.styles||Y(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 Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=V(t);return(t.styles||Y(n)).find((function(n){return n.getAttribute(q(t))===e}))}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Z(e,t);n&&V(t).removeChild(n)}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=V(n),o=Y(r),i=g(g({},n),{},{styles:o});!function(e,t){var n=G.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=U("",t),o=r.parentNode;G.set(e,o),e.removeChild(r)}}(r,i);var a,s,c,l=Z(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=U(e,i);return u.setAttribute(q(i),t),u}var J="rc-util-locker-".concat(Date.now()),ee=0;function te(t){var n=!!t,r=w(e.useState((function(){return ee+=1,"".concat(J,"_").concat(ee)})),1)[0];D((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,";"):"";Q("\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),K(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;Q("\nhtml body {\n  overflow-y: hidden;\n  ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else K(r);var o;return function(){K(r)}}),[n,r])}var ne=!1,re=function(e){return!1!==e&&(k()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},oe=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 re(i)})),2),h=p[0],m=p[1];e.useEffect((function(){var e=re(i);m(null!=e?e:null)}));var g=function(t){var n=w(e.useState((function(){return k()?document.createElement("div"):null})),1)[0],r=e.useRef(!1),o=e.useContext(I),i=w(e.useState(F),2),a=i[0],s=i[1],c=o||(r.current?void 0:function(e){s((function(t){return[e].concat(N(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 D((function(){return t?o?o(l):l():u(),u}),[t]),D((function(){a.length&&(a.forEach((function(e){return e()})),s(F))}),[a]),[n,c]}(d&&!h),v=w(g,2),b=v[0],y=v[1],S=null!=h?h:b;te(o&&r&&k()&&(S===b||S===document.body));var C=null;c&&_(c)&&n&&(C=c.ref);var O=T(C,n);if(!d||!k()||void 0===h)return null;var E=!1===S||ne,$=c;return n&&($=e.cloneElement(c,{ref:O})),e.createElement(I.Provider,{value:y},E?$:(0,x.createPortal)($,S))}));const ie=oe;function ae(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(ae(e)):(0,P.isFragment)(e)&&e.props?r=r.concat(ae(e.props.children,n)):r.push(e))})),r}function se(e){return e instanceof HTMLElement||e instanceof SVGElement}function ce(e){var n,r=function(e){return e&&"object"===d(e)&&se(e.nativeElement)?e.nativeElement:se(e)?e:null}(e);return r||(e instanceof t().Component?null===(n=S().findDOMNode)||void 0===n?void 0:n.call(S(),e):null)}var le=e.createContext(null),ue=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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),fe="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,de=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),pe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(de):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},he=["top","right","bottom","left","width","height","size","weight"],me="undefined"!=typeof MutationObserver,ge=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){pe(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){fe&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),me?(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(){fe&&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;he.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}(),ve=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},be=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||de},ye=Ce(0,0,0,0);function we(e){return parseFloat(e)||0}function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+we(e["border-"+n+"-width"])}),0)}var Se="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof be(e).SVGGraphicsElement}:function(e){return e instanceof be(e).SVGElement&&"function"==typeof e.getBBox};function ke(e){return fe?Se(e)?function(e){var t=e.getBBox();return Ce(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ye;var r=be(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=we(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=we(r.width),c=we(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=xe(r,"left","right")+i),Math.round(c+a)!==n&&(c-=xe(r,"top","bottom")+a)),!function(e){return e===be(e).document.documentElement}(e)){var l=Math.round(s+i)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return Ce(o.left,o.top,s,c)}(e):ye}function Ce(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Oe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ce(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ke(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ee=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return ve(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);ve(this,{target:e,contentRect:n})},$e=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ue,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof be(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Oe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof be(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ee(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ae="undefined"!=typeof WeakMap?new WeakMap:new ue,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=ge.getInstance(),r=new $e(t,n,this);Ae.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Me.prototype[e]=function(){var t;return(t=Ae.get(this))[e].apply(t,arguments)}}));const je=void 0!==de.ResizeObserver?de.ResizeObserver:Me;var Pe=new Map,Re=new je((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Pe.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 Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function _e(e,t,n){return t&&Te(e.prototype,t),n&&Te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ie(e,t){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ie(e,t)}function Ne(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&&Ie(e,t)}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(He=function(){return!!e})()}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function De(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Be(e)}function Fe(e){var t=He();return function(){var n,r=Le(e);if(t){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}var We=function(e){Ne(n,e);var t=Fe(n);function n(){return ze(this,n),t.apply(this,arguments)}return _e(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);function Xe(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(le),c="function"==typeof r,l=c?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!c&&e.isValidElement(l)&&_(l),p=f?l.ref:null,h=T(p,i),m=function(){var e;return ce(i.current)||(i.current&&"object"===d(i.current)?ce(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||ce(a.current)};e.useImperativeHandle(n,(function(){return m()}));var v=e.useRef(t);v.current=t;var b=e.useCallback((function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,l=e.offsetHeight,f=Math.floor(i),d=Math.floor(a);if(u.current.width!==f||u.current.height!==d||u.current.offsetWidth!==c||u.current.offsetHeight!==l){var p={width:f,height:d,offsetWidth:c,offsetHeight:l};u.current=p;var h=c===Math.round(i)?i:c,m=l===Math.round(a)?a:l,b=g(g({},p),{},{offsetWidth:h,offsetHeight:m});null==s||s(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return e.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=b,Pe.has(e)||(Pe.set(e,new Set),Re.observe(e)),Pe.get(e).add(t)),function(){return function(e,t){Pe.has(e)&&(Pe.get(e).delete(t),Pe.get(e).size||(Re.unobserve(e),Pe.delete(e)))}(n,b)}}),[i.current,o]),e.createElement(We,{ref:a},f?e.cloneElement(l,{ref:h}):l)}const Ge=e.forwardRef(Xe);function qe(t,n){var r=t.children;return("function"==typeof r?[r]:ae(r)).map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(Ge,f({},t,{key:i,ref:0===o?n:void 0}),r)}))}var Ve=e.forwardRef(qe);Ve.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(le),s=e.useCallback((function(e,t,n){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return e.createElement(le.Provider,{value:s},n)};const Ye=Ve;function Ue(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ze(e){return function(e){return Ue(e)instanceof ShadowRoot}(e)?Ue(e):null}function Ke(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}var Qe=0,Je=g({},e).useId;const et=Je?function(e){var t=Je();return e||t}:function(t){var n=w(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect((function(){var e=Qe;Qe+=1,o("rc_unique_".concat(e))}),[]),t||r};var tt=e.createContext({}),nt=function(e){Ne(n,e);var t=Fe(n);function n(){return ze(this,n),t.apply(this,arguments)}return _e(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);const rt=nt;function ot(t){var n=e.useRef(!1),r=w(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function it(e){return void 0!==e}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var at="none",st="appear",ct="enter",lt="leave",ut="none",ft="prepare",dt="start",pt="active",ht="end",mt="prepared";function gt(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 vt,bt,yt,wt=(vt=k(),bt="undefined"!=typeof window?window:{},yt={animationend:gt("Animation","AnimationEnd"),transitionend:gt("Transition","TransitionEnd")},vt&&("AnimationEvent"in bt||delete yt.animationend.animation,"TransitionEvent"in bt||delete yt.transitionend.transition),yt),xt={};if(k()){var St=document.createElement("div");xt=St.style}var kt={};function Ct(e){if(kt[e])return kt[e];var t=wt[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in xt)return kt[e]=t[i],kt[e]}return""}var Ot=Ct("animationend"),Et=Ct("transitionend"),$t=!(!Ot||!Et),At=Ot||"animationend",Mt=Et||"transitionend";function jt(e,t){return e?"object"===d(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Pt=k()?e.useLayoutEffect:e.useEffect;var Rt=function(e){return+setTimeout(e,16)},zt=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Rt=function(e){return window.requestAnimationFrame(e)},zt=function(e){return window.cancelAnimationFrame(e)});var Tt=0,_t=new Map;function It(e){_t.delete(e)}var Nt=function(e){var t=Tt+=1;return function n(r){if(0===r)It(t),e();else{var o=Rt((function(){n(r-1)}));_t.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Nt.cancel=function(e){var t=_t.get(e);return It(e),zt(t)};const Lt=Nt;var Ht=[ft,dt,pt,ht],Bt=[ft,mt],Dt=!1;function Ft(e){return e===pt||e===ht}function Wt(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,p=o.motionLeave,m=void 0===p||p,v=o.motionDeadline,b=o.motionLeaveImmediately,y=o.onAppearPrepare,x=o.onEnterPrepare,S=o.onLeavePrepare,k=o.onAppearStart,C=o.onEnterStart,O=o.onLeaveStart,E=o.onAppearActive,$=o.onEnterActive,A=o.onLeaveActive,M=o.onAppearEnd,j=o.onEnterEnd,P=o.onLeaveEnd,R=o.onVisibleChanged,z=w(ot(),2),T=z[0],_=z[1],I=(i=at,a=e.useReducer((function(e){return e+1}),0),s=w(a,2)[1],c=e.useRef(i),[Ke((function(){return c.current})),Ke((function(e){c.current="function"==typeof e?e(c.current):e,s()}))]),N=w(I,2),L=N[0],H=N[1],B=w(ot(null),2),D=B[0],F=B[1],W=L(),X=(0,e.useRef)(!1),G=(0,e.useRef)(null);function q(){return r()}var V=(0,e.useRef)(!1);function Y(){H(at),F(null,!0)}var U=Ke((function(e){var t=L();if(t!==at){var n=q();if(!e||e.deadline||e.target===n){var r,o=V.current;t===st&&o?r=null==M?void 0:M(n,e):t===ct&&o?r=null==j?void 0:j(n,e):t===lt&&o&&(r=null==P?void 0:P(n,e)),o&&!1!==r&&Y()}}})),Z=function(t){var n=(0,e.useRef)();function r(e){e&&(e.removeEventListener(Mt,t),e.removeEventListener(At,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(Mt,t),e.addEventListener(At,t),n.current=e)},r]}(U),K=w(Z,1)[0],Q=function(e){switch(e){case st:return h(h(h({},ft,y),dt,k),pt,E);case ct:return h(h(h({},ft,x),dt,C),pt,$);case lt:return h(h(h({},ft,S),dt,O),pt,A);default:return{}}},J=e.useMemo((function(){return Q(W)}),[W]),ee=w(function(t,n,r){var o=w(ot(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===Dt?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]}(W,!t,(function(e){if(e===ft){var t=J[ft];return t?t(q()):Dt}var n;return ne in J&&F((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===pt&&W!==at&&(K(q()),v>0&&(clearTimeout(G.current),G.current=setTimeout((function(){U({deadline:!0})}),v))),ne===mt&&Y(),!0})),2),te=ee[0],ne=ee[1],re=Ft(ne);V.current=re,Pt((function(){_(n);var e,r=X.current;X.current=!0,!r&&n&&d&&(e=st),r&&n&&u&&(e=ct),(r&&!n&&m||!r&&b&&!n&&m)&&(e=lt);var o=Q(e);e&&(t||o[ft])?(H(e),te()):H(at)}),[n]),(0,e.useEffect)((function(){(W===st&&!d||W===ct&&!u||W===lt&&!m)&&H(at)}),[d,u,m]),(0,e.useEffect)((function(){return function(){X.current=!1,clearTimeout(G.current)}}),[]);var oe=e.useRef(!1);(0,e.useEffect)((function(){T&&(oe.current=!0),void 0!==T&&W===at&&((oe.current||T)&&(null==R||R(T)),oe.current=!0)}),[T,W]);var ie=D;return J[ft]&&ne===dt&&(ie=g({transition:"none"},ie)),[W,ne,ie,null!=T?T:n]}const Xt=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(tt).motion),v=(0,e.useRef)(),b=(0,e.useRef)(),y=w(Wt(m,i,(function(){try{return v.current instanceof HTMLElement?v.current:ce(b.current)}catch(e){return null}}),t),4),x=y[0],S=y[1],k=y[2],C=y[3],O=e.useRef(C);C&&(O.current=!0);var E,$=e.useCallback((function(e){v.current=e,R(r,e)}),[r]),A=g(g({},p),{},{visible:i});if(u)if(x===at)E=C?u(g({},A),$):!s&&O.current&&d?u(g(g({},A),{},{className:d}),$):c||!s&&!d?u(g(g({},A),{},{style:{display:"none"}}),$):null;else{var M;S===ft?M="prepare":Ft(S)?M="active":S===dt&&(M="start");var j=jt(f,"".concat(x,"-").concat(M));E=u(g(g({},A),{},{className:l()(jt(f,x),h(h({},j,j&&M),f,"string"==typeof f)),style:k}),$)}else E=null;return e.isValidElement(E)&&_(E)&&(E.ref||(E=e.cloneElement(E,{ref:$}))),e.createElement(rt,{ref:b},E)}));return r.displayName="CSSMotion",r}($t);var Gt="add",qt="keep",Vt="remove",Yt="removed";function Ut(e){var t;return g(g({},t=e&&"object"===d(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Zt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Ut)}var Kt=["component","children","onVisibleChanged","onAllRemoved"],Qt=["status"],Jt=["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]:Xt,n=function(n){Ne(o,n);var r=Fe(o);function o(){var e;ze(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return h(Be(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),h(Be(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:g(g({},e),{},{status:Yt})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Yt})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return _e(o,[{key:"render",value:function(){var n=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged,c=(o.onAllRemoved,v(o,Kt)),l=i||e.Fragment,u={};return Jt.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,e.createElement(l,c,r.map((function(r,o){var i=r.status,c=v(r,Qt),l=i===Gt||i===qt;return e.createElement(t,f({},u,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(e){null==s||s(e,{key:c.key}),e||n.removeKey(c.key)}}),(function(e,t){return a(g(g({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Zt(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Zt(e),a=Zt(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return g(g({},e),{},{status:Gt})}))),r=i),n.push(g(g({},s),{},{status:qt})),r+=1,t=!0;break}}t||n.push(g(g({},e),{},{status:Vt}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return g(g({},e),{},{status:Gt})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).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!==Yt||e.status!==Vt}))}}}]),o}(e.Component);h(n,"defaultProps",{component:"div"})}($t);const en=Xt;function tn(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 nn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(en,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 rn=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const on=rn;var an=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,M=t.onMouseLeave,j=t.onPointerEnter,P=t.onPointerDownCapture,R=t.ready,T=t.offsetX,_=t.offsetY,I=t.offsetR,N=t.offsetB,L=t.onAlign,H=t.onPrepare,B=t.stretch,F=t.targetWidth,W=t.targetHeight,X="function"==typeof r?r():r,G=u||d,q=(null==C?void 0:C.length)>0,V=w(e.useState(!C||!q),2),Y=V[0],U=V[1];if(D((function(){!Y&&q&&s&&U(!0)}),[Y,q,s]),!Y)return null;var Z="auto",K={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(R||!u){var Q,J=y.points,ee=y.dynamicInset||(null===(Q=y._experimental)||void 0===Q?void 0:Q.dynamicInset),te=ee&&"r"===J[0][1],ne=ee&&"b"===J[0][0];te?(K.right=I,K.left=Z):(K.left=T,K.right=Z),ne?(K.bottom=N,K.top=Z):(K.top=_,K.bottom=Z)}var re={};return B&&(B.includes("height")&&W?re.height=W:B.includes("minHeight")&&W&&(re.minHeight=W),B.includes("width")&&F?re.width=F:B.includes("minWidth")&&F&&(re.minWidth=F)),u||(re.pointerEvents="none"),e.createElement(E,{open:k||G,getContainer:C&&function(){return C(s)},autoDestroy:O},e.createElement(nn,{prefixCls:i,open:u,zIndex:$,mask:m,motion:S}),e.createElement(Ye,{onResize:L,disabled:!u},(function(t){return e.createElement(en,f({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:H,onEnterPrepare:H,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:z(t,n,s),className:d,style:g(g(g(g({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},K),re),f),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:A,onMouseLeave:M,onPointerEnter:j,onClick:h,onPointerDownCapture:P},v&&e.createElement(tn,{prefixCls:i,arrow:v,arrowPos:b,align:y}),e.createElement(on,{cache:!u&&!p},X))}))})))}));const sn=an;var cn=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=T(a,r.ref);return i?e.cloneElement(r,{ref:s}):r}));const ln=cn,un=e.createContext(null);function fn(e){return e?Array.isArray(e)?e:[e]:[]}function dn(){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 pn(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hn(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=hn(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 gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function vn(e){return gn(parseFloat(e),0)}function bn(e,t){var n=g({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=hn(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=vn(i),m=vn(a),g=vn(s),v=vn(c),b=gn(Math.round(l.width/d*1e3)/1e3),y=gn(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=vn(o);E=A*b,$=A*y}var M=l.x+C-E,j=l.y+S-$,P=M+l.width+2*E-C-O-w,R=j+l.height+2*$-S-k-x;n.left=Math.max(n.left,M),n.top=Math.max(n.top,j),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,R)}})),n}function yn(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 wn(e,t){var n=w(t||[],2),r=n[0],o=n[1];return[yn(e.width,r),yn(e.height,o)]}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Sn(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 kn(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 Cn=["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 On=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,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,M=n.autoDestroy,j=n.destroyPopupOnHide,P=n.popup,R=n.popupClassName,z=n.popupStyle,T=n.popupPlacement,_=n.builtinPlacements,I=void 0===_?{}:_,L=n.popupAlign,H=n.zIndex,B=n.stretch,F=n.getPopupClassNameFromAlign,W=n.fresh,X=n.alignPoint,G=n.onPopupClick,q=n.onPopupAlign,V=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,Cn),re=M||j||!1,oe=w(e.useState(!1),2),ie=oe[0],ae=oe[1];D((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 ce=e.useRef({}),le=e.useContext(un),ue=e.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==le||le.registerSubPopup(e,t)}}}),[le]),fe=et(),de=w(e.useState(null),2),pe=de[0],he=de[1],me=e.useRef(null),ge=Ke((function(e){me.current=e,se(e)&&pe!==e&&he(e),null==le||le.registerSubPopup(fe,e)})),ve=w(e.useState(null),2),be=ve[0],ye=ve[1],we=e.useRef(null),xe=Ke((function(e){se(e)&&be!==e&&(ye(e),we.current=e)})),Se=e.Children.only(a),ke=(null==Se?void 0:Se.props)||{},Ce={},Oe=Ke((function(e){var t,n,r=be;return(null==r?void 0:r.contains(e))||(null===(t=Ze(r))||void 0===t?void 0:t.host)===e||e===r||(null==pe?void 0:pe.contains(e))||(null===(n=Ze(pe))||void 0===n?void 0:n.host)===e||e===pe||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ee=pn(i,Y,K,Z),$e=pn(i,U,J,Q),Ae=w(e.useState(p||!1),2),Me=Ae[0],je=Ae[1],Pe=null!=d?d:Me,Re=Ke((function(e){void 0===d&&je(e)}));D((function(){je(d||!1)}),[d]);var ze=e.useRef(Pe);ze.current=Pe;var Te=e.useRef([]);Te.current=[];var _e=Ke((function(e){var t;Re(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:Pe)!==e&&(Te.current.push(e),null==h||h(e))})),Ie=e.useRef(),Ne=function(){clearTimeout(Ie.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ne(),0===t?_e(e):Ie.current=setTimeout((function(){_e(e)}),1e3*t)};e.useEffect((function(){return Ne}),[]);var He=w(e.useState(!1),2),Be=He[0],De=He[1];D((function(e){e&&!Pe||De(!0)}),[Pe]);var Fe=w(e.useState(null),2),We=Fe[0],Xe=Fe[1],Ge=w(e.useState(null),2),qe=Ge[0],Ve=Ge[1],Ue=function(e){Ve([e.clientX,e.clientY])},Qe=w(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?mn(n):[]}),[n]),p=e.useRef({});t||(p.current={});var h=Ke((function(){if(n&&r&&t){var e,c,l,f,h,m=n,v=m.ownerDocument,b=hn(m).getComputedStyle(m),y=b.width,x=b.height,S=b.position,k=m.style.left,C=m.style.top,O=m.style.right,E=m.style.bottom,$=m.style.overflow,A=g(g({},i[o]),a),M=v.createElement("div");if(null===(e=m.parentElement)||void 0===e||e.appendChild(M),M.style.left="".concat(m.offsetLeft,"px"),M.style.top="".concat(m.offsetTop,"px"),M.style.position=S,M.style.height="".concat(m.offsetHeight,"px"),M.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(r))h={x:r[0],y:r[1],width:0,height:0};else{var j,P,R=r.getBoundingClientRect();R.x=null!==(j=R.x)&&void 0!==j?j:R.left,R.y=null!==(P=R.y)&&void 0!==P?P:R.top,h={x:R.x,y:R.y,width:R.width,height:R.height}}var z=m.getBoundingClientRect();z.x=null!==(c=z.x)&&void 0!==c?c:z.left,z.y=null!==(l=z.y)&&void 0!==l?l:z.top;var T=v.documentElement,_=T.clientWidth,I=T.clientHeight,N=T.scrollWidth,L=T.scrollHeight,H=T.scrollTop,B=T.scrollLeft,D=z.height,F=z.width,W=h.height,X=h.width,G={left:0,top:0,right:_,bottom:I},q={left:-B,top:-H,right:N-B,bottom:L-H},V=A.htmlRegion,Y="visible",U="visibleFirst";"scroll"!==V&&V!==U&&(V=Y);var Z=V===U,K=bn(q,d),Q=bn(G,d),J=V===Y?Q:K,ee=Z?Q:J;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var te=m.getBoundingClientRect();m.style.left=k,m.style.top=C,m.style.right=O,m.style.bottom=E,m.style.overflow=$,null===(f=m.parentElement)||void 0===f||f.removeChild(M);var ne=gn(Math.round(F/parseFloat(y)*1e3)/1e3),re=gn(Math.round(D/parseFloat(x)*1e3)/1e3);if(0===ne||0===re||se(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=A.offset,ie=A.targetOffset,ae=w(wn(z,oe),2),ce=ae[0],le=ae[1],ue=w(wn(h,ie),2),fe=ue[0],de=ue[1];h.x-=fe,h.y-=de;var pe=w(A.points||[],2),he=pe[0],me=xn(pe[1]),ge=xn(he),ve=Sn(h,me),be=Sn(z,ge),ye=g({},A),we=ve.x-be.x+ce,xe=ve.y-be.y+le;function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=z.x+e,o=z.y+t,i=r+F,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,ke,Ce,Oe,Ee=ht(we,xe),$e=ht(we,xe,Q),Ae=Sn(h,["t","l"]),Me=Sn(z,["t","l"]),je=Sn(h,["b","r"]),Pe=Sn(z,["b","r"]),Re=A.overflow||{},ze=Re.adjustX,Te=Re.adjustY,_e=Re.shiftX,Ie=Re.shiftY,Ne=function(e){return"boolean"==typeof e?e:e>=0};function mt(){Se=z.y+xe,ke=Se+D,Ce=z.x+we,Oe=Ce+F}mt();var Le=Ne(Te),He=ge[0]===me[0];if(Le&&"t"===ge[0]&&(ke>ee.bottom||p.current.bt)){var Be=xe;He?Be-=D-W:Be=Ae.y-Pe.y-le;var De=ht(we,Be),Fe=ht(we,Be,Q);De>Ee||De===Ee&&(!Z||Fe>=$e)?(p.current.bt=!0,xe=Be,le=-le,ye.points=[kn(ge,0),kn(me,0)]):p.current.bt=!1}if(Le&&"b"===ge[0]&&(Se<ee.top||p.current.tb)){var We=xe;He?We+=D-W:We=je.y-Me.y-le;var Xe=ht(we,We),Ge=ht(we,We,Q);Xe>Ee||Xe===Ee&&(!Z||Ge>=$e)?(p.current.tb=!0,xe=We,le=-le,ye.points=[kn(ge,0),kn(me,0)]):p.current.tb=!1}var qe=Ne(ze),Ve=ge[1]===me[1];if(qe&&"l"===ge[1]&&(Oe>ee.right||p.current.rl)){var Ye=we;Ve?Ye-=F-X:Ye=Ae.x-Pe.x-ce;var Ue=ht(Ye,xe),Ze=ht(Ye,xe,Q);Ue>Ee||Ue===Ee&&(!Z||Ze>=$e)?(p.current.rl=!0,we=Ye,ce=-ce,ye.points=[kn(ge,1),kn(me,1)]):p.current.rl=!1}if(qe&&"r"===ge[1]&&(Ce<ee.left||p.current.lr)){var Ke=we;Ve?Ke+=F-X:Ke=je.x-Me.x-ce;var Qe=ht(Ke,xe),Je=ht(Ke,xe,Q);Qe>Ee||Qe===Ee&&(!Z||Je>=$e)?(p.current.lr=!0,we=Ke,ce=-ce,ye.points=[kn(ge,1),kn(me,1)]):p.current.lr=!1}mt();var et=!0===_e?0:_e;"number"==typeof et&&(Ce<Q.left&&(we-=Ce-Q.left-ce,h.x+X<Q.left+et&&(we+=h.x-Q.left+X-et)),Oe>Q.right&&(we-=Oe-Q.right-ce,h.x>Q.right-et&&(we+=h.x-Q.right+et)));var tt=!0===Ie?0:Ie;"number"==typeof tt&&(Se<Q.top&&(xe-=Se-Q.top-le,h.y+W<Q.top+tt&&(xe+=h.y-Q.top+W-tt)),ke>Q.bottom&&(xe-=ke-Q.bottom-le,h.y>Q.bottom-tt&&(xe+=h.y-Q.bottom+tt)));var nt=z.x+we,rt=nt+F,ot=z.y+xe,it=ot+D,at=h.x,st=at+X,ct=h.y,lt=ct+W,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,ye);var dt=te.right-z.x-(we+z.width),pt=te.bottom-z.y-(xe+z.height);1===ne&&(we=Math.round(we),dt=Math.round(dt)),1===re&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:we/ne,offsetY:xe/re,offsetR:dt/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:ft/re,scaleX:ne,scaleY:re,align:ye})}})),m=function(){u((function(e){return g(g({},e),{},{ready:!1})}))};return D(m,[o]),D((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()}))}]}(Pe,pe,X&&null!==qe?qe:be,T,I,L,q),11),Je=Qe[0],tt=Qe[1],nt=Qe[2],rt=Qe[3],ot=Qe[4],it=Qe[5],at=Qe[6],st=Qe[7],ct=Qe[8],lt=Qe[9],ut=Qe[10],ft=function(t,n,r,o){return e.useMemo((function(){var e=fn(null!=r?r:n),i=fn(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=Ke((function(){Be||ut()}));!function(e,t,n,r){D((function(){if(e&&t&&n){var o=n,i=mn(t),a=mn(o),s=hn(o),c=new Set([s].concat(N(i),N(a)));function l(){r(),ze.current&&X&&gt&&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])}(Pe,be,pe,vt),D((function(){vt()}),[qe,T]),D((function(){!Pe||null!=I&&I[T]||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;a<i.length;a+=1){var s,c=i[a];if(dn(null===(s=e[c])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(I,i,lt,X);return l()(e,null==F?void 0:F(lt))}),[lt,F,I,i,X]);e.useImperativeHandle(r,(function(){return{nativeElement:we.current,popupElement:me.current,forceAlign:vt}}));var yt=w(e.useState(0),2),wt=yt[0],xt=yt[1],St=w(e.useState(0),2),kt=St[0],Ct=St[1],Ot=function(){if(B&&be){var e=be.getBoundingClientRect();xt(e.width),Ct(e.height)}};function Et(e,t,n,r){Ce[e]=function(o){var i;null==r||r(o),Le(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];null===(i=ke[e])||void 0===i||i.call.apply(i,[ke,o].concat(s))}}D((function(){We&&(ut(),We(),Xe(null))}),[We]),(mt||gt)&&(Ce.onClick=function(e){var t;ze.current&&gt?Le(!1):!ze.current&&mt&&(Ue(e),Le(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ke.onClick)||void 0===t||t.call.apply(t,[ke,e].concat(r))});var $t,At,Mt=function(t,n,r,o,i,a,s,c){var l=e.useRef(t);l.current=t;var u=e.useRef(!1);return e.useEffect((function(){if(n&&o&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!l.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||c(!1)},f=hn(o);f.addEventListener("pointerdown",e,!0),f.addEventListener("mousedown",t,!0),f.addEventListener("contextmenu",t,!0);var d=Ze(r);return d&&(d.addEventListener("mousedown",t,!0),d.addEventListener("contextmenu",t,!0)),function(){f.removeEventListener("pointerdown",e,!0),f.removeEventListener("mousedown",t,!0),f.removeEventListener("contextmenu",t,!0),d&&(d.removeEventListener("mousedown",t,!0),d.removeEventListener("contextmenu",t,!0))}}}),[n,r,o,i,a]),function(){u.current=!0}}(Pe,gt,be,pe,C,E,Oe,Le),jt=pt.has("hover"),Pt=ht.has("hover");jt&&(Et("onMouseEnter",!0,b,(function(e){Ue(e)})),Et("onPointerEnter",!0,b,(function(e){Ue(e)})),$t=function(e){(Pe||Be)&&null!=pe&&pe.contains(e.target)&&Le(!0,b)},X&&(Ce.onMouseMove=function(e){var t;null===(t=ke.onMouseMove)||void 0===t||t.call(ke,e)})),Pt&&(Et("onMouseLeave",!1,x),Et("onPointerLeave",!1,x),At=function(){Le(!1,x)}),pt.has("focus")&&Et("onFocus",!0,S),ht.has("focus")&&Et("onBlur",!1,k),pt.has("contextMenu")&&(Ce.onContextMenu=function(e){var t;ze.current&&ht.has("contextMenu")?Le(!1):(Ue(e),Le(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ke.onContextMenu)||void 0===t||t.call.apply(t,[ke,e].concat(r))}),ee&&(Ce.className=l()(ke.className,ee));var Rt=g(g({},ke),Ce),zt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ne[e]&&(zt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Rt[e])||void 0===t||t.call.apply(t,[Rt].concat(r)),ne[e].apply(ne,r)})}));var Tt=e.cloneElement(Se,g(g({},Rt),zt)),_t={x:it,y:at},It=V?g({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(Ye,{disabled:!Pe,ref:xe,onResize:function(){Ot(),vt()}},e.createElement(ln,{getTriggerDOMNode:te},Tt)),e.createElement(un.Provider,{value:ue},e.createElement(sn,{portal:t,ref:ge,prefixCls:i,popup:P,className:l()(R,bt),style:z,target:be,onMouseEnter:$t,onMouseLeave:At,onPointerEnter:$t,zIndex:H,open:Pe,keepDom:Be,fresh:W,onClick:G,onPointerDownCapture:Mt,mask:C,motion:Ee,maskMotion:$e,onVisibleChanged:function(e){De(!1),ut(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){Ot(),Xe((function(){return e}))}))},forceRender:A,autoDestroy:re,getPopupContainer:$,align:lt,arrow:It,arrowPos:_t,ready:Je,offsetX:tt,offsetY:nt,offsetR:rt,offsetB:ot,onAlign:vt,stretch:B,targetWidth:wt/st,targetHeight:kt/ct})))}));return n}(ie);var En={shiftX:64,adjustY:1},$n={adjustX:1,shiftY:!0},An=[0,0],Mn={left:{points:["cr","cl"],overflow:$n,offset:[-4,0],targetOffset:An},right:{points:["cl","cr"],overflow:$n,offset:[4,0],targetOffset:An},top:{points:["bc","tc"],overflow:En,offset:[0,-4],targetOffset:An},bottom:{points:["tc","bc"],overflow:En,offset:[0,4],targetOffset:An},topLeft:{points:["bl","tl"],overflow:En,offset:[0,-4],targetOffset:An},leftTop:{points:["tr","tl"],overflow:$n,offset:[-4,0],targetOffset:An},topRight:{points:["br","tr"],overflow:En,offset:[0,-4],targetOffset:An},rightTop:{points:["tl","tr"],overflow:$n,offset:[4,0],targetOffset:An},bottomRight:{points:["tr","br"],overflow:En,offset:[0,4],targetOffset:An},rightBottom:{points:["bl","br"],overflow:$n,offset:[4,0],targetOffset:An},bottomLeft:{points:["tl","bl"],overflow:En,offset:[0,4],targetOffset:An},leftBottom:{points:["br","bl"],overflow:$n,offset:[-4,0],targetOffset:An}},jn=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Pn=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,s=void 0===a?0:a,c=t.mouseLeaveDelay,l=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,h=void 0===p?"rc-tooltip":p,m=t.children,b=t.onVisibleChange,y=t.afterVisibleChange,w=t.transitionName,x=t.animation,S=t.motion,k=t.placement,C=void 0===k?"right":k,O=t.align,E=void 0===O?{}:O,$=t.destroyTooltipOnHide,A=void 0!==$&&$,M=t.defaultVisible,j=t.getTooltipContainer,P=t.overlayInnerStyle,R=(t.arrowContent,t.overlay),z=t.id,T=t.showArrow,_=void 0===T||T,I=v(t,jn),N=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(function(){return N.current}));var L=g({},I);return"visible"in t&&(L.popupVisible=t.visible),e.createElement(On,f({popupClassName:r,prefixCls:h,popup:function(){return e.createElement(u,{key:"content",prefixCls:h,id:z,overlayInnerStyle:P},R)},action:i,builtinPlacements:Mn,popupPlacement:C,ref:N,popupAlign:E,getPopupContainer:j,onPopupVisibleChange:b,afterPopupVisibleChange:y,popupTransitionName:w,popupAnimation:x,popupMotion:S,defaultPopupVisible:M,autoDestroy:A,mouseLeaveDelay:l,popupStyle:d,mouseEnterDelay:s,arrow:_},L),m)};const Rn=(0,e.forwardRef)(Pn),zn=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 Tn(e){return e.join("%")}const In=function(){function e(t){ze(this,e),h(this,"instanceId",void 0),h(this,"cache",new Map),this.instanceId=t}return _e(e,[{key:"get",value:function(e){return this.opGet(Tn(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Tn(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 Nn="data-token-hash",Ln="data-css-hash",Hn="__cssinjs_instance__";var Bn=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(Ln,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Hn]=t[Hn]||e,t[Hn]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Ln,"]"))).forEach((function(t){var n,o=t.getAttribute(Ln);r[o]?t[Hn]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new In(e)}(),defaultCache:!0});const Dn=Bn;new RegExp("CALC_UNIT","g");var Fn=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 _e(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]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=w(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();h(Fn,"MAX_CACHE_SIZE",20),h(Fn,"MAX_CACHE_OFFSET",5);var Wn=0,Xn=function(){function e(t){ze(this,e),h(this,"derivatives",void 0),h(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Wn,0===t.length&&t.length,Wn+=1}return _e(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Gn=new Fn,qn=new WeakMap,Vn={},Yn=new WeakMap;function Un(e){var t=Yn.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Xn?t+=r.id:r&&"object"===d(r)?t+=Un(r):t+=r})),t=zn(t),Yn.set(e,t)),t}function Zn(e,t){return zn("".concat(t,"_").concat(Un(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Kn=k();function Qn(e){return"number"==typeof e?"".concat(e,"px"):e}function Jn(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=g(g({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(h(r={},Nn,t),h(r,Ln,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"<style ".concat(i,">").concat(e,"</style>")}var er=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()},tr=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(""),"}"):""},nr=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=er(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,tr(r,t,{scope:null==n?void 0:n.scope})]},rr=g({},e).useInsertionEffect;const or=rr?function(e,t,n){return rr((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),D((function(){return n(!0)}),r)},ir=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()}};function ar(t,n,r,o,i){var a=e.useContext(Dn).cache,s=Tn([t].concat(N(n))),c=ir([s]),l=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 or((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 sr={},cr=new Map;var lr="token";function ur(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?sr:l,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var r=qn,o=0;o<t.length;o+=1){var i=t[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(Vn)||r.set(Vn,Object.assign.apply(Object,[{}].concat(N(n)))),r.get(Vn)}(0,n),m=Un(h),v=Un(u),b=p?Un(p):"",y=ar(lr,[c,t.id,m,v,b],(function(){var e,n=d?d(h,u,t):function(e,t,n,r){var o=g(g({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(h,u,t,f),r=g({},n),o="";if(p){var i=w(nr(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Zn(n,c);n._tokenKey=a,r._tokenKey=Zn(r,c);var s=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=s,function(e){cr.set(e,(cr.get(e)||0)+1)}(s);var l="".concat("css","-").concat(zn(a));return n._hashId=l,[n,l,r,o,(null==p?void 0:p.key)||""]}),(function(e){!function(e,t){cr.set(e,(cr.get(e)||0)-1);var n=Array.from(cr.keys()),r=n.filter((function(e){return(cr.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Nn,'="').concat(e,'"]')).forEach((function(e){var n;e[Hn]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),cr.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=w(e,4),n=t[0],r=t[3];if(p&&r){var o=Q(r,zn("css-variables-".concat(n._themeKey)),{mark:Ln,prepend:"queue",attachTo:a,priority:-999});o[Hn]=i,o.setAttribute(Nn,n._themeKey)}}));return y}const fr={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 dr="comm",pr="rule",hr="decl",mr=Math.abs,gr=String.fromCharCode;function vr(e){return e.trim()}function br(e,t,n){return e.replace(t,n)}function yr(e,t,n){return e.indexOf(t,n)}function wr(e,t){return 0|e.charCodeAt(t)}function xr(e,t,n){return e.slice(t,n)}function Sr(e){return e.length}function kr(e,t){return t.push(e),e}function Cr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Or(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case hr:return e.return=e.return||e.value;case dr:return"";case"@keyframes":return e.return=e.value+"{"+Cr(e.children,r)+"}";case pr:if(!Sr(e.value=e.props.join(",")))return""}return Sr(n=Cr(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var Er=1,$r=1,Ar=0,Mr=0,jr=0,Pr="";function Rr(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Er,column:$r,length:a,return:"",siblings:s}}function zr(){return jr=Mr>0?wr(Pr,--Mr):0,$r--,10===jr&&($r=1,Er--),jr}function Tr(){return jr=Mr<Ar?wr(Pr,Mr++):0,$r++,10===jr&&($r=1,Er++),jr}function _r(){return wr(Pr,Mr)}function Ir(){return Mr}function Nr(e,t){return xr(Pr,e,t)}function Lr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hr(e){return vr(Nr(Mr-1,Fr(91===e?e+2:40===e?e+1:e)))}function Br(e){for(;(jr=_r())&&jr<33;)Tr();return Lr(e)>2||Lr(jr)>3?"":" "}function Dr(e,t){for(;--t&&Tr()&&!(jr<48||jr>102||jr>57&&jr<65||jr>70&&jr<97););return Nr(e,Ir()+(t<6&&32==_r()&&32==Tr()))}function Fr(e){for(;Tr();)switch(jr){case e:return Mr;case 34:case 39:34!==e&&39!==e&&Fr(jr);break;case 40:41===e&&Fr(e);break;case 92:Tr()}return Mr}function Wr(e,t){for(;Tr()&&e+jr!==57&&(e+jr!==84||47!==_r()););return"/*"+Nr(t,Mr-1)+"*"+gr(47===e?e:Tr())}function Xr(e){for(;!Lr(_r());)Tr();return Nr(e,Mr)}function Gr(e){return function(e){return Pr="",e}(qr("",null,null,null,[""],e=function(e){return Er=$r=1,Ar=Sr(Pr=e),Mr=0,[]}(e),0,[0],e))}function qr(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=Tr()){case 40:if(108!=h&&58==wr(k,f-1)){-1!=yr(k+=br(Hr(b),"&","&\f"),"&\f",mr(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Hr(b);break;case 9:case 10:case 13:case 32:k+=Br(h);break;case 92:k+=Dr(Ir()-1,7);continue;case 47:switch(_r()){case 42:case 47:kr(Yr(Wr(Tr(),Ir()),t,n,c),c),5!=Lr(h||1)&&5!=Lr(_r()||1)||!Sr(k)||" "===xr(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[l++]=Sr(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(k=br(k,/\f/g,"")),p>0&&(Sr(k)-f||0===m&&47===h)&&kr(p>32?Ur(k+";",r,n,f-1,c):Ur(br(k," ","")+";",r,n,f-2,c),c);break;case 59:k+=";";default:if(kr(S=Vr(k,t,n,l,u,o,s,y,w=[],x=[],f,i),i),123===b)if(0===u)qr(k,t,S,S,w,i,f,s,x);else switch(99===d&&110===wr(k,3)?100:d){case 100:case 108:case 109:case 115:qr(e,S,S,r&&kr(Vr(e,S,S,0,0,o,s,y,o,w=[],f,x),x),o,x,f,s,r?w:x);break;default:qr(k,S,S,S,[""],x,0,s,x)}}l=u=p=0,m=v=1,y=k="",f=a;break;case 58:f=1+Sr(k),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==zr())continue;switch(k+=gr(b),b*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(Sr(k)-1)*v,v=1;break;case 64:45===_r()&&(k+=Hr(Tr())),d=_r(),u=f=Sr(y=k+=Xr(Ir())),b++;break;case 45:45===h&&2==Sr(k)&&(m=0)}}return i}function Vr(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;m<r;++m)for(var b=0,y=xr(e,d+1,d=mr(g=a[m])),w=e;b<h;++b)(w=vr(g>0?p[b]+" "+y:br(y,/&\f/g,p[b])))&&(c[v++]=w);return Rr(e,t,n,0===o?pr:s,c,l,u,f)}function Yr(e,t,n,r){return Rr(e,t,n,dr,gr(jr),xr(e,2,-2),0,r)}function Ur(e,t,n,r,o){return Rr(e,t,n,hr,xr(e,0,r),xr(e,r+1,-1),r,o)}var Zr,Kr="data-ant-cssinjs-cache-path",Qr="_FILE_STYLE__",Jr=!0;var eo="_multi_value_";function to(e){return Cr(Gr(e),Or).replace(/\{%%%\:[^;];}/g,";")}var no=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]);return 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||eo in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;fr[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[eo]&&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(N(n.slice(1))).join(" ")}));return i.join(",")}("&"===b?"":t,s,l):!o||s||"&"!==b&&""!==b||(b="",y=!0);var x=w(e(r,n,{root:y,injectHash:v,parentSelectors:[].concat(N(a),[b])}),2),S=x[0],k=x[1];h=g(g({},h),k),p+="".concat(b).concat(S)}}))}})),o?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(h["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):p="{".concat(p,"}"),[p,h]};function ro(e,t){return zn("".concat(e.join("%")).concat(t))}function oo(){return null}var io="style";function ao(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),v=d.hashPriority,b=d.container,y=d.ssrInline,x=d.transformers,S=d.linters,C=d.cache,O=d.layer,E=r._tokenKey,$=[E];O&&$.push("layer"),$.push.apply($,N(o));var A=Kn,M=ar(io,$,(function(){var e=$.join("|");if(function(e){return function(){if(!Zr&&(Zr={},k())){var e=document.createElement("div");e.className=Kr,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];Zr[n]=r}));var n,r=document.querySelector("style[".concat(Kr,"]"));r&&(Jr=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Zr[e]}(e)){var t=function(e){var t=Zr[e],n=null;if(t&&k())if(Jr)n=Qr;else{var r=document.querySelector("style[".concat(Ln,'="').concat(Zr[e],'"]'));r?n=r.innerHTML:delete Zr[e]}return[n,t]}(e),r=w(t,2),s=r[0],l=r[1];if(s)return[s,E,l,{},c,u]}var f=n(),d=w(no(f,{hashId:i,hashPriority:v,layer:O?a:void 0,path:o.join("-"),transformers:x,linters:S}),2),p=d[0],h=d[1],m=to(p),g=ro($,m);return[m,E,g,h,c,u]}),(function(e,t){var n=w(e,3)[2];(t||p)&&Kn&&K(n,{mark:Ln})}),(function(e){var t=w(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(A&&n!==Qr){var i={mark:Ln,prepend:!O&&"queue",attachTo:b,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){Q(to(o[e]),"_layer-".concat(e),g(g({},i),{},{prepend:!0}))}));var f=Q(n,r,i);f[Hn]=C.instanceId,f.setAttribute(Nn,E),l.forEach((function(e){Q(to(o[e]),"_effect-".concat(e),i)}))}})),j=w(M,3),P=j[0],R=j[1],z=j[2];return function(t){var n,r;return n=y&&!A&&m?e.createElement("style",f({},(h(r={},Nn,R),h(r,Ln,z),r),{dangerouslySetInnerHTML:{__html:P}})):e.createElement(oo,null),e.createElement(e.Fragment,null,n,t)}}var so="cssVar";var co;h(co={},io,(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=Jn(o,i,a,d,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Jn(to(s[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[l,a,f]})),h(co,lr,(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,Jn(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),h(co,so,(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,Jn(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var lo=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 _e(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 uo=lo;function fo(e){return e.notSplit=!0,e}function po(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 ho(e){return Math.min(1,Math.max(0,e))}function mo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function go(e){return e<=1?"".concat(100*Number(e),"%"):e}function vo(e){return 1===e.length?"0"+e:String(e)}function bo(e,t,n){e=po(e,255),t=po(t,255),n=po(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+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:s}}function yo(e,t,n){return n<0&&(n+=1),n>1&&(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 wo(e,t,n){e=po(e,255),t=po(t,255),n=po(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<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:c,v:a}}function xo(e,t,n,r){var o=[vo(Math.round(e).toString(16)),vo(Math.round(t).toString(16)),vo(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function So(e){return ko(e)/255}function ko(e){return parseInt(e,16)}fo(["borderTop","borderBottom"]),fo(["borderTop"]),fo(["borderBottom"]),fo(["borderLeft","borderRight"]),fo(["borderLeft"]),fo(["borderRight"]);var Co={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Oo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(Co[e])e=Co[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Mo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Mo.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mo.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Mo.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mo.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Mo.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mo.hex8.exec(e))?{r:ko(n[1]),g:ko(n[2]),b:ko(n[3]),a:So(n[4]),format:t?"name":"hex8"}:(n=Mo.hex6.exec(e))?{r:ko(n[1]),g:ko(n[2]),b:ko(n[3]),format:t?"name":"hex"}:(n=Mo.hex4.exec(e))?{r:ko(n[1]+n[1]),g:ko(n[2]+n[2]),b:ko(n[3]+n[3]),a:So(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=Mo.hex3.exec(e))&&{r:ko(n[1]+n[1]),g:ko(n[2]+n[2]),b:ko(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(jo(e.r)&&jo(e.g)&&jo(e.b)?(t=function(e,t,n){return{r:255*po(e,255),g:255*po(t,255),b:255*po(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):jo(e.h)&&jo(e.s)&&jo(e.v)?(r=go(e.s),o=go(e.v),t=function(e,t,n){e=6*po(e,360),t=po(t,100),n=po(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,s,n][c],g:255*[s,n,n,a,i,i][c],b:255*[i,i,s,n,n,a][c]}}(e.h,r,o),a=!0,s="hsv"):jo(e.h)&&jo(e.s)&&jo(e.l)&&(r=go(e.s),i=go(e.l),t=function(e,t,n){var r,o,i;if(e=po(e,360),t=po(t,100),n=po(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=yo(s,a,e+1/3),o=yo(s,a,e),i=yo(s,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mo(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Eo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),$o="[\\s|\\(]+(".concat(Eo,")[,|\\s]+(").concat(Eo,")[,|\\s]+(").concat(Eo,")\\s*\\)?"),Ao="[\\s|\\(]+(".concat(Eo,")[,|\\s]+(").concat(Eo,")[,|\\s]+(").concat(Eo,")[,|\\s]+(").concat(Eo,")\\s*\\)?"),Mo={CSS_UNIT:new RegExp(Eo),rgb:new RegExp("rgb"+$o),rgba:new RegExp("rgba"+Ao),hsl:new RegExp("hsl"+$o),hsla:new RegExp("hsla"+Ao),hsv:new RegExp("hsv"+$o),hsva:new RegExp("hsva"+Ao),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function jo(e){return Boolean(Mo.CSS_UNIT.exec(String(e)))}var Po=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ro(e){var t=wo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function zo(e){var t=e.r,n=e.g,r=e.b;return"#".concat(xo(t,n,r,!1))}function To(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),Number(r.toFixed(2)));var r}function Io(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function No(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Oo(e),o=5;o>0;o-=1){var i=Ro(r),a=zo(Oo({h:To(i,o,!0),s:_o(i,o,!0),v:Io(i,o,!0)}));n.push(a)}n.push(zo(r));for(var s=1;s<=4;s+=1){var c=Ro(r),l=zo(Oo({h:To(c,s),s:_o(c,s),v:Io(c,s)}));n.push(l)}return"dark"===t.theme?Po.map((function(e){var r,o,i,a=e.index,s=e.opacity;return zo((r=Oo(t.backgroundColor||"#141414"),i=100*s/100,{r:((o=Oo(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 Lo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Lo.primary=Lo[5];var Ho=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ho.primary=Ho[5];var Bo=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Bo.primary=Bo[5];var Do=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Do.primary=Do[5];var Fo=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Fo.primary=Fo[5];var Wo=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Wo.primary=Wo[5];var Xo=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Xo.primary=Xo[5];var Go=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Go.primary=Go[5];var qo=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qo.primary=qo[5];var Vo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vo.primary=Vo[5];var Yo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yo.primary=Yo[5];var Uo=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Uo.primary=Uo[5];var Zo=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zo.primary=Zo[5];var Ko=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Ko.primary=Ko[5];var Qo=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Qo.primary=Qo[5];var Jo=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Jo.primary=Jo[5];var ei=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];ei.primary=ei[5];var ti=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];ti.primary=ti[5];var ni=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ni.primary=ni[5];var ri=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ri.primary=ri[5];var oi=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];oi.primary=oi[5];var ii=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];ii.primary=ii[5];var ai=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];ai.primary=ai[5];var si=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];si.primary=si[5];var ci=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ci.primary=ci[5];var li=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];li.primary=li[5];const ui={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"},fi=Object.assign(Object.assign({},ui),{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 di=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=Oo(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=mo(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=wo(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=wo(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=bo(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=bo(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),xo(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=[vo(Math.round(e).toString(16)),vo(Math.round(t).toString(16)),vo(Math.round(n).toString(16)),vo((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*po(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*po(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="#"+xo(this.r,this.g,this.b,!1),t=0,n=Object.entries(Co);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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=ho(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=ho(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=ho(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=ho(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;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const pi=(e,t)=>new di(e).setAlpha(t).toRgbString(),hi=(e,t)=>new di(e).darken(t).toHexString(),mi=e=>{const t=No(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]}},gi=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:pi(r,.88),colorTextSecondary:pi(r,.65),colorTextTertiary:pi(r,.45),colorTextQuaternary:pi(r,.25),colorFill:pi(r,.15),colorFillSecondary:pi(r,.06),colorFillTertiary:pi(r,.04),colorFillQuaternary:pi(r,.02),colorBgLayout:hi(n,4),colorBgContainer:hi(n,0),colorBgElevated:hi(n,0),colorBgSpotlight:pi(r,.85),colorBgBlur:"transparent",colorBorder:hi(n,15),colorBorderSecondary:hi(n,6)}},vi=(bi=function(e){const t=Object.keys(ui).map((t=>{const n=No(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 di("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:mi,generateNeutralColorPalettes:gi})),(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))},yi=Array.isArray(bi)?bi:[bi],Gn.has(yi)||Gn.set(yi,new Xn(yi)),Gn.get(yi));var bi,yi;const wi={token:fi,override:{override:fi},hashed:!0},xi=t().createContext(wi);function Si(e){return e>=0&&e<=255}const ki=function(e,t){const{r:n,g:r,b:o,a:i}=new di(e).toRgb();if(i<1)return e;const{r:a,g:s,b:c}=new di(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(Si(t)&&Si(i)&&Si(l))return new di({r:t,g:i,b:l,a:Math.round(100*e)/100}).toRgbString()}return new di({r:n,g:r,b:o,a:1}).toRgbString()};function Ci(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(fi).forEach((e=>{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:ki(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:ki(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ki(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:ki(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 di("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new di("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new di("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 Oi=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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ei={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},$i={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Ai={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Mi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Oi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ci(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Oi(n,["theme"]);let i=o;r&&(i=Mi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function ji(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(xi),a=`5.15.4-${n||""}`,s=r||vi,[c,l,u]=ur(s,[fi,e],{salt:a,override:o,getComputedToken:Mi,formatToken:Ci,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ei,ignore:$i,preserve:Ai}});return[s,u,n?l:"",c,i]}const Pi=t().createContext(void 0),Ri=100,zi={Modal:Ri,Drawer:Ri,Popover:Ri,Popconfirm:Ri,Tooltip:Ri,Tour:Ri},Ti={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const _i=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function Ii(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 Ni=(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 ${Qn(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Li(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Hi(e,t){return e?t:{}}function Bi(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"},Ni(e,t,o)),{"&:before":{background:t}})]},Hi(!!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}}})),Hi(!!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}}})),Hi(!!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}})),Hi(!!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 Di={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"]}},Fi={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"]}},Wi=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Xi(e,n){return((e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}function Gi(){}const qi=e.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:Vi}=qi,Yi=e.createContext(null),Ui=t=>{let{children:n}=t;return e.createElement(Yi.Provider,{value:null},n)},Zi=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}},Ki=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"}}}),Qi=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i;return{[a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ji=e=>({animationDuration:e,animationFillMode:"both"}),ea=e=>({animationDuration:e,animationFillMode:"both"}),ta=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({},Ji(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},ea(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"}}},na=new uo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ra=new uo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),oa=new uo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ia=new uo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),aa=new uo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),sa=new uo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ca={zoom:{inKeyframes:na,outKeyframes:ra},"zoom-big":{inKeyframes:oa,outKeyframes:ia},"zoom-big-fast":{inKeyframes:oa,outKeyframes:ia},"zoom-left":{inKeyframes:new uo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new uo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new uo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new uo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:aa,outKeyframes:sa},"zoom-down":{inKeyframes:new uo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new uo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},la=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ca[t];return[ta(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}}]},ua=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function fa(e,t){return ua.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 da="undefined"!=typeof CSSINJS_STATISTIC;let pa=!0;function ha(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!da)return Object.assign.apply(Object,[{}].concat(t));pa=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),pa=!0,r}const ma={};function ga(){}function va(e,t,n){return t=Le(t),De(e,He()?Reflect.construct(t,n||[],Le(e).constructor):t.apply(e,n))}const ba=_e((function e(){ze(this,e)}));let ya=function(e){function t(e){var n;return ze(this,t),(n=va(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Ne(t,e),_e(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}}])}(ba);const wa="CALC_UNIT";function xa(e){return"number"==typeof e?`${e}${wa}`:e}let Sa=function(e){function t(e){var n;return ze(this,t),(n=va(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=xa(e):"string"==typeof e&&(n.result=e),n}return Ne(t,e),_e(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} + ${xa(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} - ${xa(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(`${wa}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(ba);const ka=(e,t,n)=>{var r;return"function"==typeof n?n(ha(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},Ca=(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 Oa(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]=ji(),{getPrefixCls:p,iconPrefixCls:h,csp:m}=(0,e.useContext)(qi),g=p(),v=d?"css":"js",b=(e=>{const t="css"===e?Sa:ya;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;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Qn(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Qn(e))).join(",")})`}}}(v),x={theme:c,token:f,hashId:u,nonce:()=>null==m?void 0:m.nonce,clientOnly:o.clientOnly,order:o.order||-999};ao(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Ki(f)}])),((e,t)=>{const[n,r]=ji();ao({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=ao(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=ga;return da&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(pa&&t.add(n),e[n])}),r=(e,n)=>{var r;ma[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=ma[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(f),c=ka(a,l,r),p=`.${t}`,m=Ca(a,l,c,{deprecatedTokens:o.deprecatedTokens});d&&Object.keys(c).forEach((e=>{c[e]=`var(${er(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=ha(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:Qi(v,t,i),x]}));return[S,u]}}const Ea=(n,r,o,i)=>{const a=Oa(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]=ji();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(N(t.path),[r,l,p]),m=ar(so,h,(function(){var e=n(),t=w(nr(e,r,{prefix:o,unitless:i,ignore:a,scope:l}),2),s=t[0],c=t[1];return[s,c,ro(h,c),r]}),(function(e){var t=w(e,3)[2];Kn&&K(t,{mark:Ln})}),(function(e){var t=w(e,3),n=t[1],o=t[2];if(n){var i=Q(n,o,{mark:Ln,prepend:"queue",attachTo:d,priority:-999});i[Hn]=f,i.setAttribute(Nn,r)}}))}({path:[n],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},Ei),c),ignore:$i,token:l,scope:a},(()=>{const e=ka(n,l,r),t=Ca(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]=ji();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]}},$a=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({},Zi(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:`${Qn(e.calc(l).div(2).equal())} ${Qn(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,8)}},[`${t}-content`]:{position:"relative"}}),fa(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Bi(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Aa=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Li({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ii(ha(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ma=function(e){const t=Ea("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ha(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[$a(o),la(e,"zoom-big-fast")]}),Aa,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},ja=ua.map((e=>`${e}-inverse`));function Pa(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ua.includes(e):[].concat(N(ja),N(ua)).includes(e)}function Ra(e,t){const n=Pa(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 za=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]=ji(),{getPopupContainer:E,getPrefixCls:$,direction:A}=e.useContext(qi),M=(()=>{const e=()=>{};return e.deprecated=Gi,e})(),j=e.useRef(null),P=()=>{var e;null===(e=j.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(r,(()=>({forceAlign:P,forcePopupAlign:()=>{M.deprecated(!1,"forcePopupAlign","forceAlign"),P()}})));const[R,z]=(T=!1,_={value:null!==(o=n.open)&&void 0!==o?o:n.visible,defaultValue:null!==(i=n.defaultOpen)&&void 0!==i?i:n.defaultVisible},N=(I=_||{}).defaultValue,L=I.value,H=I.onChange,D=I.postState,F=w(ot((function(){return it(L)?L:it(N)?"function"==typeof N?N():N:T})),2),W=F[0],X=F[1],G=void 0!==L?L:W,q=D?D(G):G,V=Ke(H),Y=w(ot([G]),2),U=Y[0],Z=Y[1],B((function(){var e=U[0];W!==e&&V(W,e)}),[U]),B((function(){it(L)||X(L)}),[L]),[q,Ke((function(e,t){X(e,t),Z([G],t)}))]);var T,_,I,N,L,H,D,F,W,X,G,q,V,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(Di).forEach((e=>{const l=r&&Fi[e]||Di[e],u=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Wi.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=Li({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(Ui,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ce=$("tooltip",a),le=$(),ue=n["data-popover-inject"];let fe=R;"open"in n||"visible"in n||!K||(fe=!1);const de=e.isValidElement(p)&&!function(e){return e&&t().isValidElement(e)&&e.type===t().Fragment}(p)?p:e.createElement("span",null,p),pe=de.props,he=pe.className&&"string"!=typeof pe.className?pe.className:l()(pe.className,s||`${ce}-open`),[me,ge,ve]=Ma(ce,!ue),be=Ra(ce,f),ye=be.arrowStyle,we=Object.assign(Object.assign({},d),be.overlayStyle),xe=l()(u,{[`${ce}-rtl`]:"rtl"===A},be.className,ae,ge,ve),[Se,ke]=function(e,n){const[,r]=ji(),o=t().useContext(Pi);if(void 0!==n)return[n,n];let i=null!=o?o:0;return e in zi?(i+=(o?0:r.zIndexPopupBase)+zi[e],i=Math.min(i,r.zIndexPopupBase+1e3)):i+=Ti[e],[void 0===o?n:i,i]}("Tooltip",se.zIndex),Ce=e.createElement(Rn,Object.assign({},se,{zIndex:Se,showArrow:C,placement:ne,mouseEnterDelay:re,mouseLeaveDelay:oe,prefixCls:ce,overlayClassName:xe,overlayStyle:Object.assign(Object.assign({},ye),ie),getTooltipContainer:te||c||E,ref:j,builtinPlacements:Q,overlay:ee,visible:fe,onVisibleChange:e=>{var t,r;z(!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:_i(le,"zoom-big-fast",n.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),fe?Xi(de,{className:he}):de);return me(e.createElement(Pi.Provider,{value:ke},Ce))}));za._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:c}=e.useContext(qi),f=c("tooltip",n),[d,p,h]=Ma(f),m=Ra(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 Ta=za,_a=new uo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Ia=new uo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Na=new uo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),La=new uo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Ha=new uo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ba=new uo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Da=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return ha(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%)"})},Fa=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}},Wa=Ea("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=fa(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({},Zi(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:Qn(f),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(f).div(2).equal(),boxShadow:`0 0 0 ${Qn(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:Qn(d),borderRadius:h(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Qn(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 ${Qn(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:Ba,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:_a,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:Ia,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Na,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:La,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Ha,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%)"}}})}})(Da(e))),Fa),Xa=Ea(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=fa(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({},Zi(e)),{position:"absolute",top:r,padding:`0 ${Qn(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Qn(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:`${Qn(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"}})}})(Da(e))),Fa);function Ga(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 qa(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function Va(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(Ga,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(Ga,Object.assign({},t,{key:n,value:i,offset:r-o,current:r===o}))})),p={transform:`translateY(${-qa(s,i,l<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:p,onTransitionEnd:f},d)}const Ya=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,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=e.useContext(qi),m=h("scroll-number",r),g=Object.assign(Object.assign({},p),{"data-show":u,style:s,className:l()(m,i,a),title:c});let v=o;if(o&&Number(o)%1==0){const t=String(o).split("");v=e.createElement("bdi",null,t.map(((n,r)=>e.createElement(Va,{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?Xi(d,(e=>({className:l()(`${m}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(f,Object.assign({},g,{ref:n}),v)})),Ua=Ya;const Za=(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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:A,direction:M,badge:j}=e.useContext(qi),P=A("badge",c),[R,z,T]=Wa(P),_=m>g?`${g}+`:m,I="0"===_||0===_,N=(null!=d||null!=h)&&(null===m||I&&!E),L=v&&!I,H=L?"":_,B=(0,e.useMemo)((()=>(null==H||""===H||I&&!E)&&!L),[H,I,E,L]),D=(0,e.useRef)(m);B||(D.current=m);const F=D.current,W=(0,e.useRef)(H);B||(W.current=H);const X=W.current,G=(0,e.useRef)(L);B||(G.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"===M?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)}),[M,w,x,null==j?void 0:j.style]),V=null!=y?y:"string"==typeof F||"number"==typeof F?F:void 0,Y=B||!p?null:e.createElement("span",{className:`${P}-status-text`},p),U=F&&"object"==typeof F?Xi(F,(e=>({style:Object.assign(Object.assign({},q),e.style)}))):void 0,Z=Pa(h,!1),K=l()(null==C?void 0:C.indicator,null===(r=null==j?void 0:j.classNames)||void 0===r?void 0:r.indicator,{[`${P}-status-dot`]:N,[`${P}-status-${d}`]:!!d,[`${P}-color-${h}`]:Z}),Q={};h&&!Z&&(Q.color=h,Q.background=h);const J=l()(P,{[`${P}-status`]:N,[`${P}-not-a-wrapper`]:!f,[`${P}-rtl`]:"rtl"===M},S,k,null==j?void 0:j.className,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.root,null==C?void 0:C.root,z,T);if(!f&&N){const t=q.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==j?void 0:j.styles)||void 0===i?void 0:i.root),q)}),e.createElement("span",{className:K,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(a=null==j?void 0:j.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==j?void 0:j.styles)||void 0===s?void 0:s.root),null==O?void 0:O.root)}),f,e.createElement(en,{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=G.current,c=l()(null==C?void 0:C.indicator,null===(o=null==j?void 0:j.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==j?void 0:j.styles)||void 0===i?void 0:i.indicator),q);return h&&!Z&&(f=f||{},f.background=h),e.createElement(Ua,{prefixCls:a,show:!B,motionClassName:n,className:c,count:X,title:V,style:f,key:"scrollNumber",ref:r},U)})),Y))},Ka=e.forwardRef(Za);Ka.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(qi),p=f("ribbon",r),h=`${p}-wrapper`,[m,g,v]=Xa(p,h),b=Pa(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 Qa=Ka,Ja=["xxl","xl","lg","md","sm","xs"];const es=e=>{const[,,,,t]=ji();return t?`${e}-css-var`:""},ts=e.createContext(void 0),ns=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]=ji(),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(Ja).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<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return t().useMemo((()=>{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 D((()=>{const e=i.subscribe((e=>{r.current=e,n&&o()}));return()=>i.unsubscribe(e)}),[]),r.current},rs=e.createContext({}),os=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({},Zi(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Qn(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"}})}},is=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}}}},as=Ea("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ha(e,{avatarBg:n,avatarColor:t});return[os(r),is(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 ss=(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=z(r,f),{getPrefixCls:h,avatar:m}=e.useContext(qi),g=e.useContext(rs),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<t&&i(t-2*r<e?(t-2*r)/e:1)}};e.useEffect((()=>{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:M}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=(e=>{const n=t().useContext(ts);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))),T=ns(R),_=e.useMemo((()=>{if("object"!=typeof P)return{};const e=Ja.find((e=>T[e])),t=P[e];return t?{width:t,height:t,fontSize:t&&(k||A)?t/2:18}:{}}),[T,P]),I=h("avatar",b),N=es(I),[L,H,B]=as(I,N),D=l()({[`${I}-lg`]:"large"===P,[`${I}-sm`]:"small"===P}),F=e.isValidElement(x),W=y||(null==g?void 0:g.shape)||"circle",X=l()(I,D,null==m?void 0:m.className,`${I}-${W}`,{[`${I}-image`]:F||x&&c,[`${I}-icon`]:!!k},B,N,C,O,H),G="number"==typeof P?{width:P,height:P,fontSize:k?P/2:18}:{};let q;if("string"==typeof x&&c)q=e.createElement("img",{src:x,draggable:$,srcSet:S,onError:()=>{const{onError:e}=n;!1!==(null==e?void 0:e())&&u(!1)},alt:E,crossOrigin:M});else if(F)q=x;else if(k)q=k;else if(a||1!==o){const t=`scale(${o})`,n={msTransform:t,WebkitTransform:t,transform:t};q=e.createElement(Ye,{onResize:v},e.createElement("span",{className:`${I}-string`,ref:d,style:Object.assign({},n)},A))}else q=e.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:d},A);return delete j.onError,delete j.gap,L(e.createElement("span",Object.assign({},j,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),_),null==m?void 0:m.style),j.style),className:X,ref:p}),q))},cs=e.forwardRef(ss),ls=e=>e?"function"==typeof e?e():e:null,us=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({},Zi(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}})},Bi(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},fs=e=>{const{componentCls:t}=e;return{[t]:ua.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ds=Ea("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=ha(e,{popoverBg:t,popoverColor:n});return[us(r),fs(r),la(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},Ii(e)),Li({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 ps=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`},ls(n)),e.createElement("div",{className:`${t}-inner-content`},ls(r))):null)(r,s,c)))};const hs=t=>{let{title:n,content:r,prefixCls:o}=t;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},ls(n)),e.createElement("div",{className:`${o}-inner-content`},ls(r)))},ms=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=e.useContext(qi),m=h("popover",r),[g,v,b]=ds(m),y=h(),w=l()(a,v,b);return g(e.createElement(Ta,Object.assign({placement:s,trigger:c,mouseEnterDelay:u,mouseLeaveDelay:f,overlayStyle:d},p,{prefixCls:m,overlayClassName:w,ref:n,overlay:o||i?e.createElement(hs,{prefixCls:m,title:o,content:i}):null,transitionName:_i(y,"zoom-big",p.transitionName),"data-popover-inject":!0})))}));ms._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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(qi),a=i("popover",n),[s,c,u]=ds(a);return s(e.createElement(ps,Object.assign({},o,{prefixCls:a,hashId:c,className:l()(r,u)})))};const gs=ms,vs=t=>{const{size:n,shape:r}=e.useContext(rs),o=e.useMemo((()=>({size:t.size||n,shape:t.shape||r})),[t.size,t.shape,n,r]);return e.createElement(rs.Provider,{value:o},t.children)},bs=cs;bs.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(qi),{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=es(g),[y,w,x]=as(g,b),S=l()(v,{[`${v}-rtl`]:"rtl"===r},x,b,i,a,w),k=ae(m).map(((e,t)=>Xi(e,{key:`avatar-key-${t}`}))),C=k.length;if(c&&c<C){const t=k.slice(0,c),n=k.slice(c,C);return t.push(e.createElement(gs,{key:"avatar-popover-key",content:n,trigger:h,placement:p,overlayClassName:`${v}-popover`,destroyTooltipOnHide:!0},e.createElement(cs,{style:u},"+"+(C-c)))),y(e.createElement(vs,{shape:d,size:f},e.createElement("div",{className:S,style:s},t)))}return y(e.createElement(vs,{shape:d,size:f},e.createElement("div",{className:S,style:s},k)))};const ys=bs,ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},xs=(0,e.createContext)({});function Ss(e){return"object"===d(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===d(e.icon)||"function"==typeof e.icon)}function ks(){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 Cs(e,n,r){return r?t().createElement(e.tag,g(g({key:n},ks(e.attrs)),r),(e.children||[]).map((function(t,r){return Cs(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t().createElement(e.tag,g({key:n},ks(e.attrs)),(e.children||[]).map((function(t,r){return Cs(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Os(e){return No(e)[0]}function Es(e){return e?Array.isArray(e)?e:[e]:[]}var $s=["icon","className","onClick","style","primaryColor","secondaryColor"],As={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ms=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,$s),b=e.useRef(),y=As;if(p&&(y={primaryColor:p,secondaryColor:h||Os(p)}),n=b,r=(0,e.useContext)(xs),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=Ze(n.current);Q(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),s=Ss(l),c="icon should be icon definiton, but got ".concat(l),j(s,"[@ant-design/icons] ".concat(c)),!Ss(l))return null;var w=l;return w&&"function"==typeof w.icon&&(w=g(g({},w),{},{icon:w.icon(y.primaryColor,y.secondaryColor)})),Cs(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}))};Ms.displayName="IconReact",Ms.getTwoToneColors=function(){return g({},As)},Ms.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;As.primaryColor=t,As.secondaryColor=n||Os(t),As.calculated=!!n};const js=Ms;function Ps(e){var t=w(Es(e),2),n=t[0],r=t[1];return js.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Rs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ps(qo.primary);var zs=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,Rs),p=e.useContext(xs),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(Es(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(js,{icon:o,primaryColor:C,secondaryColor:O,style:S}))}));zs.displayName="AntdIcon",zs.getTwoToneColor=function(){var e=js.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},zs.setTwoToneColor=Ps;const Ts=zs;var _s=function(t,n){return e.createElement(Ts,f({},t,{ref:n,icon:ws}))};const Is=e.forwardRef(_s);var Ns=n(2833),Ls=n.n(Ns);const Hs=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,T=m=p=0,I=0,N=0,L=0,H=0,B=c.length,D=B-1,F="",W="",X="",G="";I<B;){if(h=c.charCodeAt(I),I===D&&0!==k+O+C+S&&(0!==k&&(h=47===k?10:47),O=C=S=0,B++,D++),0===k+O+C+S){if(I===D&&(0<N&&(F=F.replace(f,"")),0<F.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:F+=c.charAt(I)}h=59}switch(h){case 123:for(p=(F=F.trim()).charCodeAt(0),m=1,H=++I;I<B;){switch(h=c.charCodeAt(I)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(I+1)){case 42:case 47:e:{for(T=I+1;T<D;++T)switch(c.charCodeAt(T)){case 47:if(42===h&&42===c.charCodeAt(T-1)&&I+2!==T){I=T+1;break e}break;case 10:if(47===h){I=T+1;break e}}I=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;I++<D&&c.charCodeAt(I)!==h;);}if(0===m)break;I++}if(m=c.substring(H,I),0===p&&(p=(F=F.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<N&&(F=F.replace(f,"")),h=F.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=P}if(H=(m=t(r,N,m,h,d+1)).length,0<z&&(w=s(3,m,N=n(P,F,L),r,A,$,H,h,d,l),F=N.join(""),void 0!==w&&0===(H=(m=w.trim()).length)&&(h=0,m="")),0<H)switch(h){case 115:F=F.replace(x,a);case 100:case 109:case 45:m=F+"{"+m+"}";break;case 107:m=(F=F.replace(v,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=F+m,112===l&&(W+=m,m="")}else m=""}else m=t(r,n(r,F,L),m,l,d+1);X+=m,m=L=N=T=p=0,F="",h=c.charCodeAt(++I);break;case 125:case 59:if(1<(H=(F=(0<N?F.replace(f,""):F).trim()).length))switch(0===T&&(p=F.charCodeAt(0),45===p||96<p&&123>p)&&(H=(F=F.replace(" ",":")).length),0<z&&void 0!==(w=s(1,F,r,e,A,$,W.length,l,d,l))&&0===(H=(F=w.trim()).length)&&(F="\0\0"),p=F.charCodeAt(0),h=F.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){G+=F+c.charAt(I);break}default:58!==F.charCodeAt(H-1)&&(W+=o(F,p,h,F.charCodeAt(2)))}L=N=T=p=0,F="",h=c.charCodeAt(++I)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==l&&0<F.length&&(N=1,F+="\0"),0<z*_&&s(0,F,r,e,A,$,W.length,l,d,l),$=1,A++;break;case 59:case 125:if(0===k+O+C+S){$++;break}default:switch($++,g=c.charAt(I),h){case 9:case 32:if(0===O+S+k)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+k+S&&(N=L=1,g="\f"+g);break;case 108:if(0===O+k+S+M&&0<T)switch(I-T){case 2:112===E&&58===c.charCodeAt(I-3)&&(M=E);case 8:111===R&&(M=R)}break;case 58:0===O+k+S&&(T=I);break;case 44:0===k+C+O+S&&(N=1,g+="\r");break;case 34:case 39:0===k&&(O=O===h?0:0===O?h:O);break;case 91:0===O+k+C&&S++;break;case 93:0===O+k+C&&S--;break;case 41:0===O+k+S&&C--;break;case 40:0===O+k+S&&(0===p&&(2*E+3*R==533||(p=1)),C++);break;case 64:0===k+C+O+S+T+m&&(m=1);break;case 42:case 47:if(!(0<O+S+C))switch(k){case 0:switch(2*h+3*c.charCodeAt(I+1)){case 235:k=47;break;case 220:H=I,k=42}break;case 42:47===h&&42===E&&H+2!==I&&(33===c.charCodeAt(H+2)&&(W+=c.substring(H,I+1)),g="",k=0)}}0===k&&(F+=g)}R=E,E=h,I++}if(0<(H=W.length)){if(N=r,0<z&&void 0!==(w=s(2,W,N,e,A,$,H,l,d,l))&&0===(W=w).length)return G+W+X;if(W=N.join(",")+"{"+W+"}",0!=j*M){switch(2!==j||i(W,2)||(M=0),M){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}M=0}}return G+W+X}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(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&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===j||2===j&&i(c,1)?"-webkit-"+c+c:c}if(0===j||2===j&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,c,u){for(var f,d=0,p=t;d<z;++d)switch(f=R[d].call(l,e,p,n,r,o,i,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?j=1:(j=2,T=e):j=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<z){var o=s(-1,n,r,r,A,$,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<z&&void 0!==(o=s(-2,i,r,r,A,$,i.length,0,0,0))&&(i=o),M=0,$=A=1,i}var u=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,$=1,A=1,M=0,j=1,P=[],R=[],z=0,T=null,_=0;return l.use=function e(t){switch(t){case void 0:case null:z=R.length=0;break;default:if("function"==typeof t)R[z++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else _=0|!!t}return e},l.set=c,void 0!==e&&c(e),l},Bs={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};function Ds(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Fs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ws=Ds((function(e){return Fs.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Xs=n(4146),Gs=n.n(Xs);function qs(){return(qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Vs=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Ys=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,P.typeOf)(e)},Us=Object.freeze([]),Zs=Object.freeze({});function Ks(e){return"function"==typeof e}function Qs(e){return e.displayName||e.name||"Component"}function Js(e){return e&&"string"==typeof e.styledComponentId}var ec="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",tc="undefined"!=typeof window&&"HTMLElement"in window,nc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function rc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var oc=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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&rc(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),ic=new Map,ac=new Map,sc=1,cc=function(e){if(ic.has(e))return ic.get(e);for(;ac.has(sc);)sc++;var t=sc++;return ic.set(e,t),ac.set(t,e),t},lc=function(e){return ac.get(e)},uc=function(e,t){t>=sc&&(sc=t+1),ic.set(e,t),ac.set(t,e)},fc="style["+ec+'][data-styled-version="5.3.5"]',dc=new RegExp("^"+ec+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),pc=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},hc=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(dc);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(uc(l,c),pc(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},mc=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},gc=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(ec))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ec,"active"),r.setAttribute("data-styled-version","5.3.5");var a=mc();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},vc=function(){function e(e){var t=this.element=gc(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<r;n++){var o=t[n];if(o.ownerNode===e)return o}rc(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),bc=function(){function e(e){var t=this.element=gc(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),yc=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),wc=tc,xc={isServer:!tc,useCSSOMInjection:!nc},Sc=function(){function e(e,t,n){void 0===e&&(e=Zs),void 0===t&&(t={}),this.options=qs({},xc,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&tc&&wc&&(wc=!1,function(e){for(var t=document.querySelectorAll(fc),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(ec)&&(hc(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return cc(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(qs({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new yc(o):r?new vc(o):new bc(o),new oc(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(cc(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(cc(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(cc(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=lc(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=ec+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),kc=/(a)(d)/gi,Cc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Oc(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Cc(t%52)+n;return(Cc(t%52)+n).replace(kc,"$1-$2")}var Ec=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$c=function(e){return Ec(5381,e)};function Ac(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ks(n)&&!Js(n))return!1}return!0}var Mc=$c("5.3.5"),jc=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ac(e),this.componentId=t,this.baseHash=Ec(Mc,t),this.baseStyle=n,Sc.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Vc(this.rules,e,t,n).join(""),a=Oc(Ec(this.baseHash,i)>>>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=Ec(this.baseHash,n.hash),u="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)u+=d;else if(d){var p=Vc(d,e,t,n),h=Array.isArray(p)?p.join(""):p;l=Ec(l,h+f),u+=h}}if(u){var m=Oc(l>>>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}(),Pc=/^\s*\/\/.*$/gm,Rc=[":","[",".","#"];function zc(e){var t,n,r,o,i=void 0===e?Zs:e,a=i.options,s=void 0===a?Zs:a,c=i.plugins,l=void 0===c?Us:c,u=new Hs(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!==Rc.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Pc,""),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||rc(15),Ec(e,t.name)}),5381).toString():"",h}var Tc=t().createContext(),_c=(Tc.Consumer,t().createContext()),Ic=(_c.Consumer,new Sc),Nc=zc();function Lc(){return(0,e.useContext)(Tc)||Ic}function Hc(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=Lc(),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 zc({options:{prefix:!n.disableVendorPrefixes},plugins:o})}),[n.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){Ls()(o,n.stylisPlugins)||i(n.stylisPlugins)}),[n.stylisPlugins]),t().createElement(Tc.Provider,{value:s},t().createElement(_c.Provider,{value:c},n.children))}var Bc=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Nc);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 rc(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=Nc),this.name+e.hash},e}(),Dc=/([A-Z])/,Fc=/([A-Z])/g,Wc=/^ms-/,Xc=function(e){return"-"+e.toLowerCase()};function Gc(e){return Dc.test(e)?e.replace(Fc,Xc).replace(Wc,"-ms-"):e}var qc=function(e){return null==e||!1===e||""===e};function Vc(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Vc(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return qc(e)?"":Js(e)?"."+e.styledComponentId:Ks(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Vc(e(t),t,n,r):e instanceof Bc?n?(e.inject(n,r),e.getName(r)):e:Ys(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!qc(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Ks(t[a])?i.push(Gc(a)+":",t[a],";"):Ys(t[a])?i.push.apply(i,e(t[a],a)):i.push(Gc(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Bs?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var Yc=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Uc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ks(e)||Ys(e)?Yc(Vc(Vs(Us,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Yc(Vc(Vs(e,n)))}new Set;var Zc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Kc=/(^-|-$)/g;function Qc(e){return e.replace(Zc,"-").replace(Kc,"")}function Jc(e){return"string"==typeof e&&!0}var el=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},tl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function nl(e,t,n){var r=e[n];el(t)&&el(r)?rl(r,t):e[n]=t}function rl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(el(a))for(var s in a)tl(s)&&nl(e,a[s],s)}return e}var ol=t().createContext();ol.Consumer;var il={};function al(n,r,o){var i=Js(n),a=!Jc(n),s=r.attrs,c=void 0===s?Us:s,l=r.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Qc(e);il[n]=(il[n]||0)+1;var r=n+"-"+function(e){return Oc($c(e)>>>0)}("5.3.5"+n+il[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):l,f=r.displayName,d=void 0===f?function(e){return Jc(e)?"styled."+e:"Styled("+Qs(e)+")"}(n):f,p=r.displayName&&r.componentId?Qc(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 jc(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=Zs);var r=qs({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Ks(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=Zs),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,e.useContext)(ol),s)||Zs,n,i),p=d[0],h=d[1],m=function(t,n,r){var o=Lc(),i=(0,e.useContext)(_c)||Nc;return n?t.generateAndInjectStyles(Zs,o,i):t.generateAndInjectStyles(r,o,i)}(a,o,p),g=r,v=h.$as||n.$as||h.as||n.as||f,b=Jc(v),y=h!==n?qs({},n,{},h):n,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(l?l(x,Ws,v):!b||Ws(x))&&(w[x]=y[x]));return n.style&&h.style!==n.style&&(w.style=qs({},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):Us,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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(Jc(e)?e:Qc(Qs(e)));return al(e,qs({},n,{attrs:h,componentId:i}),o)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?rl({},n.defaultProps,e):e}}),g.toString=function(){return"."+g.styledComponentId},a&&Gs()(g,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var sl,cl=function(e){return function e(t,n,r){if(void 0===r&&(r=Zs),!(0,P.isValidElementType)(n))return rc(1,String(n));var o=function(){return t(n,r,Uc.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,qs({},r,{},o))},o.attrs=function(o){return e(t,n,qs({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(al,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){cl[e]=cl(e)})),(sl=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Ac(e),Sc.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var o=r(Vc(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},sl.removeStyles=function(e,t){t.clearRules(this.componentId+e)},sl.renderStyles=function(e,t,n,r){e>2&&Sc.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=mc();return"<style "+[n&&'nonce="'+n+'"',ec+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?rc(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return rc(2);var r=((n={})[ec]="",n["data-styled-version"]="5.3.5",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=mc();return o&&(r.nonce=o),[t().createElement("style",qs({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Sc({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?rc(2):t().createElement(Hc,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return rc(3)}}();const ll=cl.div`
   .ant-avatar > img {
     filter: grayscale(${e=>e?.usePublicFetcher?100:0});
   }
-`,fl=()=>{var e;const n=i(),{usePublicFetcher:r,toggleUsePublicFetcher:o}=n,a=r?"Switch to execute as the logged-in user":"Switch to execute as a public user";return(0,t.jsx)(ul,{usePublicFetcher:r,className:"antd-app graphiql-auth-toggle","data-testid":"auth-switch",children:(0,t.jsx)("span",{style:{margin:"0 5px"},children:(0,t.jsx)(_a,{getPopupContainer:()=>window.document.getElementsByClassName("graphiql-auth-toggle")[0],placement:"bottom",title:a,children:(0,t.jsx)("button",{"aria-label":a,type:"button",onClick:o,className:"toolbar-button",children:(0,t.jsx)(Ja,{dot:!r,status:"success",children:(0,t.jsx)(ws,{shape:"circle",size:"small",title:a,src:null!==(e=window?.wpGraphiQLSettings?.avatarUrl)&&void 0!==e?e:null,icon:window?.wpGraphiQLSettings?.avatarUrl?null:(0,t.jsx)(Ns,{})})})})})})})},{hooks:dl,useAppContext:pl}=window.wpGraphiQL;dl.addFilter("graphiql_fetcher","graphiql-auth-switch",((e,t)=>{const{usePublicFetcher:n}=i(),{endpoint:r}=pl();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})),dl.addFilter("graphiql_app","graphiql-auth",(e=>(0,t.jsx)(a,{children:e}))),dl.addFilter("graphiql_toolbar_before_buttons","graphiql-auth-switch",(e=>(e.push((0,t.jsx)(fl,{},"auth-switch")),e)),1)})()})();
\ No newline at end of file
+`,ul=()=>{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)(ll,{usePublicFetcher:r,className:"antd-app graphiql-auth-toggle","data-testid":"auth-switch"},(0,e.createElement)("span",{style:{margin:"0 5px"}},(0,e.createElement)(Ta,{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)(Qa,{dot:!r,status:"success"},(0,e.createElement)(ys,{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)(Is,null)}))))))},{hooks:fl,useAppContext:dl}=window.wpGraphiQL;fl.addFilter("graphiql_fetcher","graphiql-auth-switch",((e,t)=>{const{usePublicFetcher:n}=a(),{endpoint:r}=dl();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})),fl.addFilter("graphiql_app","graphiql-auth",(t=>(0,e.createElement)(s,null,t))),fl.addFilter("graphiql_toolbar_before_buttons","graphiql-auth-switch",(t=>(t.push((0,e.createElement)(ul,{key:"auth-switch"})),t)),1)})()})();
\ No newline at end of file
diff --git a/build/graphiqlFullscreenToggle.asset.php b/build/graphiqlFullscreenToggle.asset.php
index 5e5a6ad7a..4aa1b4431 100644
--- a/build/graphiqlFullscreenToggle.asset.php
+++ b/build/graphiqlFullscreenToggle.asset.php
@@ -1,1 +1,1 @@
-<?php return array('dependencies' => array('react-jsx-runtime'), 'version' => '7265b23e83ecbbd960ed');
+<?php return array('dependencies' => array('react'), 'version' => '0f61bf40b34560ea7c28');
diff --git a/build/graphiqlFullscreenToggle.js b/build/graphiqlFullscreenToggle.js
index d287bffc4..f1e0d1fc9 100644
--- a/build/graphiqlFullscreenToggle.js
+++ b/build/graphiqlFullscreenToggle.js
@@ -1,1 +1,1 @@
-(()=>{"use strict";const e=window.ReactJSXRuntime,{hooks:o}=window.wpGraphiQL,t=()=>(0,e.jsxs)("button",{id:"graphiql-fullscreen-toggle",className:"toolbar-button",title:"Toggle Full Screen",onClick:()=>{document.body.classList.toggle("graphiql-fullscreen")},children:[(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"expand-icon",viewBox:"0 0 512 512",children:(0,e.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"})}),(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"contract-icon",viewBox:"0 0 512 512",children:(0,e.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416V304h112M314.2 314.23L432 432M208 96v112H96M197.8 197.77L80 80M416 208H304V96M314.23 197.8L432 80M96 304h112v112M197.77 314.2L80 432"})})]});o.addFilter("graphiql_toolbar_after_buttons","graphiql-extension",((o,n)=>(o.push((0,e.jsx)(t,{},"fullscreen-toggle")),o)))})();
\ No newline at end of file
+(()=>{"use strict";const e=window.React,{hooks:t}=window.wpGraphiQL,o=()=>(0,e.createElement)("button",{id:"graphiql-fullscreen-toggle",className:"toolbar-button",title:"Toggle Full Screen",onClick:()=>{document.body.classList.toggle("graphiql-fullscreen")}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"expand-icon",viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320M421.8 421.77L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320M90.23 421.8L208 304"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",className:"contract-icon",viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416V304h112M314.2 314.23L432 432M208 96v112H96M197.8 197.77L80 80M416 208H304V96M314.23 197.8L432 80M96 304h112v112M197.77 314.2L80 432"})));t.addFilter("graphiql_toolbar_after_buttons","graphiql-extension",((t,n)=>(t.push((0,e.createElement)(o,{key:"fullscreen-toggle"})),t)))})();
\ No newline at end of file
diff --git a/build/graphiqlQueryComposer.asset.php b/build/graphiqlQueryComposer.asset.php
index e03ecd780..575991433 100644
--- a/build/graphiqlQueryComposer.asset.php
+++ b/build/graphiqlQueryComposer.asset.php
@@ -1,1 +1,1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime'), 'version' => 'b8d9c31d461d67c5ecda');
+<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'cfa0d2bd0fc195776248');
diff --git a/build/graphiqlQueryComposer.js b/build/graphiqlQueryComposer.js
index d12c21788..60e441893 100644
--- a/build/graphiqlQueryComposer.js
+++ b/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<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),l=0;l<a.length;l++){var s=a[l];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},3055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],l=e[a];(o?-1!==t.indexOf(a):t(a,l,e))&&(n[a]=l)}return n}},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},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<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||g&&g[v]||l&&l[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"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,x=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 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 w(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)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(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===x||e.$$typeof===v)},t.typeOf=w},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<i.length;s++){var c=i[s];if(!l(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},528:e=>{"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<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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.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.ReactJSXRuntime,{useContext:t,useState:r,createContext:o,useEffect:i}=wp.element,{hooks:a,useAppContext:l}=window.wpGraphiQL,s=o(),c=()=>t(s),u=({children:t})=>{const n=l(),{queryParams:o,setQueryParams:i}=n,[c,u]=r((()=>{var e,t;const n=null!==(e=window?.localStorage.getItem("graphiql:isQueryComposerOpen"))&&void 0!==e?e:null,r="true"===o?.explorerIsOpen,i=null!==(t=o?.isQueryComposerOpen)&&void 0!==t?t:r;return null!==i?i:null!==n&&n})()),d=a.applyFilters("graphiql_explorer_context_default_value",{isQueryComposerOpen:c,toggleExplorer:()=>{(e=>{c!==e&&u(e);const t={...o,isQueryComposerOpen:e,explorerIsOpen:void 0};JSON.stringify(t)!==JSON.stringify(o)&&i(t),window?.localStorage.setItem("graphiql:isQueryComposerOpen",`${e}`)})(!c)}});return(0,e.jsx)(s.Provider,{value:d,children:t})},{useEffect:d}=wp.element,f=t=>{const{isQueryComposerOpen:n,toggleExplorer:r}=c(),{children:o}=t,i="400px";return n?(0,e.jsx)("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"},children:(0,e.jsxs)("div",{className:"doc-explorer",children:[(0,e.jsxs)("div",{className:"doc-explorer-title-bar",children:[(0,e.jsx)("div",{className:"doc-explorer-title",children:"Query Composer"}),(0,e.jsx)("div",{className:"doc-explorer-rhs",children:(0,e.jsx)("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,children:"✕"})})]}),(0,e.jsx)("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"},children:o})]})}):null},p=wpGraphiQL.GraphQL,m=window.React;var g=n.n(m);let h=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,p.isLeafType)(t[e].type)&&n.push(e)})),n.length?n.slice(0,2):["__typename"]},b={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},y=(0,e.jsx)("svg",{width:"12",height:"9",children:(0,e.jsx)("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})}),x=(0,e.jsx)("svg",{width:"12",height:"9",children:(0,e.jsx)("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})}),w=(0,e.jsx)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("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.jsx)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("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"})}),S={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"}},$={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"NewQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},E=e=>{if(h&&h[0]===e)return h[1];{const n=(e=>{try{return e.trim()?(0,p.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}})(e);var t;return n?n instanceof Error?h?null!==(t=h[1])&&void 0!==t?t:"":$:(h=[e,n],n):$}},k=e=>e.charAt(0).toUpperCase()+e.slice(1),O=e=>(0,p.isNonNullType)(e.type)&&void 0===e.defaultValue,I=e=>{let t=e;for(;(0,p.isWrappingType)(t);)t=t.ofType;return t},j=e=>{let t=e;for(;(0,p.isWrappingType)(t);)t=t.ofType;return t},P=(e,t)=>{if("string"!=typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,p.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}}},M=(e,t,n,r)=>{const o=[];for(const i of r)if((0,p.isRequiredInputField)(i)||t&&t(n,i)){const r=j(i.type);if((0,p.isInputObjectType)(r)){const a=r.getFields();o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:{kind:"ObjectValue",fields:M(e,t,n,Object.keys(a).map((e=>a[e])))}})}else(0,p.isLeafType)(r)&&o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:e(n,i,r)})}return o},R=(e,t,n)=>{const r=[];for(const o of n.args)if(O(o)||t&&t(n,o)){const i=j(o.type);if((0,p.isInputObjectType)(i)){const a=i.getFields();r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:{kind:"ObjectValue",fields:M(e,t,n,Object.keys(a).map((e=>a[e])))}})}else(0,p.isLeafType)(i)&&r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:e(n,o,i)})}return r},N=(e,t,n)=>(e=>{if((0,p.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 A=n(6942),F=n.n(A);function T(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return m.createElement("div",{className:F()("".concat(n,"-content"),i),style:a},m.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function B(e){var t=function(e){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(t)?t:t+""}function D(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function W(e){if(Array.isArray(e))return e}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){if(e){if("string"==typeof e)return q(e,t);var n={}.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)?q(e,t):void 0}}function X(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){return W(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||G(e,t)||X()}const U=window.ReactDOM;var Y=n.n(U);function Q(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Z={},J=[];function ee(e,t){}function te(e,t){}function ne(e,t,n){t||Z[n]||(e(!1,n),Z[n]=!0)}function re(e,t){ne(ee,e,t)}re.preMessage=function(e){J.push(e)},re.resetWarned=function(){Z={}},re.noteOnce=function(e,t){ne(te,e,t)};const oe=re;var ie=n(4363);function ae(e,t,n){var r=m.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var le=function(e,t){"function"==typeof e?e(t):"object"===L(e)&&e&&"current"in e&&(e.current=t)},se=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){le(t,e)}))}},ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ae((function(){return se.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},ue=function(e){var t,n,r=(0,ie.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===ie.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===ie.ForwardRef)};Number(m.version.split(".")[0]);const de=m.createContext(null);function fe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function pe(e){return function(e){if(Array.isArray(e))return q(e)}(e)||fe(e)||G(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 me=Q()?m.useLayoutEffect:m.useEffect,ge=function(e,t){var n=m.useRef(!0);me((function(){return e(n.current)}),t),me((function(){return n.current=!1,function(){n.current=!0}}),[])},he=function(e,t){ge((function(t){if(!t)return e()}),t)};const ve=ge;var be=[],ye="data-rc-order",xe="data-rc-priority",we=new Map;function Ce(){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 Se(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function $e(e){return Array.from((we.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Q())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(ye,a),l&&i&&s.setAttribute(xe,"".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||$e(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ye)))return!1;var t=Number(e.getAttribute(xe)||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||$e(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=$e(r),i=_(_({},n),{},{styles:o});!function(e,t){var n=we.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=Ee("",t),o=r.parentNode;we.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=Ee(e,i);return u.setAttribute(Ce(i),t),u}var je="rc-util-locker-".concat(Date.now()),Pe=0;function Me(e){var t=!!e,n=K(m.useState((function(){return Pe+=1,"".concat(je,"_").concat(Pe)})),1)[0];ve((function(){if(t){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,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ie("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Oe(n);var o;return function(){Oe(n)}}),[t,n])}var Re=!1,Ne=function(e){return!1!==e&&(Q()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ae=m.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,l=e.children,s=K(m.useState(n),2),c=s[0],u=s[1],d=c||n;m.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=K(m.useState((function(){return Ne(o)})),2),p=f[0],g=f[1];m.useEffect((function(){var e=Ne(o);g(null!=e?e:null)}));var h=function(e){var t=K(m.useState((function(){return Q()?document.createElement("div"):null})),1)[0],n=m.useRef(!1),r=m.useContext(de),o=K(m.useState(be),2),i=o[0],a=o[1],l=r||(n.current?void 0:function(e){a((function(t){return[e].concat(pe(t))}))});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function c(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return ve((function(){return e?r?r(s):s():c(),c}),[e]),ve((function(){i.length&&(i.forEach((function(e){return e()})),a(be))}),[i]),[t,l]}(d&&!p),v=K(h,2),b=v[0],y=v[1],x=null!=p?p:b;Me(r&&n&&Q()&&(x===b||x===document.body));var w=null;l&&ue(l)&&t&&(w=l.ref);var C=ce(w,t);if(!d||!Q()||void 0===p)return null;var S=!1===x||Re,$=l;return t&&($=m.cloneElement(l,{ref:C})),m.createElement(de.Provider,{value:y},S?$:(0,U.createPortal)($,x))}));const Fe=Ae;function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return g().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Te(e)):(0,ie.isFragment)(e)&&e.props?n=n.concat(Te(e.props.children,t)):n.push(e))})),n}function ze(e){return e instanceof HTMLElement||e instanceof SVGElement}function Le(e){var t,n=function(e){return e&&"object"===L(e)&&ze(e.nativeElement)?e.nativeElement:ze(e)?e:null}(e);return n||(e instanceof g().Component?null===(t=Y().findDOMNode)||void 0===t?void 0:t.call(Y(),e):null)}var Be=m.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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),He="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,_e=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ve="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(_e):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},We=["top","right","bottom","left","width","height","size","weight"],qe="undefined"!=typeof MutationObserver,Ge=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){Ve(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},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);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ke=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||_e},Ue=et(0,0,0,0);function Ye(e){return parseFloat(e)||0}function Qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ye(e["border-"+n+"-width"])}),0)}var Ze="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ke(e).SVGGraphicsElement}:function(e){return e instanceof Ke(e).SVGElement&&"function"==typeof e.getBBox};function Je(e){return He?Ze(e)?function(e){var t=e.getBBox();return et(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ue;var r=Ke(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Ye(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Ye(r.width),s=Ye(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Qe(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Qe(r,"top","bottom")+a)),!function(e){return e===Ke(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return et(o.left,o.top,l,s)}(e):Ue}function et(e,t,n,r){return{x:e,y:t,width:n,height:r}}var tt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=et(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Je(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),nt=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Xe(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);Xe(this,{target:e,contentRect:n})},rt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new De,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ke(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new tt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ke(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new nt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function dt(e,t,n){return t&&ut(e.prototype,t),n&&ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}function pt(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&&ft(e,t)}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gt=function(){return!!e})()}function ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vt(e,t){if(t&&("object"==L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ht(e)}function bt(e){var t=gt();return function(){var n,r=mt(e);if(t){var o=mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vt(this,n)}}var yt=function(e){pt(n,e);var t=bt(n);function n(){return ct(this,n),t.apply(this,arguments)}return dt(n,[{key:"render",value:function(){return this.props.children}}]),n}(m.Component);function xt(e,t){var n=e.children,r=e.disabled,o=m.useRef(null),i=m.useRef(null),a=m.useContext(Be),l="function"==typeof n,s=l?n(o):n,c=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&m.isValidElement(s)&&ue(s),d=u?s.ref:null,f=ce(d,o),p=function(){var e;return Le(o.current)||(o.current&&"object"===L(o.current)?Le(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Le(i.current)};m.useImperativeHandle(t,(function(){return p()}));var g=m.useRef(e);g.current=e;var h=m.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(l);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==s||c.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:s,offsetHeight:u};c.current=p;var m=s===Math.round(i)?i:s,h=u===Math.round(l)?l:u,v=_(_({},p),{},{offsetWidth:m,offsetHeight:h});null==a||a(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return m.useEffect((function(){var e,t,n=p();return n&&!r&&(e=n,t=h,lt.has(e)||(lt.set(e,new Set),st.observe(e)),lt.get(e).add(t)),function(){return function(e,t){lt.has(e)&&(lt.get(e).delete(t),lt.get(e).size||(st.unobserve(e),lt.delete(e)))}(n,h)}}),[o.current,r]),m.createElement(yt,{ref:i},u?m.cloneElement(s,{ref:f}):s)}const wt=m.forwardRef(xt);function Ct(e,t){var n=e.children;return("function"==typeof n?[n]:Te(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return m.createElement(wt,z({},e,{key:o,ref:0===r?t:void 0}),n)}))}var St=m.forwardRef(Ct);St.Collection=function(e){var t=e.children,n=e.onBatchResize,r=m.useRef(0),o=m.useRef([]),i=m.useContext(Be),a=m.useCallback((function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return m.createElement(Be.Provider,{value:a},t)};const $t=St;function Et(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function kt(e){return function(e){return Et(e)instanceof ShadowRoot}(e)?Et(e):null}function Ot(e){var t=m.useRef();t.current=e;var n=m.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var It=0,jt=_({},m).useId;const Pt=jt?function(e){var t=jt();return e||t}:function(e){var t=K(m.useState("ssr-id"),2),n=t[0],r=t[1];return m.useEffect((function(){var e=It;It+=1,r("rc_unique_".concat(e))}),[]),e||n},Mt=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 Rt=["children"],Nt=m.createContext({});function At(e){var t=e.children,n=V(e,Rt);return m.createElement(Nt.Provider,{value:n},t)}var Ft=function(e){pt(n,e);var t=bt(n);function n(){return ct(this,n),t.apply(this,arguments)}return dt(n,[{key:"render",value:function(){return this.props.children}}]),n}(m.Component);const Tt=Ft;function zt(e){var t=m.useRef(!1),n=K(m.useState(e),2),r=n[0],o=n[1];return m.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Lt(e){return void 0!==e}function Bt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=K(zt((function(){return Lt(o)?o:Lt(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,f=Ot(i),p=K(zt([u]),2),m=p[0],g=p[1];return he((function(){var e=m[0];s!==e&&f(s,e)}),[m]),he((function(){Lt(o)||c(o)}),[o]),[d,Ot((function(e,t){c(e,t),g([u],t)}))]}function Dt(e){return W(e)||fe(e)||G(e)||X()}function Ht(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function _t(e,t,n,r){if(!t.length)return n;var o,i=Dt(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?pe(e):_({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=_t(o[a],l,n,r),o}function Vt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Ht(e,t.slice(0,-1))?e:_t(e,t,n,r)}function Wt(e){return Array.isArray(e)?[]:{}}var qt="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Wt(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=Ht(e,n),s=Array.isArray(l);if(s||"object"===L(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=Ht(r,n);s?r=Vt(r,n,[]):c&&"object"===L(c)||(r=Vt(r,n,Wt(l))),qt(l).forEach((function(e){t([].concat(pe(n),[e]),a)}))}}else r=Vt(r,n,l)}([])})),r}var Xt="none",Kt="appear",Ut="enter",Yt="leave",Qt="none",Zt="prepare",Jt="start",en="active",tn="end",nn="prepared";function rn(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 on,an,ln,sn=(on=Q(),an="undefined"!=typeof window?window:{},ln={animationend:rn("Animation","AnimationEnd"),transitionend:rn("Transition","TransitionEnd")},on&&("AnimationEvent"in an||delete ln.animationend.animation,"TransitionEvent"in an||delete ln.transitionend.transition),ln),cn={};if(Q()){var un=document.createElement("div");cn=un.style}var dn={};function fn(e){if(dn[e])return dn[e];var t=sn[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in cn)return dn[e]=t[i],dn[e]}return""}var pn=fn("animationend"),mn=fn("transitionend"),gn=!(!pn||!mn),hn=pn||"animationend",vn=mn||"transitionend";function bn(e,t){return e?"object"===L(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const yn=Q()?m.useLayoutEffect:m.useEffect;var xn=function(e){return+setTimeout(e,16)},wn=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(xn=function(e){return window.requestAnimationFrame(e)},wn=function(e){return window.cancelAnimationFrame(e)});var Cn=0,Sn=new Map;function $n(e){Sn.delete(e)}var En=function(e){var t=Cn+=1;return function n(r){if(0===r)$n(t),e();else{var o=xn((function(){n(r-1)}));Sn.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};En.cancel=function(e){var t=Sn.get(e);return $n(e),wn(t)};const kn=En;var On=[Zt,Jt,en,tn],In=[Zt,nn],jn=!1;function Pn(e){return e===en||e===tn}function Mn(e,t,n,r){var o,i,a,l,s=r.motionEnter,c=void 0===s||s,u=r.motionAppear,d=void 0===u||u,f=r.motionLeave,p=void 0===f||f,g=r.motionDeadline,h=r.motionLeaveImmediately,v=r.onAppearPrepare,b=r.onEnterPrepare,y=r.onLeavePrepare,x=r.onAppearStart,w=r.onEnterStart,C=r.onLeaveStart,S=r.onAppearActive,$=r.onEnterActive,E=r.onLeaveActive,k=r.onAppearEnd,O=r.onEnterEnd,I=r.onLeaveEnd,j=r.onVisibleChanged,P=K(zt(),2),M=P[0],R=P[1],N=(o=Xt,i=m.useReducer((function(e){return e+1}),0),a=K(i,2)[1],l=m.useRef(o),[Ot((function(){return l.current})),Ot((function(e){l.current="function"==typeof e?e(l.current):e,a()}))]),A=K(N,2),F=A[0],T=A[1],z=K(zt(null),2),L=z[0],B=z[1],H=F(),V=(0,m.useRef)(!1),W=(0,m.useRef)(null);function q(){return n()}var G=(0,m.useRef)(!1);function X(){T(Xt),B(null,!0)}var U=Ot((function(e){var t=F();if(t!==Xt){var n=q();if(!e||e.deadline||e.target===n){var r,o=G.current;t===Kt&&o?r=null==k?void 0:k(n,e):t===Ut&&o?r=null==O?void 0:O(n,e):t===Yt&&o&&(r=null==I?void 0:I(n,e)),o&&!1!==r&&X()}}})),Y=function(e){var t=(0,m.useRef)();function n(t){t&&(t.removeEventListener(vn,e),t.removeEventListener(hn,e))}return m.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(vn,e),r.addEventListener(hn,e),t.current=r)},n]}(U),Q=K(Y,1)[0],Z=function(e){switch(e){case Kt:return D(D(D({},Zt,v),Jt,x),en,S);case Ut:return D(D(D({},Zt,b),Jt,w),en,$);case Yt:return D(D(D({},Zt,y),Jt,C),en,E);default:return{}}},J=m.useMemo((function(){return Z(H)}),[H]),ee=K(function(e,t,n){var r=K(zt(Qt),2),o=r[0],i=r[1],a=function(){var e=m.useRef(null);function t(){kn.cancel(e.current)}return m.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=kn((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=K(a,2),s=l[0],c=l[1],u=t?In:On;return yn((function(){if(o!==Qt&&o!==tn){var e=u.indexOf(o),t=u[e+1],r=n(o);r===jn?i(t,!0):t&&s((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),m.useEffect((function(){return function(){c()}}),[]),[function(){i(Zt,!0)},o]}(H,!e,(function(e){if(e===Zt){var t=J[Zt];return t?t(q()):jn}var n;return ne in J&&B((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===en&&H!==Xt&&(Q(q()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){U({deadline:!0})}),g))),ne===nn&&X(),!0})),2),te=ee[0],ne=ee[1],re=Pn(ne);G.current=re,yn((function(){R(t);var n,r=V.current;V.current=!0,!r&&t&&d&&(n=Kt),r&&t&&c&&(n=Ut),(r&&!t&&p||!r&&h&&!t&&p)&&(n=Yt);var o=Z(n);n&&(e||o[Zt])?(T(n),te()):T(Xt)}),[t]),(0,m.useEffect)((function(){(H===Kt&&!d||H===Ut&&!c||H===Yt&&!p)&&T(Xt)}),[d,c,p]),(0,m.useEffect)((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var oe=m.useRef(!1);(0,m.useEffect)((function(){M&&(oe.current=!0),void 0!==M&&H===Xt&&((oe.current||M)&&(null==j||j(M)),oe.current=!0)}),[M,H]);var ie=L;return J[Zt]&&ne===Jt&&(ie=_({transition:"none"},ie)),[H,ne,ie,null!=M?M:t]}const Rn=function(e){var t=e;"object"===L(e)&&(t=e.transitionSupport);var n=m.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,s=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,m.useContext(Nt).motion),p=(0,m.useRef)(),g=(0,m.useRef)(),h=K(Mn(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:Le(g.current)}catch(e){return null}}),e),4),v=h[0],b=h[1],y=h[2],x=h[3],w=m.useRef(x);x&&(w.current=!0);var C,S=m.useCallback((function(e){p.current=e,le(n,e)}),[n]),$=_(_({},d),{},{visible:o});if(s)if(v===Xt)C=x?s(_({},$),S):!a&&w.current&&u?s(_(_({},$),{},{className:u}),S):l||!a&&!u?s(_(_({},$),{},{style:{display:"none"}}),S):null;else{var E;b===Zt?E="prepare":Pn(b)?E="active":b===Jt&&(E="start");var k=bn(c,"".concat(v,"-").concat(E));C=s(_(_({},$),{},{className:F()(bn(c,v),D(D({},k,k&&E),c,"string"==typeof c)),style:y}),S)}else C=null;return m.isValidElement(C)&&ue(C)&&(C.ref||(C=m.cloneElement(C,{ref:S}))),m.createElement(Tt,{ref:g},C)}));return n.displayName="CSSMotion",n}(gn);var Nn="add",An="keep",Fn="remove",Tn="removed";function zn(e){var t;return _(_({},t=e&&"object"===L(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ln(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(zn)}var Bn=["component","children","onVisibleChanged","onAllRemoved"],Dn=["status"],Hn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Vn=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rn,t=function(t){pt(r,t);var n=bt(r);function r(){var e;ct(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return D(ht(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),D(ht(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:_(_({},e),{},{status:Tn})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Tn})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return dt(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,l=(r.onAllRemoved,V(r,Bn)),s=o||m.Fragment,c={};return Hn.forEach((function(e){c[e]=l[e],delete l[e]})),delete l.keys,m.createElement(s,l,n.map((function(n,r){var o=n.status,l=V(n,Dn),s=o===Nn||o===An;return m.createElement(e,z({},c,{key:l.key,visible:s,eventProps:l,onVisibleChanged:function(e){null==a||a(e,{key:l.key}),e||t.removeKey(l.key)}}),(function(e,t){return i(_(_({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Ln(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Ln(e),a=Ln(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return _(_({},e),{},{status:Nn})}))),r=i),n.push(_(_({},l),{},{status:An})),r+=1,t=!0;break}}t||n.push(_(_({},e),{},{status:Fn}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return _(_({},e),{},{status:Nn})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Fn}))).forEach((function(t){t.key===e&&(t.status=An)}))})),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!==Tn||e.status!==Fn}))}}}]),r}(m.Component);return D(t,"defaultProps",{component:"div"}),t}(gn),Wn=Rn;function qn(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=void 0===s?0:s,u=o.y,d=void 0===u?0:u,f=m.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],h=n.points[1],v=g[0],b=g[1],y=h[0],x=h[1];v!==y&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=d,b!==x&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return m.createElement("div",{ref:f,className:F()("".concat(t,"-arrow"),a),style:p},l)}function Gn(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(Wn,z({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:F()("".concat(t,"-mask"),n)})})):null}var Xn=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Kn=Xn;var Un=m.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,g=e.arrowPos,h=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,S=e.zIndex,$=e.onMouseEnter,E=e.onMouseLeave,k=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,j=e.offsetX,P=e.offsetY,M=e.offsetR,R=e.offsetB,N=e.onAlign,A=e.onPrepare,T=e.stretch,L=e.targetWidth,B=e.targetHeight,D="function"==typeof n?n():n,H=s||c,V=(null==x?void 0:x.length)>0,W=K(m.useState(!x||!V),2),q=W[0],G=W[1];if(ve((function(){!q&&V&&a&&G(!0)}),[q,V,a]),!q)return null;var X="auto",U={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(I||!s){var Y,Q=h.points,Z=h.dynamicInset||(null===(Y=h._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=X):(U.left=j,U.right=X),ee?(U.bottom=R,U.top=X):(U.top=P,U.bottom=X)}var te={};return T&&(T.includes("height")&&B?te.height=B:T.includes("minHeight")&&B&&(te.minHeight=B),T.includes("width")&&L?te.width=L:T.includes("minWidth")&&L&&(te.minWidth=L)),s||(te.pointerEvents="none"),m.createElement(C,{open:y||H,getContainer:x&&function(){return x(a)},autoDestroy:w},m.createElement(Gn,{prefixCls:o,open:s,zIndex:S,mask:f,motion:b}),m.createElement($t,{onResize:N,disabled:!s},(function(e){return m.createElement(Wn,z({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:A,onEnterPrepare:A,visible:s,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(n,a){var l=n.className,c=n.style,f=F()(o,l,r);return m.createElement("div",{ref:se(e,t,a),className:f,style:_(_(_(_({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},U),te),c),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:$,onMouseLeave:E,onPointerEnter:k,onClick:d,onPointerDownCapture:O},p&&m.createElement(qn,{prefixCls:o,arrow:p,arrowPos:g,align:h}),m.createElement(Kn,{cache:!s&&!u},D))}))})))}));const Yn=Un;var Qn=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ue(n),i=m.useCallback((function(e){le(t,r?r(e):e)}),[r]),a=ce(i,n.ref);return o?m.cloneElement(n,{ref:a}):n}));const Zn=Qn,Jn=m.createContext(null);function er(e){return e?Array.isArray(e)?e:[e]:[]}const tr=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 nr(){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 rr(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function or(e){return e.ownerDocument.defaultView}function ir(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=or(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 ar(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function lr(e){return ar(parseFloat(e),0)}function sr(e,t){var n=_({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=or(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=lr(i),g=lr(a),h=lr(l),v=lr(s),b=ar(Math.round(c.width/f*1e3)/1e3),y=ar(Math.round(c.height/u*1e3)/1e3),x=(f-p-h-v)*b,w=(u-d-m-g)*y,C=m*y,S=g*y,$=h*b,E=v*b,k=0,O=0;if("clip"===r){var I=lr(o);k=I*b,O=I*y}var j=c.x+$-k,P=c.y+C-O,M=j+c.width+2*k-$-E-x,R=P+c.height+2*O-C-S-w;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 cr(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 ur(e,t){var n=K(t||[],2),r=n[0],o=n[1];return[cr(e.width,r),cr(e.height,o)]}function dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function fr(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 pr(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 mr=["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 gr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe,t=m.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,l=void 0===a?"hover":a,s=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,g=t.mouseEnterDelay,h=t.mouseLeaveDelay,v=void 0===h?.1:h,b=t.focusDelay,y=t.blurDelay,x=t.mask,w=t.maskClosable,C=void 0===w||w,S=t.getPopupContainer,$=t.forceRender,E=t.autoDestroy,k=t.destroyPopupOnHide,O=t.popup,I=t.popupClassName,j=t.popupStyle,P=t.popupPlacement,M=t.builtinPlacements,R=void 0===M?{}:M,N=t.popupAlign,A=t.zIndex,T=t.stretch,z=t.getPopupClassNameFromAlign,L=t.fresh,B=t.alignPoint,D=t.onPopupClick,H=t.onPopupAlign,W=t.arrow,q=t.popupMotion,G=t.maskMotion,X=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,Q=t.maskAnimation,Z=t.className,J=t.getTriggerDOMNode,ee=V(t,mr),te=E||k||!1,ne=K(m.useState(!1),2),re=ne[0],oe=ne[1];ve((function(){oe(Mt())}),[]);var ie=m.useRef({}),ae=m.useContext(Jn),le=m.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),se=Pt(),ce=K(m.useState(null),2),ue=ce[0],de=ce[1],fe=m.useRef(null),me=Ot((function(e){fe.current=e,ze(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(se,e)})),ge=K(m.useState(null),2),he=ge[0],be=ge[1],ye=m.useRef(null),xe=Ot((function(e){ze(e)&&he!==e&&(be(e),ye.current=e)})),we=m.Children.only(i),Ce=(null==we?void 0:we.props)||{},Se={},$e=Ot((function(e){var t,n,r=he;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=rr(o,q,U,X),ke=rr(o,G,Q,Y),Oe=K(m.useState(d||!1),2),Ie=Oe[0],je=Oe[1],Pe=null!=u?u:Ie,Me=Ot((function(e){void 0===u&&je(e)}));ve((function(){je(u||!1)}),[u]);var Re=m.useRef(Pe);Re.current=Pe;var Ne=m.useRef([]);Ne.current=[];var Ae=Ot((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==f||f(e))})),Fe=m.useRef(),Te=function(){clearTimeout(Fe.current)},Le=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)};m.useEffect((function(){return Te}),[]);var Be=K(m.useState(!1),2),De=Be[0],He=Be[1];ve((function(e){e&&!Pe||He(!0)}),[Pe]);var _e=K(m.useState(null),2),Ve=_e[0],We=_e[1],qe=K(m.useState(null),2),Ge=qe[0],Xe=qe[1],Ke=function(e){Xe([e.clientX,e.clientY])},Ue=function(e,t,n,r,o,i,a){var l=K(m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),s=l[0],c=l[1],u=m.useRef(0),d=m.useMemo((function(){return t?ir(t):[]}),[t]),f=m.useRef({});e||(f.current={});var p=Ot((function(){if(t&&n&&e){var l,s,u,p,m,g=t,h=g.ownerDocument,v=or(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,w=g.style.left,C=g.style.top,S=g.style.right,$=g.style.bottom,E=g.style.overflow,k=_(_({},o[r]),i),O=h.createElement("div");if(null===(l=g.parentElement)||void 0===l||l.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(n))m={x:n[0],y:n[1],width:0,height:0};else{var I,j,P=n.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!==(u=M.y)&&void 0!==u?u:M.top;var R=h.documentElement,N=R.clientWidth,A=R.clientHeight,F=R.scrollWidth,T=R.scrollHeight,z=R.scrollTop,L=R.scrollLeft,B=M.height,D=M.width,H=m.height,V=m.width,W={left:0,top:0,right:N,bottom:A},q={left:-L,top:-z,right:F-L,bottom:T-z},G=k.htmlRegion,X="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=X);var Y=G===U,Q=sr(q,d),Z=sr(W,d),J=G===X?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=w,g.style.top=C,g.style.right=S,g.style.bottom=$,g.style.overflow=E,null===(p=g.parentElement)||void 0===p||p.removeChild(O);var ne=ar(Math.round(D/parseFloat(b)*1e3)/1e3),re=ar(Math.round(B/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||ze(n)&&!tr(n))return;var oe=k.offset,ie=k.targetOffset,ae=K(ur(M,oe),2),le=ae[0],se=ae[1],ce=K(ur(m,ie),2),ue=ce[0],de=ce[1];m.x-=ue,m.y-=de;var fe=K(k.points||[],2),pe=fe[0],me=dr(fe[1]),ge=dr(pe),he=fr(m,me),ve=fr(M,ge),be=_({},k),ye=he.x-ve.x+le,xe=he.y-ve.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+D,a=o+B,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 we,Ce,Se,$e,Ee=mt(ye,xe),ke=mt(ye,xe,Z),Oe=fr(m,["t","l"]),Ie=fr(M,["t","l"]),je=fr(m,["b","r"]),Pe=fr(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(){we=M.y+xe,Ce=we+B,Se=M.x+ye,$e=Se+D}gt();var Le=Te(Ne),Be=ge[0]===me[0];if(Le&&"t"===ge[0]&&(Ce>ee.bottom||f.current.bt)){var De=xe;Be?De-=B-H:De=Oe.y-Pe.y-se;var He=mt(ye,De),_e=mt(ye,De,Z);He>Ee||He===Ee&&(!Y||_e>=ke)?(f.current.bt=!0,xe=De,se=-se,be.points=[pr(ge,0),pr(me,0)]):f.current.bt=!1}if(Le&&"b"===ge[0]&&(we<ee.top||f.current.tb)){var Ve=xe;Be?Ve+=B-H:Ve=je.y-Ie.y-se;var We=mt(ye,Ve),qe=mt(ye,Ve,Z);We>Ee||We===Ee&&(!Y||qe>=ke)?(f.current.tb=!0,xe=Ve,se=-se,be.points=[pr(ge,0),pr(me,0)]):f.current.tb=!1}var Ge=Te(Re),Xe=ge[1]===me[1];if(Ge&&"l"===ge[1]&&($e>ee.right||f.current.rl)){var Ke=ye;Xe?Ke-=D-V:Ke=Oe.x-Pe.x-le;var Ue=mt(Ke,xe),Ye=mt(Ke,xe,Z);Ue>Ee||Ue===Ee&&(!Y||Ye>=ke)?(f.current.rl=!0,ye=Ke,le=-le,be.points=[pr(ge,1),pr(me,1)]):f.current.rl=!1}if(Ge&&"r"===ge[1]&&(Se<ee.left||f.current.lr)){var Qe=ye;Xe?Qe+=D-V:Qe=je.x-Ie.x-le;var Ze=mt(Qe,xe),Je=mt(Qe,xe,Z);Ze>Ee||Ze===Ee&&(!Y||Je>=ke)?(f.current.lr=!0,ye=Qe,le=-le,be.points=[pr(ge,1),pr(me,1)]):f.current.lr=!1}gt();var et=!0===Ae?0:Ae;"number"==typeof et&&(Se<Z.left&&(ye-=Se-Z.left-le,m.x+V<Z.left+et&&(ye+=m.x-Z.left+V-et)),$e>Z.right&&(ye-=$e-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Fe?0:Fe;"number"==typeof tt&&(we<Z.top&&(xe-=we-Z.top-se,m.y+H<Z.top+tt&&(xe+=m.y-Z.top+H-tt)),Ce>Z.bottom&&(xe-=Ce-Z.bottom-se,m.y>Z.bottom-tt&&(xe+=m.y-Z.bottom+tt)));var nt=M.x+ye,rt=nt+D,ot=M.y+xe,it=ot+B,at=m.x,lt=at+V,st=m.y,ct=st+H,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,st)+Math.min(it,ct))/2-ot;null==a||a(t,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)),c({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(){c((function(e){return _(_({},e),{},{ready:!1})}))};return ve(g,[r]),ve((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(Pe,ue,B&&null!==Ge?Ge:he,P,R,N,H),Ye=K(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(e,t,n,r){return m.useMemo((function(){var o=er(null!=n?n:t),i=er(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}(re,l,s,c),ct=K(st,2),ut=ct[0],dt=ct[1],ft=ut.has("click"),pt=dt.has("click")||dt.has("contextMenu"),mt=Ot((function(){De||lt()}));!function(e,t,n,r){ve((function(){if(e&&t&&n){var o=n,i=ir(t),a=ir(o),l=or(o),s=new Set([l].concat(pe(i),pe(a)));function c(){r(),Re.current&&B&&pt&&Le(!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,he,ue,mt),ve((function(){mt()}),[Ge,P]),ve((function(){!Pe||null!=R&&R[P]||mt()}),[JSON.stringify(N)]);var gt=m.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(nr(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(R,o,at,B);return F()(e,null==z?void 0:z(at))}),[at,z,R,o,B]);m.useImperativeHandle(n,(function(){return{nativeElement:ye.current,popupElement:fe.current,forceAlign:mt}}));var ht=K(m.useState(0),2),vt=ht[0],bt=ht[1],yt=K(m.useState(0),2),xt=yt[0],wt=yt[1],Ct=function(){if(T&&he){var e=he.getBoundingClientRect();bt(e.width),wt(e.height)}};function St(e,t,n,r){Se[e]=function(o){var i;null==r||r(o),Le(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=Ce[e])||void 0===i||i.call.apply(i,[Ce,o].concat(l))}}ve((function(){Ve&&(lt(),Ve(),We(null))}),[Ve]),(ft||pt)&&(Se.onClick=function(e){var t;Re.current&&pt?Le(!1):!Re.current&&ft&&(Ke(e),Le(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onClick)||void 0===t||t.call.apply(t,[Ce,e].concat(r))});var Et,It,jt=function(e,t,n,r,o,i,a,l){var s=m.useRef(e);s.current=e;var c=m.useRef(!1);return m.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){c.current=!1},u=function(e){var t;!s.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||l(!1)},d=or(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=kt(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}}),[t,n,r,o,i]),function(){c.current=!0}}(Pe,pt,he,ue,x,C,$e,Le),Rt=ut.has("hover"),Nt=dt.has("hover");Rt&&(St("onMouseEnter",!0,g,(function(e){Ke(e)})),St("onPointerEnter",!0,g,(function(e){Ke(e)})),Et=function(e){(Pe||De)&&null!=ue&&ue.contains(e.target)&&Le(!0,g)},B&&(Se.onMouseMove=function(e){var t;null===(t=Ce.onMouseMove)||void 0===t||t.call(Ce,e)})),Nt&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),It=function(){Le(!1,v)}),ut.has("focus")&&St("onFocus",!0,b),dt.has("focus")&&St("onBlur",!1,y),ut.has("contextMenu")&&(Se.onContextMenu=function(e){var t;Re.current&&dt.has("contextMenu")?Le(!1):(Ke(e),Le(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onContextMenu)||void 0===t||t.call.apply(t,[Ce,e].concat(r))}),Z&&(Se.className=F()(Ce.className,Z));var At=_(_({},Ce),Se),Ft={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Ft[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=At[e])||void 0===t||t.call.apply(t,[At].concat(r)),ee[e].apply(ee,r)})}));var Tt=m.cloneElement(we,_(_({},At),Ft)),zt={x:nt,y:rt},Lt=W?_({},!0!==W?W:{}):null;return m.createElement(m.Fragment,null,m.createElement($t,{disabled:!Pe,ref:xe,onResize:function(){Ct(),mt()}},m.createElement(Zn,{getTriggerDOMNode:J},Tt)),m.createElement(Jn.Provider,{value:le},m.createElement(Yn,{portal:e,ref:me,prefixCls:o,popup:O,className:F()(I,gt),style:j,target:he,onMouseEnter:Et,onMouseLeave:It,onPointerEnter:Et,zIndex:A,open:Pe,keepDom:De,fresh:L,onClick:D,onPointerDownCapture:jt,mask:x,motion:Ee,maskMotion:ke,onVisibleChanged:function(e){He(!1),lt(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){Ct(),We((function(){return e}))}))},forceRender:$,autoDestroy:te,getPopupContainer:S,align:at,arrow:Lt,arrowPos:zt,ready:Qe,offsetX:Ze,offsetY:Je,offsetR:et,offsetB:tt,onAlign:mt,stretch:T,targetWidth:vt/ot,targetHeight:xt/it})))}));return t}(Fe);var hr={shiftX:64,adjustY:1},vr={adjustX:1,shiftY:!0},br=[0,0],yr={left:{points:["cr","cl"],overflow:vr,offset:[-4,0],targetOffset:br},right:{points:["cl","cr"],overflow:vr,offset:[4,0],targetOffset:br},top:{points:["bc","tc"],overflow:hr,offset:[0,-4],targetOffset:br},bottom:{points:["tc","bc"],overflow:hr,offset:[0,4],targetOffset:br},topLeft:{points:["bl","tl"],overflow:hr,offset:[0,-4],targetOffset:br},leftTop:{points:["tr","tl"],overflow:vr,offset:[-4,0],targetOffset:br},topRight:{points:["br","tr"],overflow:hr,offset:[0,-4],targetOffset:br},rightTop:{points:["tl","tr"],overflow:vr,offset:[4,0],targetOffset:br},bottomRight:{points:["tr","br"],overflow:hr,offset:[0,4],targetOffset:br},rightBottom:{points:["bl","br"],overflow:vr,offset:[4,0],targetOffset:br},bottomLeft:{points:["tl","bl"],overflow:hr,offset:[0,4],targetOffset:br},leftBottom:{points:["br","bl"],overflow:vr,offset:[-4,0],targetOffset:br}},xr=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],wr=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,s=void 0===l?.1:l,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,g=e.afterVisibleChange,h=e.transitionName,v=e.animation,b=e.motion,y=e.placement,x=void 0===y?"right":y,w=e.align,C=void 0===w?{}:w,S=e.destroyTooltipOnHide,$=void 0!==S&&S,E=e.defaultVisible,k=e.getTooltipContainer,O=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),j=e.id,P=e.showArrow,M=void 0===P||P,R=V(e,xr),N=(0,m.useRef)(null);(0,m.useImperativeHandle)(t,(function(){return N.current}));var A=_({},R);return"visible"in e&&(A.popupVisible=e.visible),m.createElement(gr,z({popupClassName:n,prefixCls:d,popup:function(){return m.createElement(T,{key:"content",prefixCls:d,id:j,overlayInnerStyle:O},I)},action:o,builtinPlacements:yr,popupPlacement:x,ref:N,popupAlign:C,getPopupContainer:k,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:h,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:$,mouseLeaveDelay:s,popupStyle:c,mouseEnterDelay:a,arrow:M},A),f)};const Cr=(0,m.forwardRef)(wr),Sr=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)},$r=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(oe(!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;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===L(t)&&"object"===L(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};function Er(e){return e.join("%")}var kr=function(){function e(t){ct(this,e),D(this,"instanceId",void 0),D(this,"cache",new Map),this.instanceId=t}return dt(e,[{key:"get",value:function(e){return this.opGet(Er(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Er(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 Or=kr;var Ir="data-token-hash",jr="data-css-hash",Pr="__cssinjs_instance__";var Mr=m.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(jr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Pr]=t[Pr]||e,t[Pr]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(jr,"]"))).forEach((function(t){var n,o=t.getAttribute(jr);r[o]?t[Pr]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Or(e)}(),defaultCache:!0});const Rr=Mr;new RegExp("CALC_UNIT","g");var Nr=function(){function e(){ct(this,e),D(this,"cache",void 0),D(this,"keys",void 0),D(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return dt(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=K(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=K(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();D(Nr,"MAX_CACHE_SIZE",20),D(Nr,"MAX_CACHE_OFFSET",5);var Ar=0,Fr=function(){function e(t){ct(this,e),D(this,"derivatives",void 0),D(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ar,0===t.length&&t.length,Ar+=1}return dt(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Tr=new Nr;function zr(e){var t=Array.isArray(e)?e:[e];return Tr.has(t)||Tr.set(t,new Fr(t)),Tr.get(t)}var Lr=new WeakMap,Br={},Dr=new WeakMap;function Hr(e){var t=Dr.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Fr?t+=r.id:r&&"object"===L(r)?t+=Hr(r):t+=r})),t=Sr(t),Dr.set(e,t)),t}function _r(e,t){return Sr("".concat(t,"_").concat(Hr(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Vr=Q();function Wr(e){return"number"==typeof e?"".concat(e,"px"):e}function qr(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=_(_({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(D(r={},Ir,t),D(r,jr,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"<style ".concat(i,">").concat(e,"</style>")}var Gr=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()},Xr=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=K(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Kr=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=K(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=Gr(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,Xr(r,t,{scope:null==n?void 0:n.scope})]},Ur=_({},m).useInsertionEffect;const Yr=Ur?function(e,t,n){return Ur((function(){return e(),t()}),n)}:function(e,t,n){m.useMemo(e,n),ve((function(){return t(!0)}),n)},Qr=void 0!==_({},m).useInsertionEffect?function(e){var t=[],n=!1;return m.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 Zr(e,t,n,r,o){var i=m.useContext(Rr).cache,a=Er([e].concat(pe(t))),l=Qr([a]),s=function(e){i.opUpdate(a,(function(t){var r=K(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};m.useMemo((function(){s()}),[a]);var c=i.opGet(a)[1];return Yr((function(){null==o||o(c)}),(function(e){return s((function(t){var n=K(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(c)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=K(t||[],2),o=n[0],s=void 0===o?0:o,c=n[1];return 0==s-1?(l((function(){!e&&i.opGet(a)||null==r||r(c,!1)})),null):[s-1,c]}))}}),[a]),c}var Jr={},eo=new Map;var to="token";function no(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,m.useContext)(Rr),o=r.cache.instanceId,i=r.container,a=n.salt,l=void 0===a?"":a,s=n.override,c=void 0===s?Jr:s,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=function(e,n){for(var r=Lr,o=0;o<n.length;o+=1){var i=n[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(Br)||r.set(Br,Object.assign.apply(Object,[{}].concat(pe(t)))),r.get(Br)}(0,t),g=Hr(p),h=Hr(c),v=f?Hr(f):"",b=Zr(to,[l,e.id,g,h,v],(function(){var t,n=d?d(p,c,e):function(e,t,n,r){var o=_(_({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(p,c,e,u),r=_({},n),o="";if(f){var i=K(Kr(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],o=i[1]}var a=_r(n,l);n._tokenKey=a,r._tokenKey=_r(r,l);var s=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=s,function(e){eo.set(e,(eo.get(e)||0)+1)}(s);var m="".concat("css","-").concat(Sr(a));return n._hashId=m,[n,m,r,o,(null==f?void 0:f.key)||""]}),(function(e){!function(e,t){eo.set(e,(eo.get(e)||0)-1);var n=Array.from(eo.keys()),r=n.filter((function(e){return(eo.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ir,'="').concat(e,'"]')).forEach((function(e){var n;e[Pr]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),eo.delete(e)}))}(e[0]._themeKey,o)}),(function(e){var t=K(e,4),n=t[0],r=t[3];if(f&&r){var a=Ie(r,Sr("css-variables-".concat(n._themeKey)),{mark:jr,prepend:"queue",attachTo:i,priority:-999});a[Pr]=o,a.setAttribute(Ir,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=Math.abs,so=String.fromCharCode;function co(e){return e.trim()}function uo(e,t,n){return e.replace(t,n)}function fo(e,t,n){return e.indexOf(t,n)}function po(e,t){return 0|e.charCodeAt(t)}function mo(e,t,n){return e.slice(t,n)}function go(e){return e.length}function ho(e,t){return t.push(e),e}function vo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function bo(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ao:return e.return=e.return||e.value;case oo:return"";case"@keyframes":return e.return=e.value+"{"+vo(e.children,r)+"}";case io:if(!go(e.value=e.props.join(",")))return""}return go(n=vo(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var yo=1,xo=1,wo=0,Co=0,So=0,$o="";function Eo(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:yo,column:xo,length:a,return:"",siblings:l}}function ko(){return So=Co>0?po($o,--Co):0,xo--,10===So&&(xo=1,yo--),So}function Oo(){return So=Co<wo?po($o,Co++):0,xo++,10===So&&(xo=1,yo++),So}function Io(){return po($o,Co)}function jo(){return Co}function Po(e,t){return mo($o,e,t)}function Mo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ro(e){return co(Po(Co-1,Fo(91===e?e+2:40===e?e+1:e)))}function No(e){for(;(So=Io())&&So<33;)Oo();return Mo(e)>2||Mo(So)>3?"":" "}function Ao(e,t){for(;--t&&Oo()&&!(So<48||So>102||So>57&&So<65||So>70&&So<97););return Po(e,jo()+(t<6&&32==Io()&&32==Oo()))}function Fo(e){for(;Oo();)switch(So){case e:return Co;case 34:case 39:34!==e&&39!==e&&Fo(So);break;case 40:41===e&&Fo(e);break;case 92:Oo()}return Co}function To(e,t){for(;Oo()&&e+So!==57&&(e+So!==84||47!==Io()););return"/*"+Po(t,Co-1)+"*"+so(47===e?e:Oo())}function zo(e){for(;!Mo(Io());)Oo();return Po(e,Co)}function Lo(e){return function(e){return $o="",e}(Bo("",null,null,null,[""],e=function(e){return yo=xo=1,wo=go($o=e),Co=0,[]}(e),0,[0],e))}function Bo(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="",x=o,w=i,C=r,S=y;h;)switch(m=b,b=Oo()){case 40:if(108!=m&&58==po(S,d-1)){-1!=fo(S+=uo(Ro(b),"&","&\f"),"&\f",lo(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Ro(b);break;case 9:case 10:case 13:case 32:S+=No(m);break;case 92:S+=Ao(jo()-1,7);continue;case 47:switch(Io()){case 42:case 47:ho(Ho(To(Oo(),jo()),t,n,s),s),5!=Mo(m||1)&&5!=Mo(Io()||1)||!go(S)||" "===mo(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=go(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=uo(S,/\f/g,"")),p>0&&(go(S)-d||0===g&&47===m)&&ho(p>32?_o(S+";",r,n,d-1,s):_o(uo(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(ho(C=Do(S,t,n,c,u,o,l,y,x=[],w=[],d,i),i),123===b)if(0===u)Bo(S,t,C,C,x,i,d,l,w);else switch(99===f&&110===po(S,3)?100:f){case 100:case 108:case 109:case 115:Bo(e,C,C,r&&ho(Do(e,C,C,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:Bo(S,C,C,C,[""],w,0,l,w)}}c=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+go(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==ko())continue;switch(S+=so(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(go(S)-1)*v,v=1;break;case 64:45===Io()&&(S+=Ro(Oo())),f=Io(),u=d=go(y=S+=zo(jo())),b++;break;case 45:45===m&&2==go(S)&&(g=0)}}return i}function Do(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;g<r;++g)for(var b=0,y=mo(e,f+1,f=lo(h=a[g])),x=e;b<m;++b)(x=co(h>0?p[b]+" "+y:uo(y,/&\f/g,p[b])))&&(s[v++]=x);return Eo(e,t,n,0===o?io:l,s,c,u,d)}function Ho(e,t,n,r){return Eo(e,t,n,oo,so(So),mo(e,2,-2),0,r)}function _o(e,t,n,r,o){return Eo(e,t,n,ao,mo(e,0,r),mo(e,r+1,-1),r,o)}var Vo,Wo="data-ant-cssinjs-cache-path",qo="_FILE_STYLE__",Go=!0;var Xo="_multi_value_";function Ko(e){return vo(Lo(e),bo).replace(/\{%%%\:[^;];}/g,";")}var Uo=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=K(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"!==L(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===L(e)&&e&&("_skip_check_"in e||Xo in e)}(r)){var u;function w(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"===L(r)&&null!=r&&r[Xo]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(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(pe(n.slice(1))).join(" ")}));return i.join(",")}("&"===h?"":t,l,c):!o||l||"&"!==h&&""!==h||(h="",v=!0);var b=K(e(r,n,{root:v,injectHash:g,parentSelectors:[].concat(pe(a),[h])}),2),y=b[0],x=b[1];p=_(_({},p),x),f+="".concat(h).concat(y)}}))}})),o?s&&(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 Yo(e,t){return Sr("".concat(e.join("%")).concat(t))}function Qo(){return null}var Zo="style";function Jo(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=void 0===s?0:s,u=m.useContext(Rr),d=u.autoClear,f=(u.mock,u.defaultCache),p=u.hashPriority,g=u.container,h=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,pe(r));var S=Vr,$=Zr(Zo,C,(function(){var e=C.join("|");if(function(e){return function(){if(!Vo&&(Vo={},Q())){var e=document.createElement("div");e.className=Wo,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=K(e.split(":"),2),n=t[0],r=t[1];Vo[n]=r}));var n,r=document.querySelector("style[".concat(Wo,"]"));r&&(Go=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Vo[e]}(e)){var n=function(e){var t=Vo[e],n=null;if(t&&Q())if(Go)n=qo;else{var r=document.querySelector("style[".concat(jr,'="').concat(Vo[e],'"]'));r?n=r.innerHTML:delete Vo[e]}return[n,t]}(e),a=K(n,2),s=a[0],u=a[1];if(s)return[s,w,u,{},l,c]}var d=t(),f=K(Uo(d,{hashId:o,hashPriority:p,layer:x?i:void 0,path:r.join("-"),transformers:v,linters:b}),2),m=f[0],g=f[1],h=Ko(m),y=Yo(C,h);return[h,w,y,g,l,c]}),(function(e,t){var n=K(e,3)[2];(t||d)&&Vr&&Oe(n,{mark:jr})}),(function(e){var t=K(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(S&&n!==qo){var i={mark:jr,prepend:!x&&"queue",attachTo:g,priority:c},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var s=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?s.push(e):u.push(e)})),s.forEach((function(e){Ie(Ko(o[e]),"_layer-".concat(e),_(_({},i),{},{prepend:!0}))}));var d=Ie(n,r,i);d[Pr]=y.instanceId,d.setAttribute(Ir,w),u.forEach((function(e){Ie(Ko(o[e]),"_effect-".concat(e),i)}))}})),E=K($,3),k=E[0],O=E[1],I=E[2];return function(e){var t,n;return t=h&&!S&&f?m.createElement("style",z({},(D(n={},Ir,O),D(n,jr,I),n),{dangerouslySetInnerHTML:{__html:k}})):m.createElement(Qo,null),m.createElement(m.Fragment,null,t,e)}}var ei="cssVar";var ti;D(ti={},Zo,(function(e,t,n){var r=K(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=qr(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=qr(Ko(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),D(ti,to,(function(e,t,n){var r=K(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,qr(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),D(ti,ei,(function(e,t,n){var r=K(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;return o?[-999,i,qr(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));var ni=function(){function e(t,n){ct(this,e),D(this,"name",void 0),D(this,"style",void 0),D(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 ri=ni;function oi(e){return e.notSplit=!0,e}function ii(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 ai(e){return Math.min(1,Math.max(0,e))}function li(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function si(e){return e<=1?"".concat(100*Number(e),"%"):e}function ci(e){return 1===e.length?"0"+e:String(e)}function ui(e,t,n){e=ii(e,255),t=ii(t,255),n=ii(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+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:a,l}}function di(e,t,n){return n<0&&(n+=1),n>1&&(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 fi(e,t,n){e=ii(e,255),t=ii(t,255),n=ii(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<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s,v:a}}function pi(e,t,n,r){var o=[ci(Math.round(e).toString(16)),ci(Math.round(t).toString(16)),ci(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function mi(e){return gi(e)/255}function gi(e){return parseInt(e,16)}oi(["borderTop","borderBottom"]),oi(["borderTop"]),oi(["borderBottom"]),oi(["borderLeft","borderRight"]),oi(["borderLeft"]),oi(["borderRight"]);var hi={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function vi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(hi[e])e=hi[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=wi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wi.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wi.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=wi.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wi.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=wi.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wi.hex8.exec(e))?{r:gi(n[1]),g:gi(n[2]),b:gi(n[3]),a:mi(n[4]),format:t?"name":"hex8"}:(n=wi.hex6.exec(e))?{r:gi(n[1]),g:gi(n[2]),b:gi(n[3]),format:t?"name":"hex"}:(n=wi.hex4.exec(e))?{r:gi(n[1]+n[1]),g:gi(n[2]+n[2]),b:gi(n[3]+n[3]),a:mi(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=wi.hex3.exec(e))&&{r:gi(n[1]+n[1]),g:gi(n[2]+n[2]),b:gi(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(Ci(e.r)&&Ci(e.g)&&Ci(e.b)?(t=function(e,t,n){return{r:255*ii(e,255),g:255*ii(t,255),b:255*ii(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ci(e.h)&&Ci(e.s)&&Ci(e.v)?(r=si(e.s),o=si(e.v),t=function(e,t,n){e=6*ii(e,360),t=ii(t,100),n=ii(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,o),a=!0,l="hsv"):Ci(e.h)&&Ci(e.s)&&Ci(e.l)&&(r=si(e.s),i=si(e.l),t=function(e,t,n){var r,o,i;if(e=ii(e,360),t=ii(t,100),n=ii(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=di(l,a,e+1/3),o=di(l,a,e),i=di(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=li(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var bi="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),yi="[\\s|\\(]+(".concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")\\s*\\)?"),xi="[\\s|\\(]+(".concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")\\s*\\)?"),wi={CSS_UNIT:new RegExp(bi),rgb:new RegExp("rgb"+yi),rgba:new RegExp("rgba"+xi),hsl:new RegExp("hsl"+yi),hsla:new RegExp("hsla"+xi),hsv:new RegExp("hsv"+yi),hsva:new RegExp("hsva"+xi),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ci(e){return Boolean(wi.CSS_UNIT.exec(String(e)))}var Si=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function $i(e){var t=fi(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Ei(e){var t=e.r,n=e.g,r=e.b;return"#".concat(pi(t,n,r,!1))}function ki(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 Oi(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),Number(r.toFixed(2)));var r}function Ii(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function ji(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=vi(e),o=5;o>0;o-=1){var i=$i(r),a=Ei(vi({h:ki(i,o,!0),s:Oi(i,o,!0),v:Ii(i,o,!0)}));n.push(a)}n.push(Ei(r));for(var l=1;l<=4;l+=1){var s=$i(r),c=Ei(vi({h:ki(s,l),s:Oi(s,l),v:Ii(s,l)}));n.push(c)}return"dark"===t.theme?Si.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Ei((r=vi(t.backgroundColor||"#141414"),i=100*l/100,{r:((o=vi(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 Pi=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Pi.primary=Pi[5];var Mi=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Mi.primary=Mi[5];var Ri=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ri.primary=Ri[5];var Ni=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ni.primary=Ni[5];var Ai=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ai.primary=Ai[5];var Fi=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fi.primary=Fi[5];var Ti=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ti.primary=Ti[5];var zi=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];zi.primary=zi[5];var Li=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Li.primary=Li[5];var Bi=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Bi.primary=Bi[5];var Di=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Di.primary=Di[5];var Hi=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Hi.primary=Hi[5];var _i=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_i.primary=_i[5];var Vi=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Vi.primary=Vi[5];var Wi=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Wi.primary=Wi[5];var qi=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];qi.primary=qi[5];var Gi=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Gi.primary=Gi[5];var Xi=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Xi.primary=Xi[5];var Ki=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ki.primary=Ki[5];var Ui=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ui.primary=Ui[5];var Yi=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Yi.primary=Yi[5];var Qi=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Qi.primary=Qi[5];var Zi=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Zi.primary=Zi[5];var Ji=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ji.primary=Ji[5];var ea=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ea.primary=ea[5];var ta=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ta.primary=ta[5];const na={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"},ra=Object.assign(Object.assign({},na),{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 oa=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=vi(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=li(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=fi(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=fi(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=ui(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=ui(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),pi(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=[ci(Math.round(e).toString(16)),ci(Math.round(t).toString(16)),ci(Math.round(n).toString(16)),ci((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*ii(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*ii(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="#"+pi(this.r,this.g,this.b,!1),t=0,n=Object.entries(hi);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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=ai(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=ai(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=ai(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=ai(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;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const ia=(e,t)=>new oa(e).setAlpha(t).toRgbString(),aa=(e,t)=>new oa(e).darken(t).toHexString(),la=e=>{const t=ji(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]}},sa=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ia(r,.88),colorTextSecondary:ia(r,.65),colorTextTertiary:ia(r,.45),colorTextQuaternary:ia(r,.25),colorFill:ia(r,.15),colorFillSecondary:ia(r,.06),colorFillTertiary:ia(r,.04),colorFillQuaternary:ia(r,.02),colorBgLayout:aa(n,4),colorBgContainer:aa(n,0),colorBgElevated:aa(n,0),colorBgSpotlight:ia(r,.85),colorBgBlur:"transparent",colorBorder:aa(n,15),colorBorderSecondary:aa(n,6)}};function ca(e){return(e+8)/e}const ua=zr((function(e){const t=Object.keys(na).map((t=>{const n=ji(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 oa("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:la,generateNeutralColorPalettes:sa})),(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:ca(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))})),da={token:ra,override:{override:ra},hashed:!0},fa=g().createContext(da);function pa(e){return e>=0&&e<=255}const ma=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:l,b:s}=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-l*(1-e))/e),c=Math.round((o-s*(1-e))/e);if(pa(t)&&pa(i)&&pa(c))return new oa({r:t,g:i,b:c,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(ra).forEach((e=>{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:ma(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:ma(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ma(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:ma(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 ha=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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const va={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},ba={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},ya={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},xa=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ha(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=ha(n,["theme"]);let i=o;r&&(i=xa(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function wa(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=g().useContext(fa),i=`5.15.4-${t||""}`,a=n||ua,[l,s,c]=no(a,[ra,e],{salt:i,override:r,getComputedToken:xa,formatToken:ga,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:va,ignore:ba,preserve:ya}});return[a,c,t?s:"",l,o]}const Ca=g().createContext(void 0),Sa=100,$a={Modal:Sa,Drawer:Sa,Popover:Sa,Popconfirm:Sa,Tooltip:Sa,Tour:Sa},Ea={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function ka(e,t){const[,n]=wa(),r=g().useContext(Ca),o=function(e){return e in $a}(e);if(void 0!==t)return[t,t];let i=null!=r?r:0;return o?(i+=(r?0:n.zIndexPopupBase)+$a[e],i=Math.min(i,n.zIndexPopupBase+1e3)):i+=Ea[e],[void 0===r?t:i,i]}const Oa=()=>({height:0,opacity:0}),Ia=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ja=e=>({height:e?e.offsetHeight:0}),Pa=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ma=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Ra=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Oa,onEnterStart:Oa,onAppearActive:Ia,onEnterActive:Ia,onLeaveStart:ja,onLeaveActive:Oa,onAppearEnd:Pa,onEnterEnd:Pa,onLeaveEnd:Pa,motionDeadline:500}};function Na(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 Aa=(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 ${Wr(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Fa(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Ta(e,t){return e?t:{}}function za(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"},Aa(e,t,o)),{"&:before":{background:t}})]},Ta(!!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}}})),Ta(!!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}}})),Ta(!!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}})),Ta(!!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 La={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"]}},Ba={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"]}},Da=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ha(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(La).forEach((e=>{const c=r&&Ba[e]||La[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,Da.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=Fa({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 _a(e){return e&&g().isValidElement(e)&&e.type===g().Fragment}function Va(e,t){return((e,t,n)=>g().isValidElement(e)?g().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}function Wa(){}const qa=m.createContext({}),Ga=()=>{const e=()=>{};return e.deprecated=Wa,e},Xa="anticon",Ka=m.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Xa}),{Consumer:Ua}=Ka,Ya=m.createContext(void 0),Qa=e=>{let{children:t,size:n}=e;const r=m.useContext(Ya);return m.createElement(Ya.Provider,{value:n||r},t)},Za=Ya,Ja=e=>{const t=g().useContext(Za);return g().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},el={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},tl=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}},nl=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"}}}),rl=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i;return{[a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ol=e=>({outline:`${Wr(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),il=e=>({"&:focus-visible":Object.assign({},ol(e))});function al(e,t,n){return t=mt(t),vt(e,gt()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}const ll=dt((function e(){ct(this,e)}));let sl=function(e){function t(e){var n;return ct(this,t),(n=al(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}}])}(ll);const cl="CALC_UNIT";function ul(e){return"number"==typeof e?`${e}${cl}`:e}let dl=function(e){function t(e){var n;return ct(this,t),(n=al(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ul(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} + ${ul(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} - ${ul(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(`${cl}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(ll);const fl="undefined"!=typeof CSSINJS_STATISTIC;let pl=!0;function ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!fl)return Object.assign.apply(Object,[{}].concat(t));pl=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),pl=!0,r}const gl={};function hl(){}const vl=(e,t)=>{const[n,r]=wa();return Jo({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"}})}]))},bl=(e,t,n)=>{var r;return"function"==typeof n?n(ml(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},yl=(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 xl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[l,s,c,u,d]=wa(),{getPrefixCls:f,iconPrefixCls:p,csp:g}=(0,m.useContext)(Ka),h=f(),v=d?"css":"js",b=(e=>{const t="css"===e?dl:sl;return e=>new t(e)})(v),{max:y,min:x}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Wr(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Wr(e))).join(",")})`}}}(v),w={theme:l,token:u,hashId:c,nonce:()=>null==g?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};Jo(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",h]}),(()=>[{"&":nl(u)}])),vl(p,g);const C=Jo(Object.assign(Object.assign({},w),{path:[a,e,p]}),(()=>{if(!1===r.injectStyle)return[];const{token:a,flush:l}=(e=>{let t,n=e,r=hl;return fl&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(pl&&t.add(n),e[n])}),r=(e,n)=>{var r;gl[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=gl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(u),f=bl(i,s,n),m=`.${e}`,g=yl(i,s,f,{deprecatedTokens:r.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${Gr(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("-")}`)(i,d.prefix))})`}));const v=ml(a,{componentCls:m,prefixCls:e,iconCls:`.${p}`,antCls:`.${h}`,calc:b,max:y,min:x},d?f:g),w=t(v,{hashId:c,prefixCls:e,rootPrefixCls:h,iconPrefixCls:p});return l(i,g),[!1===r.resetStyle?null:rl(v,e,o),w]}));return[C,c]}}const wl=(e,t,n,r)=>{const o=xl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},Cl=(e,t,n,r)=>{const o=xl(e,t,n,r),i=((e,t,n)=>{function r(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=null!=n?n:{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach((e=>{a[r(e)]=o[e]}));const l=o=>{let{rootCls:i,cssVar:l}=o;const[,s]=wa();return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,l=e.scope,s=void 0===l?"":l,c=(0,m.useContext)(Rr),u=c.cache.instanceId,d=c.container,f=a._tokenKey,p=[].concat(pe(e.path),[n,s,f]),g=Zr(ei,p,(function(){var e=t(),a=K(Kr(e,n,{prefix:r,unitless:o,ignore:i,scope:s}),2),l=a[0],c=a[1];return[l,c,Yo(p,c),n]}),(function(e){var t=K(e,3)[2];Vr&&Oe(t,{mark:jr})}),(function(e){var t=K(e,3),r=t[1],o=t[2];if(r){var i=Ie(r,o,{mark:jr,prepend:"queue",attachTo:d,priority:-999});i[Pr]=u,i.setAttribute(Ir,n)}}))}({path:[e],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},va),a),ignore:ba,token:s,scope:i},(()=>{const o=bl(e,s,t),i=yl(e,s,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{i[r(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=wa();return[r=>i&&n?g().createElement(g().Fragment,null,g().createElement(l,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}},Sl=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},$l=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"}}}},El=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}}}},kl=Cl("Space",(e=>{const t=ml(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[$l(t),El(t),Sl(t)]}),(()=>({})),{resetStyle:!1});var Ol=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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Il=m.createContext(null),jl=(e,t)=>{const n=m.useContext(Il),r=m.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return F()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${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:r}},Pl=e=>{let{children:t}=e;return m.createElement(Il.Provider,{value:null},t)},Ml=e=>{var{children:t}=e,n=Ol(e,["children"]);return m.createElement(Il.Provider,{value:n},t)},Rl=e=>({animationDuration:e,animationFillMode:"both"}),Nl=e=>({animationDuration:e,animationFillMode:"both"}),Al=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({},Rl(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Nl(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"}}},Fl=new ri("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tl=new ri("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),zl=new ri("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ll=new ri("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Bl=new ri("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Dl=new ri("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Hl=new ri("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),_l=new ri("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Vl=new ri("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Wl=new ri("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ql=new ri("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Gl=new ri("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Xl={zoom:{inKeyframes:Fl,outKeyframes:Tl},"zoom-big":{inKeyframes:zl,outKeyframes:Ll},"zoom-big-fast":{inKeyframes:zl,outKeyframes:Ll},"zoom-left":{inKeyframes:Hl,outKeyframes:_l},"zoom-right":{inKeyframes:Vl,outKeyframes:Wl},"zoom-up":{inKeyframes:Bl,outKeyframes:Dl},"zoom-down":{inKeyframes:ql,outKeyframes:Gl}},Kl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Xl[t];return[Al(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}}]},Ul=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Yl(e,t){return Ul.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 Ql=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({},tl(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:`${Wr(e.calc(c).div(2).equal())} ${Wr(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,8)}},[`${t}-content`]:{position:"relative"}}),Yl(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},za(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Zl=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Fa({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Na(ml(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Jl=function(e){const t=Cl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ml(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Ql(o),Kl(e,"zoom-big-fast")]}),Zl,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},es=Ul.map((e=>`${e}-inverse`));function ts(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Ul.includes(e):[].concat(pe(es),pe(Ul)).includes(e)}(t),r=F()({[`${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 ns=m.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:g=!0,title:h,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,w=!!g,[,C]=wa(),{getPopupContainer:S,getPrefixCls:$,direction:E}=m.useContext(Ka),k=Ga(),O=m.useRef(null),I=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};m.useImperativeHandle(t,(()=>({forceAlign:I,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),I()}})));const[j,P]=Bt(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),M=!h&&!v&&0!==h,R=m.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||Ha({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,g,b,C]),N=m.useMemo((()=>0===h?h:v||h||""),[v,h]),A=m.createElement(Pl,null,"function"==typeof N?N():N),{getPopupContainer:T,placement:z="top",mouseEnterDelay:L=.1,mouseLeaveDelay:B=.1,overlayStyle:D,rootClassName:H}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=$("tooltip",o),W=$(),q=e["data-popover-inject"];let G=j;"open"in e||"visible"in e||!M||(G=!1);const X=m.isValidElement(u)&&!_a(u)?u:m.createElement("span",null,u),K=X.props,U=K.className&&"string"!=typeof K.className?K.className:F()(K.className,i||`${V}-open`),[Y,Q,Z]=Jl(V,!q),J=ts(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},c),J.overlayStyle),ne=F()(l,{[`${V}-rtl`]:"rtl"===E},J.className,H,Q,Z),[re,oe]=ka("Tooltip",_.zIndex),ie=m.createElement(Cr,Object.assign({},_,{zIndex:re,showArrow:w,placement:z,mouseEnterDelay:L,mouseLeaveDelay:B,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:T||a||S,ref:O,builtinPlacements:R,overlay:A,visible:G,onVisibleChange:t=>{var n,r;P(!M&&t),M||(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:m.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Ma(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),G?Va(X,{className:U}):X);return Y(m.createElement(Ca.Provider,{value:oe},ie))}));ns._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=m.useContext(Ka),s=l("tooltip",t),[c,u,d]=Jl(s),f=ts(s,i),p=f.arrowStyle,g=Object.assign(Object.assign({},a),f.overlayStyle),h=F()(u,d,s,`${s}-pure`,`${s}-placement-${r}`,n,f.className);return c(m.createElement("div",{className:h,style:p},m.createElement("div",{className:`${s}-arrow`}),m.createElement(T,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:g}),o)))};const rs=ns;function os(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const is=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(",")}}}}},as=xl("Wave",(e=>[is(e)]));function ls(){ls=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 P(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 x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(M([])));C&&C!==n&&r.call(C,a)&&(x=C);var S=y.prototype=v.prototype=Object.create(x);function $(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(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"==L(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(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<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(L(t)+" is not iterable")}return b.prototype=y,o(S,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},$(E.prototype),c(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},$(S),c(S,s,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=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<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(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;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),h}},t}function ss(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 cs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ss(i,r,o,a,l,"next",e)}function l(e){ss(i,r,o,a,l,"throw",e)}a(void 0)}))}}var us,ds=_({},U),fs=ds.version,ps=ds.render,ms=ds.unmountComponentAtNode;try{Number((fs||"").split(".")[0])>=18&&(us=ds.createRoot)}catch(TC){}function gs(e){var t=ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===L(t)&&(t.usingClientEntryPoint=e)}var hs="__rc_react_root__";function vs(e,t){us?function(e,t){gs(!0);var n=t[hs]||us(t);gs(!1),n.render(e),t[hs]=n}(e,t):function(e,t){ps(e,t)}(e,t)}function bs(_x){return ys.apply(this,arguments)}function ys(){return(ys=cs(ls().mark((function e(t){return ls().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[hs])||void 0===e||e.unmount(),delete t[hs]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xs(e){ms(e)}function ws(){return(ws=cs(ls().mark((function e(t){return ls().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===us){e.next=2;break}return e.abrupt("return",bs(t));case 2:xs(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Cs(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 Ss="ant-wave-target";function $s(e){return Number.isNaN(e)?0:e}const Es=e=>{const{className:t,target:n,component:r}=e,o=m.useRef(null),[i,a]=m.useState(null),[l,s]=m.useState([]),[c,u]=m.useState(0),[d,f]=m.useState(0),[p,g]=m.useState(0),[h,v]=m.useState(0),[b,y]=m.useState(!1),x={left:c,top:d,width:p,height:h,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Cs(t)?t:Cs(n)?n:Cs(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:$s(-parseFloat(r))),f(t?n.offsetTop:$s(-parseFloat(o))),g(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;s([i,l,d,c].map((e=>$s(parseFloat(e)))))}if(i&&(x["--wave-color"]=i),m.useEffect((()=>{if(n){const e=kn((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{kn.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Ss));return m.createElement(Wn,{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 ws.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return m.createElement("div",{ref:o,className:F()(t,{"wave-quick":C},n),style:x})}))},ks=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(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),vs(m.createElement(Es,Object.assign({},t,{target:e})),o)},Os=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=(0,m.useContext)(Ka),i=(0,m.useRef)(null),a=o("wave"),[,l]=as(a),s=function(e,t,n){const{wave:r}=m.useContext(Ka),[,o,i]=wa(),a=Ot((a=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const s=l.querySelector(`.${Ss}`)||l,{showEffect:c}=r||{};(c||ks)(s,{className:t,token:o,component:n,event:a,hashId:i})})),l=m.useRef();return e=>{kn.cancel(l.current),l.current=kn((()=>{a(e)}))}}(i,F()(a,l),r);return g().useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!tr(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),g().isValidElement(t)?Va(t,{ref:ue(t)?se(t.ref,i):i}):null!=t?t:null},Is=m.createContext(!1),js=e=>{let{children:t,disabled:n}=e;const r=m.useContext(Is);return m.createElement(Is.Provider,{value:null!=n?n:r},t)},Ps=Is;const Ms=m.createContext(void 0),Rs=/^[\u4e00-\u9fa5]{2}$/,Ns=Rs.test.bind(Rs);function As(e){return"danger"===e?{danger:!0}:{type:e}}function Fs(e){return"string"==typeof e}function Ts(e){return"text"===e||"link"===e}const zs=(0,m.forwardRef)(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=F()(`${i}-icon`,n);return g().createElement("span",{ref:t,className:a,style:r},o)})),Ls=zs,Bs={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"},Ds=(0,m.createContext)({});function Hs(e){return"object"===L(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===L(e.icon)||"function"==typeof e.icon)}function _s(){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 Vs(e,t,n){return n?g().createElement(e.tag,_(_({key:t},_s(e.attrs)),n),(e.children||[]).map((function(n,r){return Vs(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):g().createElement(e.tag,_({key:t},_s(e.attrs)),(e.children||[]).map((function(n,r){return Vs(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Ws(e){return ji(e)[0]}function qs(e){return e?Array.isArray(e)?e:[e]:[]}var Gs=["icon","className","onClick","style","primaryColor","secondaryColor"],Xs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ks=function(e){var t,n,r,o,i,a,l,s=e.icon,c=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,g=V(e,Gs),h=m.useRef(),v=Xs;if(f&&(v={primaryColor:f,secondaryColor:p||Ws(f)}),t=h,n=(0,m.useContext)(Ds),r=n.csp,o=n.prefixCls,i="\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&&(i=i.replace(/anticon/g,o)),(0,m.useEffect)((function(){var e=kt(t.current);Ie(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=Hs(s),l="icon should be icon definiton, but got ".concat(s),oe(a,"[@ant-design/icons] ".concat(l)),!Hs(s))return null;var b=s;return b&&"function"==typeof b.icon&&(b=_(_({},b),{},{icon:b.icon(v.primaryColor,v.secondaryColor)})),Vs(b.icon,"svg-".concat(b.name),_(_({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:h}))};Ks.displayName="IconReact",Ks.getTwoToneColors=function(){return _({},Xs)},Ks.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Xs.primaryColor=t,Xs.secondaryColor=n||Ws(t),Xs.calculated=!!n};const Us=Ks;function Ys(e){var t=K(qs(e),2),n=t[0],r=t[1];return Us.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Qs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ys(Li.primary);var Zs=m.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=V(e,Qs),u=m.useContext(Ds),d=u.prefixCls,f=void 0===d?"anticon":d,p=u.rootClassName,g=F()(p,f,D(D({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!o||"loading"===r.name),n),h=a;void 0===h&&l&&(h=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=K(qs(s),2),y=b[0],x=b[1];return m.createElement("span",z({role:"img","aria-label":r.name},c,{ref:t,tabIndex:h,onClick:l,className:g}),m.createElement(Us,{icon:r,primaryColor:y,secondaryColor:x,style:v}))}));Zs.displayName="AntdIcon",Zs.getTwoToneColor=function(){var e=Us.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Zs.setTwoToneColor=Ys;const Js=Zs;var ec=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:Bs}))};const tc=m.forwardRef(ec),nc=(0,m.forwardRef)(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=F()(`${n}-loading-icon`,r);return g().createElement(Ls,{prefixCls:n,className:a,style:o,ref:t},g().createElement(tc,{className:i}))})),rc=()=>({width:0,opacity:0,transform:"scale(0)"}),oc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ic=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?g().createElement(nc,{prefixCls:t,className:o,style:i}):g().createElement(Wn,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:rc,onAppearActive:oc,onEnterStart:rc,onEnterActive:oc,onLeaveStart:oc,onLeaveActive:rc},((e,n)=>{let{className:r,style:a}=e;return g().createElement(nc,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},ac=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lc=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}},ac(`${t}-primary`,o),ac(`${t}-danger`,i)]}},sc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ml(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},cc=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:ca(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:ca(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:ca(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)}},uc=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:`${Wr(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({},il(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"}}}},dc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gc=(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"},dc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),hc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mc(e))}),vc=e=>Object.assign({},hc(e)),bc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),dc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),gc(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},dc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hc(e))}),xc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),dc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),gc(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},dc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),gc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hc(e))}),wc=e=>Object.assign(Object.assign({},yc(e)),{borderStyle:"dashed"}),Cc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},dc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bc(e))}),Sc=e=>Object.assign(Object.assign(Object.assign({},dc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bc(e)),dc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),$c=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yc(e),[`${t}-primary`]:xc(e),[`${t}-dashed`]:wc(e),[`${t}-link`]:Cc(e),[`${t}-text`]:Sc(e),[`${t}-ghost`]:gc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ec=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:`${Wr(c)} ${Wr(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}`]:fc(e)},{[`${n}${n}-round${t}`]:pc(e)}]},kc=e=>{const t=ml(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Ec(t,e.componentCls)},Oc=e=>{const t=ml(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 Ec(t,`${e.componentCls}-sm`)},Ic=e=>{const t=ml(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ec(t,`${e.componentCls}-lg`)},jc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Pc=Cl("Button",(e=>{const t=sc(e);return[uc(t),kc(t),Oc(t),Ic(t),jc(t),$c(t),lc(t)]}),cc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Mc(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 Rc(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 Nc(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({},Mc(e,r,t)),Rc(n,r,t))}}function Ac(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 Fc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ac(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 Tc=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% + ${Wr(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% + ${Wr(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},zc=wl(["Button","compact"],(e=>{const t=sc(e);return[Nc(t),Fc(t),Tc(t)]}),cc);const Lc=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a,danger:l,shape:s="default",size:c,styles:u,disabled:d,className:f,rootClassName:p,children:h,icon:v,ghost:b=!1,block:y=!1,htmlType:x="button",classNames:w,style:C={}}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),$=a||"default",{getPrefixCls:E,autoInsertSpaceInButton:k,direction:O,button:I}=(0,m.useContext)(Ka),j=E("btn",i),[P,M,R]=Pc(j),N=(0,m.useContext)(Ps),A=null!=d?d:N,T=(0,m.useContext)(Ms),z=(0,m.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}}(o)),[o]),[L,B]=(0,m.useState)(z.loading),[D,H]=(0,m.useState)(!1),_=se(t,(0,m.createRef)()),V=1===m.Children.count(h)&&!v&&!Ts($);(0,m.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,m.useEffect)((()=>{if(!_||!_.current||!1===k)return;const e=_.current.textContent;V&&Ns(e)?D||H(!0):D&&H(!1)}),[_]);const W=t=>{const{onClick:n}=e;L||A?t.preventDefault():null==n||n(t)},q=!1!==k,{compactSize:G,compactItemClassnames:X}=jl(j,O),K=Ja((e=>{var t,n;return null!==(n=null!==(t=null!=c?c: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=os(S,["navigate"]),Z=F()(j,M,R,{[`${j}-${s}`]:"default"!==s&&s,[`${j}-${$}`]:$,[`${j}-${U}`]:U,[`${j}-icon-only`]:!h&&0!==h&&!!Y,[`${j}-background-ghost`]:b&&!Ts($),[`${j}-loading`]:L,[`${j}-two-chinese-chars`]:D&&q&&!L,[`${j}-block`]:y,[`${j}-dangerous`]:!!l,[`${j}-rtl`]:"rtl"===O},X,f,p,null==I?void 0:I.className),J=Object.assign(Object.assign({},null==I?void 0:I.style),C),ee=F()(null==w?void 0:w.icon,null===(n=null==I?void 0:I.classNames)||void 0===n?void 0:n.icon),te=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==I?void 0:I.styles)||void 0===r?void 0:r.icon)||{}),ne=v&&!L?g().createElement(Ls,{prefixCls:j,className:ee,style:te},v):g().createElement(ic,{existIcon:!!v,prefixCls:j,loading:!!L}),re=h||0===h?function(e,t){let n=!1;const r=[];return g().Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),g().Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Fs(e.type)&&Ns(e.props.children)?Va(e,{children:e.props.children.split("").join(n)}):Fs(e)?Ns(e)?g().createElement("span",null,e.split("").join(n)):g().createElement("span",null,e):_a(e)?g().createElement("span",null,e):e}(e,t)))}(h,V&&q):null;if(void 0!==Q.href)return P(g().createElement("a",Object.assign({},Q,{className:F()(Z,{[`${j}-disabled`]:A}),href:A?void 0:Q.href,style:J,onClick:W,ref:_,tabIndex:A?-1:0}),ne,re));let oe=g().createElement("button",Object.assign({},S,{type:x,className:Z,style:J,onClick:W,disabled:A,ref:_}),ne,re,!!X&&g().createElement(zc,{key:"compact",prefixCls:j}));return Ts($)||(oe=g().createElement(Os,{component:"Button",disabled:!!L},oe)),P(oe)},Bc=(0,m.forwardRef)(Lc);Bc.Group=e=>{const{getPrefixCls:t,direction:n}=m.useContext(Ka),{prefixCls:r,size:o,className:i}=e,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=wa();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=F()(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:"rtl"===n},i,s);return m.createElement(Ms.Provider,{value:o},m.createElement("div",Object.assign({},a,{className:u})))},Bc.__ANT_BUTTON=!0;const Dc=Bc,Hc=e=>e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked;var _c="RC_FORM_INTERNAL_HOOKS",Vc=function(){oe(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Wc=m.createContext({getFieldValue:Vc,getFieldsValue:Vc,getFieldError:Vc,getFieldWarning:Vc,getFieldsError:Vc,isFieldsTouched:Vc,isFieldTouched:Vc,isFieldValidating:Vc,isFieldsValidating:Vc,resetFields:Vc,setFields:Vc,setFieldValue:Vc,setFieldsValue:Vc,validateFields:Vc,submit:Vc,getInternalHooks:function(){return Vc(),{dispatch:Vc,initEntityValue:Vc,registerField:Vc,useSubscribe:Vc,setInitialValues:Vc,destroyForm:Vc,setCallbacks:Vc,registerWatch:Vc,getFields:Vc,setValidateMessages:Vc,setPreserve:Vc,getInitialValue:Vc}}}),qc=m.createContext(null);function Gc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xc.apply(this,arguments)}function Kc(e){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kc(e)}function Uc(e,t){return Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uc(e,t)}function Yc(e,t,n){return Yc=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Uc(o,n.prototype),o},Yc.apply(null,arguments)}function Qc(e){var t="function"==typeof Map?new Map:void 0;return Qc=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return Yc(e,arguments,Kc(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Uc(r,e)},Qc(e)}var Zc=/%[sdj%]/g;function Jc(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 eu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(Zc,(function(e){if("%%"===e)return"%";if(o>=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 tu(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 nu(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<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var ru=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Uc(t,n),r}(Qc(Error));function ou(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function iu(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=Xc({},e[n],r):e[n]=r}return e}var au,lu=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!tu(t,i||e.type)||r.push(eu(o.messages.required,e.fullField))},su=/^(([^<>()\[\]\\.,;:\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,}))$/,cu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,uu={integer:function(e){return uu.number(e)&&parseInt(e,10)===e},float:function(e){return uu.number(e)&&!uu.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&&!uu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(su)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(au)return au;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 au=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(cu)}},du="enum",fu=lu,pu=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(eu(o.messages.whitespace,e.fullField))},mu=function(e,t,n,r,o){if(e.required&&void 0===t)lu(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?uu[i](t)||r.push(eu(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(eu(o.messages.types[i],e.fullField,e.type))}},gu=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(eu(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(eu(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(eu(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(eu(o.messages[c].range,e.fullField,e.min,e.max))},hu=function(e,t,n,r,o){e[du]=Array.isArray(e[du])?e[du]:[],-1===e[du].indexOf(t)&&r.push(eu(o.messages[du],e.fullField,e[du].join(", ")))},vu=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(eu(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(eu(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},bu=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(tu(t,i)&&!e.required)return n();fu(e,t,r,a,o,i),tu(t,i)||mu(e,t,r,a,o)}n(a)},yu={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(tu(t,"string")&&!e.required)return n();fu(e,t,r,i,o,"string"),tu(t,"string")||(mu(e,t,r,i,o),gu(e,t,r,i,o),vu(e,t,r,i,o),!0===e.whitespace&&pu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&mu(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),tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&(mu(e,t,r,i,o),gu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&mu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),tu(t)||mu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&(mu(e,t,r,i,o),gu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&(mu(e,t,r,i,o),gu(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();fu(e,t,r,i,o,"array"),null!=t&&(mu(e,t,r,i,o),gu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&mu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o),void 0!==t&&hu(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(tu(t,"string")&&!e.required)return n();fu(e,t,r,i,o),tu(t,"string")||vu(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(tu(t,"date")&&!e.required)return n();var a;fu(e,t,r,i,o),tu(t,"date")||(a=t instanceof Date?t:new Date(t),mu(e,a,r,i,o),a&&gu(e,a.getTime(),r,i,o))}n(i)},url:bu,hex:bu,email:bu,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;fu(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(tu(t)&&!e.required)return n();fu(e,t,r,i,o)}n(i)}};function xu(){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 wu=xu(),Cu=function(){function e(e){this.rules=null,this._messages=wu,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=iu(xu(),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===wu&&(s=xu()),iu(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=Xc({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:Xc({},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);nu(a,n,(function(e){return r(e),e.length?i(new ru(e,Jc(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 ru(u,Jc(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?nu(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 Xc({},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(ou(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(ou(o,i)):a.error&&(d=[a.error(o,eu(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=Xc({},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;o<e.length;o++)r(e[o]);t.length?(n=Jc(t),l(t,n)):l(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!yu.hasOwnProperty(e.type))throw new Error(eu("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?yu.required:yu[this.getType(e)]||void 0},e}();Cu.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");yu[e]=t},Cu.warning=function(){},Cu.messages=wu,Cu.validators=yu;var Su="'${name}' is not a valid ${type}",$u={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Su,method:Su,array:Su,object:Su,number:Su,date:Su,boolean:Su,integer:Su,float:Su,regexp:Su,email:Su,url:Su,hex:Su},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Eu=Cu;function ku(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Ou="CODE_LOGIC_ERROR";function Iu(_x,e,t,n,r){return ju.apply(this,arguments)}function ju(){return ju=cs(ls().mark((function e(t,n,r,o,i){var a,l,s,c,u,d,f,p,g;return ls().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=_({},r)).ruleIndex,Eu.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Ou)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new Eu(D({},t,[a])),u=Gt($u,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(D({},t,n),_({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===Ou?u.default:n;return m.isValidElement(r)?m.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Iu("".concat(t,".").concat(n),e,s,o,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(pe(e),pe(t))}),[]));case 23:return p=_(_({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),g=d.map((function(e){return"string"==typeof e?ku(e,p):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),ju.apply(this,arguments)}function Pu(e,t,n,r,o,i){var a,l=e.join("."),s=n.map((function(e,t){var n=e.validator,r=_(_({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){oe(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,oe(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=cs(ls().mark((function e(n,o){var a,c,u;return ls().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,Iu(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map((function(e){return Iu(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Ru.apply(this,arguments)}(c):function(e){return Mu.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Mu(){return(Mu=cs(ls().mark((function e(t){return ls().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,pe(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ru(){return(Ru=cs(ls().mark((function e(t){var n;return ls().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nu(e){return Gc(e)}function Au(e,t){var n={};return t.forEach((function(t){var r=Ht(e,t);n=Vt(n,t,r)})),n}function Fu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Tu(t,e,n)}))}function Tu(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 zu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===L(t.target)&&e in t.target?t.target[e]:t}function Lu(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(pe(e.slice(0,n)),[o],pe(e.slice(n,t)),pe(e.slice(t+1,r))):i<0?[].concat(pe(e.slice(0,t)),pe(e.slice(t+1,n+1)),[o],pe(e.slice(n+1,r))):e}var Bu=["name"],Du=[];function Hu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var _u=function(e){pt(n,e);var t=bt(n);function n(e){var r;return ct(this,n),D(ht(r=t.call(this,e)),"state",{resetCount:0}),D(ht(r),"cancelRegisterFunc",null),D(ht(r),"mounted",!1),D(ht(r),"touched",!1),D(ht(r),"dirty",!1),D(ht(r),"validatePromise",void 0),D(ht(r),"prevValidating",void 0),D(ht(r),"errors",Du),D(ht(r),"warnings",Du),D(ht(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Nu(o)),r.cancelRegisterFunc=null})),D(ht(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(pe(void 0===n?[]:n),pe(t)):[]})),D(ht(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),D(ht(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),D(ht(r),"metaCache",null),D(ht(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=_(_({},r.getMeta()),{},{destroy:e});$r(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),D(ht(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),p=t&&Fu(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Du,r.warnings=Du,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Du,r.warnings=Du,r.triggerMetaEvent(),null==s||s(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||Du),"warnings"in m&&(r.warnings=m.warnings||Du),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&Fu(t,u,!0))return void r.reRender();if(i&&!u.length&&Hu(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(Nu).some((function(e){return Fu(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&Hu(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),D(ht(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(cs(ls().mark((function o(){var a,l,c,u,d,f,p;return ls().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Gc(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=Pu(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du;if(r.validatePromise===s){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?Du:r;t?o.push.apply(o,pe(i)):n.push.apply(n,pe(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return l||(r.validatePromise=s,r.dirty=!0,r.errors=Du,r.warnings=Du,r.triggerMetaEvent(),r.reRender()),s})),D(ht(r),"isFieldValidating",(function(){return!!r.validatePromise})),D(ht(r),"isFieldTouched",(function(){return r.touched})),D(ht(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(_c).getInitialValue)(r.getNamePath())})),D(ht(r),"getErrors",(function(){return r.errors})),D(ht(r),"getWarnings",(function(){return r.warnings})),D(ht(r),"isListField",(function(){return r.props.isListField})),D(ht(r),"isList",(function(){return r.props.isList})),D(ht(r),"isPreserve",(function(){return r.props.preserve})),D(ht(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),D(ht(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return _(_({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Te(e);return 1===n.length&&m.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),D(ht(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Ht(e||t(!0),n)})),D(ht(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,s=t.getValueProps,c=t.fieldContext,u=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,m=f(_c).dispatch,g=r.getValue(),h=s||function(e){return D({},l,e)},v=e[n],b=h(g),y=_(_({},e),b);return y[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):zu.apply(void 0,[l].concat(n)),a&&(e=a(e,g,p(!0))),m({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},Gc(u||[]).forEach((function(e){var t=y[e];y[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&m({type:"validateField",namePath:d,triggerName:e})}})),y})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(_c).initEntityValue)(ht(r)),r}return dt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(_c).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:m.isValidElement(o)?e=m.cloneElement(o,this.getControlled(o.props)):(oe(!o,"`children` of Field is not validate ReactElement."),e=o),m.createElement(m.Fragment,{key:t},e)}}]),n}(m.Component);D(_u,"contextType",Wc),D(_u,"defaultProps",{trigger:"onChange",valuePropName:"value"});const Vu=function(e){var t=e.name,n=V(e,Bu),r=m.useContext(Wc),o=m.useContext(qc),i=void 0!==t?Nu(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),m.createElement(_u,z({key:a,name:i,isListField:!!o},n,{fieldContext:r}))},Wu=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=m.useContext(Wc),s=m.useContext(qc),c=m.useRef({keys:[],id:0}).current,u=m.useMemo((function(){var e=Nu(l.prefixName)||[];return[].concat(pe(e),pe(Nu(t)))}),[l.prefixName,t]),d=m.useMemo((function(){return _(_({},l),{},{prefixName:u})}),[l,u]),f=m.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(oe(!1,"Form.List only accepts function as children."),null):m.createElement(qc.Provider,{value:f},m.createElement(Wc.Provider,{value:d},m.createElement(Vu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!s},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(u||[])||[]},d={add:function(e,t){var n=s();t>=0&&t<=n.length?(c.keys=[].concat(pe(c.keys.slice(0,t)),[c.id],pe(c.keys.slice(t))),i([].concat(pe(n.slice(0,t)),[e],pe(n.slice(t))))):(c.keys=[].concat(pe(c.keys),[c.id]),i([].concat(pe(n),[e]))),c.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.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||(c.keys=Lu(c.keys,e,t),i(Lu(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(__,e){var t=c.keys[e];return void 0===t&&(c.keys[e]=c.id,t=c.keys[e],c.id+=1),{name:e,key:t,isListField:!0}})),d,t)}))))};var qu="__@field_split__";function Gu(e){return e.map((function(e){return"".concat(L(e),":").concat(e)})).join(qu)}var Xu=function(){function e(){ct(this,e),D(this,"kvs",new Map)}return dt(e,[{key:"set",value:function(e,t){this.kvs.set(Gu(e),t)}},{key:"get",value:function(e){return this.kvs.get(Gu(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(Gu(e))}},{key:"map",value:function(e){return pe(this.kvs.entries()).map((function(t){var n=K(t,2),r=n[0],o=n[1],i=r.split(qu);return e({key:i.map((function(e){var t=K(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 Ku=Xu;var Uu=["name"],Yu=dt((function e(t){var n=this;ct(this,e),D(this,"formHooked",!1),D(this,"forceRootUpdate",void 0),D(this,"subscribable",!0),D(this,"store",{}),D(this,"fieldEntities",[]),D(this,"initialValues",{}),D(this,"callbacks",{}),D(this,"validateMessages",null),D(this,"preserve",null),D(this,"lastValidatePromise",null),D(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}})),D(this,"getInternalHooks",(function(e){return e===_c?(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}):(oe(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),D(this,"useSubscribe",(function(e){n.subscribable=e})),D(this,"prevWithoutPreserves",null),D(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Gt(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Vt(o,n,Ht(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),D(this,"destroyForm",(function(){var e=new Ku;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),D(this,"getInitialValue",(function(e){var t=Ht(n.initialValues,e);return e.length?Gt(t):t})),D(this,"setCallbacks",(function(e){n.callbacks=e})),D(this,"setValidateMessages",(function(e){n.validateMessages=e})),D(this,"setPreserve",(function(e){n.preserve=e})),D(this,"watchList",[]),D(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),D(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)}))}})),D(this,"timeoutId",null),D(this,"warningUnhooked",(function(){})),D(this,"updateStore",(function(e){n.store=e})),D(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),D(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Ku;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),D(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Nu(e);return t.get(n)||{INVALIDATE_NAME_PATH:Nu(e)}}))})),D(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===L(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)})),Au(n.store,l.map(Nu))})),D(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Nu(e);return Ht(n.store,t)})),D(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:Nu(e[n]),errors:[],warnings:[]}}))})),D(this,"getFieldError",(function(e){n.warningUnhooked();var t=Nu(e);return n.getFieldsError([t])[0].errors})),D(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Nu(e);return n.getFieldsError([t])[0].warnings})),D(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Nu),l=!1):(o=null,l=i):(o=i.map(Nu),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every((function(e){return c(e)||e.isList()})):s.some(c);var u=new Ku;o.forEach((function(e){u.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(pe(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),D(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),D(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Nu);return t.some((function(e){var t=e.getNamePath();return Fu(r,t)&&e.isFieldValidating()}))})),D(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),D(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new Ku,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,pe(pe(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))oe(!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)oe(!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(Vt(n.store,o,pe(i)[0].value))}}}}))})),D(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Gt(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Nu);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Vt(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),D(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=V(e,Uu),a=Nu(o);r.push(a),"value"in i&&n.updateStore(Vt(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),D(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=_(_({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),D(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Ht(n.store,r)&&n.updateStore(Vt(n.store,r,t))}})),D(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),D(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!Tu(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Vt(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),D(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})}})),D(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=_(_({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),D(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(pe(r))}),r})),D(this,"updateValue",(function(e,t){var r=Nu(e),o=n.store;n.updateStore(Vt(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(Au(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(pe(i)))})),D(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Gt(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),D(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),D(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Ku;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Nu(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})),D(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Ku;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 Fu(e,n)}));a.length&&r(a,o)}})),D(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(Nu):[],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||Fu(a,t,d)){var r=e.validateRules(_({validateMessages:_(_({},$u),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,pe(n)):r.push.apply(r,pe(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})),D(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 Qu=function(e){var t=m.useRef(),n=K(m.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Yu((function(){n({})}));t.current=r.getForm()}return[t.current]};var Zu=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ju=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=m.useContext(Zu),a=m.useRef({});return m.createElement(Zu.Provider,{value:_(_({},i),{},{validateMessages:_(_({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=_(_({},a.current),{},D({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=_({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)};const ed=Zu;var td=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const nd=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,s=e.component,c=void 0===s?"form":s,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,v=e.onFinishFailed,b=V(e,td),y=m.useContext(ed),x=K(Qu(i),1)[0],w=x.getInternalHooks(_c),C=w.useSubscribe,S=w.setInitialValues,$=w.setCallbacks,E=w.setValidateMessages,k=w.setPreserve,O=w.destroyForm;m.useImperativeHandle(t,(function(){return x})),m.useEffect((function(){return y.registerForm(n,x),function(){y.unregisterForm(n)}}),[y,x,n]),E(_(_({},y.validateMessages),u)),$({onValuesChange:p,onFieldsChange:function(e){if(y.triggerFormChange(n,e),g){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];g.apply(void 0,[e].concat(r))}},onFinish:function(e){y.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:v}),k(a);var I,j=m.useRef(null);S(r,!j.current),j.current||(j.current=!0),m.useEffect((function(){return O}),[]);var P="function"==typeof l;I=P?l(x.getFieldsValue(!0),x):l,C(!P);var M=m.useRef();m.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==L(e)||"object"!==L(t))return!1;var n=Object.keys(e),r=Object.keys(t);return pe(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(M.current||[],o||[])||x.setFields(o||[]),M.current=o}),[o,x]);var R=m.useMemo((function(){return _(_({},x),{},{validateTrigger:f})}),[x,f]),N=m.createElement(qc.Provider,{value:null},m.createElement(Wc.Provider,{value:R},I));return!1===c?N:m.createElement(c,z({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),x.submit()},onReset:function(e){var t;e.preventDefault(),x.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),N)};function rd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}const od=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,s=K((0,m.useState)(),2),c=s[0],u=s[1],d=(0,m.useMemo)((function(){return rd(c)}),[c]),f=(0,m.useRef)(d);f.current=d;var p=(0,m.useContext)(Wc),g=l||p,h=g&&g._init,v=Nu(r),b=(0,m.useRef)(v);return b.current=v,(0,m.useEffect)((function(){if(h){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(_c).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):Ht(n,b.current)},o=t((function(e,t){var r=n(e,t),o=rd(r);f.current!==o&&(f.current=o,u(r))})),i=n(e(),e(!0));return c!==i&&u(i),o}}),[h]),c};var id=m.forwardRef(nd);id.FormProvider=Ju,id.Field=Vu,id.List=Wu,id.useForm=Qu,id.useWatch=od;const ad=id,ld=m.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),sd=m.createContext(null),cd=e=>{const t=os(e,["prefixCls"]);return m.createElement(Ju,Object.assign({},t))},ud=m.createContext({prefixCls:""}),dd=m.createContext({}),fd=e=>{let{children:t,status:n,override:r}=e;const o=(0,m.useContext)(dd),i=(0,m.useMemo)((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return m.createElement(dd.Provider,{value:i},t)},pd=(0,m.createContext)(void 0),md=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),gd=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({},md(ml(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),hd=(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}}),vd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),bd=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gd(e))}),vd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),vd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),yd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),xd=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},yd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),yd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},gd(e))}})}),wd=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Cd=(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}}),Sd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Cd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$d=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gd(e))}),Sd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Sd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ed=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),kd=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:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Ed(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ed(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:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Od=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Wr(t)} ${Wr(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Id=e=>({padding:`${Wr(e.paddingBlockSM)} ${Wr(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),jd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Wr(e.paddingBlock)} ${Wr(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({},Od(e)),"&-sm":Object.assign({},Id(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Pd=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({},Od(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Id(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 ${Wr(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Wr(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Wr(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:`${Wr(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Wr(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}}}})}},Md=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({},tl(e)),jd(e)),bd(e)),$d(e)),wd(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"}})}},Rd=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 ${Wr(e.inputAffixPadding)}`}}}},Nd=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},jd(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}}}),Rd(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Ad=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},tl(e)),Pd(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}}},xd(e)),kd(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}}})})}},Fd=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}}}}},Td=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"}}}}}},zd=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ld=Cl("Input",(e=>{const t=ml(e,function(e){return ml(e,{inputAffixPadding:e.paddingXXS})}(e));return[Md(t),Td(t),Nd(t),Ad(t),Fd(t),zd(t),Nc(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 Bd(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 Dd(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Bd(t,e,r)):n(o=Bd(t,e,""))}}const Hd=function(e){var t,n,r=e.inputElement,o=e.children,i=e.prefixCls,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,u=e.className,d=e.style,f=e.disabled,p=e.readOnly,h=e.focused,v=e.triggerFocus,b=e.allowClear,y=e.value,x=e.handleReset,w=e.hidden,C=e.classes,S=e.classNames,$=e.dataAttrs,E=e.styles,k=e.components,O=null!=o?o:r,I=(null==k?void 0:k.affixWrapper)||"span",j=(null==k?void 0:k.groupWrapper)||"span",P=(null==k?void 0:k.wrapper)||"span",M=(null==k?void 0:k.groupAddon)||"span",R=(0,m.useRef)(null),N=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),A=(0,m.cloneElement)(O,{value:y,className:F()(O.props.className,!N&&(null==S?void 0:S.variant))||null});if(N){var T,B=null;if(b){var H,V=!f&&!p&&y,W="".concat(i,"-clear-icon"),q="object"===L(b)&&null!=b&&b.clearIcon?b.clearIcon:"✖";B=g().createElement("span",{onClick:x,onMouseDown:function(e){return e.preventDefault()},className:F()(W,(H={},D(H,"".concat(W,"-hidden"),!V),D(H,"".concat(W,"-has-suffix"),!!l),H)),role:"button",tabIndex:-1},q)}var G="".concat(i,"-affix-wrapper"),X=F()(G,(D(T={},"".concat(i,"-disabled"),f),D(T,"".concat(G,"-disabled"),f),D(T,"".concat(G,"-focused"),h),D(T,"".concat(G,"-readonly"),p),D(T,"".concat(G,"-input-with-clear-btn"),l&&b&&y),T),null==C?void 0:C.affixWrapper,null==S?void 0:S.affixWrapper,null==S?void 0:S.variant),K=(l||b)&&g().createElement("span",{className:F()("".concat(i,"-suffix"),null==S?void 0:S.suffix),style:null==E?void 0:E.suffix},B,l);A=g().createElement(I,z({className:X,style:null==E?void 0:E.affixWrapper,onClick:function(e){var t;null!==(t=R.current)&&void 0!==t&&t.contains(e.target)&&(null==v||v())}},null==$?void 0:$.affixWrapper,{ref:R}),a&&g().createElement("span",{className:F()("".concat(i,"-prefix"),null==S?void 0:S.prefix),style:null==E?void 0:E.prefix},a),A,K)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var U="".concat(i,"-group"),Y="".concat(U,"-addon"),Q="".concat(U,"-wrapper"),Z=F()("".concat(i,"-wrapper"),U,null==C?void 0:C.wrapper,null==S?void 0:S.wrapper),J=F()(Q,D({},"".concat(Q,"-disabled"),f),null==C?void 0:C.group,null==S?void 0:S.groupWrapper);A=g().createElement(j,{className:J},g().createElement(P,{className:Z},s&&g().createElement(M,{className:Y},s),A,c&&g().createElement(M,{className:Y},c)))}return g().cloneElement(A,{className:F()(null===(t=A.props)||void 0===t?void 0:t.className,u)||null,style:_(_({},null===(n=A.props)||void 0===n?void 0:n.style),d),hidden:w})};var _d=["show"];function Vd(e,t){return m.useMemo((function(){var n={};t&&(n.show="object"===L(t)&&t.formatter?t.formatter:!!t);var r=n=_(_({},n),e),o=r.show,i=V(r,_d);return _(_({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var Wd=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],qd=(0,m.forwardRef)((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=void 0===s?"rc-input":s,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,v=e.showCount,b=e.count,y=e.type,x=void 0===y?"text":y,w=e.classes,C=e.classNames,S=e.styles,$=e.onCompositionStart,E=e.onCompositionEnd,k=V(e,Wd),O=K((0,m.useState)(!1),2),I=O[0],j=O[1],P=(0,m.useRef)(!1),M=(0,m.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=K(Bt(e.defaultValue,{value:e.value}),2),A=N[0],T=N[1],L=null==A?"":String(A),B=K((0,m.useState)(null),2),H=B[0],W=B[1],q=Vd(b,v),G=q.max||p,X=q.strategy(L),U=!!G&&X>G;(0,m.useImperativeHandle)(t,(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,m.useEffect)((function(){j((function(e){return(!e||!u)&&e}))}),[u]);var Y=function(e,t,n){var o,i,a=t;if(!P.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max)t!==(a=q.exceedFormatter(t,{max:q.max}))&&W([(null===(o=M.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=M.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;T(a),M.current&&Dd(M.current,e,r,a)};(0,m.useEffect)((function(){var e;H&&(null===(e=M.current)||void 0===e||e.setSelectionRange.apply(e,pe(H)))}),[H]);var Q,Z=U&&"".concat(c,"-out-of-range");return g().createElement(Hd,z({},k,{prefixCls:c,className:F()(f,Z),handleReset:function(e){T(""),R(),M.current&&Dd(M.current,e,r)},value:L,focused:I,triggerFocus:R,suffix:function(){var e=Number(G)>0;if(h||q.show){var t=q.showFormatter?q.showFormatter({value:L,count:X,maxLength:G}):"".concat(X).concat(e?" / ".concat(G):"");return g().createElement(g().Fragment,null,q.show&&g().createElement("span",{className:F()("".concat(c,"-show-count-suffix"),D({},"".concat(c,"-show-count-has-suffix"),!!h),null==C?void 0:C.count),style:_({},null==S?void 0:S.count)},t),h)}return null}(),disabled:u,classes:w,classNames:C,styles:S}),(Q=os(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),g().createElement("input",z({autoComplete:n},Q,{onChange:function(e){Y(e,e.target.value,{source:"change"})},onFocus:function(e){j(!0),null==o||o(e)},onBlur:function(e){j(!1),null==i||i(e)},onKeyDown:function(e){a&&"Enter"===e.key&&a(e),null==l||l(e)},className:F()(c,D({},"".concat(c,"-disabled"),u),null==C?void 0:C.input),style:null==S?void 0:S.input,ref:M,size:d,type:x,onCompositionStart:function(e){P.current=!0,null==$||$(e)},onCompositionEnd:function(e){P.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==E||E(e)}}))))}));const Gd=qd,Xd={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 Kd=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:Xd}))};const Ud=m.forwardRef(Kd),Yd=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:g().createElement(Ud,null)}),t};function Qd(e,t,n){return F()({[`${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 Zd=(e,t)=>t||e,Jd=e=>{const[,,,,t]=wa();return t?`${e}-css-var`:""},ef=["outlined","borderless","filled"],tf=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,m.useContext)(pd);let r;return r=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined",[r,ef.includes(r)]};function nf(e,t){const n=(0,m.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,m.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const rf=(0,m.forwardRef)(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:v,styles:b,rootClassName:y,onChange:x,classNames:w,variant:C}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:E,input:k}=g().useContext(Ka),O=$("input",r),I=(0,m.useRef)(null),j=Jd(O),[P,M,R]=Ld(O,j),{compactSize:N,compactItemClassnames:A}=jl(O,E),T=Ja((e=>{var t;return null!==(t=null!=a?a:N)&&void 0!==t?t:e})),z=g().useContext(Ps),L=null!=l?l:z,{status:B,hasFeedback:D,feedbackIcon:H}=(0,m.useContext)(dd),_=Zd(B,i),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!D;(0,m.useRef)(V);const W=nf(I,!0),q=(D||u)&&g().createElement(g().Fragment,null,u,D&&H),G=Yd(null!=d?d:null==k?void 0:k.allowClear),[X,K]=tf(C,o);return P(g().createElement(Gd,Object.assign({ref:se(t,I),prefixCls:O,autoComplete:null==k?void 0:k.autoComplete},S,{disabled:L,onBlur:e=>{W(),null==s||s(e)},onFocus:e=>{W(),null==c||c(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:F()(h,y,R,j,A,null==k?void 0:k.className),onChange:e=>{W(),null==x||x(e)},addonAfter:f&&g().createElement(Pl,null,g().createElement(fd,{override:!0,status:!0},f)),addonBefore:p&&g().createElement(Pl,null,g().createElement(fd,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},w),null==k?void 0:k.classNames),{input:F()({[`${O}-sm`]:"small"===T,[`${O}-lg`]:"large"===T,[`${O}-rtl`]:"rtl"===E},null==w?void 0:w.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,M),variant:F()({[`${O}-${X}`]:K},Qd(O,_)),affixWrapper:F()({[`${O}-affix-wrapper-sm`]:"small"===T,[`${O}-affix-wrapper-lg`]:"large"===T,[`${O}-affix-wrapper-rtl`]:"rtl"===E},M),wrapper:F()({[`${O}-group-rtl`]:"rtl"===E},M),groupWrapper:F()({[`${O}-group-wrapper-sm`]:"small"===T,[`${O}-group-wrapper-lg`]:"large"===T,[`${O}-group-wrapper-rtl`]:"rtl"===E,[`${O}-group-wrapper-${X}`]:K},Qd(`${O}-group-wrapper`,_,D),M)})})))})),of=rf,af={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 lf=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:af}))};const sf=m.forwardRef(lf),cf={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 uf=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:cf}))};const df=m.forwardRef(uf);const ff=e=>e?m.createElement(df,null):m.createElement(sf,null),pf={click:"onClick",hover:"onMouseOver"},mf=m.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=(0,m.useState)((()=>!!r&&n.visible)),a=(0,m.useRef)(null);m.useEffect((()=>{r&&i(n.visible)}),[r,n]);const l=nf(a),s=()=>{const{disabled:t}=e;t||(o&&l(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=m.useContext(Ka),h=g("input",d),v=g("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=ff}=e,i=pf[n]||"",a=r(o),l={[i]:s,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return m.cloneElement(m.isValidElement(a)?a:m.createElement("span",null,a),l)})(v),y=F()(v,c,{[`${v}-${f}`]:!!f}),x=Object.assign(Object.assign({},os(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:h,suffix:b});return f&&(x.size=f),m.createElement(of,Object.assign({ref:se(t,a)},x))})),gf=mf,hf={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 vf=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:hf}))};const bf=m.forwardRef(vf);const yf=m.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:g}=e,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=m.useContext(Ka),y=m.useRef(!1),x=v("input-search",n),w=v("input",r),{compactSize:C}=jl(x,b),S=Ja((e=>{var t;return null!==(t=null!=i?i:C)&&void 0!==t?t:e})),$=m.useRef(null),E=e=>{var t;document.activeElement===(null===(t=$.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;d&&d(null===(n=null===(t=$.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof l?m.createElement(bf,null):null,I=`${x}-button`;let j;const P=l||{},M=P.type&&!0===P.type.__ANT_BUTTON;j=M||"button"===P.type?Va(P,Object.assign({onMouseDown:E,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}:{})):m.createElement(Dc,{className:I,type:l?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:E,onClick:k,loading:c,icon:O},l),s&&(j=[j,Va(s,{key:"addonAfter"})]);const R=F()(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!l},o);return m.createElement(of,Object.assign({ref:se($,t),onPressEnter:e=>{y.current||c||k(e)}},h,{size:S,onCompositionStart:e=>{y.current=!0,null==p||p(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:w,addonAfter:j,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:R,disabled:u}))})),xf=yf;var wf,Cf=["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"],Sf={};var $f=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ef=m.forwardRef((function(e,t){var n=e,r=n.prefixCls,o=(n.onPressEnter,n.defaultValue),i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,d=n.onChange,f=(n.onInternalAutoSize,V(n,$f)),p=K(Bt(o,{value:i,postState:function(e){return null!=e?e:""}}),2),g=p[0],h=p[1],v=m.useRef();m.useImperativeHandle(t,(function(){return{textArea:v.current}}));var b=K(m.useMemo((function(){return a&&"object"===L(a)?[a.minRows,a.maxRows]:[]}),[a]),2),y=b[0],x=b[1],w=!!a,C=K(m.useState(2),2),S=C[0],$=C[1],E=K(m.useState(),2),k=E[0],O=E[1],I=function(){$(0)};ve((function(){w&&I()}),[i,y,x,w]),ve((function(){if(0===S)$(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;wf||((wf=document.createElement("textarea")).setAttribute("tab-index","-1"),wf.setAttribute("aria-hidden","true"),document.body.appendChild(wf)),e.getAttribute("wrap")?wf.setAttribute("wrap",e.getAttribute("wrap")):wf.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&&Sf[n])return Sf[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:Cf.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Sf[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;wf.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")),wf.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=wf.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){wf.value=" ";var p=wf.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,x);$(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 j=m.useRef(),P=function(){kn.cancel(j.current)};m.useEffect((function(){return P}),[]);var M=w?k:null,R=_(_({},c),M);return 0!==S&&1!==S||(R.overflowY="hidden",R.overflowX="hidden"),m.createElement($t,{onResize:function(e){2===S&&(null==l||l(e),a&&(P(),j.current=kn((function(){I()}))))},disabled:!(a||l)},m.createElement("textarea",z({},f,{ref:v,style:R,className:F()(r,s,D({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:function(e){h(e.target.value),null==d||d(e)}})))}));const kf=Ef;var Of=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],If=g().forwardRef((function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,b=e.showCount,y=e.count,x=e.className,w=e.style,C=e.disabled,S=e.hidden,$=e.classNames,E=e.styles,k=e.onResize,O=V(e,Of),I=K(Bt(o,{value:i,defaultValue:o}),2),j=I[0],P=I[1],M=null==j?"":String(j),R=K(g().useState(!1),2),N=R[0],A=R[1],T=g().useRef(!1),L=K(g().useState(null),2),B=L[0],H=L[1],W=(0,m.useRef)(null),q=function(){var e;return null===(e=W.current)||void 0===e?void 0:e.textArea},G=function(){q().focus()};(0,m.useImperativeHandle)(t,(function(){return{resizableTextArea:W.current,focus:G,blur:function(){q().blur()}}})),(0,m.useEffect)((function(){A((function(e){return!C&&e}))}),[C]);var X=K(g().useState(null),2),U=X[0],Y=X[1];g().useEffect((function(){var e;U&&(e=q()).setSelectionRange.apply(e,pe(U))}),[U]);var Q,Z=Vd(y,b),J=null!==(n=Z.max)&&void 0!==n?n:u,ee=Number(J)>0,te=Z.strategy(M),ne=!!J&&te>J,re=function(e,t){var n=t;!T.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]),P(n),Dd(e.currentTarget,e,s,n)},oe=p;Z.show&&(Q=Z.showFormatter?Z.showFormatter({value:M,count:te,maxLength:J}):"".concat(te).concat(ee?" / ".concat(J):""),oe=g().createElement(g().Fragment,null,oe,g().createElement("span",{className:F()("".concat(v,"-data-count"),null==$?void 0:$.count),style:null==E?void 0:E.count},Q)));var ie=!O.autoSize&&!b&&!c;return g().createElement(Hd,{value:M,allowClear:c,handleReset:function(e){P(""),G(),Dd(q(),e,s)},suffix:oe,prefixCls:v,classNames:_(_({},$),{},{affixWrapper:F()(null==$?void 0:$.affixWrapper,(r={},D(r,"".concat(v,"-show-count"),b),D(r,"".concat(v,"-textarea-allow-clear"),c),r))}),disabled:C,focused:N,className:F()(x,ne&&"".concat(v,"-out-of-range")),style:_(_({},w),B&&!ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof Q?Q:void 0}},hidden:S},g().createElement(kf,z({},O,{maxLength:u,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){A(!0),null==a||a(e)},onBlur:function(e){A(!1),null==l||l(e)},onCompositionStart:function(e){T.current=!0,null==d||d(e)},onCompositionEnd:function(e){T.current=!1,re(e,e.currentTarget.value),null==f||f(e)},className:F()(null==$?void 0:$.textarea),style:_(_({},null==E?void 0:E.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==k||k(e),null!==(t=q())&&void 0!==t&&t.style.height&&H(!0)},ref:W})))}));const jf=If;const Pf=(0,m.forwardRef)(((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:g,variant:h}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:y,textArea:x}=m.useContext(Ka),w=Ja(a),C=m.useContext(Ps),S=null!=l?l:C,{status:$,hasFeedback:E,feedbackIcon:k}=m.useContext(dd),O=Zd($,s),I=m.useRef(null);m.useImperativeHandle(t,(()=>{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 j=b("input",o),P=Jd(j),[M,R,N]=Ld(j,P),[A,T]=tf(h,i),z=Yd(null!=c?c:null==x?void 0:x.allowClear);return M(m.createElement(jf,Object.assign({autoComplete:null==x?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},null==x?void 0:x.style),p),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:z,className:F()(N,P,f,d,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},u),null==x?void 0:x.classNames),{textarea:F()({[`${j}-sm`]:"small"===w,[`${j}-lg`]:"large"===w},R,null==u?void 0:u.textarea,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:F()({[`${j}-${A}`]:T},Qd(j,O)),affixWrapper:F()(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:"rtl"===y,[`${j}-affix-wrapper-sm`]:"small"===w,[`${j}-affix-wrapper-lg`]:"large"===w,[`${j}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},R)}),prefixCls:j,suffix:E&&m.createElement("span",{className:`${j}-textarea-suffix`},k),ref:I})))})),Mf=Pf,Rf=of;Rf.Group=e=>{const{getPrefixCls:t,direction:n}=(0,m.useContext)(Ka),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=Ld(a),c=F()(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},s,o),u=(0,m.useContext)(dd),d=(0,m.useMemo)((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return l(m.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(dd.Provider,{value:d},e.children)))},Rf.Search=xf,Rf.TextArea=Mf,Rf.Password=gf;const Nf=Rf,{useRef:Af,useEffect:Ff}=wp.element,Tf=t=>{let n=Af(null);const{arg:r,argValue:o,styleConfig:i}=t,a=j(r.type),l="string"==typeof o.value?o.value:"",s="StringValue"===t.argValue.kind?i.colors.string:i.colors.number;return(0,e.jsxs)("span",{style:{color:s},children:["String"===a.name?'"':"",(0,e.jsx)(Nf,{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:zf,isLeafType:Lf}=wpGraphiQL.GraphQL,{useState:Bf}=wp.element,Df=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.jsx)(vh,{argValue:a?a.value:null,arg:o,parentField:i,addArg:()=>{const{selection:e,arg:r,getDefaultScalarArgValue:o,parentField:i,makeDefaultArg:a}=t,l=j(r.type);let s=null;if(n)s=n;else if(zf(l)){const e=l.getFields();s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:{kind:"ObjectValue",fields:M(o,a,i,Object.keys(e).map((t=>e[t])))}}}else Lf(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=j(t.arg.type);if(!(Lf(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 Hf={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>=Hf.F1&&t<=Hf.F12)return!1;switch(t){case Hf.ALT:case Hf.CAPS_LOCK:case Hf.CONTEXT_MENU:case Hf.CTRL:case Hf.DOWN:case Hf.END:case Hf.ESC:case Hf.HOME:case Hf.INSERT:case Hf.LEFT:case Hf.MAC_FF_META:case Hf.META:case Hf.NUMLOCK:case Hf.NUM_CENTER:case Hf.PAGE_DOWN:case Hf.PAGE_UP:case Hf.PAUSE:case Hf.PRINT_SCREEN:case Hf.RIGHT:case Hf.SHIFT:case Hf.UP:case Hf.WIN_KEY:case Hf.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Hf.ZERO&&e<=Hf.NINE)return!0;if(e>=Hf.NUM_ZERO&&e<=Hf.NUM_MULTIPLY)return!0;if(e>=Hf.A&&e<=Hf.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Hf.SPACE:case Hf.QUESTION_MARK:case Hf.NUM_PLUS:case Hf.NUM_MINUS:case Hf.NUM_PERIOD:case Hf.NUM_DIVISION:case Hf.SEMICOLON:case Hf.DASH:case Hf.EQUALS:case Hf.COMMA:case Hf.PERIOD:case Hf.SLASH:case Hf.APOSTROPHE:case Hf.SINGLE_QUOTE:case Hf.OPEN_SQUARE_BRACKET:case Hf.BACKSLASH:case Hf.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const _f=Hf,Vf=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(r):n;return m.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:m.createElement("span",{className:F()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},o))};var Wf=m.createContext(null);function qf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=m.useRef(null),n=m.useRef(null);return m.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var Gf="".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 Xf(e,t){return 0===e.indexOf(t)}function Kf(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}:_({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Xf(n,"aria-"))||t.data&&Xf(n,"data-")||t.attr&&Gf.includes(n))&&(r[n]=e[n])})),r}var Uf=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Yf=void 0;function Qf(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,g=e.order,h=e.component,v=void 0===h?"div":h,b=V(e,Uf),y=a&&!p;function x(e){s(c,e)}m.useEffect((function(){return function(){x(null)}}),[]);var w,C=i&&o!==Yf?i(o):f;r||(w={opacity:y?0:1,height:y?0:Yf,overflowY:y?"hidden":Yf,order:a?g:Yf,pointerEvents:y?"none":Yf,position:y?"absolute":Yf});var S={};y&&(S["aria-hidden"]=!0);var $=m.createElement(v,z({className:F()(!r&&n,u),style:_(_({},w),d)},S,b,{ref:t}),C);return a&&($=m.createElement($t,{onResize:function(e){x(e.offsetWidth)},disabled:l},$)),$}var Zf=m.forwardRef(Qf);Zf.displayName="Item";const Jf=Zf;function ep(e,t){var n=K(m.useState(t),2),r=n[0],o=n[1];return[r,Ot((function(t){e((function(){o(t)}))}))]}var tp=g().createContext(null),np=["component"],rp=["className"],op=["className"],ip=function(e,t){var n=m.useContext(tp);if(!n){var r=e.component,o=void 0===r?"div":r,i=V(e,np);return m.createElement(o,z({},i,{ref:t}))}var a=n.className,l=V(n,rp),s=e.className,c=V(e,op);return m.createElement(tp.Provider,{value:null},m.createElement(Jf,z({ref:t,className:F()(a,s)},l,c)))},ap=m.forwardRef(ip);ap.displayName="RawItem";const lp=ap;var sp=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],cp="responsive",up="invalidate";function dp(e){return"+ ".concat(e.length," ...")}function fp(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,g=e.className,h=e.maxCount,v=e.renderRest,b=e.renderRawRest,y=e.suffix,x=e.component,w=void 0===x?"div":x,C=e.itemComponent,S=e.onVisibleChange,$=V(e,sp),E="full"===f,k=(n=m.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)kn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,U.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),O=K(ep(k,null),2),I=O[0],j=O[1],P=I||0,M=K(ep(k,new Map),2),R=M[0],N=M[1],A=K(ep(k,0),2),T=A[0],L=A[1],B=K(ep(k,0),2),D=B[0],H=B[1],W=K(ep(k,0),2),q=W[0],G=W[1],X=K((0,m.useState)(null),2),Y=X[0],Q=X[1],Z=K((0,m.useState)(null),2),J=Z[0],ee=Z[1],te=m.useMemo((function(){return null===J&&E?Number.MAX_SAFE_INTEGER:J||0}),[J,I]),ne=K((0,m.useState)(!1),2),re=ne[0],oe=ne[1],ie="".concat(o,"-item"),ae=Math.max(T,D),le=h===cp,se=a.length&&le,ce=h===up,ue=se||"number"==typeof h&&a.length>h,de=(0,m.useMemo)((function(){var e=a;return se?e=null===I&&E?a:a.slice(0,Math.min(a.length,P/d)):"number"==typeof h&&(e=a.slice(0,h)),e}),[a,d,I,h,se]),fe=(0,m.useMemo)((function(){return se?a.slice(te+1):a.slice(de.length)}),[a,de,se,te]),pe=(0,m.useCallback)((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),me=(0,m.useCallback)(l||function(e){return e},[l]);function ge(e,t,n){(J!==e||void 0!==t&&t!==Y)&&(ee(e),n||(oe(e<a.length-1),null==S||S(e)),void 0!==t&&Q(t))}function he(e,t){N((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function be(e){return R.get(pe(de[e],e))}ve((function(){if(P&&"number"==typeof ae&&de){var e=q,t=de.length,n=t-1;if(!t)return void ge(0,null);for(var r=0;r<t;r+=1){var o=be(r);if(E&&(o=o||0),void 0===o){ge(r-1,void 0,!0);break}if(e+=o,0===n&&e<=P||r===n-1&&e+be(n)<=P){ge(n,null);break}if(e+ae>P){ge(r-1,e-o-q+D);break}}y&&be(0)+q>P&&Q(null)}}),[P,R,D,q,pe,de]);var ye=re&&!!fe.length,xe={};null!==Y&&se&&(xe={position:"absolute",left:Y,top:0});var we,Ce={prefixCls:ie,responsive:se,component:C,invalidate:ce},Se=s?function(e,t){var n=pe(e,t);return m.createElement(tp.Provider,{key:n,value:_(_({},Ce),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=te})},s(e,t))}:function(e,t){var n=pe(e,t);return m.createElement(Jf,z({},Ce,{order:t,key:n,item:e,renderItem:me,itemKey:n,registerSize:he,display:t<=te}))},$e={order:ye?te:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:function(e,t){H(t),L(D)},display:ye};if(b)b&&(we=m.createElement(tp.Provider,{value:_(_({},Ce),$e)},b(fe)));else{var Ee=v||dp;we=m.createElement(Jf,z({},Ce,$e),"function"==typeof Ee?Ee(fe):Ee)}var ke=m.createElement(w,z({className:F()(!ce&&o,g),style:p,ref:t},$),de.map(Se),ue?we:null,y&&m.createElement(Jf,z({},Ce,{responsive:le,responsiveDisabled:!se,order:te,className:"".concat(ie,"-suffix"),registerSize:function(e,t){G(t)},display:!0,style:xe}),y));return le&&(ke=m.createElement($t,{onResize:function(e,t){j(t.clientWidth)},disabled:!se},ke)),ke}var pp=m.forwardRef(fp);pp.displayName="Overflow",pp.Item=lp,pp.RESPONSIVE=cp,pp.INVALIDATE=up;const mp=pp;var gp=function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,l=e.tabIndex,s=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,g=e.onKeyDown,h=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,x=e.onCompositionEnd,w=e.open,C=e.attrs,S=i||m.createElement("input",null),$=S,E=$.ref,k=$.props,O=k.onKeyDown,I=k.onChange,j=k.onMouseDown,P=k.onCompositionStart,M=k.onCompositionEnd,R=k.style;return S.props,m.cloneElement(S,_(_(_({type:"search"},k),{},{id:o,ref:se(t,E),disabled:a,tabIndex:l,autoComplete:c||"off",autoFocus:s,className:F()("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:u?f:"",maxLength:p,readOnly:!u,unselectable:u?null:"on",style:_(_({},R),{},{opacity:u?null:0}),onKeyDown:function(e){g(e),O&&O(e)},onMouseDown:function(e){h(e),j&&j(e)},onChange:function(e){v(e),I&&I(e)},onCompositionStart:function(e){y(e),P&&P(e)},onCompositionEnd:function(e){x(e),M&&M(e)},onPaste:b}))};const hp=m.forwardRef(gp);function vp(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var bp="undefined"!=typeof window&&window.document&&window.document.documentElement;function yp(e){return["string","number"].includes(L(e))}function xp(e){var t=void 0;return e&&(yp(e.title)?t=e.title.toString():yp(e.label)&&(t=e.label.toString())),t}function Cp(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Sp=function(e){e.preventDefault(),e.stopPropagation()};const $p=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,s=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,g=e.autoFocus,h=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,C=e.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,$=e.tagRender,E=e.onToggleOpen,k=e.onRemove,O=e.onInputChange,I=e.onInputPaste,j=e.onInputKeyDown,P=e.onInputMouseDown,M=e.onInputCompositionStart,R=e.onInputCompositionEnd,N=m.useRef(null),A=K((0,m.useState)(0),2),T=A[0],z=A[1],L=K((0,m.useState)(!1),2),B=L[0],H=L[1],_="".concat(o,"-selection"),V=a||"multiple"===f&&!1===s||"tags"===f?l:"",W="tags"===f||"multiple"===f&&!1===s||p&&(a||B);t=function(){z(N.current.scrollWidth)},n=[V],bp?m.useLayoutEffect(t,n):m.useEffect(t,n);var q=function(e,t,n,r,o){return m.createElement("span",{title:xp(e),className:F()("".concat(_,"-item"),D({},"".concat(_,"-item-disabled"),n))},m.createElement("span",{className:"".concat(_,"-item-content")},t),r&&m.createElement(Vf,{className:"".concat(_,"-item-remove"),onMouseDown:Sp,onClick:o,customizeIcon:y},"×"))},G=function(e,t,n,r,o,i){return m.createElement("span",{onMouseDown:function(e){Sp(e),E(!a)}},$({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},X=m.createElement("div",{className:"".concat(_,"-search"),style:{width:T},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},m.createElement(hp,{ref:c,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:W,activeDescendantId:v,value:V,onKeyDown:j,onMouseDown:P,onChange:O,onPaste:I,onCompositionStart:M,onCompositionEnd:R,tabIndex:b,attrs:Kf(e,!0)}),m.createElement("span",{ref:N,className:"".concat(_,"-search-mirror"),"aria-hidden":!0},V," ")),U=m.createElement(mp,{prefixCls:"".concat(_,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),k(e)};return"function"==typeof $?G(r,i,t,o,l):q(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return"function"==typeof $?G(void 0,t,!1,!1,void 0,!0):q({title:t},t,!1)},suffix:X,itemKey:Cp,maxCount:x});return m.createElement(m.Fragment,null,U,!i.length&&!V&&m.createElement("span",{className:"".concat(_,"-placeholder")},u))},Ep=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,$=e.onInputCompositionEnd,E=e.title,k=K(m.useState(!1),2),O=k[0],I=k[1],j="combobox"===c,P=j||g,M=d[0],R=h||"";j&&v&&!O&&(R=v),m.useEffect((function(){j&&I(!1)}),[j,v]);var N=!("combobox"!==c&&!u&&!g||!R),A=void 0===E?xp(M):E,F=m.useMemo((function(){return M?null:m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},f)}),[M,N,f,n]);return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(hp,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:P,activeDescendantId:s,value:R,onKeyDown:y,onMouseDown:x,onChange:function(e){I(!0),w(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:$,tabIndex:p,attrs:Kf(e,!0),maxLength:j?b:void 0})),!j&&M?m.createElement("span",{className:"".concat(n,"-selection-item"),title:A,style:N?{visibility:"hidden"}:void 0},M.label):null,F)};var kp=function(e,t){var n=(0,m.useRef)(null),r=(0,m.useRef)(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.disabled,u=e.autoClearSearchValue,d=e.onSearch,f=e.onSearchSubmit,p=e.onToggleOpen,g=e.onInputKeyDown,h=e.domRef;m.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var v=K(qf(0),2),b=v[0],y=v[1],x=(0,m.useRef)(null),w=function(e){!1!==d(e,!0,r.current)&&p(!0)},C={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==_f.UP&&n!==_f.DOWN||e.preventDefault(),g&&g(e),n!==_f.ENTER||"tags"!==a||r.current||i||null==f||f(e.target.value),t=n,[_f.ESC,_f.SHIFT,_f.BACKSPACE,_f.TAB,_f.WIN_KEY,_f.ALT,_f.META,_f.WIN_KEY_RIGHT,_f.CTRL,_f.SEMICOLON,_f.EQUALS,_f.CAPS_LOCK,_f.CONTEXT_MENU,_f.F1,_f.F2,_f.F3,_f.F4,_f.F5,_f.F6,_f.F7,_f.F8,_f.F9,_f.F10,_f.F11,_f.F12].includes(t)||p(!0)},onInputMouseDown:function(){y(!0)},onInputChange:function(e){var t=e.target.value;if(s&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");x.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&w(e.target.value)}},S="multiple"===a||"tags"===a?m.createElement($p,z({},e,C)):m.createElement(Ep,z({},e,C));return m.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=b();e.target===n.current||t||"combobox"===a&&c||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==u&&d("",!0,!1),p())}},S)};const Op=m.forwardRef(kp);var Ip=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],jp=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,p=e.builtinPlacements,g=e.dropdownMatchSelectWidth,h=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,S=V(e,Ip),$="".concat(n,"-dropdown"),E=i;h&&(E=h(i));var k=m.useMemo((function(){return p||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)}),[p,g]),O=a?"".concat($,"-").concat(a):l,I="number"==typeof g,j=m.useMemo((function(){return I?null:!1===g?"minWidth":"width"}),[g,I]),P=s;I&&(P=_(_({},P),{},{width:g}));var M=m.useRef(null);return m.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.popupElement}}})),m.createElement(gr,z({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:$,popupTransitionName:O,popup:m.createElement("div",{onMouseEnter:C},E),ref:M,stretch:j,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:F()(c,D({},"".concat($,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:w}),o)};const Pp=m.forwardRef(jp);function Mp(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 Rp(e){return void 0!==e&&!Number.isNaN(e)}function Np(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 Ap(e){var t=_({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return oe(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Fp=m.createContext(null);function Tp(e){var t=e.visible,n=e.values;return t?m.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(L(t))?t:n})).join(", ")),n.length>50?", ...":null):null}var zp=["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"],Lp=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Bp=function(e){return"tags"===e||"multiple"===e},Dp=m.forwardRef((function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,p=e.notFoundContent,h=void 0===p?"Not Found":p,v=e.onClear,b=e.mode,y=e.disabled,x=e.loading,w=e.getInputElement,C=e.getRawInputElement,S=e.open,$=e.defaultOpen,E=e.onDropdownVisibleChange,k=e.activeValue,O=e.onActiveValueChange,I=e.activeDescendantId,j=e.searchValue,P=e.autoClearSearchValue,M=e.onSearch,R=e.onSearchSplit,N=e.tokenSeparators,A=e.allowClear,T=e.suffixIcon,B=e.clearIcon,H=e.OptionList,W=e.animation,q=e.transitionName,G=e.dropdownStyle,X=e.dropdownClassName,U=e.dropdownMatchSelectWidth,Y=e.dropdownRender,Q=e.dropdownAlign,Z=e.placement,J=e.builtinPlacements,ee=e.getPopupContainer,te=e.showAction,ne=void 0===te?[]:te,re=e.onFocus,oe=e.onBlur,ie=e.onKeyUp,ae=e.onKeyDown,le=e.onMouseDown,se=V(e,zp),ue=Bp(b),de=(void 0!==a?a:ue)||"combobox"===b,fe=_({},se);Lp.forEach((function(e){delete fe[e]})),null==c||c.forEach((function(e){delete fe[e]}));var me=K(m.useState(!1),2),ge=me[0],he=me[1];m.useEffect((function(){he(Mt())}),[]);var be=m.useRef(null),ye=m.useRef(null),xe=m.useRef(null),we=m.useRef(null),Ce=m.useRef(null),Se=m.useRef(!1),$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=K(m.useState(!1),2),n=t[0],r=t[1],o=m.useRef(null),i=function(){window.clearTimeout(o.current)};return m.useEffect((function(){return i}),[]),[n,function(t,n){i(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),Ee=K($e,3),ke=Ee[0],Oe=Ee[1],Ie=Ee[2];m.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=we.current)||void 0===e?void 0:e.focus,blur:null===(t=we.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 je=m.useMemo((function(){var e;if("combobox"!==b)return j;var t=null===(e=u[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[j,b,u]),Pe="combobox"===b&&"function"==typeof w&&w()||null,Me="function"==typeof C&&C(),Re=ce(ye,null==Me||null===(n=Me.props)||void 0===n?void 0:n.ref),Ne=K(m.useState(!1),2),Ae=Ne[0],Fe=Ne[1];ve((function(){Fe(!0)}),[]);var Te=K(Bt(!1,{defaultValue:$,value:S}),2),ze=Te[0],Le=Te[1],Be=!!Ae&&ze,De=!h&&f;(y||De&&Be&&"combobox"===b)&&(Be=!1);var He=!De&&Be,_e=m.useCallback((function(e){var t=void 0!==e?e:!Be;y||(Le(t),Be!==t&&(null==E||E(t)))}),[y,Be,Le,E]),Ve=m.useMemo((function(){return(N||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[N]),We=m.useContext(Fp)||{},qe=We.maxCount,Ge=We.rawValues,Xe=function(e,t,n){if(!(ue&&Rp(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=Dt(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(pe(t),pe(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,N,Rp(qe)?qe-Ge.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==R||R(a),_e(!1),r=!1),M&&je!==o&&M(o,{source:t?"typing":"effect"}),r}};m.useEffect((function(){Be||ue||"combobox"===b||Xe("",!1,!1)}),[Be]),m.useEffect((function(){ze&&y&&Le(!1),y&&!Se.current&&Oe(!1)}),[y]);var Ke=K(qf(),2),Ue=Ke[0],Ye=Ke[1],Qe=m.useRef(!1),Ze=[];m.useEffect((function(){return function(){Ze.forEach((function(e){return clearTimeout(e)})),Ze.splice(0,Ze.length)}}),[]);var Je,et=K(m.useState({}),2)[1];Me&&(Je=function(e){_e(e)}),function(e,t,n,r){var o=m.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m.useEffect((function(){function e(e){var t,n;if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&[be.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}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,He,_e,!!Me);var tt,nt=m.useMemo((function(){return _(_({},e),{},{notFoundContent:h,open:Be,triggerOpen:He,id:r,showSearch:de,multiple:ue,toggleOpen:_e})}),[e,h,He,Be,r,de,ue,_e]),rt=!!T||x;rt&&(tt=m.createElement(Vf,{className:F()("".concat(o,"-arrow"),D({},"".concat(o,"-arrow-loading"),x)),customizeIcon:T,customizeIconProps:{loading:x,searchValue:je,open:Be,focused:ke,showSearch:de}}));var ot,it=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=g().useMemo((function(){return"object"===L(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:g().useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]),clearIcon:g().createElement(Vf,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(o,(function(){var e;null==v||v(),null===(e=we.current)||void 0===e||e.focus(),d([],{type:"clear",values:u}),Xe("",!1,!1)}),u,A,B,y,je,b),at=it.allowClear,lt=it.clearIcon,st=m.createElement(H,{ref:Ce}),ct=F()(o,i,D(D(D(D(D(D(D(D(D(D({},"".concat(o,"-focused"),ke),"".concat(o,"-multiple"),ue),"".concat(o,"-single"),!ue),"".concat(o,"-allow-clear"),A),"".concat(o,"-show-arrow"),rt),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),x),"".concat(o,"-open"),Be),"".concat(o,"-customize-input"),Pe),"".concat(o,"-show-search"),de)),ut=m.createElement(Pp,{ref:xe,disabled:y,prefixCls:o,visible:He,popupElement:st,animation:W,transitionName:q,dropdownStyle:G,dropdownClassName:X,direction:s,dropdownMatchSelectWidth:U,dropdownRender:Y,dropdownAlign:Q,placement:Z,builtinPlacements:J,getPopupContainer:ee,empty:f,getTriggerDOMNode:function(e){return ye.current||e},onPopupVisibleChange:Je,onPopupMouseEnter:function(){et({})}},Me?m.cloneElement(Me,{ref:Re}):m.createElement(Op,z({},e,{domRef:ye,prefixCls:o,inputElement:Pe,ref:we,id:r,showSearch:de,autoClearSearchValue:P,mode:b,activeDescendantId:I,tagRender:l,values:u,open:Be,onToggleOpen:_e,activeValue:k,searchValue:je,onSearch:Xe,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){var t=u.filter((function(t){return t!==e}));d(t,{type:"remove",values:[e]})},tokenWithEnter:Ve})));return ot=Me?ut:m.createElement("div",z({className:ct},fe,{ref:be,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=Ze.indexOf(o);-1!==t&&Ze.splice(t,1),Ie(),ge||r.contains(document.activeElement)||null===(e=we.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<i;l++)a[l-1]=arguments[l];null==le||le.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ue(),r=e.which;if(r===_f.ENTER&&("combobox"!==b&&e.preventDefault(),Be||_e(!0)),Ye(!!je),r===_f.BACKSPACE&&!n&&ue&&!je&&u.length){for(var o=pe(u),i=null,a=o.length-1;a>=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&d(o,{type:"remove",values:[i]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];Be&&(null===(t=Ce.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c))),null==ae||ae.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Be&&(null===(o=Ce.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),null==ie||ie.apply(void 0,[e].concat(n))},onFocus:function(){Oe(!0),y||(re&&!Qe.current&&re.apply(void 0,arguments),ne.includes("focus")&&_e(!0)),Qe.current=!0},onBlur:function(){Se.current=!0,Oe(!1,(function(){Qe.current=!1,Se.current=!1,_e(!1)})),y||(je&&("tags"===b?M(je,{source:"submit"}):"multiple"===b&&M("",{source:"blur"})),oe&&oe.apply(void 0,arguments))}}),m.createElement(Tp,{visible:ke&&!Be,values:u}),ut,tt,at&&lt),m.createElement(Wf.Provider,{value:nt},ot)}));const Hp=Dp;var _p=function(){return null};_p.isSelectOptGroup=!0;const Vp=_p;var Wp=function(){return null};Wp.isSelectOption=!0;const qp=Wp;var Gp=m.forwardRef((function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},f=_(_({},f),{},D(D(D(D(D({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:d},m.createElement($t,{onResize:function(e){e.offsetHeight&&l&&l()}},m.createElement("div",z({style:f,className:F()(D({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,u)))}));Gp.displayName="Filler";const Xp=Gp;function Kp(e){var t=e.children,n=e.setRef,r=m.useCallback((function(e){n(e)}),[]);return m.cloneElement(t,{ref:r})}const Up="object"===("undefined"==typeof navigator?"undefined":L(navigator))&&/Firefox/i.test(navigator.userAgent),Yp=function(e,t,n,r){var o=(0,m.useRef)(!1),i=(0,m.useRef)(null),a=(0,m.useRef)({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||(clearTimeout(i.current),o.current=!0,i.current=setTimeout((function(){o.current=!1}),50)),!o.current&&r}};const Qp=function(){function e(){ct(this,e),D(this,"maps",void 0),D(this,"id",0),this.maps=Object.create(null)}return dt(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();function Zp(e){var t=parseFloat(e);return isNaN(t)?0:t}var Jp=14/15;function em(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var tm=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,g=K(m.useState(!1),2),h=g[0],v=g[1],b=K(m.useState(null),2),y=b[0],x=b[1],w=K(m.useState(null),2),C=w[0],S=w[1],$=!r,E=m.useRef(),k=m.useRef(),O=K(m.useState(!1),2),I=O[0],j=O[1],P=m.useRef(),M=function(){clearTimeout(P.current),j(!0),P.current=setTimeout((function(){j(!1)}),3e3)},R=i-d||0,N=d-u||0,A=m.useMemo((function(){return 0===o||0===R?0:o/R*N}),[o,R,N]),T=m.useRef({top:A,dragging:h,pageY:y,startTop:C});T.current={top:A,dragging:h,pageY:y,startTop:C};var z=function(e){v(!0),x(em(e,c)),S(T.current.top),a(),e.stopPropagation(),e.preventDefault()};m.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=k.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",z,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",z)}}),[]);var L=m.useRef();L.current=R;var B=m.useRef();B.current=N,m.useEffect((function(){if(h){var e,t=function(t){var n=T.current,r=n.dragging,o=n.pageY,i=n.startTop;kn.cancel(e);var a=E.current.getBoundingClientRect(),l=d/(c?a.width:a.height);if(r){var u=(em(t,c)-o)*l,f=i;!$&&c?f-=u:f+=u;var p=L.current,m=B.current,g=m?f/m:0,h=Math.ceil(g*p);h=Math.max(h,0),h=Math.min(h,p),e=kn((function(){s(h,c)}))}},n=function(){v(!1),l()};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),kn.cancel(e)}}}),[h]),m.useEffect((function(){return M(),function(){clearTimeout(P.current)}}),[o]),m.useImperativeHandle(t,(function(){return{delayHidden:M}}));var H="".concat(n,"-scrollbar"),V={position:"absolute",visibility:I?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(V.height=8,V.left=0,V.right=0,V.bottom=0,W.height="100%",W.width=u,$?W.left=A:W.right=A):(V.width=8,V.top=0,V.bottom=0,$?V.right=0:V.left=0,W.width="100%",W.height=u,W.top=A),m.createElement("div",{ref:E,className:F()(H,D(D(D({},"".concat(H,"-horizontal"),c),"".concat(H,"-vertical"),!c),"".concat(H,"-visible"),I)),style:_(_({},V),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:M},m.createElement("div",{ref:k,className:F()("".concat(H,"-thumb"),D({},"".concat(H,"-thumb-moving"),h)),style:_(_({},W),p),onMouseDown:z}))}));const nm=tm;function rm(){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 om=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],im=[],am={overflowY:"auto",overflowAnchor:"none"};function lm(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=void 0===l||l,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,g=e.direction,h=e.scrollWidth,v=e.component,b=void 0===v?"div":v,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,S=e.extraRender,$=e.styles,E=V(e,om),k=m.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),O=function(e){var t=K(m.useState(0),2),n=t[0],r=t[1],o=(0,m.useRef)(new Map),i=(0,m.useRef)(new Qp),a=(0,m.useRef)();function l(){kn.cancel(a.current)}function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l();var t=function(){o.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Le(e),r=n.offsetHeight,o=getComputedStyle(n),a=o.marginTop,l=o.marginBottom,s=r+Zp(a)+Zp(l);i.current.get(t)!==s&&i.current.set(t,s)}})),r((function(e){return e+1}))};e?t():a.current=kn(t)}return(0,m.useEffect)((function(){return l}),[]),[function(t,n){var r=e(t);o.current.get(r);n?(o.current.set(r,n),s()):o.current.delete(r)},s,i.current,n]}(k),I=K(O,4),j=I[0],P=I[1],M=I[2],R=I[3],N=!(!1===p||!i||!a),A=m.useMemo((function(){return Object.values(M.maps).reduce((function(e,t){return e+t}),0)}),[M.id,M.maps]),T=N&&u&&(Math.max(a*u.length,A)>i||!!h),B="rtl"===g,H=F()(r,D({},"".concat(r,"-rtl"),B),o),W=u||im,q=(0,m.useRef)(),G=(0,m.useRef)(),X=(0,m.useRef)(),Y=K((0,m.useState)(0),2),Q=Y[0],Z=Y[1],J=K((0,m.useState)(0),2),ee=J[0],te=J[1],ne=K((0,m.useState)(!1),2),re=ne[0],oe=ne[1],ie=function(){oe(!0)},ae=function(){oe(!1)},le={getKey:k};function se(e){Z((function(t){var n=function(e){var t=e;return Number.isNaN(ke.current)||(t=Math.min(t,ke.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return q.current.scrollTop=n,n}))}var ce=(0,m.useRef)({start:0,end:W.length}),ue=(0,m.useRef)(),de=K(function(e,t,n){var r=K(m.useState(e),2),o=r[0],i=r[1],a=K(m.useState(null),2),l=a[0],s=a[1];return m.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),s(e[r.index])),i(e)}),[e]),[l]}(W,k),1)[0];ue.current=de;var fe=m.useMemo((function(){if(!N)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};var e;if(!T)return{scrollHeight:(null===(e=G.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:W.length-1,offset:void 0};for(var t,n,r,o=0,l=W.length,s=0;s<l;s+=1){var c=W[s],u=k(c),d=M.get(u),f=o+(void 0===d?a:d);f>=Q&&void 0===t&&(t=s,n=o),f>Q+i&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=W.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,W.length-1),offset:n}}),[T,N,Q,W,R,i]),pe=fe.scrollHeight,me=fe.start,ge=fe.end,he=fe.offset;ce.current.start=me,ce.current.end=ge;var be=K(m.useState({width:0,height:i}),2),ye=be[0],xe=be[1],we=(0,m.useRef)(),Ce=(0,m.useRef)(),Se=m.useMemo((function(){return rm(ye.width,h)}),[ye.width,h]),$e=m.useMemo((function(){return rm(ye.height,pe)}),[ye.height,pe]),Ee=pe-i,ke=(0,m.useRef)(Ee);ke.current=Ee;var Oe=Q<=0,Ie=Q>=Ee,je=ee<=0,Pe=ee>=h,Me=Yp(Oe,Ie,je,Pe),Re=function(){return{x:B?-ee:ee,y:Q}},Ne=(0,m.useRef)(Re()),Ae=Ot((function(e){if(x){var t=_(_({},Re()),e);Ne.current.x===t.x&&Ne.current.y===t.y||(x(t),Ne.current=t)}}));function Fe(e,t){var n=e;t?((0,U.flushSync)((function(){te(n)})),Ae()):se(n)}var Te=function(e){var t=e,n=h?h-ye.width:0;return t=Math.max(t,0),Math.min(t,n)},ze=Ot((function(e,t){t?((0,U.flushSync)((function(){te((function(t){return Te(t+(B?-e:e))}))})),Ae()):se((function(t){return t+e}))})),Be=K(function(e,t,n,r,o,i,a){var l=(0,m.useRef)(0),s=(0,m.useRef)(null),c=(0,m.useRef)(null),u=(0,m.useRef)(!1),d=Yp(t,n,r,o),f=(0,m.useRef)(null),p=(0,m.useRef)(null);return[function(t){if(e){kn.cancel(p.current),p.current=kn((function(){f.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,m=n,g=r;("sx"===f.current||!f.current&&o&&r&&!n)&&(m=r,g=0,f.current="sx");var h=Math.abs(m),v=Math.abs(g);null===f.current&&(f.current=i&&h>v?"x":"y"),"y"===f.current?function(e,t){if(kn.cancel(s.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,Up||n.preventDefault(),s.current=kn((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){a(t,!0),Up||e.preventDefault()}(t,m)}},function(t){e&&(u.current=t.detail===c.current)}]}(N,Oe,Ie,je,Pe,!!h,ze),2),De=Be[0],He=Be[1];!function(e,t,n){var r,o=(0,m.useRef)(!1),i=(0,m.useRef)(0),a=(0,m.useRef)(0),l=(0,m.useRef)(null),s=(0,m.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=i.current-t,c=a.current-r,u=Math.abs(l)>Math.abs(c);u?i.current=t:a.current=r;var d=n(u,u?l:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval((function(){u?l*=Jp:c*=Jp;var e=Math.floor(u?l:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16))}},u=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",u))},ve((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}(N,q,(function(e,t,n,r){var o=r;return!(Me(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),ve((function(){function e(e){var t=Oe&&e.detail<0,n=Ie&&e.detail>0;!N||t||n||e.preventDefault()}var t=q.current;return t.addEventListener("wheel",De,{passive:!1}),t.addEventListener("DOMMouseScroll",He,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",He),t.removeEventListener("MozMousePixelScroll",e)}}),[N,Oe,Ie]),ve((function(){if(h){var e=Te(ee);te(e),Ae({x:e})}}),[ye.width,h]);var _e=function(){var e,t;null===(e=we.current)||void 0===e||e.delayHidden(),null===(t=Ce.current)||void 0===t||t.delayHidden()},Ve=function(e,t,n,r,o,i,a,l){var s=m.useRef(),c=K(m.useState(null),2),u=c[0],d=c[1];return ve((function(){if(u&&u.times<10){if(!e.current)return void d((function(e){return _({},e)}));i();var l=u.targetAlign,s=u.originAlign,c=u.index,f=u.offset,p=e.current.clientHeight,m=!1,g=l,h=null;if(p){for(var v=l||s,b=0,y=0,x=0,w=Math.min(t.length-1,c),C=0;C<=w;C+=1){var S=o(t[C]);y=b;var $=n.get(S);b=x=y+(void 0===$?r:$)}for(var E="top"===v?f:p-f,k=w;k>=0;k-=1){var O=o(t[k]),I=n.get(O);if(void 0===I){m=!0;break}if((E-=I)<=0)break}switch(v){case"top":h=y-f;break;case"bottom":h=x-p+f;break;default:var j=e.current.scrollTop;y<j?g="top":x>j+p&&(g="bottom")}null!==h&&a(h),h!==u.lastTop&&(m=!0)}m&&d(_(_({},u),{},{times:u.times+1,targetAlign:g,lastTop:h}))}}),[u,e.current]),function(e){if(null!=e){if(kn.cancel(s.current),"number"==typeof e)a(e);else if(e&&"object"===L(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else l()}}(q,W,M,a,k,(function(){return P(!0)}),se,_e);m.useImperativeHandle(t,(function(){return{nativeElement:X.current,getScrollInfo:Re,scrollTo:function(e){var t;(t=e)&&"object"===L(t)&&("left"in t||"top"in t)?(void 0!==e.left&&te(Te(e.left)),Ve(e.top)):Ve(e)}}})),ve((function(){if(w){var e=W.slice(me,ge+1);w(e,W)}}),[me,ge,W]);var We=function(e,t,n,r){var o=K(m.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=i.get(o),c=i.get(l);if(void 0===s||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var f,p=e[d],m=t(p);i.set(m,d);var g=null!==(f=n.get(m))&&void 0!==f?f:r;if(a[d]=(a[d-1]||0)+g,m===o&&(s=d),m===l&&(c=d),void 0!==s&&void 0!==c)break}return{top:a[s-1]||0,bottom:a[c]}}}(W,k,M,a),qe=null==S?void 0:S({start:me,end:ge,virtual:T,offsetX:ee,offsetY:he,rtl:B,getSize:We}),Ge=function(e,t,n,r,o,i,a,l){var s=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=a(e,t+n,{style:{width:r},offsetX:o}),c=s(e);return m.createElement(Kp,{key:c,setRef:function(t){return i(e,t)}},l)}))}(W,me,ge,h,ee,j,d,le),Xe=null;i&&(Xe=_(D({},s?"height":"maxHeight",i),am),N&&(Xe.overflowY="hidden",h&&(Xe.overflowX="hidden"),re&&(Xe.pointerEvents="none")));var Ke={};return B&&(Ke.dir="rtl"),m.createElement("div",z({ref:X,style:_(_({},c),{},{position:"relative"}),className:H},Ke,E),m.createElement($t,{onResize:function(e){xe({width:e.offsetWidth,height:e.offsetHeight})}},m.createElement(b,{className:"".concat(r,"-holder"),style:Xe,ref:q,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Q&&se(t),null==y||y(e),Ae()},onMouseEnter:_e},m.createElement(Xp,{prefixCls:r,height:pe,offsetX:ee,offsetY:he,scrollWidth:h,onInnerResize:P,ref:G,innerProps:C,rtl:B,extra:qe},Ge))),T&&pe>i&&m.createElement(nm,{ref:we,prefixCls:r,scrollOffset:Q,scrollRange:pe,rtl:B,onScroll:Fe,onStartMove:ie,onStopMove:ae,spinSize:$e,containerSize:ye.height,style:null==$?void 0:$.verticalScrollBar,thumbStyle:null==$?void 0:$.verticalScrollBarThumb}),T&&h>ye.width&&m.createElement(nm,{ref:Ce,prefixCls:r,scrollOffset:ee,scrollRange:h,rtl:B,onScroll:Fe,onStartMove:ie,onStopMove:ae,spinSize:Se,containerSize:ye.width,horizontal:!0,style:null==$?void 0:$.horizontalScrollBar,thumbStyle:null==$?void 0:$.horizontalScrollBarThumb}))}var sm=m.forwardRef(lm);sm.displayName="List";const cm=sm;var um=["disabled","title","children","style","className"];function dm(e){return"string"==typeof e||"number"==typeof e}var fm=function(e,t){var n=m.useContext(Wf),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=m.useContext(Fp),p=f.maxCount,g=f.flattenOptions,h=f.onActiveValue,v=f.defaultActiveFirstOption,b=f.onSelect,y=f.menuItemSelectedIcon,x=f.rawValues,w=f.fieldNames,C=f.virtual,S=f.direction,$=f.listHeight,E=f.listItemHeight,k=f.optionRender,O="".concat(r,"-item"),I=ae((function(){return g}),[i,g],(function(e,t){return t[0]&&e[1]!==t[1]})),j=m.useRef(null),P=m.useMemo((function(){return a&&Rp(p)&&(null==x?void 0:x.size)>=p}),[a,p,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=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=I[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||P))return o}return-1},A=K(m.useState((function(){return N(0)})),2),T=A[0],L=A[1],B=function(e){var t=arguments.length>1&&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,m.useEffect)((function(){B(!1!==v?N(0):-1)}),[I.length,s]);var H=m.useCallback((function(e){return x.has(e)&&"combobox"!==l}),[l,pe(x).toString(),x.size]);(0,m.useEffect)((function(){var e,t=setTimeout((function(){if(!a&&i&&1===x.size){var e=Array.from(x)[0],t=I.findIndex((function(t){return t.data.value===e}));-1!==t&&(B(t),R(t))}}));return i&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[i,s]);var _=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),a||c(!1)};if(m.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case _f.N:case _f.P:case _f.UP:case _f.DOWN:var r=0;if(t===_f.UP?r=-1:t===_f.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===_f.N?r=1:t===_f.P&&(r=-1)),0!==r){var o=N(T+r,r);R(o),B(o,!0)}break;case _f.ENTER:var a,l=I[T];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||P?_(void 0):_(l.value),i&&e.preventDefault();break;case _f.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===I.length)return m.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(O,"-empty"),onMouseDown:M},u);var W=Object.keys(w).map((function(e){return w[e]})),q=function(e){return e.label};function G(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var X=function(e){var t=I[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=Kf(n,!0),a=q(t);return t?m.createElement("div",z({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},G(t,e),{"aria-selected":H(r)}),r):null},U={role:"listbox",id:"".concat(o,"_list")};return m.createElement(m.Fragment,null,C&&m.createElement("div",z({},U,{style:{height:0,width:0,overflow:"hidden"}}),X(T-1),X(T),X(T+1)),m.createElement(cm,{itemKey:"key",ref:j,data:I,height:$,itemHeight:E,fullHeight:!1,onMouseDown:M,onScroll:d,virtual:C,direction:S,innerProps:C?null:U},(function(e,t){var n=e.group,r=e.groupOption,o=e.data,i=e.label,a=e.value,l=o.key;if(n){var s,c=null!==(s=o.title)&&void 0!==s?s:dm(i)?i.toString():void 0;return m.createElement("div",{className:F()(O,"".concat(O,"-group"),o.className),title:c},void 0!==i?i:l)}var u=o.disabled,d=o.title,f=(o.children,o.style),p=o.className,g=os(V(o,um),W),h=H(a),v=u||!h&&P,b="".concat(O,"-option"),x=F()(O,b,p,D(D(D(D({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),T===t&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),h)),w=q(e),S=!y||"function"==typeof y||h,$="number"==typeof w?w:w||a,E=dm($)?$.toString():void 0;return void 0!==d&&(E=d),m.createElement("div",z({},Kf(g),C?{}:G(e,t),{"aria-selected":h,className:x,title:E,onMouseMove:function(){T===t||v||B(t)},onClick:function(){v||_(a)},style:f}),m.createElement("div",{className:"".concat(b,"-content")},"function"==typeof k?k(e,{index:t}):$),m.isValidElement(y)||h,S&&m.createElement(Vf,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:a,disabled:v,isSelected:h}},h?"✓":null))})))};const pm=m.forwardRef(fm);function mm(e,t){return vp(e).join("").toUpperCase().includes(t)}var gm=0,hm=Q();var vm=["children","value"],bm=["children"];function ym(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Te(e).map((function(e,n){if(!m.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,l=a.children,s=V(a,bm);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return _({key:n,value:void 0!==i?i:n,children:o},V(r,vm))}(e):_(_({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:ym(l)})})).filter((function(e){return e}))}const xm=function(e,t,n,r,o){return m.useMemo((function(){var i=e;!e&&(i=ym(t));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 i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),s(l,u,n.label),s(l,u,r),s(l,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}}),[e,t,n,r,o])};function wm(e){var t=m.useRef();t.current=e;var n=m.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Cm=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Sm=["inputValue"],$m=m.forwardRef((function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,g=e.onDeselect,h=e.dropdownMatchSelectWidth,v=void 0===h||h,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,C=e.options,S=e.optionRender,$=e.children,E=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,O=e.virtual,I=e.direction,j=e.listHeight,P=void 0===j?200:j,M=e.listItemHeight,R=void 0===M?20:M,N=e.labelRender,A=e.value,F=e.defaultValue,T=e.labelInValue,B=e.onChange,H=e.maxCount,W=V(e,Cm),q=function(e){var t=K(m.useState(),2),n=t[0],r=t[1];return m.useEffect((function(){var e;r("rc_select_".concat((hm?(e=gm,gm+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(n),G=Bp(r),X=!(C||!$),U=m.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),Y=m.useMemo((function(){return Np(l,X)}),[JSON.stringify(l),X]),Q=K(Bt("",{value:void 0!==c?c:s,postState:function(e){return e||""}}),2),Z=Q[0],J=Q[1],ee=xm(C,$,Y,x,w),te=ee.valueOptions,ne=ee.labelOptions,re=ee.options,oe=m.useCallback((function(e){return vp(e).map((function(e){var t,n,r,o,i,a;!function(e){return!e||"object"!==L(e)}(e)?(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r):t=e;var l,s=te.get(t);return s&&(void 0===n&&(n=null==s?void 0:s[w||Y.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title),{label:n,value:t,key:r,disabled:o,title:i}}))}),[Y,w,te]),ie=K(Bt(F,{value:A}),2),ae=ie[0],le=ie[1],se=m.useMemo((function(){var e,t=oe(G&&null===ae?[]:ae);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ae,oe,r,G]),ce=function(e,t){var n=m.useRef({values:new Map,options:new Map});return[m.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?_(_({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,s=new Map;return a.forEach((function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=s,a}),[e,t]),m.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(se,te),ue=K(ce,2),de=ue[0],fe=ue[1],me=m.useMemo((function(){if(!r&&1===de.length){var e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map((function(e){var t;return _(_({},e),{},{label:null!==(t="function"==typeof N?N(e):e.label)&&void 0!==t?t:e.value})}))}),[r,de,N]),ge=m.useMemo((function(){return new Set(de.map((function(e){return e.value})))}),[de]);m.useEffect((function(){if("combobox"===r){var e,t=null===(e=de[0])||void 0===e?void 0:e.value;J(function(e){return null!=e}(t)?String(t):"")}}),[de]);var he=wm((function(e,t){var n=null!=t?t:e;return D(D({},Y.value,e),Y.label,n)})),ve=m.useMemo((function(){if("tags"!==r)return re;var e=pe(re);return pe(de).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return te.has(e)})(n)||e.push(he(n,t.label))})),e}),[he,re,te,de,r]),be=function(e,t,n,r,o){return m.useMemo((function(){if(!n||!1===r)return e;var i=t.options,a=t.label,l=t.value,s=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return o?mm(t[o],u):t[i]?mm(t["children"!==a?a:"label"],u):mm(t[l],u)},f=c?function(e){return Ap(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,f(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,f(e))}));t.length&&s.push(_(_({},e),{},D({},i,t)))}else d(n,f(e))&&s.push(e)})),s}),[e,r,o,n,t])}(ve,Y,Z,U,x),ye=m.useMemo((function(){return"tags"!==r||!Z||be.some((function(e){return e[x||"value"]===Z}))||be.some((function(e){return e[Y.value]===Z}))?be:[he(Z)].concat(pe(be))}),[he,x,r,be,Z,Y]),xe=m.useMemo((function(){return y?pe(ye).sort((function(e,t){return y(e,t)})):ye}),[ye,y]),we=m.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Np(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:Mp(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:Mp(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(xe,{fieldNames:Y,childrenAsData:X})}),[xe,Y,X]),Ce=function(e){var t=oe(e);if(le(t),B&&(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=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return Ap(fe(e.value))}));B(G?n:n[0],G?r:r[0])}},Se=K(m.useState(null),2),$e=Se[0],Ee=Se[1],ke=K(m.useState(0),2),Oe=ke[0],Ie=ke[1],je=void 0!==E?E:"combobox"!==r,Pe=m.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Ie(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&Ee(String(e))}),[a,r]),Me=function(e,t,n){var r=function(){var t,n=fe(e);return[T?{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,Ap(n)]};if(t&&p){var o=K(r(),2),i=o[0],a=o[1];p(i,a)}else if(!t&&g&&"clear"!==n){var l=K(r(),2),s=l[0],c=l[1];g(s,c)}},Re=wm((function(e,t){var n,o=!G||t.selected;n=o?G?[].concat(pe(de),[e]):[e]:de.filter((function(t){return t.value!==e})),Ce(n),Me(e,o),"combobox"===r?Ee(""):Bp&&!f||(J(""),Ee(""))})),Ne=m.useMemo((function(){var e=!1!==O&&!1!==v;return _(_({},ee),{},{flattenOptions:we,onActiveValue:Pe,defaultActiveFirstOption:je,onSelect:Re,menuItemSelectedIcon:k,rawValues:ge,fieldNames:Y,virtual:e,direction:I,listHeight:P,listItemHeight:R,childrenAsData:X,maxCount:H,optionRender:S})}),[H,ee,we,Pe,je,Re,k,ge,Y,O,v,I,P,R,X,S]);return m.createElement(Fp.Provider,{value:Ne},m.createElement(Hp,z({},W,{id:q,prefixCls:i,ref:t,omitDomProps:Sm,mode:r,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),Ee(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&Ce(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(pe(ge),[n])));Ce(o),Me(n,!0),J("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(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(pe(ge),pe(t))));Ce(n),n.forEach((function(e){Me(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:pm,emptyOptions:!we.length,activeValue:$e,activeDescendantId:"".concat(q,"_list_").concat(Oe)})))})),Em=$m;Em.Option=qp,Em.OptGroup=Vp;const km=Em,Om=(0,m.createContext)(void 0),Im={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jm={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({},Im)},Pm="${label} is not a valid ${type}",Mm={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:jm,TimePicker:Im,Calendar:jm,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:Pm,method:Pm,array:Pm,object:Pm,number:Pm,date:Pm,boolean:Pm,integer:Pm,float:Pm,regexp:Pm,email:Pm,url:Pm,hex:Pm},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 Rm=Object.assign({},Mm.Modal),Nm=[];const Am=()=>Nm.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Mm.Modal),Fm=(0,m.createContext)(void 0),Tm=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Nm.push(t),Rm=Am(),()=>{Nm=Nm.filter((e=>e!==t)),Rm=Am()}}Rm=Object.assign({},Mm.Modal)}(t&&t.Modal);return e}),[t]);const o=m.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return m.createElement(Fm.Provider,{value:o},n)},zm=`-ant-${Date.now()}-${Math.random()}`;const Lm=Object.assign({},m),{useId:Bm}=Lm,Dm=void 0===Bm?()=>"":Bm;function Hm(e){const{children:t}=e,[,n]=wa(),{motion:r}=n,o=m.useRef(!1);return o.current=o.current||!1===r,o.current?m.createElement(At,{motion:r},t):t}const _m=()=>null;const Vm=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Wm,qm,Gm,Xm;function Km(){return Wm||"ant"}function Um(){return qm||Xa}const Ym=()=>({getPrefixCls:(e,t)=>t||(e?`${Km()}-${e}`:Km()),getIconPrefixCls:Um,getRootPrefixCls:()=>Wm||Km(),getTheme:()=>Gm,holderRender:Xm}),Qm=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:h,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:S,calendar:$,carousel:E,cascader:k,collapse:O,typography:I,checkbox:j,descriptions:P,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:ie,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,xe=m.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||v.getPrefixCls("");return t?`${o}-${t}`:o}),[v.getPrefixCls,e.prefixCls]),we=b||v.iconPrefixCls||Xa,Ce=n||v.csp;vl(we,Ce);const Se=function(e,t,n){var r;Ga();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},da),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:da.hashed,cssVar:null==t?void 0:t.cssVar}),a=Dm();return ae((()=>{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!$r(e,r,!0)}))))}(y,v.theme,{prefixCls:xe("")}),$e={csp:Ce,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||h,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:g,getPrefixCls:xe,iconPrefixCls:we,theme:Se,segmented:w,statistic:C,spin:S,calendar:$,carousel:E,cascader:k,collapse:O,typography:I,checkbox:j,descriptions:P,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:ie,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},Ee=Object.assign({},v);Object.keys($e).forEach((e=>{void 0!==$e[e]&&(Ee[e]=$e[e])})),Vm.forEach((t=>{const n=e[t];n&&(Ee[t]=n)}));const ke=ae((()=>Ee),Ee,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Oe=m.useMemo((()=>({prefixCls:we,csp:Ce})),[we,Ce]);let Ie=m.createElement(m.Fragment,null,m.createElement(_m,{dropdownMatchSelectWidth:f}),t);const je=m.useMemo((()=>{var e,t,n,r;return Gt((null===(e=Mm.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==a?void 0:a.validateMessages)||{})}),[ke,null==a?void 0:a.validateMessages]);Object.keys(je).length>0&&(Ie=m.createElement(Om.Provider,{value:je},Ie)),l&&(Ie=m.createElement(Tm,{locale:l,_ANT_MARK__:"internalMark"},Ie)),(we||Ce)&&(Ie=m.createElement(Ds.Provider,{value:Oe},Ie)),s&&(Ie=m.createElement(Qa,{size:s},Ie)),Ie=m.createElement(Hm,null,Ie);const Pe=m.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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?zr(t):ua,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=zr(r.algorithm)),delete r.algorithm),l[t]=r}));const s=Object.assign(Object.assign({},ra),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=m.createElement(fa.Provider,{value:Pe},Ie)),ke.warning&&(Ie=m.createElement(qa.Provider,{value:ke.warning},Ie)),void 0!==x&&(Ie=m.createElement(js,{disabled:x},Ie)),m.createElement(Ka.Provider,{value:ke},Ie)},Zm=e=>{const t=m.useContext(Ka),n=m.useContext(Fm);return m.createElement(Qm,Object.assign({parentContext:t,legacyLocale:n},e))};Zm.ConfigContext=Ka,Zm.SizeContext=Za,Zm.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Wm=t),void 0!==n&&(qm=n),"holderRender"in e&&(Xm=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 oa(e),i=ji(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 oa(t.primaryColor),i=ji(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 oa(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);Q()&&Ie(n,`${zm}-dynamic-theme`)}(Km(),r):Gm=r)},Zm.useConfig=function(){return{componentDisabled:(0,m.useContext)(Ps),componentSize:(0,m.useContext)(Za)}},Object.defineProperty(Zm,"SizeContext",{get:()=>Za});const Jm=Zm,eg=(e,t,n,r)=>function(e){return t=>m.createElement(Jm,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},t)))}((o=>{const{prefixCls:i,style:a}=o,l=m.useRef(null),[s,c]=m.useState(0),[u,d]=m.useState(0),[f,p]=Bt(!1,{value:o.open}),{getPrefixCls:g}=m.useContext(Ka),h=g(t||"select",i);m.useEffect((()=>{if(p(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;c(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(h)}`:`.${h}-dropdown`,i=null===(r=l.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},a),{margin:0}),open:f,visible:f,getPopupContainer:()=>l.current});r&&(v=r(v));const b={paddingBottom:s,position:"relative",minWidth:u};return m.createElement("div",{ref:l,style:b},m.createElement(e,Object.assign({},v)))})),tg=(e,t)=>{const n=m.useContext(Fm);return[m.useMemo((()=>{var r;const o=t||Mm[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),m.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Mm.locale:e}),[n])]},ng=()=>{const[,e]=wa(),t=new oa(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.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"}),m.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)"}),m.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"}),m.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"})),m.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"}),m.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rg=()=>{const[,e]=wa(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=(0,m.useMemo)((()=>({borderColor:new oa(t).onBackground(o).toHexShortString(),shadowColor:new oa(n).onBackground(o).toHexShortString(),contentColor:new oa(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:i},m.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"}),m.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:l}))))},og=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}}}}},ig=Cl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=ml(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[og(o)]}));const ag=m.createElement(ng,null),lg=m.createElement(rg,null),sg=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ag,description:i,children:a,imageStyle:l,style:s}=e,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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m.useContext(Ka),p=u("empty",r),[g,h,v]=ig(p),[b]=tg("Empty"),y=void 0!==i?i:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let w=null;return w="string"==typeof o?m.createElement("img",{alt:x,src:o}):o,g(m.createElement("div",Object.assign({className:F()(h,v,p,null==f?void 0:f.className,{[`${p}-normal`]:o===lg,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),s)},c),m.createElement("div",{className:`${p}-image`,style:l},w),y&&m.createElement("div",{className:`${p}-description`},y),a&&m.createElement("div",{className:`${p}-footer`},a)))};sg.PRESENTED_IMAGE_DEFAULT=ag,sg.PRESENTED_IMAGE_SIMPLE=lg;const cg=sg,ug=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,m.useContext)(Ka),r=n("empty");switch(t){case"Table":case"List":return g().createElement(cg,{image:cg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return g().createElement(cg,{image:cg.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return g().createElement(cg,null)}},dg=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)},fg=new ri("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),pg=new ri("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),mg=new ri("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),gg=new ri("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),hg=new ri("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),vg=new ri("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bg=new ri("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yg=new ri("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),xg={"slide-up":{inKeyframes:fg,outKeyframes:pg},"slide-down":{inKeyframes:mg,outKeyframes:gg},"slide-left":{inKeyframes:hg,outKeyframes:vg},"slide-right":{inKeyframes:bg,outKeyframes:yg}},wg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=xg[t];return[Al(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}}]},Cg=new ri("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Sg=new ri("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$g=new ri("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Eg=new ri("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kg=new ri("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Og=new ri("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ig={"move-up":{inKeyframes:new ri("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 ri("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:Cg,outKeyframes:Sg},"move-left":{inKeyframes:$g,outKeyframes:Eg},"move-right":{inKeyframes:kg,outKeyframes:Og}},jg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ig[t];return[Al(r,o,i,e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pg=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"}},Mg=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({},tl(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:fg},[`\n          ${o}${l}topLeft,\n          ${i}${l}topLeft,\n          ${o}${l}topRight,\n          ${i}${l}topRight\n        `]:{animationName:mg},[`${a}${l}bottomLeft`]:{animationName:pg},[`\n          ${a}${l}topLeft,\n          ${a}${l}topRight\n        `]:{animationName:gg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Pg(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"},el),"&-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({},Pg(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},wg(e,"slide-up"),wg(e,"slide-down"),jg(e,"move-up"),jg(e,"move-down")]},Rg=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c}=e,u=`${t}-selection-overflow`;return{[u]:{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}})}}}},Ng=(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:Wr(t),itemLineHeight:Wr(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},Rg(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:`${Wr(2)} 0`,lineHeight:Wr(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Wr(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:Wr(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 Ag(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[Ng(e,t),o]}const Fg=e=>{const{componentCls:t}=e,n=ml(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ml(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ag(e),Ag(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ag(r,"lg")]};function Tg(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({},tl(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:Wr(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 ${Wr(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Wr(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 ${Wr(r)}`,"&:after":{display:"none"}}}}}}}function zg(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Tg(e),Tg(ml(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 ${Wr(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()}}}},Tg(ml(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Lg=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Wr(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 ${Wr(o)} ${t.activeShadowColor}`,outline:0}}}},Bg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Lg(e,t))}),Dg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Lg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Bg(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Bg(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:`${Wr(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Hg=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Wr(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}}}},_g=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Hg(e,t))}),Vg=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Hg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),_g(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_g(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:`${Wr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Wg=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:`${Wr(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),qg=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Dg(e)),Vg(e)),Wg(e))}),Gg=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"}}}},Xg=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"}}}},Kg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},tl(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Gg(e)),Xg(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},el),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},el),{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()}}}},Ug=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Kg(e),zg(e),Fg(e),Mg(e),{[`${t}-rtl`]:{direction:"rtl"}},Nc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Yg=Cl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=ml(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ug(r),qg(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}}),Qg={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 Zg=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:Qg}))};const Jg=m.forwardRef(Zg),eh={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 th=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:eh}))};const nh=m.forwardRef(th),rh={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 oh=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:rh}))};const ih=m.forwardRef(oh);const ah="SECRET_COMBOBOX_MODE_DO_NOT_USE",lh=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:p,disabled:g,notFoundContent:h,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:C,allowClear:S,variant:$,dropdownStyle:E,transitionName:k,tagRender:O,maxCount:I}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:P,getPrefixCls:M,renderEmpty:R,direction:N,virtual:A,popupMatchSelectWidth:T,popupOverflow:z,select:L}=m.useContext(Ka),[,B]=wa(),D=null!=f?f:null==B?void 0:B.controlHeight,H=M("select",r),_=M(),V=null!=w?w:N,{compactSize:W,compactItemClassnames:q}=jl(H,V),[G,X]=tf($,o),K=Jd(H),[U,Y,Q]=Yg(H,K),Z=m.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===ah?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(n=null!=x?x:y)&&void 0!==n?n:T,{status:ne,hasFeedback:re,isFormItemInput:oe,feedbackIcon:ie}=m.useContext(dd),ae=Zd(ne,v);let le;le=void 0!==h?h:"combobox"===Z?null:(null==R?void 0:R("Select"))||m.createElement(ug,{componentName:"Select"});const{suffixIcon:se,itemIcon:ce,removeIcon:ue,clearIcon:de}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:m.createElement(Ud,null),g=e=>null!==t||l||d?m.createElement(m.Fragment,null,!1!==c&&e,l&&u):null;let h=null;if(void 0!==t)h=g(t);else if(i)h=g(m.createElement(tc,{spin:!0}));else{const e=`${s}-suffix`;h=t=>{let{open:n,showSearch:r}=t;return g(n&&r?m.createElement(bf,{className:e}):m.createElement(ih,{className:e}))}}let v=null;v=void 0!==r?r:a?m.createElement(Jg,null):null;let b=null;return b=void 0!==o?o:m.createElement(nh,null),{clearIcon:p,suffixIcon:h,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},j),{multiple:J,hasFeedback:re,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),fe=!0===S?{clearIcon:de}:S,pe=os(j,["suffixIcon","itemIcon"]),me=F()(s||c,{[`${H}-dropdown-${V}`]:"rtl"===V},a,Q,K,Y),ge=Ja((e=>{var t;return null!==(t=null!=p?p:W)&&void 0!==t?t:e})),he=m.useContext(Ps),ve=null!=g?g:he,be=F()({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===V,[`${H}-${G}`]:X,[`${H}-in-form-item`]:oe},Qd(H,ae,re),q,null==L?void 0:L.className,i,a,Q,K,Y),ye=m.useMemo((()=>void 0!==d?d:"rtl"===V?"bottomRight":"bottomLeft"),[d,V]),[xe]=ka("SelectLike",null==E?void 0:E.zIndex);return U(m.createElement(km,Object.assign({ref:t,virtual:A,showSearch:null==L?void 0:L.showSearch},pe,{style:Object.assign(Object.assign({},null==L?void 0:L.style),C),dropdownMatchSelectWidth:te,transitionName:Ma(_,"slide-up",k),builtinPlacements:dg(b,z),listHeight:u,listItemHeight:D,mode:Z,prefixCls:H,placement:ye,direction:V,suffixIcon:se,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:fe,notFoundContent:le,className:be,getPopupContainer:l||P,dropdownClassName:me,disabled:ve,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:xe}),maxCount:J?I:void 0,tagRender:J?O:void 0})))},sh=m.forwardRef(lh),ch=eg(sh);sh.SECRET_COMBOBOX_MODE_DO_NOT_USE=ah,sh.Option=qp,sh.OptGroup=Vp,sh._InternalPanelDoNotUseOrYouWillBeFired=ch;const uh=sh,{isEnumType:dh,isInputObjectType:fh,isScalarType:ph,parseType:mh,visit:gh}=wpGraphiQL.GraphQL,{useState:hh}=wp.element,vh=t=>{const[n,r]=hh(!0),{definition:o}=t,{argValue:i,arg:a,styleConfig:l}=t,s=j(a.type);let c=null;if(i)if("Variable"===i.kind)c=(0,e.jsxs)("span",{style:{color:l.colors.variable},children:["$",i.name.value]});else if(ph(s))c="Boolean"===s.name?(0,e.jsxs)(uh,{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,children:[(0,e.jsx)(uh.Option,{value:"true",children:"true"},"true"),(0,e.jsx)(uh.Option,{value:"false",children:"false"},"false")]}):(0,e.jsx)(Tf,{setArgValue:t.setArgValue,arg:a,argValue:i,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig});else if(dh(s))"EnumValue"===i.kind?c=(0,e.jsx)(uh,{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,children:s.getValues().map(((t,n)=>(0,e.jsx)(uh.Option,{value:t.name,children:t.name},n)))}):console.error("arg mismatch between arg and selection",s,i);else if(fh(s))if("ObjectValue"===i.kind){const n=s.getFields();c=(0,e.jsx)("div",{style:{marginLeft:16},children:Object.keys(n).sort().map((r=>(0,e.jsx)(Df,{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},r)))})}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.jsx)(rs,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:u?"Remove the variable":"Extract the current value into a GraphQL variable",children:(0,e.jsx)(Dc,{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;gh(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:mh(o),directives:[]};let s,c={};if(null!=i){const e=gh(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)}}})()},children:(0,e.jsx)("span",{style:{color:u?"inherit":l.colors.variable},children:"$"})})}):null;return(0,e.jsxs)("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}`,children:[(0,e.jsxs)("span",{style:{cursor:"pointer"},onClick:e=>{const n=!i;n?t.addArg(!0):t.removeArg(!0),r(n)},children:[fh(s)?(0,e.jsx)("span",{children:i?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed}):(0,e.jsx)(Hc,{checked:!!i,styleConfig:t.styleConfig}),(0,e.jsxs)("span",{style:{color:l.colors.attribute},title:a.description,onMouseEnter:()=>{null!=i&&r(!0)},onMouseLeave:()=>r(!0),children:[a.name,O(a)?"*":"",": ",d," "]})," "]}),c||(0,e.jsx)("span",{})," "]})},{isInputObjectType:bh,isLeafType:yh}=wpGraphiQL.GraphQL,xh=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.jsx)(vh,{argValue:a?a.value:null,arg:o,parentField:i,addArg:e=>{const{selection:r,getDefaultScalarArgValue:o,makeDefaultArg:i,parentField:a,arg:l}=t,s=j(l.type);let c=null;if(n)c=n;else if(bh(s)){const e=s.getFields();c={kind:"Argument",name:{kind:"Name",value:l.name},value:{kind:"ObjectValue",fields:M(o,i,a,Object.keys(e).map((t=>e[t])))}}}else yh(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=j(t.arg.type);if(!(yh(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})},wh={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 Ch=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:wh}))};const Sh=m.forwardRef(Ch),$h=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.jsx)("div",{className:`graphiql-explorer-${t.fragment.name.value}`,children:(0,e.jsxs)("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}])},children:[(0,e.jsx)(Hc,{checked:!!i,styleConfig:t.styleConfig}),(0,e.jsx)("span",{style:{color:o.colors.def},className:`graphiql-explorer-${t.fragment.name.value}`,children:t.fragment.name.value}),(0,e.jsx)(rs,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Edit the ${t.fragment.name.value} Fragment`,children:(0,e.jsx)(Dc,{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.jsx)(Sh,{})})})]})})},Eh=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.jsxs)("div",{className:`graphiql-explorer-${i.name}`,children:[(0,e.jsxs)("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}})))}}])},children:[(0,e.jsx)(Hc,{checked:!!c,styleConfig:t.styleConfig}),(0,e.jsx)("span",{style:{color:s.colors.atom},children:t.implementingType.name})]}),c?(0,e.jsx)("div",{style:{marginLeft:16},children:Object.keys(u).sort().map((n=>(0,e.jsx)(Fh,{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},n)))}):null]})},kh={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 Oh=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:kh}))};const Ih=m.forwardRef(Oh),{getNamedType:jh,isInterfaceType:Ph,isObjectType:Mh,isUnionType:Rh}=wpGraphiQL.GraphQL,{useState:Nh}=wp.element,Ah=t=>{const[n,r]=Nh(!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=I(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=Mh(p)||Ph(p)||Rh(p)?t.availableFragments&&t.availableFragments[p.name]:null,v=f&&f.selectionSet?f.selectionSet.selections:[],b=(0,e.jsxs)("div",{className:g,children:[(0,e.jsxs)("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=jh(t.field.type),r=Mh(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:R(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:R(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field)}];t.modifySelections(e)})()}},onMouseEnter:()=>{Mh(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter((e=>"FragmentSpread"!==e.kind)).length>0&&r(!0)},onMouseLeave:()=>r(!1),children:[Mh(p)?(0,e.jsx)("span",{children:f?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed}):null,Mh(p)?null:(0,e.jsx)(Hc,{checked:!!f,styleConfig:t.styleConfig}),(0,e.jsx)("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view",children:s.name}),n?(0,e.jsx)(rs,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:"Extract selections into a new reusable fragment",children:(0,e.jsx)(Dc,{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.jsx)(Ih,{}),style:{height:"18px",margin:"0px 5px"}})}):null]}),f&&m.length?(0,e.jsx)("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments",children:m.map((n=>(0,e.jsx)(xh,{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},n.name)))}):null]});if(f){const n=I(p),r=n&&"getFields"in n?n.getFields():null;if(r)return(0,e.jsxs)("div",{className:`graphiql-explorer-${s.name}`,children:[b,(0,e.jsxs)("div",{style:{marginLeft:16},children:[h?h.map((n=>{const r=c.getType(n.typeCondition.name.value),o=n.name.value;return r?(0,e.jsx)($h,{fragment:n,selections:v,modifySelections:l,schema:c,styleConfig:t.styleConfig,onCommit:t.onCommit},o):null})):null,Object.keys(r).sort().map((n=>(0,e.jsx)(Ah,{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},n))),Ph(p)||Rh(p)?c.getPossibleTypes(p).map((n=>(0,e.jsx)(Eh,{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},n.name))):null]})]});if(Rh(p))return(0,e.jsxs)("div",{className:`graphiql-explorer-${s.name}`,children:[b,(0,e.jsx)("div",{style:{marginLeft:16},children:c.getPossibleTypes(p).map((n=>(0,e.jsx)(Eh,{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},n.name)))})]})}return b},Fh=Ah;var Th=n(2833),zh=n.n(Th);const Lh=function(e){function t(e,r,s,c,f){for(var p,m,g,h,x,C=0,S=0,$=0,E=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="";T<D;){if(m=s.charCodeAt(T),T===H&&0!==S+E+$+C&&(0!==S&&(m=47===S?10:47),E=$=C=0,D++,H++),0===S+E+$+C){if(T===H&&(0<z&&(_=_.replace(d,"")),0<_.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:_+=s.charAt(T)}m=59}switch(m){case 123:for(p=(_=_.trim()).charCodeAt(0),g=1,B=++T;T<D;){switch(m=s.charCodeAt(T)){case 123:g++;break;case 125:g--;break;case 47:switch(m=s.charCodeAt(T+1)){case 42:case 47:e:{for(A=T+1;A<H;++A)switch(s.charCodeAt(A)){case 47:if(42===m&&42===s.charCodeAt(A-1)&&T+2!==A){T=A+1;break e}break;case 10:if(47===m){T=A+1;break e}}T=A}}break;case 91:m++;case 40:m++;case 34:case 39:for(;T++<H&&s.charCodeAt(T)!==m;);}if(0===g)break;T++}if(g=s.substring(B,T),0===p&&(p=(_=_.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<z&&(_=_.replace(d,"")),m=_.charCodeAt(1)){case 100:case 109:case 115:case 45:z=r;break;default:z=M}if(B=(g=t(r,z,g,m,f+1)).length,0<N&&(x=l(3,g,z=n(M,_,L),r,I,O,B,m,f,c),_=z.join(""),void 0!==x&&0===(B=(g=x.trim()).length)&&(m=0,g="")),0<B)switch(m){case 115:_=_.replace(w,a);case 100:case 109:case 45:g=_+"{"+g+"}";break;case 107:g=(_=_.replace(v,"$1 $2"))+"{"+g+"}",g=1===P||2===P&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=_+g,112===c&&(V+=g,g="")}else g=""}else g=t(r,n(r,_,L),g,c,f+1);W+=g,g=L=z=A=p=0,_="",m=s.charCodeAt(++T);break;case 125:case 59:if(1<(B=(_=(0<z?_.replace(d,""):_).trim()).length))switch(0===A&&(p=_.charCodeAt(0),45===p||96<p&&123>p)&&(B=(_=_.replace(" ",":")).length),0<N&&void 0!==(x=l(1,_,r,e,I,O,V.length,c,f,c))&&0===(B=(_=x.trim()).length)&&(_="\0\0"),p=_.charCodeAt(0),m=_.charCodeAt(1),p){case 0:break;case 64:if(105===m||99===m){q+=_+s.charAt(T);break}default:58!==_.charCodeAt(B-1)&&(V+=o(_,p,m,_.charCodeAt(2)))}L=z=A=p=0,_="",m=s.charCodeAt(++T)}}switch(m){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0<_.length&&(z=1,_+="\0"),0<N*F&&l(0,_,r,e,I,O,V.length,c,f,c),O=1,I++;break;case 59:case 125:if(0===S+E+$+C){O++;break}default:switch(O++,h=s.charAt(T),m){case 9:case 32:if(0===E+C+S)switch(k){case 44:case 58:case 9:case 32:h="";break;default:32!==m&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===E+S+C&&(z=L=1,h="\f"+h);break;case 108:if(0===E+S+C+j&&0<A)switch(T-A){case 2:112===k&&58===s.charCodeAt(T-3)&&(j=k);case 8:111===R&&(j=R)}break;case 58:0===E+S+C&&(A=T);break;case 44:0===S+$+E+C&&(z=1,h+="\r");break;case 34:case 39:0===S&&(E=E===m?0:0===E?m:E);break;case 91:0===E+S+$&&C++;break;case 93:0===E+S+$&&C--;break;case 41:0===E+S+C&&$--;break;case 40:0===E+S+C&&(0===p&&(2*k+3*R==533||(p=1)),$++);break;case 64:0===S+$+E+C+A+g&&(g=1);break;case 42:case 47:if(!(0<E+C+$))switch(S){case 0:switch(2*m+3*s.charCodeAt(T+1)){case 235:S=47;break;case 220:B=T,S=42}break;case 42:47===m&&42===k&&B+2!==T&&(33===s.charCodeAt(B+2)&&(V+=s.substring(B,T+1)),h="",S=0)}}0===S&&(_+=h)}R=k,k=m,T++}if(0<(B=V.length)){if(z=r,0<N&&void 0!==(x=l(2,V,z,e,I,O,B,c,f,c))&&0===(V=x).length)return q+V+W;if(V=z.join(",")+"{"+V+"}",0!=P*j){switch(2!==P||i(V,2)||(j=0),j){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(b,"::-webkit-input-$1")+V.replace(b,"::-moz-$1")+V.replace(b,":-ms-input-$1")+V}j=0}}return q+V+W}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var c=0;c<a;++c)t[s++]=r(e[c]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(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&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(x,"tb");break;case 232:s=a.replace(x,"tb-rl");break;case 220:s=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace($,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,u){for(var d,f=0,p=t;f<N;++f)switch(d=R[f].call(c,e,p,n,r,o,i,a,l,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?P=1:(P=2,A=e):P=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<N){var o=l(-1,n,r,r,I,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(M,r,n,0,0);return 0<N&&void 0!==(o=l(-2,i,r,r,I,O,i.length,0,0,0))&&(i=o),j=0,O=I=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,S=/-self|flex-/g,$=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,O=1,I=1,j=0,P=1,M=[],R=[],N=0,A=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:N=R.length=0;break;default:if("function"==typeof t)R[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},c.set=s,void 0!==e&&s(e),c},Bh={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};function Dh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Hh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_h=Dh((function(e){return Hh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Vh=n(4146),Wh=n.n(Vh);function qh(){return(qh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Gh=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Xh=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,ie.typeOf)(e)},Kh=Object.freeze([]),Uh=Object.freeze({});function Yh(e){return"function"==typeof e}function Qh(e){return e.displayName||e.name||"Component"}function Zh(e){return e&&"string"==typeof e.styledComponentId}var Jh="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ev="undefined"!=typeof window&&"HTMLElement"in window,tv=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function nv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var rv=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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&nv(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),ov=new Map,iv=new Map,av=1,lv=function(e){if(ov.has(e))return ov.get(e);for(;iv.has(av);)av++;var t=av++;return ov.set(e,t),iv.set(t,e),t},sv=function(e){return iv.get(e)},cv=function(e,t){t>=av&&(av=t+1),ov.set(e,t),iv.set(t,e)},uv="style["+Jh+'][data-styled-version="5.3.5"]',dv=new RegExp("^"+Jh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),fv=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},pv=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(dv);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(cv(c,s),fv(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},mv=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},gv=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Jh))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Jh,"active"),r.setAttribute("data-styled-version","5.3.5");var a=mv();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},hv=function(){function e(e){var t=this.element=gv(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<r;n++){var o=t[n];if(o.ownerNode===e)return o}nv(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),vv=function(){function e(e){var t=this.element=gv(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),bv=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),yv=ev,xv={isServer:!ev,useCSSOMInjection:!tv},wv=function(){function e(e,t,n){void 0===e&&(e=Uh),void 0===t&&(t={}),this.options=qh({},xv,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ev&&yv&&(yv=!1,function(e){for(var t=document.querySelectorAll(uv),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Jh)&&(pv(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return lv(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(qh({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new bv(o):r?new hv(o):new vv(o),new rv(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(lv(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(lv(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(lv(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=sv(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=Jh+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Cv=/(a)(d)/gi,Sv=function(e){return String.fromCharCode(e+(e>25?39:97))};function $v(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Sv(t%52)+n;return(Sv(t%52)+n).replace(Cv,"$1-$2")}var Ev=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},kv=function(e){return Ev(5381,e)};function Ov(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Yh(n)&&!Zh(n))return!1}return!0}var Iv=kv("5.3.5"),jv=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ov(e),this.componentId=t,this.baseHash=Ev(Iv,t),this.baseStyle=n,wv.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Gv(this.rules,e,t,n).join(""),a=$v(Ev(this.baseHash,i)>>>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=Ev(this.baseHash,n.hash),u="",d=0;d<s;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var p=Gv(f,e,t,n),m=Array.isArray(p)?p.join(""):p;c=Ev(c,m+d),u+=m}}if(u){var g=$v(c>>>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}(),Pv=/^\s*\/\/.*$/gm,Mv=[":","[",".","#"];function Rv(e){var t,n,r,o,i=void 0===e?Uh:e,a=i.options,l=void 0===a?Uh:a,s=i.plugins,c=void 0===s?Kh:s,u=new Lh(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!==Mv.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Pv,""),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||nv(15),Ev(e,t.name)}),5381).toString():"",m}var Nv=g().createContext(),Av=(Nv.Consumer,g().createContext()),Fv=(Av.Consumer,new wv),Tv=Rv();function zv(){return(0,m.useContext)(Nv)||Fv}function Lv(e){var t=(0,m.useState)(e.stylisPlugins),n=t[0],r=t[1],o=zv(),i=(0,m.useMemo)((function(){var t=o;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]),a=(0,m.useMemo)((function(){return Rv({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,m.useEffect)((function(){zh()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),g().createElement(Nv.Provider,{value:i},g().createElement(Av.Provider,{value:a},e.children))}var Bv=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Tv);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 nv(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=Tv),this.name+e.hash},e}(),Dv=/([A-Z])/,Hv=/([A-Z])/g,_v=/^ms-/,Vv=function(e){return"-"+e.toLowerCase()};function Wv(e){return Dv.test(e)?e.replace(Hv,Vv).replace(_v,"-ms-"):e}var qv=function(e){return null==e||!1===e||""===e};function Gv(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=Gv(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return qv(e)?"":Zh(e)?"."+e.styledComponentId:Yh(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:Gv(e(t),t,n,r):e instanceof Bv?n?(e.inject(n,r),e.getName(r)):e:Xh(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!qv(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Yh(t[a])?i.push(Wv(a)+":",t[a],";"):Xh(t[a])?i.push.apply(i,e(t[a],a)):i.push(Wv(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Bh?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var Xv=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Kv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Yh(e)||Xh(e)?Xv(Gv(Gh(Kh,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Xv(Gv(Gh(e,n)))}new Set;var Uv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yv=/(^-|-$)/g;function Qv(e){return e.replace(Uv,"-").replace(Yv,"")}function Zv(e){return"string"==typeof e&&!0}var Jv=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eb=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function tb(e,t,n){var r=e[n];Jv(t)&&Jv(r)?nb(r,t):e[n]=t}function nb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Jv(a))for(var l in a)eb(l)&&tb(e,a[l],l)}return e}var rb=g().createContext();rb.Consumer;var ob={};function ib(e,t,n){var r=Zh(e),o=!Zv(e),i=t.attrs,a=void 0===i?Kh:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Qv(e);ob[n]=(ob[n]||0)+1;var r=n+"-"+function(e){return $v(kv(e)>>>0)}("5.3.5"+n+ob[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,c=t.displayName,u=void 0===c?function(e){return Zv(e)?"styled."+e:"Styled("+Qh(e)+")"}(e):c,d=t.displayName&&t.componentId?Qv(t.displayName)+"-"+t.componentId:t.componentId||s,f=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;r&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var h,v=new jv(n,d,r?e.componentStyle:void 0),b=v.isStatic&&0===a.length,y=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,c=e.styledComponentId,u=e.target,d=function(e,t,n){void 0===e&&(e=Uh);var r=qh({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Yh(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=Uh),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,m.useContext)(rb),a)||Uh,t,o),f=d[0],p=d[1],g=function(e,t,n){var r=zv(),o=(0,m.useContext)(Av)||Tv;return t?e.generateAndInjectStyles(Uh,r,o):e.generateAndInjectStyles(n,r,o)}(i,r,f),h=n,v=p.$as||t.$as||p.as||t.as||u,b=Zv(v),y=p!==t?qh({},t,{},p):t,x={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?x.as=y[w]:(s?s(w,_h,v):!b||_h(w))&&(x[w]=y[w]));return t.style&&p.style!==t.style&&(x.style=qh({},t.style,{},p.style)),x.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,p.className).filter(Boolean).join(" "),x.ref=h,(0,m.createElement)(v,x)}(h,e,t,b)};return y.displayName=u,(h=g().forwardRef(y)).attrs=f,h.componentStyle=v,h.displayName=u,h.shouldForwardProp=p,h.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Kh,h.styledComponentId=d,h.target=r?e.target:e,h.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Zv(e)?e:Qv(Qh(e)));return ib(e,qh({},o,{attrs:f,componentId:i}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?nb({},e.defaultProps,t):t}}),h.toString=function(){return"."+h.styledComponentId},o&&Wh()(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var ab=function(e){return function e(t,n,r){if(void 0===r&&(r=Uh),!(0,ie.isValidElementType)(n))return nv(1,String(n));var o=function(){return t(n,r,Kv.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,qh({},r,{},o))},o.attrs=function(o){return e(t,n,qh({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(ib,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){ab[e]=ab(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=Ov(e),wv.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,n,r){var o=r(Gv(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&&wv.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=mv();return"<style "+[n&&'nonce="'+n+'"',Jh+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?nv(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return nv(2);var n=((t={})[Jh]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=mv();return r&&(n.nonce=r),[g().createElement("style",qh({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new wv({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?nv(2):g().createElement(Lv,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return nv(3)}}();const lb=ab,sb=g().createContext({}),cb={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 ub=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:cb}))};const db=m.forwardRef(ub),fb={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 pb=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:fb}))};const mb=m.forwardRef(pb),gb={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 hb=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:gb}))};const vb=m.forwardRef(hb);var bb=m.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.eventKey,s=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,g=e.onNoticeClose,h=e.times,v=e.hovering,b=K(m.useState(!1),2),y=b[0],x=b[1],w=v||y,C=function(){g(l)};m.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){C()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,h]);var S="".concat(n,"-notice");return m.createElement("div",z({},f,{ref:t,className:F()(S,o,D({},"".concat(S,"-closable"),c)),style:r,onMouseEnter:function(e){var t;x(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;x(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),m.createElement("div",{className:"".concat(S,"-content")},s),c&&m.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==_f.ENTER||C()},onClick:function(e){e.preventDefault(),e.stopPropagation(),C()}},d))}));const yb=bb;var xb=g().createContext({});const wb=function(e){var t=e.children,n=e.classNames;return g().createElement(xb.Provider,{value:{classNames:n}},t)};var Cb=["className","style","classNames","styles"];const Sb=function(e){var t,n,r,o,i,a,l=e.configList,s=e.placement,c=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,h=e.onNoticeClose,v=e.stack,b=(0,m.useContext)(xb).classNames,y=(0,m.useRef)({}),x=K((0,m.useState)(null),2),w=x[0],C=x[1],S=K((0,m.useState)([]),2),$=S[0],E=S[1],k=l.map((function(e){return{config:e,key:String(e.key)}})),O=K((a={offset:8,threshold:3,gap:16},(n=v)&&"object"===L(n)&&(a.offset=null!==(r=n.offset)&&void 0!==r?r:8,a.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,a.gap=null!==(i=n.gap)&&void 0!==i?i:16),[!!n,a]),2),I=O[0],j=O[1],P=j.offset,M=j.threshold,R=j.gap,N=I&&($.length>0||k.length<=M),A="function"==typeof f?f(s):f;return(0,m.useEffect)((function(){I&&$.length>1&&E((function(e){return e.filter((function(e){return k.some((function(t){var n=t.key;return e===n}))}))}))}),[$,k,I]),(0,m.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]),g().createElement(Vn,z({key:s,className:F()(c,"".concat(c,"-").concat(s),null==b?void 0:b.list,u,(t={},D(t,"".concat(c,"-stack"),!!I),D(t,"".concat(c,"-stack-expanded"),N),t)),style:d,keys:k,motionAppear:!0},A,{onAllRemoved:function(){p(s)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,i=e.index,a=n,l=a.key,u=a.times,d=String(l),f=n,p=f.className,m=f.style,v=f.classNames,x=f.styles,C=V(f,Cb),S=k.findIndex((function(e){return e.key===d})),O={};if(I){var j=k.length-1-(S>-1?S:i-1),M="top"===s||"bottom"===s?"-50%":"0";if(j>0){var A,T,L;O.height=N?null===(A=y.current[d])||void 0===A?void 0:A.offsetHeight:null==w?void 0:w.offsetHeight;for(var B=0,D=0;D<j;D++){var H;B+=(null===(H=y.current[k[k.length-1-D].key])||void 0===H?void 0:H.offsetHeight)+R}var W=(N?B:j*P)*(s.startsWith("top")?1:-1),q=!N&&null!=w&&w.offsetWidth&&null!==(T=y.current[d])&&void 0!==T&&T.offsetWidth?((null==w?void 0:w.offsetWidth)-2*P*(j<3?j:3))/(null===(L=y.current[d])||void 0===L?void 0:L.offsetWidth):1;O.transform="translate3d(".concat(M,", ").concat(W,"px, 0) scaleX(").concat(q,")")}else O.transform="translate3d(".concat(M,", 0, 0)")}return g().createElement("div",{ref:t,className:F()("".concat(c,"-notice-wrapper"),r,null==v?void 0:v.wrapper),style:_(_(_({},o),O),null==x?void 0:x.wrapper),onMouseEnter:function(){return E((function(e){return e.includes(d)?e:[].concat(pe(e),[d])}))},onMouseLeave:function(){return E((function(e){return e.filter((function(e){return e!==d}))}))}},g().createElement(yb,z({},C,{ref:function(e){S>-1?y.current[d]=e:delete y.current[d]},prefixCls:c,classNames:v,styles:x,className:F()(p,null==b?void 0:b.notice),style:m,times:u,key:l,eventKey:l,onNoticeClose:h,hovering:I&&$.length>0})))}))};var $b=m.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=K(m.useState([]),2),p=f[0],g=f[1],h=function(e){var t,n=p.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}))}))};m.useImperativeHandle(t,(function(){return{open:function(e){g((function(t){var n,r=pe(t),o=r.findIndex((function(t){return t.key===e.key})),i=_({},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)),a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){h(e)},destroy:function(){g([])}}}));var v=K(m.useState({}),2),b=v[0],y=v[1];m.useEffect((function(){var e={};p.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)}),[p]);var x=function(e){y((function(t){var n=_({},t);return(n[e]||[]).length||delete n[e],n}))},w=m.useRef(!1);if(m.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!o)return null;var C=Object.keys(b);return(0,U.createPortal)(m.createElement(m.Fragment,null,C.map((function(e){var t=b[e],n=m.createElement(Sb,{key:e,configList:t,placement:e,prefixCls:r,className:null==l?void 0:l(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:h,onAllNoticeRemoved:x,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)}));const Eb=$b;var kb=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Ob=function(){return document.body},Ib=0;const jb=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new ri("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new ri("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new ri("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new ri("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}}}}},Pb=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Mb={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Rb=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${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)},Nb=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Ab=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Rb(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Nb(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"}}}},Pb.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Mb[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},Fb=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,x=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[x]:{padding:p,width:v,maxWidth:`calc(100vw - ${Wr(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:h,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:g,color:y},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:g},[`${x}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-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}},il(e)),[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},Tb=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new ri("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},tl(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({},Fb(e))}}]},zb=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384}),Lb=e=>{const t=e.paddingMD,n=e.paddingLG;return ml(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:`${Wr(e.paddingMD)} ${Wr(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Bb=Cl("Notification",(e=>{const t=Lb(e);return[Tb(t),jb(t),Ab(t)]}),zb),Db=wl(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=Lb(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Fb(n)),{width:n.width,maxWidth:`calc(100vw - ${Wr(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),zb);function Hb(e,t){return null===t||!1===t?null:t||m.createElement(nh,{className:`${e}-close-icon`})}const _b={success:db,info:vb,error:Ud,warning:mb},Vb=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=m.createElement("span",{className:`${t}-icon`},n):r&&(s=m.createElement(_b[r]||null,{className:F()(`${t}-icon`,`${t}-icon-${r}`)})),m.createElement("div",{className:F()({[`${t}-with-icon`]:s}),role:l},s,m.createElement("div",{className:`${t}-message`},o),m.createElement("div",{className:`${t}-description`},i),a&&m.createElement("div",{className:`${t}-btn`},a))};const Wb=e=>{let{children:t,prefixCls:n}=e;const r=Jd(n),[o,i,a]=Bb(n,r);return o(g().createElement(wb,{classNames:{list:F()(i,a,r)}},t))},qb=(e,t)=>{let{prefixCls:n,key:r}=t;return g().createElement(Wb,{prefixCls:n,key:r},e)},Gb=g().forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:p,direction:h}=(0,m.useContext)(Ka),[,v]=wa(),b=o||d("notification"),[y,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Ob:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=V(e,kb),f=K(m.useState(),2),p=f[0],g=f[1],h=m.useRef(),v=m.createElement(Eb,{container:p,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),b=K(m.useState([]),2),y=b[0],x=b[1],w=m.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Ib),Ib+=1),x((function(e){return[].concat(pe(e),[{type:"open",config:t}])}))},close:function(e){x((function(t){return[].concat(pe(t),[{type:"close",key:e}])}))},destroy:function(){x((function(e){return[].concat(pe(e),[{type:"destroy"}])}))}}}),[]);return m.useEffect((function(){g(n())})),m.useEffect((function(){h.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}})),x((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[w,v]}({prefixCls:b,style:e=>function(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!=n?n:24,null!=r?r:24),className:()=>F()({[`${b}-rtl`]:null!=l?l:"rtl"===h}),motion:()=>function(e){return{motionName:`${e}-fade`}}(b),closable:!0,closeIcon:Hb(b),duration:null!=u?u:4.5,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:qb,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return g().useImperativeHandle(t,(()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:p}))),x}));function Xb(e){const t=g().useRef(null),n=(Ga(),g().useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,l=`${i}-notice`,{message:s,description:c,icon:u,type:d,btn:f,className:p,style:m,role:h="alert",closeIcon:v}=n,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=Hb(l,void 0!==v?v:null==a?void 0:a.closeIcon);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:g().createElement(Vb,{prefixCls:l,icon:u,type:d,message:s,description:c,btn:f,role:h}),className:F()(d&&`${l}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),closeIcon:y,closable:!!y}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]));return[n,g().createElement(Gb,Object.assign({key:"notification-holder"},e,{ref:t}))]}let Kb=null,Ub=e=>e(),Yb=[],Qb={};function Zb(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Qb,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Jb=g().forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=(0,m.useContext)(Ka),i=Qb.prefixCls||o("notification"),a=(0,m.useContext)(sb),[l,s]=Xb(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return g().useEffect(r,[]),g().useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),s})),ey=g().forwardRef(((e,t)=>{const[n,r]=g().useState(Zb),o=()=>{r(Zb)};g().useEffect(o,[]);const i=Ym(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=g().createElement(Jb,{ref:t,sync:o,notificationConfig:n});return g().createElement(Jm,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}));function ty(){if(!Kb){const e=document.createDocumentFragment(),t={fragment:e};return Kb=t,void Ub((()=>{vs(g().createElement(ey,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,ty())}))}}),e)}))}Kb.instance&&(Yb.forEach((e=>{switch(e.type){case"open":Ub((()=>{Kb.instance.open(Object.assign(Object.assign({},Qb),e.config))}));break;case"destroy":Ub((()=>{null==Kb||Kb.instance.destroy(e.key)}))}})),Yb=[])}function ny(e){Ym(),Yb.push({type:"open",config:e}),ty()}const ry={open:ny,destroy:function(e){Yb.push({type:"destroy",key:e}),ty()},config:function(e){Qb=Object.assign(Object.assign({},Qb),e),Ub((()=>{var e;null===(e=null==Kb?void 0:Kb.sync)||void 0===e||e.call(Kb)}))},useNotification:function(e){return Xb(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c,className:u}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=m.useContext(Ka),p=t||f("notification"),g=`${p}-notice`,h=Jd(p),[v,b,y]=Bb(p,h);return v(m.createElement("div",{className:F()(`${g}-pure-panel`,b,n,y,h)},m.createElement(Db,{prefixCls:p}),m.createElement(yb,Object.assign({},d,{prefixCls:p,eventKey:"pure",duration:null,closable:s,className:F()({notificationClassName:u}),closeIcon:Hb(p,c),content:m.createElement(Vb,{prefixCls:g,icon:r,type:o,message:i,description:a,btn:l})}))))}};["success","info","warning","error"].forEach((e=>{ry[e]=t=>ny(Object.assign(Object.assign({},t),{type:e}))}));const oy=ry;var iy=m.createContext(null);function ay(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ly(e){return ay(m.useContext(iy),e)}var sy=["children","locked"],cy=m.createContext(null);function uy(e){var t=e.children,n=e.locked,r=V(e,sy),o=m.useContext(cy),i=ae((function(){return e=r,t=_({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&$r(e[1],t[1],!0))}));return m.createElement(cy.Provider,{value:i},t)}var dy=[],fy=m.createContext(null);function py(){return m.useContext(fy)}var my=m.createContext(dy);function gy(e){var t=m.useContext(my);return m.useMemo((function(){return void 0!==e?[].concat(pe(t),[e]):t}),[t,e])}var hy=m.createContext(null);const vy=m.createContext({});function by(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(tr(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 yy=_f.LEFT,xy=_f.RIGHT,wy=_f.UP,Cy=_f.DOWN,Sy=_f.ENTER,$y=_f.ESC,Ey=_f.HOME,ky=_f.END,Oy=[wy,Cy,yy,xy];function Iy(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pe(e.querySelectorAll("*")).filter((function(e){return by(e,t)}));return by(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function jy(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Iy(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 Py=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(ay(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var My="__RC_UTIL_PATH_SPLIT__",Ry=function(e){return e.join(My)},Ny="rc-menu-more";function Ay(e){var t=m.useRef(e);t.current=e;var n=m.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var Fy=Math.random().toFixed(5).toString().slice(2),Ty=0;function zy(e,t,n,r){var o=m.useContext(cy),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),s}function Ly(e){var t=m.useContext(cy),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function By(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=m.createElement(n,_({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var Dy=["item"];function Hy(e){var t=e.item,n=V(e,Dy);return Object.defineProperty(n,"item",{get:function(){return oe(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var _y=["title","attribute","elementRef"],Vy=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Wy=["active"],qy=function(e){pt(n,e);var t=bt(n);function n(){return ct(this,n),t.apply(this,arguments)}return dt(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=os(V(e,_y),["eventKey","popupClassName","popupOffset","onTitleClick"]);return oe(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(mp.Item,z({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(m.Component),Gy=m.forwardRef((function(e,t){var n=e.style,r=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,l=e.children,s=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,p=e.onFocus,g=V(e,Vy),h=ly(o),v=m.useContext(cy),b=v.prefixCls,y=v.onItemClick,x=v.disabled,w=v.overflowDisabled,C=v.itemIcon,S=v.selectedKeys,$=v.onActive,E=m.useContext(vy)._internalRenderMenuItem,k="".concat(b,"-item"),O=m.useRef(),I=m.useRef(),j=x||i,P=ce(t,I),M=gy(o),R=function(e){return{key:o,keyPath:pe(M).reverse(),item:O.current,domEvent:e}},N=a||C,A=zy(o,j,c,u),T=A.active,L=V(A,Wy),B=S.includes(o),H=Ly(M.length),W={};"option"===e.role&&(W["aria-selected"]=B);var q=m.createElement(qy,z({ref:O,elementRef:P,role:null===s?"none":s||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&h?null:h},g,L,W,{component:"li","aria-disabled":i,style:_(_({},H),n),className:F()(k,D(D(D({},"".concat(k,"-active"),T),"".concat(k,"-selected"),B),"".concat(k,"-disabled"),j),r),onClick:function(e){if(!j){var t=R(e);null==d||d(Hy(t)),y(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===_f.ENTER){var t=R(e);null==d||d(Hy(t)),y(t)}},onFocus:function(e){$(o),null==p||p(e)}}),l,m.createElement(By,{props:_(_({},e),{},{isSelected:B}),icon:N}));return E&&(q=E(q,e,{selected:B})),q}));function Xy(e,t){var n=e.eventKey,r=py(),o=gy(n);return m.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:m.createElement(Gy,z({},e,{ref:t}))}const Ky=m.forwardRef(Xy);var Uy=["className","children"],Yy=function(e,t){var n=e.className,r=e.children,o=V(e,Uy),i=m.useContext(cy),a=i.prefixCls,l=i.mode,s=i.rtl;return m.createElement("ul",z({className:F()(a,s&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},Qy=m.forwardRef(Yy);Qy.displayName="SubMenuList";const Zy=Qy;function Jy(e,t){return Te(e).map((function(e,n){if(m.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(pe(t),[n]).join("-")));var l={key:a,eventKey:a};return m.cloneElement(e,l)}return e}))}var ex={adjustX:1,adjustY:1},tx={topLeft:{points:["bl","tl"],overflow:ex},topRight:{points:["br","tr"],overflow:ex},bottomLeft:{points:["tl","bl"],overflow:ex},bottomRight:{points:["tr","br"],overflow:ex},leftTop:{points:["tr","tl"],overflow:ex},leftBottom:{points:["br","bl"],overflow:ex},rightTop:{points:["tl","tr"],overflow:ex},rightBottom:{points:["bl","br"],overflow:ex}},nx={topLeft:{points:["bl","tl"],overflow:ex},topRight:{points:["br","tr"],overflow:ex},bottomLeft:{points:["tl","bl"],overflow:ex},bottomRight:{points:["tr","br"],overflow:ex},rightTop:{points:["tr","tl"],overflow:ex},rightBottom:{points:["br","bl"],overflow:ex},leftTop:{points:["tl","tr"],overflow:ex},leftBottom:{points:["bl","br"],overflow:ex}};function rx(e,t,n){return t||(n?n[e]||n.other:void 0)}var ox={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ix(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,d=m.useContext(cy),f=d.getPopupContainer,p=d.rtl,g=d.subMenuOpenDelay,h=d.subMenuCloseDelay,v=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,x=d.rootClassName,w=d.motion,C=d.defaultMotions,S=K(m.useState(!1),2),$=S[0],E=S[1],k=_(_({},p?nx:tx),v),O=ox[c],I=rx(c,w,C),j=m.useRef(I);"inline"!==c&&(j.current=I);var P=_(_({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=m.useRef();return m.useEffect((function(){return M.current=kn((function(){E(n)})),function(){kn.cancel(M.current)}}),[n]),m.createElement(gr,{prefixCls:t,popupClassName:F()("".concat(t,"-popup"),D({},"".concat(t,"-rtl"),p),a,x),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:k,popupPlacement:O,popupVisible:$,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:u,forceRender:y,popupMotion:P,fresh:!0},r)}function ax(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=m.useContext(cy),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=m.useRef(!1);f.current=d===i;var p=K(m.useState(!f.current),2),g=p[0],h=p[1],v=!!f.current&&n;m.useEffect((function(){f.current&&h(!1)}),[d]);var b=_({},rx(i,c,u));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||h(!0),null==y?void 0:y(e)},g?null:m.createElement(uy,{mode:i,locked:!f.current},m.createElement(Wn,z({visible:v},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return m.createElement(Zy,{id:t,className:n,style:r},o)})))}var lx=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sx=["active"],cx=function(e){var t=e.style,n=e.className,r=e.title,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.internalPopupClose,l=e.children,s=e.itemIcon,c=e.expandIcon,u=e.popupClassName,d=e.popupOffset,f=e.popupStyle,p=e.onClick,g=e.onMouseEnter,h=e.onMouseLeave,v=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,x=V(e,lx),w=ly(o),C=m.useContext(cy),S=C.prefixCls,$=C.mode,E=C.openKeys,k=C.disabled,O=C.overflowDisabled,I=C.activeKey,j=C.selectedKeys,P=C.itemIcon,M=C.expandIcon,R=C.onItemClick,N=C.onOpenChange,A=C.onActive,T=m.useContext(vy)._internalRenderSubMenuItem,L=m.useContext(hy).isSubPathKey,B=gy(),H="".concat(S,"-submenu"),W=k||i,q=m.useRef(),G=m.useRef(),X=null!=s?s:P,U=null!=c?c:M,Y=E.includes(o),Q=!O&&Y,Z=L(j,o),J=zy(o,W,b,y),ee=J.active,te=V(J,sx),ne=K(m.useState(!1),2),re=ne[0],oe=ne[1],ie=function(e){W||oe(e)},ae=m.useMemo((function(){return ee||"inline"!==$&&(re||L([I],o))}),[$,ee,I,re,o,L]),le=Ly(B.length),se=Ay((function(e){null==p||p(Hy(e)),R(e)})),ce=w&&"".concat(w,"-popup"),ue=m.createElement("div",z({role:"menuitem",style:le,className:"".concat(H,"-title"),tabIndex:W?null:-1,ref:q,title:"string"==typeof r?r:null,"data-menu-id":O&&w?null:w,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":W,onClick:function(e){W||(null==v||v({key:o,domEvent:e}),"inline"===$&&N(o,!Y))},onFocus:function(){A(o)}},te),r,m.createElement(By,{icon:"horizontal"!==$?U:void 0,props:_(_({},e),{},{isOpen:Q,isSubMenu:!0})},m.createElement("i",{className:"".concat(H,"-arrow")}))),de=m.useRef($);if("inline"!==$&&B.length>1?de.current="vertical":de.current=$,!O){var fe=de.current;ue=m.createElement(ix,{mode:fe,prefixCls:H,visible:!a&&Q&&"inline"!==$,popupClassName:u,popupOffset:d,popupStyle:f,popup:m.createElement(uy,{mode:"horizontal"===fe?"vertical":fe},m.createElement(Zy,{id:ce,ref:G},l)),disabled:W,onVisibleChange:function(e){"inline"!==$&&N(o,e)}},ue)}var pe=m.createElement(mp.Item,z({role:"none"},x,{component:"li",style:t,className:F()(H,"".concat(H,"-").concat($),n,D(D(D(D({},"".concat(H,"-open"),Q),"".concat(H,"-active"),ae),"".concat(H,"-selected"),Z),"".concat(H,"-disabled"),W)),onMouseEnter:function(e){ie(!0),null==g||g({key:o,domEvent:e})},onMouseLeave:function(e){ie(!1),null==h||h({key:o,domEvent:e})}}),ue,!O&&m.createElement(ax,{id:ce,open:Q,keyPath:B},l));return T&&(pe=T(pe,e,{selected:Z,active:ae,open:Q,disabled:W})),m.createElement(uy,{onItemClick:se,mode:"horizontal"===$?"vertical":$,itemIcon:X,expandIcon:U},pe)};function ux(e){var t,n=e.eventKey,r=e.children,o=gy(n),i=Jy(r,o),a=py();return m.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:m.createElement(cx,e,i),m.createElement(my.Provider,{value:o},t)}var dx=["className","title","eventKey","children"],fx=["children"],px=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),o=V(e,dx),i=m.useContext(cy).prefixCls,a="".concat(i,"-item-group");return m.createElement("li",z({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:F()(a,t)}),m.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),m.createElement("ul",{role:"group",className:"".concat(a,"-list")},r))};function mx(e){var t=e.children,n=V(e,fx),r=Jy(t,gy(n.eventKey));return py()?r:m.createElement(px,os(n,["warnKey"]),r)}function gx(e){var t=e.className,n=e.style,r=m.useContext(cy).prefixCls;return py()?null:m.createElement("li",{role:"separator",className:F()("".concat(r,"-item-divider"),t),style:n})}var hx=["label","children","key","type"];function vx(e){return(e||[]).map((function(e,t){if(e&&"object"===L(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,l=V(n,hx),s=null!=i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?m.createElement(mx,z({key:s},l,{title:r}),vx(o)):m.createElement(ux,z({key:s},l,{title:r}),vx(o)):"divider"===a?m.createElement(gx,z({key:s},l)):m.createElement(Ky,z({key:s},l),r)}return null})).filter((function(e){return e}))}function bx(e,t,n){var r=e;return t&&(r=vx(t)),Jy(r,n)}var yx=["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"],xx=[],wx=m.forwardRef((function(e,t){var n,r=e,o=r.prefixCls,i=void 0===o?"rc-menu":o,a=r.rootClassName,l=r.style,s=r.className,c=r.tabIndex,u=void 0===c?0:c,d=r.items,f=r.children,p=r.direction,g=r.id,h=r.mode,v=void 0===h?"vertical":h,b=r.inlineCollapsed,y=r.disabled,x=r.disabledOverflow,w=r.subMenuOpenDelay,C=void 0===w?.1:w,S=r.subMenuCloseDelay,$=void 0===S?.1:S,E=r.forceSubMenuRender,k=r.defaultOpenKeys,O=r.openKeys,I=r.activeKey,j=r.defaultActiveFirst,P=r.selectable,M=void 0===P||P,R=r.multiple,N=void 0!==R&&R,A=r.defaultSelectedKeys,T=r.selectedKeys,L=r.onSelect,B=r.onDeselect,H=r.inlineIndent,W=void 0===H?24:H,q=r.motion,G=r.defaultMotions,X=r.triggerSubMenuAction,Y=void 0===X?"hover":X,Q=r.builtinPlacements,Z=r.itemIcon,J=r.expandIcon,ee=r.overflowedIndicator,te=void 0===ee?"...":ee,ne=r.overflowedIndicatorPopupClassName,re=r.getPopupContainer,oe=r.onClick,ie=r.onOpenChange,ae=r.onKeyDown,le=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),se=r._internalRenderSubMenuItem,ce=V(r,yx),ue=m.useMemo((function(){return bx(f,d,xx)}),[f,d]),de=K(m.useState(!1),2),fe=de[0],me=de[1],ge=m.useRef(),he=function(e){var t=K(Bt(e,{value:e}),2),n=t[0],r=t[1];return m.useEffect((function(){Ty+=1;var e="".concat(Fy,"-").concat(Ty);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ve="rtl"===p,be=Bt(k,{value:O,postState:function(e){return e||xx}}),ye=K(be,2),xe=ye[0],we=ye[1],Ce=function(e){function t(){we(e),null==ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,U.flushSync)(t):t()},Se=K(m.useState(xe),2),$e=Se[0],Ee=Se[1],ke=m.useRef(!1),Oe=K(m.useMemo((function(){return"inline"!==v&&"vertical"!==v||!b?[v,!1]:["vertical",b]}),[v,b]),2),Ie=Oe[0],je=Oe[1],Pe="inline"===Ie,Me=K(m.useState(Ie),2),Re=Me[0],Ne=Me[1],Ae=K(m.useState(je),2),Fe=Ae[0],Te=Ae[1];m.useEffect((function(){Ne(Ie),Te(je),ke.current&&(Pe?we($e):Ce(xx))}),[Ie,je]);var ze=K(m.useState(0),2),Le=ze[0],Be=ze[1],De=Le>=ue.length-1||"horizontal"!==Re||x;m.useEffect((function(){Pe&&Ee(xe)}),[xe]),m.useEffect((function(){return ke.current=!0,function(){ke.current=!1}}),[]);var He=function(){var e=K(m.useState({}),2)[1],t=(0,m.useRef)(new Map),n=(0,m.useRef)(new Map),r=K(m.useState([]),2),o=r[0],i=r[1],a=(0,m.useRef)(0),l=(0,m.useRef)(!1),s=(0,m.useCallback)((function(r,o){var i=Ry(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var s,c=a.current;s=function(){c===a.current&&(l.current||e({}))},Promise.resolve().then(s)}),[]),c=(0,m.useCallback)((function(e,r){var o=Ry(r);n.current.delete(o),t.current.delete(e)}),[]),u=(0,m.useCallback)((function(e){i(e)}),[]),d=(0,m.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(My);return n&&o.includes(r[0])&&r.unshift(Ny),r}),[o]),f=(0,m.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=(0,m.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(My),o=new Set;return pe(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return m.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=pe(t.current.keys());return o.length&&e.push(Ny),e},getSubPathKeys:p}}(),_e=He.registerPath,Ve=He.unregisterPath,We=He.refreshOverflowKeys,qe=He.isSubPathKey,Ge=He.getKeyPath,Xe=He.getKeys,Ke=He.getSubPathKeys,Ue=m.useMemo((function(){return{registerPath:_e,unregisterPath:Ve}}),[_e,Ve]),Ye=m.useMemo((function(){return{isSubPathKey:qe}}),[qe]);m.useEffect((function(){We(De?xx:ue.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var Qe=K(Bt(I||j&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:I}),2),Ze=Qe[0],Je=Qe[1],et=Ay((function(e){Je(e)})),tt=Ay((function(){Je(void 0)}));(0,m.useImperativeHandle)(t,(function(){return{list:ge.current,focus:function(e){var t,n,r=Xe(),o=Py(r,he),i=o.elements,a=o.key2element,l=o.element2key,s=Iy(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=Bt(A||[],{value:T,postState:function(e){return Array.isArray(e)?e:null==e?xx:[e]}}),rt=K(nt,2),ot=rt[0],it=rt[1],at=Ay((function(e){null==oe||oe(Hy(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(pe(ot),[n]):[n],it(t);var o=_(_({},e),{},{selectedKeys:t});r?null==B||B(o):null==L||L(o)}!N&&xe.length&&"inline"!==Re&&Ce(xx)}(e)})),lt=Ay((function(e,t){var n=xe.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)}))}$r(xe,n,!0)||Ce(n,!0)})),st=function(e,t,n,r,o,i,a,l,s,c){var u=m.useRef(),d=m.useRef();d.current=t;var f=function(){kn.cancel(u.current)};return m.useEffect((function(){return function(){f()}}),[]),function(p){var m=p.which;if([].concat(Oy,[Sy,$y,Ey,ky]).includes(m)){var g=i(),h=Py(g,r),v=h,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=x.get(w),S=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===Sy)return{inlineTrigger:!0};var c=D(D({},wy,i),Cy,a),u=D(D(D(D({},yy,n?a:i),xy,n?i:a),Cy,l),Sy,l),d=D(D(D(D(D(D({},wy,i),Cy,a),Sy,l),$y,s),yy,n?l:s),xy,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}}(e,1===a(C,!0).length,n,m);if(!S&&m!==Ey&&m!==ky)return;(Oy.includes(m)||[Ey,ky].includes(m))&&p.preventDefault();var $=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);l(r),f(),u.current=kn((function(){d.current===r&&t.focus()}))}};if([Ey,ky].includes(m)||S.sibling||!w){var E,k,O=Iy(E=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);k=m===Ey?O[0]:m===ky?O[O.length-1]:jy(E,b,w,S.offset),$(k)}else if(S.inlineTrigger)s(C);else if(S.offset>0)s(C,!0),f(),u.current=kn((function(){h=Py(g,r);var e=w.getAttribute("aria-controls"),t=jy(document.getElementById(e),h.elements);$(t)}),5);else if(S.offset<0){var I=a(C,!0),j=I[I.length-2],P=y.get(j);s(j,!1),$(P)}}null==c||c(p)}}(Re,Ze,ve,he,ge,Xe,Ge,Je,(function(e,t){var n=null!=t?t:!xe.includes(e);lt(e,n)}),ae);m.useEffect((function(){me(!0)}),[]);var ct=m.useMemo((function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:se}}),[le,se]),ut="horizontal"!==Re||x?ue:ue.map((function(e,t){return m.createElement(uy,{key:e.key,overflowDisabled:t>Le},e)})),dt=m.createElement(mp,z({id:g,ref:ge,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ky,className:F()(i,"".concat(i,"-root"),"".concat(i,"-").concat(Re),s,D(D({},"".concat(i,"-inline-collapsed"),Fe),"".concat(i,"-rtl"),ve),a),dir:p,style:l,role:"menu",tabIndex:u,data:ut,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return m.createElement(ux,{eventKey:Ny,title:te,disabled:De,internalPopupClose:0===t,popupClassName:ne},n)},maxCount:"horizontal"!==Re||x?mp.INVALIDATE:mp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:st},ce));return m.createElement(vy.Provider,{value:ct},m.createElement(iy.Provider,{value:he},m.createElement(uy,{prefixCls:i,rootClassName:a,mode:Re,openKeys:xe,rtl:ve,disabled:y,motion:fe?q:null,defaultMotions:fe?G:null,activeKey:Ze,onActive:et,onInactive:tt,selectedKeys:ot,inlineIndent:W,subMenuOpenDelay:C,subMenuCloseDelay:$,forceSubMenuRender:E,builtinPlacements:Q,triggerSubMenuAction:Y,getPopupContainer:re,itemIcon:Z,expandIcon:J,onItemClick:at,onOpenChange:lt},m.createElement(hy.Provider,{value:Ye},dt),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(fy.Provider,{value:Ue},ue)))))})),Cx=wx;Cx.Item=Ky,Cx.SubMenu=ux,Cx.ItemGroup=mx,Cx.Divider=gx;const Sx=Cx,$x=m.createContext({});const Ex=e=>{const{prefixCls:t,className:n,dashed:r}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=m.useContext(Ka),a=i("menu",t),l=F()({[`${a}-item-divider-dashed`]:!!r},n);return m.createElement(gx,Object.assign({className:l},o))},kx=(0,m.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ox=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=m.useContext(kx),{siderCollapsed:f}=m.useContext($x);let p=i;void 0===i?p=s?r:"":!1===i&&(p="");const g={title:p};f||d||(g.title=null,g.open=!1);const h=Te(r).length;let v=m.createElement(Ky,Object.assign({},os(e,["title","icon","danger"]),{className:F()({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?h+1:h)},n),title:"string"==typeof i?i:void 0}),Va(o,{className:F()(m.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=m.createElement("span",{className:`${l}-title-content`},r);return(!o||m.isValidElement(r)&&"span"===r.type)&&r&&e&&s&&"string"==typeof r?m.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(v=m.createElement(rs,Object.assign({},g,{placement:"rtl"===c?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v},Ix=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=m.useContext(kx),{prefixCls:l,inlineCollapsed:s,theme:c}=a,u=gy();let d;if(r){const e=m.isValidElement(o)&&"span"===o.type;d=m.createElement(m.Fragment,null,Va(r,{className:F()(m.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?o:m.createElement("span",{className:`${l}-title-content`},o))}else d=s&&!u.length&&o&&"string"==typeof o?m.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):m.createElement("span",{className:`${l}-title-content`},o);const f=m.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=ka("Menu");return m.createElement(kx.Provider,{value:f},m.createElement(ux,Object.assign({},os(e,["icon"]),{title:d,popupClassName:F()(l,n,`${l}-${i||c}`),popupStyle:{zIndex:p}})))};function jx(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["label","children","key","type"]),s=null!=i?i:`tmp-${t}`;return o||"group"===a?"group"===a?m.createElement(mx,Object.assign({key:s},l,{title:r}),jx(o)):m.createElement(Ix,Object.assign({key:s},l,{title:r}),jx(o)):"divider"===a?m.createElement(Ex,Object.assign({key:s},l)):m.createElement(Ox,Object.assign({key:s},l),r)}return null})).filter((e=>e))}const Px=m.createContext(null),Mx=m.forwardRef(((e,t)=>{const{children:n}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]),o=m.useContext(Px),i=m.useMemo((()=>Object.assign(Object.assign({},o),r)),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=function(e){return function(e){return(0,m.isValidElement)(e)&&!(0,ie.isFragment)(e)}(e)&&ue(e)}(n),l=ce(t,a?n.ref:null);return m.createElement(Px.Provider,{value:i},m.createElement(Pl,null,a?m.cloneElement(n,{ref:l}):n))})),Rx=Px,Nx=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`}}}),Ax=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:`${Wr(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"}}}},Fx=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(${Wr(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Wr(n)})`}}}}},Tx=e=>Object.assign({},ol(e)),zx=(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:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:E,popupBg:k,itemHoverBg:O,itemActiveBg:I,menuSubMenuBg:j,horizontalItemSelectedColor:P,horizontalItemSelectedBg:M,horizontalItemBorderRadius:R,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Tx(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({},Tx(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !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:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:$}},[`${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:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${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:`${Wr(c)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Wr(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Wr(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(",")}}}}}},Lx=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:Wr(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Wr(n)},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:c}}},Bx=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:Wr(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Lx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Lx(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Wr(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% - ${Wr(e.calc(d).div(2).equal())} - ${Wr(u)})`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:Wr(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({},el),{paddingInline:p})}}]},Dx=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"}}}},Hx=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(${Wr(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Wr(a)})`}}}}},Vx=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({},tl(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:`${Wr(l)} ${Wr(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"}}}),Dx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Wr(e.calc(r).mul(2).equal())} ${Wr(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},Dx(e)),Hx(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}}}),Hx(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Wr(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Wr(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Wr(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Wr(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Wr(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Wx=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:x,padding:w,fontSize:C,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:E,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 oa(E).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:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:$,groupTitleFontSize:C,darkItemDisabledColor:new oa(E).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:E,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*j}px)`}},qx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Cl("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,x=e.calc(r).div(7).mul(5).equal(),w=ml(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}),C=ml(w,{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[Vx(w),Ax(w),Bx(w),zx(w,"light"),zx(C,"dark"),Fx(w),Nx(w),wg(w,"slide-up"),wg(w,"slide-down"),Kl(w,"zoom-big")]}),Wx,{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 Gx(e){return null===e||!1===e}const Xx=(0,m.forwardRef)(((e,t)=>{var n;const r=m.useContext(Rx),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:s}=m.useContext(Ka),c=i(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:b,items:y,children:x,rootClassName:w,mode:C,selectable:S,onClick:$,overflowedIndicatorPopupClassName:E}=e,k=os(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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=function(e){return m.useMemo((()=>e?jx(e):e),[e])}(y)||x;null===(n=o.validator)||void 0===n||n.call(o,{mode:C});const I=Ot((function(){var e;null==$||$.apply(void 0,arguments),null===(e=o.onClick)||void 0===e||e.call(o)})),j=o.mode||C,P=null!=S?S:o.selectable,M=m.useMemo((()=>void 0!==b?b:v),[v,b]),R={horizontal:{motionName:`${c}-slide-up`},inline:Ra(c),other:{motionName:`${c}-zoom-big`}},N=i("menu",u||o.prefixCls),A=Jd(N),[T,z,L]=qx(N,A,!r),B=F()(`${N}-${p}`,null==s?void 0:s.className,d),D=m.useMemo((()=>{var e,t;if("function"==typeof g||Gx(g))return g||null;if("function"==typeof o.expandIcon||Gx(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Gx(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=g?g:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return Va(n,{className:F()(`${N}-submenu-expand-icon`,m.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==o?void 0:o.expandIcon,null==s?void 0:s.expandIcon,N]),H=m.useMemo((()=>({prefixCls:N,inlineCollapsed:M||!1,direction:l,firstLevel:!0,theme:p,mode:j,disableMenuItemTitleTooltip:h})),[N,M,l,h,p]);return T(m.createElement(Rx.Provider,{value:null},m.createElement(kx.Provider,{value:H},m.createElement(Sx,Object.assign({getPopupContainer:a,overflowedIndicator:m.createElement(Ih,null),overflowedIndicatorPopupClassName:F()(N,`${N}-${p}`,E),mode:j,selectable:P,onClick:I},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==s?void 0:s.style),f),className:B,prefixCls:N,direction:l,defaultMotions:R,expandIcon:D,ref:t,rootClassName:F()(w,z,o.rootClassName,L,A)}),O))))})),Kx=Xx,Ux=(0,m.forwardRef)(((e,t)=>{const n=(0,m.useRef)(null),r=m.useContext($x);return(0,m.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),m.createElement(Kx,Object.assign({ref:n},e,r))}));Ux.Item=Ox,Ux.SubMenu=Ix,Ux.Divider=Ex,Ux.ItemGroup=mx;const Yx=Ux,Qx=e=>e?"function"==typeof e?e():e:null,Zx=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({},tl(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}})},za(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Jx=e=>{const{componentCls:t}=e;return{[t]:Ul.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ew=Cl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=ml(e,{popoverBg:t,popoverColor:n});return[Zx(r),Jx(r),Kl(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},Na(e)),Fa({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 tw=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return m.createElement("div",{className:F()(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},m.createElement("div",{className:`${n}-arrow`}),m.createElement(T,Object.assign({},e,{className:t,prefixCls:n}),s||((e,t,n)=>t||n?m.createElement(m.Fragment,null,t&&m.createElement("div",{className:`${e}-title`},Qx(t)),m.createElement("div",{className:`${e}-inner-content`},Qx(n))):null)(n,a,l)))},nw=e=>{const{prefixCls:t,className:n}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className"]),{getPrefixCls:o}=m.useContext(Ka),i=o("popover",t),[a,l,s]=ew(i);return a(m.createElement(tw,Object.assign({},r,{prefixCls:i,hashId:l,className:F()(n,s)})))};const rw=e=>{let{title:t,content:n,prefixCls:r}=e;return m.createElement(m.Fragment,null,t&&m.createElement("div",{className:`${r}-title`},Qx(t)),m.createElement("div",{className:`${r}-inner-content`},Qx(n)))},ow=m.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m.useContext(Ka),p=f("popover",n),[g,h,v]=ew(p),b=f(),y=F()(i,h,v);return g(m.createElement(rs,Object.assign({placement:a,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:p,overlayClassName:y,ref:t,overlay:r||o?m.createElement(rw,{prefixCls:p,title:r,content:o}):null,transitionName:Ma(b,"zoom-big",d.transitionName),"data-popover-inject":!0})))}));ow._InternalPanelDoNotUseOrYouWillBeFired=nw;const iw=ow;function aw(e){return!(!e||!e.then)}const lw=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=m.useRef(!1),f=m.useRef(null),[p,g]=zt(!1),h=function(){null==i||i.apply(void 0,arguments)};return m.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),m.createElement(Dc,Object.assign({},As(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void h();let t;if(l){if(t=u(e),c&&!aw(t))return d.current=!1,void h(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void h();(e=>{aw(e)&&(g(!0),e.then((function(){g(!1,!0),h.apply(void 0,arguments),d.current=!1}),(e=>{if(g(!1,!0),d.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:r},o,{ref:f}),n)},sw=Cl("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 cw=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=m.createElement(mb,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:g}=e,{getPrefixCls:h}=m.useContext(Ka),[v]=tg("Popconfirm",Mm.Popconfirm),b=Qx(o),y=Qx(i);return m.createElement("div",{className:`${t}-inner-content`,onClick:g},m.createElement("div",{className:`${t}-message`},c&&m.createElement("span",{className:`${t}-message-icon`},c),m.createElement("div",{className:`${t}-message-text`},b&&m.createElement("div",{className:F()(`${t}-title`)},b),y&&m.createElement("div",{className:`${t}-description`},y))),m.createElement("div",{className:`${t}-buttons`},u&&m.createElement(Dc,Object.assign({onClick:p,size:"small"},r),a||(null==v?void 0:v.cancelText)),m.createElement(lw,{buttonProps:Object.assign(Object.assign({size:"small"},As(s)),n),actionFn:f,close:d,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(null==v?void 0:v.okText))))};const uw=m.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:l="primary",icon:s=m.createElement(mb,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:g}=m.useContext(Ka),[h,v]=Bt(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),b=(e,t)=>{v(e,!0),null==f||f(e),null==d||d(e,t)},y=g("popconfirm",o),x=F()(y,u),[w]=sw(y);return w(m.createElement(iw,Object.assign({},os(p,["title"]),{trigger:a,placement:i,onOpenChange:t=>{const{disabled:n=!1}=e;n||b(t)},open:h,ref:t,overlayClassName:x,content:m.createElement(cw,Object.assign({okType:l,icon:s},e,{prefixCls:y,close:e=>{b(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;b(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),Va(c,{onKeyDown:e=>{var t,n;m.isValidElement(c)&&(null===(n=null==c?void 0:(t=c.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===_f.ESC&&h&&b(!1,e)})(e)}})))}));uw._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,placement:n,className:r,style: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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=m.useContext(Ka),l=a("popconfirm",t),[s]=sw(l);return s(m.createElement(nw,{placement:n,className:F()(l,r),style:o,content:m.createElement(cw,Object.assign({prefixCls:l},i))}))};const dw=uw,fw={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 pw=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:fw}))};const mw=m.forwardRef(pw);var gw=_f.ESC,hw=_f.TAB;const vw=(0,m.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,m.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=se(t,null==i?void 0:i.ref);return g().createElement(g().Fragment,null,r&&g().createElement("div",{className:"".concat(o,"-arrow")}),g().cloneElement(i,{ref:ue(i)?a:void 0}))}));var bw={adjustX:1,adjustY:1},yw=[0,0];const xw={topLeft:{points:["bl","tl"],overflow:bw,offset:[0,-4],targetOffset:yw},top:{points:["bc","tc"],overflow:bw,offset:[0,-4],targetOffset:yw},topRight:{points:["br","tr"],overflow:bw,offset:[0,-4],targetOffset:yw},bottomLeft:{points:["tl","bl"],overflow:bw,offset:[0,4],targetOffset:yw},bottom:{points:["tc","bc"],overflow:bw,offset:[0,4],targetOffset:yw},bottomRight:{points:["tr","br"],overflow:bw,offset:[0,4],targetOffset:yw}};var ww=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Cw(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?xw:f,h=e.getPopupContainer,v=e.showAction,b=e.hideAction,y=e.overlayClassName,x=e.overlayStyle,w=e.visible,C=e.trigger,S=void 0===C?["hover"]:C,$=e.autoFocus,E=e.overlay,k=e.children,O=e.onVisibleChange,I=V(e,ww),j=K(g().useState(),2),P=j[0],M=j[1],R="visible"in e?w:P,N=g().useRef(null),A=g().useRef(null),T=g().useRef(null);g().useImperativeHandle(t,(function(){return N.current}));var L=function(e){M(e),null==O||O(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=m.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},s=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case gw:l();break;case hw:var t=!1;a.current||(t=s()),t?e.preventDefault():l()}};m.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&kn(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:R,triggerRef:T,onVisibleChange:L,autoFocus:$,overlayRef:A});var B,H,_,W=function(){return g().createElement(vw,{ref:A,overlay:E,prefixCls:a,arrow:o})},q=g().cloneElement(k,{className:F()(null===(n=k.props)||void 0===n?void 0:n.className,R&&(B=e.openClassName,void 0!==B?B:"".concat(a,"-open"))),ref:ue(k)?se(T,k.ref):void 0}),G=b;return G||-1===S.indexOf("contextMenu")||(G=["click"]),g().createElement(gr,z({builtinPlacements:p},I,{prefixCls:a,ref:N,popupClassName:F()(y,D({},"".concat(a,"-show-arrow"),o)),popupStyle:x,action:S,showAction:v,hideAction:G,popupPlacement:d,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:R,stretch:(H=e.minOverlayWidthMatchTrigger,_=e.alignPoint,("minOverlayWidthMatchTrigger"in e?H:!_)?"minWidth":""),popup:"function"==typeof E?W:W(),onPopupVisibleChange:L,onPopupClick:function(t){var n=e.onOverlayClick;M(!1),n&&n(t)},getPopupContainer:h}),q)}const Sw=g().forwardRef(Cw),$w=e=>{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}}}}}},Ew=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({},tl(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:fg},[`&${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:mg},[`&${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:pg},[`&${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:gg}})},za(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},il(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Wr(c)} ${Wr(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:`${Wr(c)} ${Wr(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},il(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:`${Wr(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 ${Wr(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}})}},[wg(e,"slide-up"),wg(e,"slide-down"),jg(e,"move-up"),jg(e,"move-down"),Kl(e,"zoom-big")]]},kw=Cl("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=ml(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ew(i),$w(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Fa({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Na(e)))),Ow=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:u,overlayStyle:d,open:f,onOpenChange:p,visible:g,onVisibleChange:h,mouseEnterDelay:v=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:x="",overlay:w,transitionName:C}=e,{getPopupContainer:S,getPrefixCls:$,direction:E,dropdown:k}=m.useContext(Ka);Ga();const O=m.useMemo((()=>{const e=$();return void 0!==C?C:x.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[$,x,C]),I=m.useMemo((()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:"rtl"===E?"bottomRight":"bottomLeft"),[x,E]),j=$("dropdown",r),P=Jd(j),[M,R,N]=kw(j,P),[,A]=wa(),T=m.Children.only(o),z=Va(T,{className:F()(`${j}-trigger`,{[`${j}-rtl`]:"rtl"===E},T.props.className),disabled:a}),L=a?[]:i;let B;L&&L.includes("contextMenu")&&(B=!0);const[D,H]=Bt(!1,{value:null!=f?f:g}),_=Ot((e=>{null==p||p(e,{source:"trigger"}),null==h||h(e),H(e)})),V=F()(c,u,R,N,P,null==k?void 0:k.className,{[`${j}-rtl`]:"rtl"===E}),W=Ha({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:y,offset:A.marginXXS,arrowWidth:n?A.sizePopupArrow:0,borderRadius:A.borderRadius}),q=m.useCallback((()=>{(null==t?void 0:t.selectable)&&(null==t?void 0:t.multiple)||(null==p||p(!1,{source:"menu"}),H(!1))}),[null==t?void 0:t.selectable,null==t?void 0:t.multiple]),[G,X]=ka("Dropdown",null==d?void 0:d.zIndex);let K=m.createElement(Sw,Object.assign({alignPoint:B},os(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:b,visible:D,builtinPlacements:W,arrow:!!n,overlayClassName:V,prefixCls:j,getPopupContainer:s||S,transitionName:O,trigger:L,overlay:()=>{let e;return e=(null==t?void 0:t.items)?m.createElement(Yx,Object.assign({},t)):"function"==typeof w?w():w,l&&(e=l(e)),e=m.Children.only("string"==typeof e?m.createElement("span",null,e):e),m.createElement(Mx,{prefixCls:`${j}-menu`,rootClassName:F()(N,P),expandIcon:m.createElement("span",{className:`${j}-menu-submenu-arrow`},m.createElement(mw,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:q,validator:e=>{let{mode:t}=e}},e)},placement:I,onVisibleChange:_,overlayStyle:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.style),d),{zIndex:G})}),z);return G&&(K=m.createElement(Ca.Provider,{value:X},K)),M(K)},Iw=eg(Ow,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Ow._InternalPanelDoNotUseOrYouWillBeFired=e=>m.createElement(Iw,Object.assign({},e),m.createElement("span",null));const jw=Ow;function Pw(e){return["small","middle","large"].includes(e)}function Mw(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Rw=g().createContext({latestIndex:0}),Nw=Rw.Provider,Aw=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=m.useContext(Rw);return null==r?null:m.createElement(m.Fragment,null,m.createElement("div",{className:t,style:i},r),n<a&&o&&m.createElement("span",{className:`${t}-split`},o))};const Fw=m.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=m.useContext(Ka),{size:l=(null==i?void 0:i.size)||"small",align:s,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:g,style:h,wrap:v=!1,classNames:b,styles:y}=e,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(l)?l:[l,l],S=Pw(C),$=Pw(w),E=Mw(C),k=Mw(w),O=Te(d,{keepEmpty:!0}),I=void 0===s&&"horizontal"===f?"center":s,j=o("space",p),[P,M,R]=kl(j),N=F()(j,null==i?void 0:i.className,M,`${j}-${f}`,{[`${j}-rtl`]:"rtl"===a,[`${j}-align-${I}`]:I,[`${j}-gap-row-${C}`]:S,[`${j}-gap-col-${w}`]:$},c,u,R),A=F()(`${j}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let T=0;const z=O.map(((e,t)=>{var n,r;null!=e&&(T=t);const o=e&&e.key||`${A}-${t}`;return m.createElement(Aw,{className:A,key:o,index:t,split:g,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),L=m.useMemo((()=>({latestIndex:T})),[T]);if(0===O.length)return null;const B={};return v&&(B.flexWrap="wrap"),!$&&k&&(B.columnGap=w),!S&&E&&(B.rowGap=C),P(m.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),null==i?void 0:i.style),h)},x),m.createElement(Nw,{value:L},z)))})),Tw=Fw;Tw.Compact=e=>{const{getPrefixCls:t,direction:n}=m.useContext(Ka),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,u=Ol(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Ja((e=>null!=r?r:e)),f=t("space-compact",a),[p,g]=kl(f),h=F()(f,g,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},l,s),v=m.useContext(Il),b=Te(c),y=m.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return m.createElement(Ml,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:t===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}))),[r,b,v]);return 0===b.length?null:p(m.createElement("div",Object.assign({className:h},u),y))};const zw=Tw;const Lw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m.useContext(Ka),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:u,children:d,className:f,menu:p,arrow:g,autoFocus:h,overlay:v,trigger:b,align:y,open:x,onOpenChange:w,placement:C,getPopupContainer:S,href:$,icon:E=m.createElement(Ih,null),title:k,buttonsRender:O=e=>e,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyPopupOnHide:R,dropdownRender:N}=e,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=n("dropdown",o),z=`${T}-button`,L={menu:p,arrow:g,autoFocus:h,align:y,disabled:l,trigger:l?[]:b,onOpenChange:w,getPopupContainer:S||t,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyPopupOnHide:R,dropdownRender:N},{compactSize:B,compactItemClassnames:D}=jl(T,r),H=F()(z,D,f);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=x),L.placement="placement"in e?C:"rtl"===r?"bottomLeft":"bottomRight";const _=m.createElement(Dc,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:u,href:$,title:k},d),V=m.createElement(Dc,{type:i,danger:a,icon:E}),[W,q]=O([_,V]);return m.createElement(zw.Compact,Object.assign({className:H,size:B,block:!0},A),W,m.createElement(jw,Object.assign({},L),q))};Lw.__ANT_BUTTON=!0;const Bw=Lw,Dw=jw;Dw.Button=Bw;const Hw=Dw;var _w=g().forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,l=e.isActive,s=e.role,c=K(g().useState(l||r),2),u=c[0],d=c[1];return g().useEffect((function(){(r||l)&&d(!0)}),[r,l]),u?g().createElement("div",{ref:t,className:F()("".concat(n,"-content"),D(D({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),o),style:i,role:s},g().createElement("div",{className:"".concat(n,"-content-box")},a)):null}));_w.displayName="PanelContent";const Vw=_w;var Ww=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],qw=g().forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,i=e.isActive,a=e.onItemClick,l=e.forceRender,s=e.className,c=e.prefixCls,u=e.collapsible,d=e.accordion,f=e.panelKey,p=e.extra,m=e.header,h=e.expandIcon,v=e.openMotion,b=e.destroyInactivePanel,y=e.children,x=V(e,Ww),w="disabled"===u,C="header"===u,S="icon"===u,$=null!=p&&"boolean"!=typeof p,E=function(){null==a||a(f)},k="function"==typeof h?h(e):g().createElement("i",{className:"arrow"});k&&(k=g().createElement("div",{className:"".concat(c,"-expand-icon"),onClick:["header","icon"].includes(u)?E:void 0},k));var O=F()(D(D(D({},"".concat(c,"-item"),!0),"".concat(c,"-item-active"),i),"".concat(c,"-item-disabled"),w),s),I={className:F()(o,D(D(D({},"".concat(c,"-header"),!0),"".concat(c,"-header-collapsible-only"),C),"".concat(c,"-icon-collapsible-only"),S)),"aria-expanded":i,"aria-disabled":w,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==_f.ENTER&&e.which!==_f.ENTER||E()}};return C||S||(I.onClick=E,I.role=d?"tab":"button",I.tabIndex=w?-1:0),g().createElement("div",z({},x,{ref:t,className:O}),g().createElement("div",I,r&&k,g().createElement("span",{className:"".concat(c,"-header-text"),onClick:"header"===u?E:void 0},m),$&&g().createElement("div",{className:"".concat(c,"-extra")},p)),g().createElement(Wn,z({visible:i,leavedClassName:"".concat(c,"-content-hidden")},v,{forceRender:l,removeOnLeave:b}),(function(e,t){var n=e.className,r=e.style;return g().createElement(Vw,{ref:t,prefixCls:c,className:n,style:r,isActive:i,forceRender:l,role:d?"tabpanel":void 0},y)})))}));const Gw=qw;var Xw=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function Kw(e){var t=e;if(!Array.isArray(t)){var n=L(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var Uw=g().forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,i=void 0!==o&&o,a=e.style,l=e.accordion,s=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,m=e.defaultActiveKey,h=e.onChange,v=e.items,b=F()(r,s),y=Bt([],{value:p,onChange:function(e){return null==h?void 0:h(e)},defaultValue:m,postState:Kw}),x=K(y,2),w=x[0],C=x[1];oe(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,s=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,f=e.label,p=e.key,m=e.collapsible,h=e.onItemClick,v=e.destroyInactivePanel,b=V(e,Xw),y=String(null!=p?p:t),x=null!=m?m:o,w=null!=v?v:i;return u=r?l[0]===y:l.indexOf(y)>-1,g().createElement(Gw,z({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:s,expandIcon:c,header:f,collapsible:x,onItemClick:function(e){"disabled"!==x&&(a(e),null==h||h(e))},destroyInactivePanel:w}),d)}))}(e,n):Te(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r,o=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon,f=e.key||String(t),p=e.props,m=p.header,h=p.headerClass,v=p.destroyInactivePanel,b=p.collapsible,y=p.onItemClick;r=i?c[0]===f:c.indexOf(f)>-1;var x=null!=b?b:a,w={key:f,panelKey:f,header:m,headerClass:h,isActive:r,prefixCls:o,destroyInactivePanel:null!=v?v:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(s(e),null==y||y(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),g().cloneElement(e,w))}(e,t,n)}))}(v,c,{prefixCls:r,accordion:l,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:i,onItemClick:function(e){return C((function(){return l?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(pe(w),[e])}))},activeKey:w});return g().createElement("div",z({ref:t,className:b,style:a,role:l?"tablist":void 0},Kf(e,{aria:!0,data:!0})),S)}));const Yw=Object.assign(Uw,{Panel:Gw}),Qw=Yw;Yw.Panel;const Zw=m.forwardRef(((e,t)=>{const{getPrefixCls:n}=m.useContext(Ka),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=F()({[`${a}-no-arrow`]:!i},o);return m.createElement(Qw.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))})),Jw=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:x,paddingXS:w,motionDurationSlow:C,fontSizeIcon:S,contentPadding:$,fontHeight:E,fontHeightLG:k}=e,O=`${Wr(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},tl(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 ${Wr(s)} ${Wr(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:E,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:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(w).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(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${Wr(s)} ${Wr(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}}}}})}},eC=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},tC=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}}}},nC=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}}}}}},rC=Cl("Collapse",(e=>{const t=ml(e,{collapseHeaderPaddingSM:`${Wr(e.paddingXS)} ${Wr(e.paddingSM)}`,collapseHeaderPaddingLG:`${Wr(e.padding)} ${Wr(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Jw(t),tC(t),nC(t),eC(t),Nx(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),oC=m.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m.useContext(Ka),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:g}=e,h=Ja((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),v=n("collapse",i),b=n(),[y,x,w]=rC(v),C=m.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),S=null!=g?g:null==o?void 0:o.expandIcon,$=m.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof S?S(e):m.createElement(mw,{rotate:e.isActive?90:void 0});return Va(t,(()=>{var e;return{className:F()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${v}-arrow`)}}))}),[S,v]),E=F()(`${v}-icon-position-${C}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:"rtl"===r,[`${v}-ghost`]:!!u,[`${v}-${h}`]:"middle"!==h},null==o?void 0:o.className,a,l,x,w),k=Object.assign(Object.assign({},Ra(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=m.useMemo((()=>p?Te(p).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 Va(e,Object.assign(Object.assign({},os(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[p]);return y(m.createElement(Qw,Object.assign({ref:t,openMotion:k},os(e,["rootClassName"]),{expandIcon:$,prefixCls:v,className:E,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),O))})),iC=Object.assign(oC,{Panel:Zw}),aC={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 lC=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:aC}))};const sC=m.forwardRef(lC),cC={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 uC=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:cC}))};const dC=m.forwardRef(uC),fC={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 pC=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:fC}))};const mC=m.forwardRef(pC),{hooks:gC}=wpGraphiQL,{useEffect:hC}=wp.element,vC=lb.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<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),l=0;l<a.length;l++){var s=a[l];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},3055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],l=e[a];(o?-1!==t.indexOf(a):t(a,l,e))&&(n[a]=l)}return n}},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},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<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||g&&g[v]||l&&l[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"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<i.length;s++){var c=i[s];if(!l(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},528:e=>{"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<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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.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}}},M=(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:M(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},j=(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:M(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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(null,arguments)}function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function L(e){var t=function(e){if("object"!=z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z(t)?t:t+""}function B(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.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=Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.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)?W(e,t):void 0}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(e,t){return V(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||q(e,t)||G()}const K=window.ReactDOM;var U=n.n(K);function Y(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Q={},Z=[];function J(e,t){}function ee(e,t){}function te(e,t,n){t||Q[n]||(e(!1,n),Q[n]=!0)}function ne(e,t){te(J,e,t)}ne.preMessage=function(e){Z.push(e)},ne.resetWarned=function(){Q={}},ne.noteOnce=function(e,t){te(ee,e,t)};const re=ne;var oe=n(4363);function ie(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}var ae=function(e,t){"function"==typeof e?e(t):"object"===z(e)&&e&&"current"in e&&(e.current=t)},le=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){ae(t,e)}))}},se=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie((function(){return le.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},ce=function(e){var t,n,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)};Number(e.version.split(".")[0]);const ue=e.createContext(null);function de(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function fe(e){return function(e){if(Array.isArray(e))return W(e)}(e)||de(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 pe=Y()?e.useLayoutEffect:e.useEffect,me=function(t,n){var r=e.useRef(!0);pe((function(){return t(r.current)}),n),pe((function(){return r.current=!1,function(){r.current=!0}}),[])},ge=function(e,t){me((function(t){if(!t)return e()}),t)};const he=me;var ve=[],be="data-rc-order",ye="data-rc-priority",we=new Map;function xe(){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 Ce(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){return Array.from((we.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ee(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=Ce(t),u=c.firstChild;if(r){if(l){var d=(t.styles||Se(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 $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ce(t);return(t.styles||Se(n)).find((function(n){return n.getAttribute(xe(t))===e}))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$e(e,t);n&&Ce(t).removeChild(n)}function Oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ce(n),o=Se(r),i=H(H({},n),{},{styles:o});!function(e,t){var n=we.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=Ee("",t),o=r.parentNode;we.set(e,o),e.removeChild(r)}}(r,i);var a,l,s,c=$e(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=Ee(e,i);return u.setAttribute(xe(i),t),u}var Ie="rc-util-locker-".concat(Date.now()),Pe=0;function Me(t){var n=!!t,r=X(e.useState((function(){return Pe+=1,"".concat(Ie,"_").concat(Pe)})),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,";"):"";Oe("\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),ke(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;Oe("\nhtml body {\n  overflow-y: hidden;\n  ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else ke(r);var o;return function(){ke(r)}}),[n,r])}var je=!1,Re=function(e){return!1!==e&&(Y()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ne=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 Re(i)})),2),m=p[0],g=p[1];e.useEffect((function(){var e=Re(i);g(null!=e?e:null)}));var h=function(t){var n=X(e.useState((function(){return Y()?document.createElement("div"):null})),1)[0],r=e.useRef(!1),o=e.useContext(ue),i=X(e.useState(ve),2),a=i[0],l=i[1],s=o||(r.current?void 0:function(e){l((function(t){return[e].concat(fe(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 he((function(){return t?o?o(c):c():u(),u}),[t]),he((function(){a.length&&(a.forEach((function(e){return e()})),l(ve))}),[a]),[n,s]}(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||je,E=s;return n&&(E=e.cloneElement(s,{ref:C})),e.createElement(ue.Provider,{value:y},S?E:(0,K.createPortal)(E,w))}));const Ae=Ne;function Fe(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(Fe(e)):(0,oe.isFragment)(e)&&e.props?r=r.concat(Fe(e.props.children,n)):r.push(e))})),r}function Te(e){return e instanceof HTMLElement||e instanceof SVGElement}function ze(e){var n,r=function(e){return e&&"object"===z(e)&&Te(e.nativeElement)?e.nativeElement:Te(e)?e:null}(e);return r||(e instanceof t().Component?null===(n=U().findDOMNode)||void 0===n?void 0:n.call(U(),e):null)}var Le=e.createContext(null),Be=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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),De="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,He=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_e="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(He):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Ve=["top","right","bottom","left","width","height","size","weight"],We="undefined"!=typeof MutationObserver,qe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){_e(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){De&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),We?(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;Ve.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}(),Ge=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Xe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||He},Ke=Je(0,0,0,0);function Ue(e){return parseFloat(e)||0}function Ye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ue(e["border-"+n+"-width"])}),0)}var Qe="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Xe(e).SVGGraphicsElement}:function(e){return e instanceof Xe(e).SVGElement&&"function"==typeof e.getBBox};function Ze(e){return De?Qe(e)?function(e){var t=e.getBBox();return Je(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ke;var r=Xe(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Ue(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Ue(r.width),s=Ue(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Ye(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Ye(r,"top","bottom")+a)),!function(e){return e===Xe(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return Je(o.left,o.top,l,s)}(e):Ke}function Je(e,t,n,r){return{x:e,y:t,width:n,height:r}}var et=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Je(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ze(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),tt=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Ge(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);Ge(this,{target:e,contentRect:n})},nt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Be,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Xe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new et(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Xe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new tt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),rt="undefined"!=typeof WeakMap?new WeakMap:new Be,ot=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=qe.getInstance(),r=new nt(t,n,this);rt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ot.prototype[e]=function(){var t;return(t=rt.get(this))[e].apply(t,arguments)}}));const it=void 0!==He.ResizeObserver?He.ResizeObserver:ot;var at=new Map,lt=new it((function(e){e.forEach((function(e){var t,n=e.target;null===(t=at.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function ut(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dt(e,t){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dt(e,t)}function ft(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&&dt(e,t)}function pt(e){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pt(e)}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ht(e,t){if(t&&("object"==z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gt(e)}function vt(e){var t=mt();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}var bt=function(e){ft(n,e);var t=vt(n);function n(){return st(this,n),t.apply(this,arguments)}return ut(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);function yt(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),l=e.useContext(Le),s="function"==typeof r,c=s?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&e.isValidElement(c)&&ce(c),f=d?c.ref:null,p=se(f,i),m=function(){var e;return ze(i.current)||(i.current&&"object"===z(i.current)?ze(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||ze(a.current)};e.useImperativeHandle(n,(function(){return m()}));var g=e.useRef(t);g.current=t;var h=e.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:s,offsetHeight:c};u.current=p;var m=s===Math.round(i)?i:s,h=c===Math.round(a)?a:c,v=H(H({},p),{},{offsetWidth:m,offsetHeight:h});null==l||l(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return e.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=h,at.has(e)||(at.set(e,new Set),lt.observe(e)),at.get(e).add(t)),function(){return function(e,t){at.has(e)&&(at.get(e).delete(t),at.get(e).size||(lt.unobserve(e),at.delete(e)))}(n,h)}}),[i.current,o]),e.createElement(bt,{ref:a},d?e.cloneElement(c,{ref:p}):c)}const wt=e.forwardRef(yt);function xt(t,n){var r=t.children;return("function"==typeof r?[r]:Fe(r)).map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(wt,T({},t,{key:i,ref:0===o?n:void 0}),r)}))}var Ct=e.forwardRef(xt);Ct.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(Le),l=e.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return e.createElement(Le.Provider,{value:l},n)};const St=Ct;function Et(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function $t(e){return function(e){return Et(e)instanceof ShadowRoot}(e)?Et(e):null}function kt(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}var Ot=0,It=H({},e).useId;const Pt=It?function(e){var t=It();return e||t}:function(t){var n=X(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect((function(){var e=Ot;Ot+=1,o("rc_unique_".concat(e))}),[]),t||r},Mt=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 jt=["children"],Rt=e.createContext({});function Nt(t){var n=t.children,r=_(t,jt);return e.createElement(Rt.Provider,{value:r},n)}var At=function(e){ft(n,e);var t=vt(n);function n(){return st(this,n),t.apply(this,arguments)}return ut(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);const Ft=At;function Tt(t){var n=e.useRef(!1),r=X(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function zt(e){return void 0!==e}function Lt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=X(Tt((function(){return zt(o)?o:zt(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,f=kt(i),p=X(Tt([u]),2),m=p[0],g=p[1];return ge((function(){var e=m[0];s!==e&&f(s,e)}),[m]),ge((function(){zt(o)||c(o)}),[o]),[d,kt((function(e,t){c(e,t),g([u],t)}))]}function Bt(e){return V(e)||de(e)||q(e)||G()}function Dt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Ht(e,t,n,r){if(!t.length)return n;var o,i=Bt(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?fe(e):H({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=Ht(o[a],l,n,r),o}function _t(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Dt(e,t.slice(0,-1))?e:Ht(e,t,n,r)}function Vt(e){return Array.isArray(e)?[]:{}}var Wt="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Vt(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=Dt(e,n),s=Array.isArray(l);if(s||"object"===z(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=Dt(r,n);s?r=_t(r,n,[]):c&&"object"===z(c)||(r=_t(r,n,Vt(l))),Wt(l).forEach((function(e){t([].concat(fe(n),[e]),a)}))}}else r=_t(r,n,l)}([])})),r}var Gt="none",Xt="appear",Kt="enter",Ut="leave",Yt="none",Qt="prepare",Zt="start",Jt="active",en="end",tn="prepared";function nn(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 rn,on,an,ln=(rn=Y(),on="undefined"!=typeof window?window:{},an={animationend:nn("Animation","AnimationEnd"),transitionend:nn("Transition","TransitionEnd")},rn&&("AnimationEvent"in on||delete an.animationend.animation,"TransitionEvent"in on||delete an.transitionend.transition),an),sn={};if(Y()){var cn=document.createElement("div");sn=cn.style}var un={};function dn(e){if(un[e])return un[e];var t=ln[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in sn)return un[e]=t[i],un[e]}return""}var fn=dn("animationend"),pn=dn("transitionend"),mn=!(!fn||!pn),gn=fn||"animationend",hn=pn||"transitionend";function vn(e,t){return e?"object"===z(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const bn=Y()?e.useLayoutEffect:e.useEffect;var yn=function(e){return+setTimeout(e,16)},wn=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(yn=function(e){return window.requestAnimationFrame(e)},wn=function(e){return window.cancelAnimationFrame(e)});var xn=0,Cn=new Map;function Sn(e){Cn.delete(e)}var En=function(e){var t=xn+=1;return function n(r){if(0===r)Sn(t),e();else{var o=yn((function(){n(r-1)}));Cn.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};En.cancel=function(e){var t=Cn.get(e);return Sn(e),wn(t)};const $n=En;var kn=[Qt,Zt,Jt,en],On=[Qt,tn],In=!1;function Pn(e){return e===Jt||e===en}function Mn(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,h=o.motionLeaveImmediately,v=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,w=o.onAppearStart,x=o.onEnterStart,C=o.onLeaveStart,S=o.onAppearActive,E=o.onEnterActive,$=o.onLeaveActive,k=o.onAppearEnd,O=o.onEnterEnd,I=o.onLeaveEnd,P=o.onVisibleChanged,M=X(Tt(),2),j=M[0],R=M[1],N=(i=Gt,a=e.useReducer((function(e){return e+1}),0),l=X(a,2)[1],s=e.useRef(i),[kt((function(){return s.current})),kt((function(e){s.current="function"==typeof e?e(s.current):e,l()}))]),A=X(N,2),F=A[0],T=A[1],z=X(Tt(null),2),L=z[0],D=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(Gt),D(null,!0)}var U=kt((function(e){var t=F();if(t!==Gt){var n=q();if(!e||e.deadline||e.target===n){var r,o=G.current;t===Xt&&o?r=null==k?void 0:k(n,e):t===Kt&&o?r=null==O?void 0:O(n,e):t===Ut&&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(hn,t),e.removeEventListener(gn,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(hn,t),e.addEventListener(gn,t),n.current=e)},r]}(U),Q=X(Y,1)[0],Z=function(e){switch(e){case Xt:return B(B(B({},Qt,v),Zt,w),Jt,S);case Kt:return B(B(B({},Qt,b),Zt,x),Jt,E);case Ut:return B(B(B({},Qt,y),Zt,C),Jt,$);default:return{}}},J=e.useMemo((function(){return Z(_)}),[_]),ee=X(function(t,n,r){var o=X(Tt(Yt),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){$n.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=$n((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?On:kn;return bn((function(){if(i!==Yt&&i!==en){var e=d.indexOf(i),t=d[e+1],n=r(i);n===In?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(Qt,!0)},i]}(_,!t,(function(e){if(e===Qt){var t=J[Qt];return t?t(q()):In}var n;return ne in J&&D((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===Jt&&_!==Gt&&(Q(q()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){U({deadline:!0})}),g))),ne===tn&&K(),!0})),2),te=ee[0],ne=ee[1],re=Pn(ne);G.current=re,bn((function(){R(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=Xt),r&&n&&u&&(e=Kt),(r&&!n&&m||!r&&h&&!n&&m)&&(e=Ut);var o=Z(e);e&&(t||o[Qt])?(T(e),te()):T(Gt)}),[n]),(0,e.useEffect)((function(){(_===Xt&&!f||_===Kt&&!u||_===Ut&&!m)&&T(Gt)}),[f,u,m]),(0,e.useEffect)((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var oe=e.useRef(!1);(0,e.useEffect)((function(){j&&(oe.current=!0),void 0!==j&&_===Gt&&((oe.current||j)&&(null==P||P(j)),oe.current=!0)}),[j,_]);var ie=L;return J[Qt]&&ne===Zt&&(ie=H({transition:"none"},ie)),[_,ne,ie,null!=j?j:n]}const jn=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(Rt).motion),m=(0,e.useRef)(),g=(0,e.useRef)(),h=X(Mn(p,i,(function(){try{return m.current instanceof HTMLElement?m.current:ze(g.current)}catch(e){return null}}),t),4),v=h[0],b=h[1],y=h[2],w=h[3],x=e.useRef(w);w&&(x.current=!0);var C,S=e.useCallback((function(e){m.current=e,ae(r,e)}),[r]),E=H(H({},f),{},{visible:i});if(c)if(v===Gt)C=w?c(H({},E),S):!l&&x.current&&d?c(H(H({},E),{},{className:d}),S):s||!l&&!d?c(H(H({},E),{},{style:{display:"none"}}),S):null;else{var $;b===Qt?$="prepare":Pn(b)?$="active":b===Zt&&($="start");var k=vn(u,"".concat(v,"-").concat($));C=c(H(H({},E),{},{className:A()(vn(u,v),B(B({},k,k&&$),u,"string"==typeof u)),style:y}),S)}else C=null;return e.isValidElement(C)&&ce(C)&&(C.ref||(C=e.cloneElement(C,{ref:S}))),e.createElement(Ft,{ref:g},C)}));return r.displayName="CSSMotion",r}(mn);var Rn="add",Nn="keep",An="remove",Fn="removed";function Tn(e){var t;return H(H({},t=e&&"object"===z(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function zn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Tn)}var Ln=["component","children","onVisibleChanged","onAllRemoved"],Bn=["status"],Dn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Hn=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jn,n=function(n){ft(o,n);var r=vt(o);function o(){var e;st(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return B(gt(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),B(gt(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:H(H({},e),{},{status:Fn})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Fn})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return ut(o,[{key:"render",value:function(){var n=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,s=(o.onAllRemoved,_(o,Ln)),c=i||e.Fragment,u={};return Dn.forEach((function(e){u[e]=s[e],delete s[e]})),delete s.keys,e.createElement(c,s,r.map((function(r,o){var i=r.status,s=_(r,Bn),c=i===Rn||i===Nn;return e.createElement(t,T({},u,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(e){null==l||l(e,{key:s.key}),e||n.removeKey(s.key)}}),(function(e,t){return a(H(H({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=zn(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=zn(e),a=zn(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return H(H({},e),{},{status:Rn})}))),r=i),n.push(H(H({},l),{},{status:Nn})),r+=1,t=!0;break}}t||n.push(H(H({},e),{},{status:An}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return H(H({},e),{},{status:Rn})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==An}))).forEach((function(t){t.key===e&&(t.status=Nn)}))})),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!==An}))}}}]),o}(e.Component);return B(n,"defaultProps",{component:"div"}),n}(mn),Vn=jn;function Wn(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 qn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Vn,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 Gn=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Xn=Gn;var Kn=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.onPointerDownCapture,I=t.ready,P=t.offsetX,M=t.offsetY,j=t.offsetR,R=t.offsetB,N=t.onAlign,F=t.onPrepare,z=t.stretch,L=t.targetWidth,B=t.targetHeight,D="function"==typeof r?r():r,_=c||u,V=(null==w?void 0:w.length)>0,W=X(e.useState(!w||!V),2),q=W[0],G=W[1];if(he((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=h.points,Z=h.dynamicInset||(null===(Y=h._experimental)||void 0===Y?void 0:Y.dynamicInset),J=Z&&"r"===Q[0][1],ee=Z&&"b"===Q[0][0];J?(U.right=j,U.left=K):(U.left=P,U.right=K),ee?(U.bottom=R,U.top=K):(U.top=M,U.bottom=K)}var te={};return z&&(z.includes("height")&&B?te.height=B:z.includes("minHeight")&&B&&(te.minHeight=B),z.includes("width")&&L?te.width=L:z.includes("minWidth")&&L&&(te.minWidth=L)),c||(te.pointerEvents="none"),e.createElement(C,{open:y||_,getContainer:w&&function(){return w(l)},autoDestroy:x},e.createElement(qn,{prefixCls:i,open:c,zIndex:S,mask:p,motion:b}),e.createElement(St,{onResize:N,disabled:!c},(function(t){return e.createElement(Vn,T({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:F,onEnterPrepare:F,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")},U),te),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:E,onMouseLeave:$,onPointerEnter:k,onClick:f,onPointerDownCapture:O},m&&e.createElement(Wn,{prefixCls:i,arrow:m,arrowPos:g,align:h}),e.createElement(Xn,{cache:!c&&!d},D))}))})))}));const Un=Kn;var Yn=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 Qn=Yn,Zn=e.createContext(null);function Jn(e){return e?Array.isArray(e)?e:[e]:[]}const er=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 tr(){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 nr(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function rr(e){return e.ownerDocument.defaultView}function or(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=rr(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 ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ar(e){return ir(parseFloat(e),0)}function lr(e,t){var n=H({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=rr(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=ar(i),g=ar(a),h=ar(l),v=ar(s),b=ir(Math.round(c.width/f*1e3)/1e3),y=ir(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=ar(o);k=I*b,O=I*y}var P=c.x+E-k,M=c.y+C-O,j=P+c.width+2*k-E-$-w,R=M+c.height+2*O-C-S-x;n.left=Math.max(n.left,P),n.top=Math.max(n.top,M),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,R)}})),n}function sr(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 cr(e,t){var n=X(t||[],2),r=n[0],o=n[1];return[sr(e.width,r),sr(e.height,o)]}function ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function dr(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 fr(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 pr=["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 mr=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,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,M=n.popupPlacement,j=n.builtinPlacements,R=void 0===j?{}:j,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,pr),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(Zn),le=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),se=Pt(),ce=X(e.useState(null),2),ue=ce[0],de=ce[1],pe=e.useRef(null),me=kt((function(e){pe.current=e,Te(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(se,e)})),ge=X(e.useState(null),2),ve=ge[0],be=ge[1],ye=e.useRef(null),we=kt((function(e){Te(e)&&ve!==e&&(be(e),ye.current=e)})),xe=e.Children.only(a),Ce=(null==xe?void 0:xe.props)||{},Se={},Ee=kt((function(e){var t,n,r=ve;return(null==r?void 0:r.contains(e))||(null===(t=$t(r))||void 0===t?void 0:t.host)===e||e===r||(null==ue?void 0:ue.contains(e))||(null===(n=$t(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=nr(i,q,U,K),ke=nr(i,G,Q,Y),Oe=X(e.useState(f||!1),2),Ie=Oe[0],Pe=Oe[1],Me=null!=d?d:Ie,je=kt((function(e){void 0===d&&Pe(e)}));he((function(){Pe(d||!1)}),[d]);var Re=e.useRef(Me);Re.current=Me;var Ne=e.useRef([]);Ne.current=[];var Ae=kt((function(e){var t;je(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:Me)!==e&&(Ne.current.push(e),null==p||p(e))})),Fe=e.useRef(),ze=function(){clearTimeout(Fe.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ze(),0===t?Ae(e):Fe.current=setTimeout((function(){Ae(e)}),1e3*t)};e.useEffect((function(){return ze}),[]);var Be=X(e.useState(!1),2),De=Be[0],He=Be[1];he((function(e){e&&!Me||He(!0)}),[Me]);var _e=X(e.useState(null),2),Ve=_e[0],We=_e[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?or(n):[]}),[n]),p=e.useRef({});t||(p.current={});var m=kt((function(){if(n&&r&&t){var e,s,c,d,m,g=n,h=g.ownerDocument,v=rr(g).getComputedStyle(g),b=v.width,y=v.height,w=v.position,x=g.style.left,C=g.style.top,S=g.style.right,E=g.style.bottom,$=g.style.overflow,k=H(H({},i[o]),a),O=h.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=w,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,P,M=r.getBoundingClientRect();M.x=null!==(I=M.x)&&void 0!==I?I:M.left,M.y=null!==(P=M.y)&&void 0!==P?P:M.top,m={x:M.x,y:M.y,width:M.width,height:M.height}}var j=g.getBoundingClientRect();j.x=null!==(s=j.x)&&void 0!==s?s:j.left,j.y=null!==(c=j.y)&&void 0!==c?c:j.top;var R=h.documentElement,N=R.clientWidth,A=R.clientHeight,F=R.scrollWidth,T=R.scrollHeight,z=R.scrollTop,L=R.scrollLeft,B=j.height,D=j.width,_=m.height,V=m.width,W={left:0,top:0,right:N,bottom:A},q={left:-L,top:-z,right:F-L,bottom:T-z},G=k.htmlRegion,K="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=K);var Y=G===U,Q=lr(q,f),Z=lr(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=x,g.style.top=C,g.style.right=S,g.style.bottom=E,g.style.overflow=$,null===(d=g.parentElement)||void 0===d||d.removeChild(O);var ne=ir(Math.round(D/parseFloat(b)*1e3)/1e3),re=ir(Math.round(B/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||Te(r)&&!er(r))return;var oe=k.offset,ie=k.targetOffset,ae=X(cr(j,oe),2),le=ae[0],se=ae[1],ce=X(cr(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=ur(fe[1]),ge=ur(pe),he=dr(m,me),ve=dr(j,ge),be=H({},k),ye=he.x-ve.x+le,we=he.y-ve.y+se;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=j.x+e,o=j.y+t,i=r+D,a=o+B,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 xe,Ce,Se,Ee,$e=mt(ye,we),ke=mt(ye,we,Z),Oe=dr(m,["t","l"]),Ie=dr(j,["t","l"]),Pe=dr(m,["b","r"]),Me=dr(j,["b","r"]),je=k.overflow||{},Re=je.adjustX,Ne=je.adjustY,Ae=je.shiftX,Fe=je.shiftY,ze=function(e){return"boolean"==typeof e?e:e>=0};function gt(){xe=j.y+we,Ce=xe+B,Se=j.x+ye,Ee=Se+D}gt();var Le=ze(Ne),Be=ge[0]===me[0];if(Le&&"t"===ge[0]&&(Ce>ee.bottom||p.current.bt)){var De=we;Be?De-=B-_:De=Oe.y-Me.y-se;var He=mt(ye,De),_e=mt(ye,De,Z);He>$e||He===$e&&(!Y||_e>=ke)?(p.current.bt=!0,we=De,se=-se,be.points=[fr(ge,0),fr(me,0)]):p.current.bt=!1}if(Le&&"b"===ge[0]&&(xe<ee.top||p.current.tb)){var Ve=we;Be?Ve+=B-_:Ve=Pe.y-Ie.y-se;var We=mt(ye,Ve),qe=mt(ye,Ve,Z);We>$e||We===$e&&(!Y||qe>=ke)?(p.current.tb=!0,we=Ve,se=-se,be.points=[fr(ge,0),fr(me,0)]):p.current.tb=!1}var Ge=ze(Re),Xe=ge[1]===me[1];if(Ge&&"l"===ge[1]&&(Ee>ee.right||p.current.rl)){var Ke=ye;Xe?Ke-=D-V:Ke=Oe.x-Me.x-le;var Ue=mt(Ke,we),Ye=mt(Ke,we,Z);Ue>$e||Ue===$e&&(!Y||Ye>=ke)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[fr(ge,1),fr(me,1)]):p.current.rl=!1}if(Ge&&"r"===ge[1]&&(Se<ee.left||p.current.lr)){var Qe=ye;Xe?Qe+=D-V:Qe=Pe.x-Ie.x-le;var Ze=mt(Qe,we),Je=mt(Qe,we,Z);Ze>$e||Ze===$e&&(!Y||Je>=ke)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[fr(ge,1),fr(me,1)]):p.current.lr=!1}gt();var et=!0===Ae?0:Ae;"number"==typeof et&&(Se<Z.left&&(ye-=Se-Z.left-le,m.x+V<Z.left+et&&(ye+=m.x-Z.left+V-et)),Ee>Z.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&&(xe<Z.top&&(we-=xe-Z.top-se,m.y+_<Z.top+tt&&(we+=m.y-Z.top+_-tt)),Ce>Z.bottom&&(we-=Ce-Z.bottom-se,m.y>Z.bottom-tt&&(we+=m.y-Z.bottom+tt)));var nt=j.x+ye,rt=nt+D,ot=j.y+we,it=ot+B,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-j.x-(ye+j.width),pt=te.bottom-j.y-(we+j.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(we=Math.round(we),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:we/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 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()}))}]}(Me,ue,B&&null!==Ge?Ge:ve,M,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=Jn(null!=r?r:n),i=Jn(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=kt((function(){De||lt()}));!function(e,t,n,r){he((function(){if(e&&t&&n){var o=n,i=or(t),a=or(o),l=rr(o),s=new Set([l].concat(fe(i),fe(a)));function c(){r(),Re.current&&B&&pt&&Le(!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])}(Me,ve,ue,mt),he((function(){mt()}),[Ge,M]),he((function(){!Me||null!=R&&R[M]||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;a<i.length;a+=1){var l,s=i[a];if(tr(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(R,i,at,B);return A()(e,null==z?void 0:z(at))}),[at,z,R,i,B]);e.useImperativeHandle(r,(function(){return{nativeElement:ye.current,popupElement:pe.current,forceAlign:mt}}));var ht=X(e.useState(0),2),vt=ht[0],bt=ht[1],yt=X(e.useState(0),2),wt=yt[0],xt=yt[1],Ct=function(){if(T&&ve){var e=ve.getBoundingClientRect();bt(e.width),xt(e.height)}};function Et(e,t,n,r){Se[e]=function(o){var i;null==r||r(o),Le(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=Ce[e])||void 0===i||i.call.apply(i,[Ce,o].concat(l))}}he((function(){Ve&&(lt(),Ve(),We(null))}),[Ve]),(ft||pt)&&(Se.onClick=function(e){var t;Re.current&&pt?Le(!1):!Re.current&&ft&&(Ke(e),Le(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onClick)||void 0===t||t.call.apply(t,[Ce,e].concat(r))});var Ot,It,jt=function(t,n,r,o,i,a,l,s){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect((function(){if(n&&o&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!c.current||l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||s(!1)},d=rr(o);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",t,!0),d.addEventListener("contextmenu",t,!0);var f=$t(r);return f&&(f.addEventListener("mousedown",t,!0),f.addEventListener("contextmenu",t,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",t,!0),d.removeEventListener("contextmenu",t,!0),f&&(f.removeEventListener("mousedown",t,!0),f.removeEventListener("contextmenu",t,!0))}}}),[n,r,o,i,a]),function(){u.current=!0}}(Me,pt,ve,ue,w,C,Ee,Le),Rt=ut.has("hover"),Nt=dt.has("hover");Rt&&(Et("onMouseEnter",!0,g,(function(e){Ke(e)})),Et("onPointerEnter",!0,g,(function(e){Ke(e)})),Ot=function(e){(Me||De)&&null!=ue&&ue.contains(e.target)&&Le(!0,g)},B&&(Se.onMouseMove=function(e){var t;null===(t=Ce.onMouseMove)||void 0===t||t.call(Ce,e)})),Nt&&(Et("onMouseLeave",!1,v),Et("onPointerLeave",!1,v),It=function(){Le(!1,v)}),ut.has("focus")&&Et("onFocus",!0,b),dt.has("focus")&&Et("onBlur",!1,y),ut.has("contextMenu")&&(Se.onContextMenu=function(e){var t;Re.current&&dt.has("contextMenu")?Le(!1):(Ke(e),Le(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onContextMenu)||void 0===t||t.call.apply(t,[Ce,e].concat(r))}),Z&&(Se.className=A()(Ce.className,Z));var At=H(H({},Ce),Se),Ft={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Ft[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=At[e])||void 0===t||t.call.apply(t,[At].concat(r)),ee[e].apply(ee,r)})}));var Tt=e.cloneElement(xe,H(H({},At),Ft)),zt={x:nt,y:rt},Lt=W?H({},!0!==W?W:{}):null;return e.createElement(e.Fragment,null,e.createElement(St,{disabled:!Me,ref:we,onResize:function(){Ct(),mt()}},e.createElement(Qn,{getTriggerDOMNode:J},Tt)),e.createElement(Zn.Provider,{value:le},e.createElement(Un,{portal:t,ref:me,prefixCls:i,popup:O,className:A()(I,gt),style:P,target:ve,onMouseEnter:Ot,onMouseLeave:It,onPointerEnter:Ot,zIndex:F,open:Me,keepDom:De,fresh:L,onClick:D,onPointerDownCapture:jt,mask:w,motion:$e,maskMotion:ke,onVisibleChanged:function(e){He(!1),lt(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){Ct(),We((function(){return e}))}))},forceRender:E,autoDestroy:te,getPopupContainer:S,align:at,arrow:Lt,arrowPos:zt,ready:Qe,offsetX:Ze,offsetY:Je,offsetR:et,offsetB:tt,onAlign:mt,stretch:T,targetWidth:vt/ot,targetHeight:wt/it})))}));return n}(Ae);var gr={shiftX:64,adjustY:1},hr={adjustX:1,shiftY:!0},vr=[0,0],br={left:{points:["cr","cl"],overflow:hr,offset:[-4,0],targetOffset:vr},right:{points:["cl","cr"],overflow:hr,offset:[4,0],targetOffset:vr},top:{points:["bc","tc"],overflow:gr,offset:[0,-4],targetOffset:vr},bottom:{points:["tc","bc"],overflow:gr,offset:[0,4],targetOffset:vr},topLeft:{points:["bl","tl"],overflow:gr,offset:[0,-4],targetOffset:vr},leftTop:{points:["tr","tl"],overflow:hr,offset:[-4,0],targetOffset:vr},topRight:{points:["br","tr"],overflow:gr,offset:[0,-4],targetOffset:vr},rightTop:{points:["tl","tr"],overflow:hr,offset:[4,0],targetOffset:vr},bottomRight:{points:["tr","br"],overflow:gr,offset:[0,4],targetOffset:vr},rightBottom:{points:["bl","br"],overflow:hr,offset:[4,0],targetOffset:vr},bottomLeft:{points:["tl","bl"],overflow:gr,offset:[0,4],targetOffset:vr},leftBottom:{points:["br","bl"],overflow:hr,offset:[-4,0],targetOffset:vr}},yr=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],wr=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,l=void 0===a?0:a,s=t.mouseLeaveDelay,c=void 0===s?.1:s,u=t.overlayStyle,d=t.prefixCls,f=void 0===d?"rc-tooltip":d,p=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,h=t.transitionName,v=t.animation,b=t.motion,y=t.placement,w=void 0===y?"right":y,x=t.align,C=void 0===x?{}:x,S=t.destroyTooltipOnHide,E=void 0!==S&&S,$=t.defaultVisible,k=t.getTooltipContainer,O=t.overlayInnerStyle,I=(t.arrowContent,t.overlay),P=t.id,M=t.showArrow,j=void 0===M||M,R=_(t,yr),N=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(function(){return N.current}));var A=H({},R);return"visible"in t&&(A.popupVisible=t.visible),e.createElement(mr,T({popupClassName:r,prefixCls:f,popup:function(){return e.createElement(F,{key:"content",prefixCls:f,id:P,overlayInnerStyle:O},I)},action:i,builtinPlacements:br,popupPlacement:w,ref:N,popupAlign:C,getPopupContainer:k,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:h,popupAnimation:v,popupMotion:b,defaultPopupVisible:$,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:j},A),p)};const xr=(0,e.forwardRef)(wr),Cr=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)},Sr=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;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===z(t)&&"object"===z(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};function Er(e){return e.join("%")}var $r=function(){function e(t){st(this,e),B(this,"instanceId",void 0),B(this,"cache",new Map),this.instanceId=t}return ut(e,[{key:"get",value:function(e){return this.opGet(Er(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Er(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 kr=$r;var Or="data-token-hash",Ir="data-css-hash",Pr="__cssinjs_instance__";var Mr=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(Ir,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Pr]=t[Pr]||e,t[Pr]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Ir,"]"))).forEach((function(t){var n,o=t.getAttribute(Ir);r[o]?t[Pr]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new kr(e)}(),defaultCache:!0});const jr=Mr;new RegExp("CALC_UNIT","g");var Rr=function(){function e(){st(this,e),B(this,"cache",void 0),B(this,"keys",void 0),B(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ut(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]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=X(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();B(Rr,"MAX_CACHE_SIZE",20),B(Rr,"MAX_CACHE_OFFSET",5);var Nr=0,Ar=function(){function e(t){st(this,e),B(this,"derivatives",void 0),B(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nr,0===t.length&&t.length,Nr+=1}return ut(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Fr=new Rr;function Tr(e){var t=Array.isArray(e)?e:[e];return Fr.has(t)||Fr.set(t,new Ar(t)),Fr.get(t)}var zr=new WeakMap,Lr={},Br=new WeakMap;function Dr(e){var t=Br.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Ar?t+=r.id:r&&"object"===z(r)?t+=Dr(r):t+=r})),t=Cr(t),Br.set(e,t)),t}function Hr(e,t){return Cr("".concat(t,"_").concat(Dr(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var _r=Y();function Vr(e){return"number"==typeof e?"".concat(e,"px"):e}function Wr(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=H(H({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(B(r={},Or,t),B(r,Ir,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"<style ".concat(i,">").concat(e,"</style>")}var qr=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()},Gr=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(""),"}"):""},Xr=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=qr(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,Gr(r,t,{scope:null==n?void 0:n.scope})]},Kr=H({},e).useInsertionEffect;const Ur=Kr?function(e,t,n){return Kr((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),he((function(){return n(!0)}),r)},Yr=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()}};function Qr(t,n,r,o,i){var a=e.useContext(jr).cache,l=Er([t].concat(fe(n))),s=Yr([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 Ur((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 Zr={},Jr=new Map;var eo="token";function to(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(jr),i=o.cache.instanceId,a=o.container,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?Zr:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var r=zr,o=0;o<t.length;o+=1){var i=t[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(Lr)||r.set(Lr,Object.assign.apply(Object,[{}].concat(fe(n)))),r.get(Lr)}(0,n),g=Dr(m),h=Dr(u),v=p?Dr(p):"",b=Qr(eo,[s,t.id,g,h,v],(function(){var e,n=f?f(m,u,t):function(e,t,n,r){var o=H(H({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(m,u,t,d),r=H({},n),o="";if(p){var i=X(Xr(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Hr(n,s);n._tokenKey=a,r._tokenKey=Hr(r,s);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){Jr.set(e,(Jr.get(e)||0)+1)}(l);var c="".concat("css","-").concat(Cr(a));return n._hashId=c,[n,c,r,o,(null==p?void 0:p.key)||""]}),(function(e){!function(e,t){Jr.set(e,(Jr.get(e)||0)-1);var n=Array.from(Jr.keys()),r=n.filter((function(e){return(Jr.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Or,'="').concat(e,'"]')).forEach((function(e){var n;e[Pr]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Jr.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=X(e,4),n=t[0],r=t[3];if(p&&r){var o=Oe(r,Cr("css-variables-".concat(n._themeKey)),{mark:Ir,prepend:"queue",attachTo:a,priority:-999});o[Pr]=i,o.setAttribute(Or,n._themeKey)}}));return b}const no={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 ro="comm",oo="rule",io="decl",ao=Math.abs,lo=String.fromCharCode;function so(e){return e.trim()}function co(e,t,n){return e.replace(t,n)}function uo(e,t,n){return e.indexOf(t,n)}function fo(e,t){return 0|e.charCodeAt(t)}function po(e,t,n){return e.slice(t,n)}function mo(e){return e.length}function go(e,t){return t.push(e),e}function ho(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function vo(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case io:return e.return=e.return||e.value;case ro:return"";case"@keyframes":return e.return=e.value+"{"+ho(e.children,r)+"}";case oo:if(!mo(e.value=e.props.join(",")))return""}return mo(n=ho(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var bo=1,yo=1,wo=0,xo=0,Co=0,So="";function Eo(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bo,column:yo,length:a,return:"",siblings:l}}function $o(){return Co=xo>0?fo(So,--xo):0,yo--,10===Co&&(yo=1,bo--),Co}function ko(){return Co=xo<wo?fo(So,xo++):0,yo++,10===Co&&(yo=1,bo++),Co}function Oo(){return fo(So,xo)}function Io(){return xo}function Po(e,t){return po(So,e,t)}function Mo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jo(e){return so(Po(xo-1,Ao(91===e?e+2:40===e?e+1:e)))}function Ro(e){for(;(Co=Oo())&&Co<33;)ko();return Mo(e)>2||Mo(Co)>3?"":" "}function No(e,t){for(;--t&&ko()&&!(Co<48||Co>102||Co>57&&Co<65||Co>70&&Co<97););return Po(e,Io()+(t<6&&32==Oo()&&32==ko()))}function Ao(e){for(;ko();)switch(Co){case e:return xo;case 34:case 39:34!==e&&39!==e&&Ao(Co);break;case 40:41===e&&Ao(e);break;case 92:ko()}return xo}function Fo(e,t){for(;ko()&&e+Co!==57&&(e+Co!==84||47!==Oo()););return"/*"+Po(t,xo-1)+"*"+lo(47===e?e:ko())}function To(e){for(;!Mo(Oo());)ko();return Po(e,xo)}function zo(e){return function(e){return So="",e}(Lo("",null,null,null,[""],e=function(e){return bo=yo=1,wo=mo(So=e),xo=0,[]}(e),0,[0],e))}function Lo(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=ko()){case 40:if(108!=m&&58==fo(S,d-1)){-1!=uo(S+=co(jo(b),"&","&\f"),"&\f",ao(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=jo(b);break;case 9:case 10:case 13:case 32:S+=Ro(m);break;case 92:S+=No(Io()-1,7);continue;case 47:switch(Oo()){case 42:case 47:go(Do(Fo(ko(),Io()),t,n,s),s),5!=Mo(m||1)&&5!=Mo(Oo()||1)||!mo(S)||" "===po(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=mo(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=co(S,/\f/g,"")),p>0&&(mo(S)-d||0===g&&47===m)&&go(p>32?Ho(S+";",r,n,d-1,s):Ho(co(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(go(C=Bo(S,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)Lo(S,t,C,C,w,i,d,l,x);else switch(99===f&&110===fo(S,3)?100:f){case 100:case 108:case 109:case 115:Lo(e,C,C,r&&go(Bo(e,C,C,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Lo(S,C,C,C,[""],x,0,l,x)}}c=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+mo(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==$o())continue;switch(S+=lo(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(mo(S)-1)*v,v=1;break;case 64:45===Oo()&&(S+=jo(ko())),f=Oo(),u=d=mo(y=S+=To(Io())),b++;break;case 45:45===m&&2==mo(S)&&(g=0)}}return i}function Bo(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;g<r;++g)for(var b=0,y=po(e,f+1,f=ao(h=a[g])),w=e;b<m;++b)(w=so(h>0?p[b]+" "+y:co(y,/&\f/g,p[b])))&&(s[v++]=w);return Eo(e,t,n,0===o?oo:l,s,c,u,d)}function Do(e,t,n,r){return Eo(e,t,n,ro,lo(Co),po(e,2,-2),0,r)}function Ho(e,t,n,r,o){return Eo(e,t,n,io,po(e,0,r),po(e,r+1,-1),r,o)}var _o,Vo="data-ant-cssinjs-cache-path",Wo="_FILE_STYLE__",qo=!0;var Go="_multi_value_";function Xo(e){return ho(zo(e),vo).replace(/\{%%%\:[^;];}/g,";")}var Ko=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||Go in e)}(r)){var u;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;no[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[Go]&&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(",")}("&"===h?"":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?s&&(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 Uo(e,t){return Cr("".concat(e.join("%")).concat(t))}function Yo(){return null}var Qo="style";function Zo(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(jr),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=d.layer,x=r._tokenKey,C=[x];w&&C.push("layer"),C.push.apply(C,fe(o));var S=_r,E=Qr(Qo,C,(function(){var e=C.join("|");if(function(e){return function(){if(!_o&&(_o={},Y())){var e=document.createElement("div");e.className=Vo,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];_o[n]=r}));var n,r=document.querySelector("style[".concat(Vo,"]"));r&&(qo=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!_o[e]}(e)){var t=function(e){var t=_o[e],n=null;if(t&&Y())if(qo)n=Wo;else{var r=document.querySelector("style[".concat(Ir,'="').concat(_o[e],'"]'));r?n=r.innerHTML:delete _o[e]}return[n,t]}(e),r=X(t,2),l=r[0],c=r[1];if(l)return[l,x,c,{},s,u]}var d=n(),f=X(Ko(d,{hashId:i,hashPriority:m,layer:w?a:void 0,path:o.join("-"),transformers:v,linters:b}),2),p=f[0],g=f[1],h=Xo(p),y=Uo(C,h);return[h,x,y,g,s,u]}),(function(e,t){var n=X(e,3)[2];(t||f)&&_r&&ke(n,{mark:Ir})}),(function(e){var t=X(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(S&&n!==Wo){var i={mark:Ir,prepend:!w&&"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){Oe(Xo(o[e]),"_layer-".concat(e),H(H({},i),{},{prepend:!0}))}));var d=Oe(n,r,i);d[Pr]=y.instanceId,d.setAttribute(Or,x),c.forEach((function(e){Oe(Xo(o[e]),"_effect-".concat(e),i)}))}})),$=X(E,3),k=$[0],O=$[1],I=$[2];return function(t){var n,r;return n=h&&!S&&p?e.createElement("style",T({},(B(r={},Or,O),B(r,Ir,I),r),{dangerouslySetInnerHTML:{__html:k}})):e.createElement(Yo,null),e.createElement(e.Fragment,null,n,t)}}var Jo="cssVar";var ei;B(ei={},Qo,(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=Wr(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Wr(Xo(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),B(ei,eo,(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,Wr(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),B(ei,Jo,(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,Wr(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));var ti=function(){function e(t,n){st(this,e),B(this,"name",void 0),B(this,"style",void 0),B(this,"_keyframe",!0),this.name=t,this.style=n}return ut(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 ni=ti;function ri(e){return e.notSplit=!0,e}function oi(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 ii(e){return Math.min(1,Math.max(0,e))}function ai(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function li(e){return e<=1?"".concat(100*Number(e),"%"):e}function si(e){return 1===e.length?"0"+e:String(e)}function ci(e,t,n){e=oi(e,255),t=oi(t,255),n=oi(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+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:a,l}}function ui(e,t,n){return n<0&&(n+=1),n>1&&(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 di(e,t,n){e=oi(e,255),t=oi(t,255),n=oi(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<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s,v:a}}function fi(e,t,n,r){var o=[si(Math.round(e).toString(16)),si(Math.round(t).toString(16)),si(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function pi(e){return mi(e)/255}function mi(e){return parseInt(e,16)}ri(["borderTop","borderBottom"]),ri(["borderTop"]),ri(["borderBottom"]),ri(["borderLeft","borderRight"]),ri(["borderLeft"]),ri(["borderRight"]);var gi={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function hi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(gi[e])e=gi[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=wi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wi.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wi.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=wi.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wi.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=wi.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wi.hex8.exec(e))?{r:mi(n[1]),g:mi(n[2]),b:mi(n[3]),a:pi(n[4]),format:t?"name":"hex8"}:(n=wi.hex6.exec(e))?{r:mi(n[1]),g:mi(n[2]),b:mi(n[3]),format:t?"name":"hex"}:(n=wi.hex4.exec(e))?{r:mi(n[1]+n[1]),g:mi(n[2]+n[2]),b:mi(n[3]+n[3]),a:pi(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=wi.hex3.exec(e))&&{r:mi(n[1]+n[1]),g:mi(n[2]+n[2]),b:mi(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(xi(e.r)&&xi(e.g)&&xi(e.b)?(t=function(e,t,n){return{r:255*oi(e,255),g:255*oi(t,255),b:255*oi(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):xi(e.h)&&xi(e.s)&&xi(e.v)?(r=li(e.s),o=li(e.v),t=function(e,t,n){e=6*oi(e,360),t=oi(t,100),n=oi(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,o),a=!0,l="hsv"):xi(e.h)&&xi(e.s)&&xi(e.l)&&(r=li(e.s),i=li(e.l),t=function(e,t,n){var r,o,i;if(e=oi(e,360),t=oi(t,100),n=oi(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=ui(l,a,e+1/3),o=ui(l,a,e),i=ui(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ai(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var vi="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),bi="[\\s|\\(]+(".concat(vi,")[,|\\s]+(").concat(vi,")[,|\\s]+(").concat(vi,")\\s*\\)?"),yi="[\\s|\\(]+(".concat(vi,")[,|\\s]+(").concat(vi,")[,|\\s]+(").concat(vi,")[,|\\s]+(").concat(vi,")\\s*\\)?"),wi={CSS_UNIT:new RegExp(vi),rgb:new RegExp("rgb"+bi),rgba:new RegExp("rgba"+yi),hsl:new RegExp("hsl"+bi),hsla:new RegExp("hsla"+yi),hsv:new RegExp("hsv"+bi),hsva:new RegExp("hsva"+yi),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function xi(e){return Boolean(wi.CSS_UNIT.exec(String(e)))}var Ci=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Si(e){var t=di(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Ei(e){var t=e.r,n=e.g,r=e.b;return"#".concat(fi(t,n,r,!1))}function $i(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 ki(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),Number(r.toFixed(2)));var r}function Oi(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function Ii(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=hi(e),o=5;o>0;o-=1){var i=Si(r),a=Ei(hi({h:$i(i,o,!0),s:ki(i,o,!0),v:Oi(i,o,!0)}));n.push(a)}n.push(Ei(r));for(var l=1;l<=4;l+=1){var s=Si(r),c=Ei(hi({h:$i(s,l),s:ki(s,l),v:Oi(s,l)}));n.push(c)}return"dark"===t.theme?Ci.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Ei((r=hi(t.backgroundColor||"#141414"),i=100*l/100,{r:((o=hi(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 Pi=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Pi.primary=Pi[5];var Mi=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Mi.primary=Mi[5];var ji=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ji.primary=ji[5];var Ri=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ri.primary=Ri[5];var Ni=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ni.primary=Ni[5];var Ai=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ai.primary=Ai[5];var Fi=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fi.primary=Fi[5];var Ti=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ti.primary=Ti[5];var zi=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zi.primary=zi[5];var Li=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Li.primary=Li[5];var Bi=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Bi.primary=Bi[5];var Di=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Di.primary=Di[5];var Hi=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Hi.primary=Hi[5];var _i=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];_i.primary=_i[5];var Vi=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Vi.primary=Vi[5];var Wi=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Wi.primary=Wi[5];var qi=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];qi.primary=qi[5];var Gi=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Gi.primary=Gi[5];var Xi=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Xi.primary=Xi[5];var Ki=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ki.primary=Ki[5];var Ui=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Ui.primary=Ui[5];var Yi=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Yi.primary=Yi[5];var Qi=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Qi.primary=Qi[5];var Zi=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Zi.primary=Zi[5];var Ji=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ji.primary=Ji[5];var ea=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ea.primary=ea[5];const ta={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"},na=Object.assign(Object.assign({},ta),{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 ra=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=hi(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=ai(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=di(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=di(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=ci(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=ci(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),fi(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=[si(Math.round(e).toString(16)),si(Math.round(t).toString(16)),si(Math.round(n).toString(16)),si((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*oi(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*oi(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="#"+fi(this.r,this.g,this.b,!1),t=0,n=Object.entries(gi);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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=ii(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=ii(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=ii(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=ii(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;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const oa=(e,t)=>new ra(e).setAlpha(t).toRgbString(),ia=(e,t)=>new ra(e).darken(t).toHexString(),aa=e=>{const t=Ii(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]}},la=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:oa(r,.88),colorTextSecondary:oa(r,.65),colorTextTertiary:oa(r,.45),colorTextQuaternary:oa(r,.25),colorFill:oa(r,.15),colorFillSecondary:oa(r,.06),colorFillTertiary:oa(r,.04),colorFillQuaternary:oa(r,.02),colorBgLayout:ia(n,4),colorBgContainer:ia(n,0),colorBgElevated:ia(n,0),colorBgSpotlight:oa(r,.85),colorBgBlur:"transparent",colorBorder:ia(n,15),colorBorderSecondary:ia(n,6)}};function sa(e){return(e+8)/e}const ca=Tr((function(e){const t=Object.keys(ta).map((t=>{const n=Ii(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 ra("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:aa,generateNeutralColorPalettes:la})),(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:sa(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))})),ua={token:na,override:{override:na},hashed:!0},da=t().createContext(ua);function fa(e){return e>=0&&e<=255}const pa=function(e,t){const{r:n,g:r,b:o,a:i}=new ra(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new ra(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(fa(t)&&fa(i)&&fa(c))return new ra({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new ra({r:n,g:r,b:o,a:1}).toRgbString()};function ma(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(na).forEach((e=>{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:pa(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:pa(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:pa(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:pa(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 ra("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new ra("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new ra("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 ga=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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ha={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},va={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},ba={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ya=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ga(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=ma(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ga(n,["theme"]);let i=o;r&&(i=ya(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function wa(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(da),a=`5.15.4-${n||""}`,l=r||ca,[s,c,u]=to(l,[na,e],{salt:a,override:o,getComputedToken:ya,formatToken:ma,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ha,ignore:va,preserve:ba}});return[l,u,n?c:"",s,i]}const xa=t().createContext(void 0),Ca=100,Sa={Modal:Ca,Drawer:Ca,Popover:Ca,Popconfirm:Ca,Tooltip:Ca,Tour:Ca},Ea={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function $a(e,n){const[,r]=wa(),o=t().useContext(xa),i=function(e){return e in Sa}(e);if(void 0!==n)return[n,n];let a=null!=o?o:0;return i?(a+=(o?0:r.zIndexPopupBase)+Sa[e],a=Math.min(a,r.zIndexPopupBase+1e3)):a+=Ea[e],[void 0===o?n:a,a]}const ka=()=>({height:0,opacity:0}),Oa=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ia=e=>({height:e?e.offsetHeight:0}),Pa=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ma=(e,t,n)=>void 0!==n?n:`${e}-${t}`,ja=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ka,onEnterStart:ka,onAppearActive:Oa,onEnterActive:Oa,onLeaveStart:Ia,onLeaveActive:ka,onAppearEnd:Pa,onEnterEnd:Pa,onLeaveEnd:Pa,motionDeadline:500}};function Ra(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 Na=(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 ${Vr(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Aa(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Fa(e,t){return e?t:{}}function Ta(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"},Na(e,t,o)),{"&:before":{background:t}})]},Fa(!!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}}})),Fa(!!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}}})),Fa(!!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}})),Fa(!!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 za={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"]}},La={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"]}},Ba=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Da(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(za).forEach((e=>{const c=r&&La[e]||za[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,Ba.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=Aa({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 Ha(e){return e&&t().isValidElement(e)&&e.type===t().Fragment}function _a(e,n){return((e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}function Va(){}const Wa=e.createContext({}),qa=()=>{const e=()=>{};return e.deprecated=Va,e},Ga="anticon",Xa=e.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Ga}),{Consumer:Ka}=Xa,Ua=e.createContext(void 0),Ya=t=>{let{children:n,size:r}=t;const o=e.useContext(Ua);return e.createElement(Ua.Provider,{value:r||o},n)},Qa=Ua,Za=e=>{const n=t().useContext(Qa);return t().useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},Ja={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},el=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}},tl=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"}}}),nl=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i;return{[a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},rl=e=>({outline:`${Vr(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ol=e=>({"&:focus-visible":Object.assign({},rl(e))});function il(e,t,n){return t=pt(t),ht(e,mt()?Reflect.construct(t,n||[],pt(e).constructor):t.apply(e,n))}const al=ut((function e(){st(this,e)}));let ll=function(e){function t(e){var n;return st(this,t),(n=il(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return ft(t,e),ut(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}}])}(al);const sl="CALC_UNIT";function cl(e){return"number"==typeof e?`${e}${sl}`:e}let ul=function(e){function t(e){var n;return st(this,t),(n=il(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=cl(e):"string"==typeof e&&(n.result=e),n}return ft(t,e),ut(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} + ${cl(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} - ${cl(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(`${sl}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(al);const dl="undefined"!=typeof CSSINJS_STATISTIC;let fl=!0;function pl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!dl)return Object.assign.apply(Object,[{}].concat(t));fl=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),fl=!0,r}const ml={};function gl(){}const hl=(e,t)=>{const[n,r]=wa();return Zo({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"}})}]))},vl=(e,t,n)=>{var r;return"function"==typeof n?n(pl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},bl=(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 yl(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]=wa(),{getPrefixCls:p,iconPrefixCls:m,csp:g}=(0,e.useContext)(Xa),h=p(),v=f?"css":"js",b=(e=>{const t="css"===e?ul:ll;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;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Vr(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Vr(e))).join(",")})`}}}(v),x={theme:s,token:d,hashId:u,nonce:()=>null==g?void 0:g.nonce,clientOnly:o.clientOnly,order:o.order||-999};Zo(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",h]}),(()=>[{"&":tl(d)}])),hl(m,g);const C=Zo(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=gl;return dl&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(fl&&t.add(n),e[n])}),r=(e,n)=>{var r;ml[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=ml[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(d),s=vl(a,c,r),p=`.${t}`,g=bl(a,c,s,{deprecatedTokens:o.deprecatedTokens});f&&Object.keys(s).forEach((e=>{s[e]=`var(${qr(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=pl(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:nl(v,t,i),x]}));return[C,u]}}const wl=(e,t,n,r)=>{const o=yl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},xl=(n,r,o,i)=>{const a=yl(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]=wa();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)(jr),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(fe(t.path),[r,c,p]),g=Qr(Jo,m,(function(){var e=n(),t=X(Xr(e,r,{prefix:o,unitless:i,ignore:a,scope:c}),2),l=t[0],s=t[1];return[l,s,Uo(m,s),r]}),(function(e){var t=X(e,3)[2];_r&&ke(t,{mark:Ir})}),(function(e){var t=X(e,3),n=t[1],o=t[2];if(n){var i=Oe(n,o,{mark:Ir,prepend:"queue",attachTo:f,priority:-999});i[Pr]=d,i.setAttribute(Or,r)}}))}({path:[n],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},ha),s),ignore:va,token:c,scope:a},(()=>{const e=vl(n,c,r),t=bl(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]=wa();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]}},Cl=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Sl=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"}}}},El=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}}}},$l=xl("Space",(e=>{const t=pl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Sl(t),El(t),Cl(t)]}),(()=>({})),{resetStyle:!1});var kl=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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ol=e.createContext(null),Il=(t,n)=>{const r=e.useContext(Ol),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}},Pl=t=>{let{children:n}=t;return e.createElement(Ol.Provider,{value:null},n)},Ml=t=>{var{children:n}=t,r=kl(t,["children"]);return e.createElement(Ol.Provider,{value:r},n)},jl=e=>({animationDuration:e,animationFillMode:"both"}),Rl=e=>({animationDuration:e,animationFillMode:"both"}),Nl=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({},Rl(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"}}},Al=new ni("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fl=new ni("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tl=new ni("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zl=new ni("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ll=new ni("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Bl=new ni("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Dl=new ni("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Hl=new ni("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_l=new ni("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Vl=new ni("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Wl=new ni("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ql=new ni("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Gl={zoom:{inKeyframes:Al,outKeyframes:Fl},"zoom-big":{inKeyframes:Tl,outKeyframes:zl},"zoom-big-fast":{inKeyframes:Tl,outKeyframes:zl},"zoom-left":{inKeyframes:Dl,outKeyframes:Hl},"zoom-right":{inKeyframes:_l,outKeyframes:Vl},"zoom-up":{inKeyframes:Ll,outKeyframes:Bl},"zoom-down":{inKeyframes:Wl,outKeyframes:ql}},Xl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Gl[t];return[Nl(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}}]},Kl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ul(e,t){return Kl.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 Yl=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({},el(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:`${Vr(e.calc(c).div(2).equal())} ${Vr(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,8)}},[`${t}-content`]:{position:"relative"}}),Ul(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Ta(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Ql=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Aa({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ra(pl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Zl=function(e){const t=xl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=pl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Yl(o),Xl(e,"zoom-big-fast")]}),Ql,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Jl=Kl.map((e=>`${e}-inverse`));function es(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Kl.includes(e):[].concat(fe(Jl),fe(Kl)).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 ts=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]=wa(),{getPopupContainer:S,getPrefixCls:E,direction:$}=e.useContext(Xa),k=qa(),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,M]=Lt(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),j=!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||Da({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(Pl,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=E("tooltip",i),W=E(),q=t["data-popover-inject"];let G=P;"open"in t||"visible"in t||!j||(G=!1);const X=e.isValidElement(d)&&!Ha(d)?d:e.createElement("span",null,d),K=X.props,U=K.className&&"string"!=typeof K.className?K.className:A()(K.className,a||`${V}-open`),[Y,Q,Z]=Zl(V,!q),J=es(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=A()(s,{[`${V}-rtl`]:"rtl"===$},J.className,H,Q,Z),[re,oe]=$a("Tooltip",_.zIndex),ie=e.createElement(xr,Object.assign({},_,{zIndex:re,showArrow:x,placement:z,mouseEnterDelay:L,mouseLeaveDelay:B,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:T||l||S,ref:O,builtinPlacements:R,overlay:F,visible:G,onVisibleChange:e=>{var n,r;M(!j&&e),j||(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:Ma(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),G?_a(X,{className:U}):X);return Y(e.createElement(xa.Provider,{value:oe},ie))}));ts._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:s}=e.useContext(Xa),c=s("tooltip",n),[u,d,f]=Zl(c),p=es(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 ns=ts;function rs(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const os=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(",")}}}}},is=yl("Wave",(e=>[os(e)]));function as(){as=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 M(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(j([])));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 M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function j(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<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(z(t)+" is not iterable")}return b.prototype=y,o(S,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},E($.prototype),c($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(S),c(S,s,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=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<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=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:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function ls(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 ss(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ls(i,r,o,a,l,"next",e)}function l(e){ls(i,r,o,a,l,"throw",e)}a(void 0)}))}}var cs,us=H({},K),ds=us.version,fs=us.render,ps=us.unmountComponentAtNode;try{Number((ds||"").split(".")[0])>=18&&(cs=us.createRoot)}catch(FC){}function ms(e){var t=us.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===z(t)&&(t.usingClientEntryPoint=e)}var gs="__rc_react_root__";function hs(e,t){cs?function(e,t){ms(!0);var n=t[gs]||cs(t);ms(!1),n.render(e),t[gs]=n}(e,t):function(e,t){fs(e,t)}(e,t)}function vs(_x){return bs.apply(this,arguments)}function bs(){return(bs=ss(as().mark((function e(t){return as().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[gs])||void 0===e||e.unmount(),delete t[gs]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ys(e){ps(e)}function ws(){return(ws=ss(as().mark((function e(t){return as().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===cs){e.next=2;break}return e.abrupt("return",vs(t));case 2:ys(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xs(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 Cs="ant-wave-target";function Ss(e){return Number.isNaN(e)?0:e}const Es=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 xs(t)?t:xs(n)?n:xs(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:Ss(-parseFloat(n))),p(t?r.offsetTop:Ss(-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=>Ss(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),e.useEffect((()=>{if(r){const e=$n((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{$n.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(Cs));return e.createElement(Vn,{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 ws.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})}))},$s=(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),hs(e.createElement(Es,Object.assign({},n,{target:t})),i)},ks=n=>{const{children:r,disabled:o,component:i}=n,{getPrefixCls:a}=(0,e.useContext)(Xa),l=(0,e.useRef)(null),s=a("wave"),[,c]=is(s),u=function(t,n,r){const{wave:o}=e.useContext(Xa),[,i,a]=wa(),l=kt((e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${Cs}`)||l,{showEffect:c}=o||{};(c||$s)(s,{className:n,token:i,component:r,event:e,hashId:a})})),s=e.useRef();return e=>{$n.cancel(s.current),s.current=$n((()=>{l(e)}))}}(l,A()(s,c),i);return t().useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!er(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)?_a(r,{ref:ce(r)?le(r.ref,l):l}):null!=r?r:null},Os=e.createContext(!1),Is=t=>{let{children:n,disabled:r}=t;const o=e.useContext(Os);return e.createElement(Os.Provider,{value:null!=r?r:o},n)},Ps=Os;const Ms=e.createContext(void 0),js=/^[\u4e00-\u9fa5]{2}$/,Rs=js.test.bind(js);function Ns(e){return"danger"===e?{danger:!0}:{type:e}}function As(e){return"string"==typeof e}function Fs(e){return"text"===e||"link"===e}const Ts=(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)})),zs=Ts,Ls={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"},Bs=(0,e.createContext)({});function Ds(e){return"object"===z(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===z(e.icon)||"function"==typeof e.icon)}function Hs(){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 _s(e,n,r){return r?t().createElement(e.tag,H(H({key:n},Hs(e.attrs)),r),(e.children||[]).map((function(t,r){return _s(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t().createElement(e.tag,H({key:n},Hs(e.attrs)),(e.children||[]).map((function(t,r){return _s(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Vs(e){return Ii(e)[0]}function Ws(e){return e?Array.isArray(e)?e:[e]:[]}var qs=["icon","className","onClick","style","primaryColor","secondaryColor"],Gs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Xs=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,qs),h=e.useRef(),v=Gs;if(p&&(v={primaryColor:p,secondaryColor:m||Vs(p)}),n=h,r=(0,e.useContext)(Bs),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=$t(n.current);Oe(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),l=Ds(c),s="icon should be icon definiton, but got ".concat(c),re(l,"[@ant-design/icons] ".concat(s)),!Ds(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=H(H({},b),{},{icon:b.icon(v.primaryColor,v.secondaryColor)})),_s(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}))};Xs.displayName="IconReact",Xs.getTwoToneColors=function(){return H({},Gs)},Xs.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Gs.primaryColor=t,Gs.secondaryColor=n||Vs(t),Gs.calculated=!!n};const Ks=Xs;function Us(e){var t=X(Ws(e),2),n=t[0],r=t[1];return Ks.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ys=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Us(zi.primary);var Qs=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,Ys),d=e.useContext(Bs),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(Ws(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(Ks,{icon:o,primaryColor:y,secondaryColor:w,style:v}))}));Qs.displayName="AntdIcon",Qs.getTwoToneColor=function(){var e=Ks.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Qs.setTwoToneColor=Us;const Zs=Qs;var Js=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:Ls}))};const ec=e.forwardRef(Js),tc=(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(zs,{prefixCls:r,className:l,style:i,ref:n},t().createElement(ec,{className:a}))})),nc=()=>({width:0,opacity:0,transform:"scale(0)"}),rc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),oc=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t().createElement(tc,{prefixCls:n,className:i,style:a}):t().createElement(Vn,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:nc,onAppearActive:rc,onEnterStart:nc,onEnterActive:rc,onLeaveStart:rc,onLeaveActive:nc},((e,r)=>{let{className:o,style:l}=e;return t().createElement(tc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},ic=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ac=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}},ic(`${t}-primary`,o),ic(`${t}-danger`,i)]}},lc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return pl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},sc=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:sa(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:sa(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:sa(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)}},cc=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:`${Vr(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({},ol(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"}}}},uc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),dc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),fc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),pc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),mc=(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"},uc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),gc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},pc(e))}),hc=e=>Object.assign({},gc(e)),vc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),bc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),uc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),mc(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},uc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),gc(e))}),yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),uc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),mc(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},uc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),mc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gc(e))}),wc=e=>Object.assign(Object.assign({},bc(e)),{borderStyle:"dashed"}),xc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},uc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),vc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),vc(e))}),Cc=e=>Object.assign(Object.assign(Object.assign({},uc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),vc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vc(e)),uc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Sc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:bc(e),[`${t}-primary`]:yc(e),[`${t}-dashed`]:wc(e),[`${t}-link`]:xc(e),[`${t}-text`]:Cc(e),[`${t}-ghost`]:mc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ec=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:`${Vr(c)} ${Vr(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}`]:dc(e)},{[`${n}${n}-round${t}`]:fc(e)}]},$c=e=>{const t=pl(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Ec(t,e.componentCls)},kc=e=>{const t=pl(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 Ec(t,`${e.componentCls}-sm`)},Oc=e=>{const t=pl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ec(t,`${e.componentCls}-lg`)},Ic=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Pc=xl("Button",(e=>{const t=lc(e);return[cc(t),$c(t),kc(t),Oc(t),Ic(t),Sc(t),ac(t)]}),sc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Mc(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 Rc(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({},Mc(e,r,t)),jc(n,r,t))}}function Nc(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 Ac(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Nc(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 Fc=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% + ${Vr(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% + ${Vr(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Tc=wl(["Button","compact"],(e=>{const t=lc(e);return[Rc(t),Ac(t),Fc(t)]}),sc);const zc=(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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),E=s||"default",{getPrefixCls:$,autoInsertSpaceInButton:k,direction:O,button:I}=(0,e.useContext)(Xa),P=$("btn",l),[M,j,R]=Pc(P),N=(0,e.useContext)(Ps),F=null!=p?p:N,T=(0,e.useContext)(Ms),z=(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}}(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&&!Fs(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&&Rs(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}=Il(P,O),K=Za((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=rs(S,["navigate"]),Z=A()(P,j,R,{[`${P}-${u}`]:"default"!==u&&u,[`${P}-${E}`]:E,[`${P}-${U}`]:U,[`${P}-icon-only`]:!h&&0!==h&&!!Y,[`${P}-background-ghost`]:b&&!Fs(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(zs,{prefixCls:P,className:ee,style:te},v):t().createElement(oc,{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&&As(e.type)&&Rs(e.props.children)?_a(e,{children:e.props.children.split("").join(r)}):As(e)?Rs(e)?t().createElement("span",null,e.split("").join(r)):t().createElement("span",null,e):Ha(e)?t().createElement("span",null,e):e}(e,n)))}(h,V&&q):null;if(void 0!==Q.href)return M(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(Tc,{key:"compact",prefixCls:P}));return Fs(E)||(oe=t().createElement(ks,{component:"Button",disabled:!!L},oe)),M(oe)},Lc=(0,e.forwardRef)(zc);Lc.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Xa),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","size","className"]),s=n("btn-group",o),[,,c]=wa();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const d=A()(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===r},a,c);return e.createElement(Ms.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},Lc.__ANT_BUTTON=!0;const Bc=Lc,Dc=e=>e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked;var Hc="RC_FORM_INTERNAL_HOOKS",_c=function(){re(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Vc=e.createContext({getFieldValue:_c,getFieldsValue:_c,getFieldError:_c,getFieldWarning:_c,getFieldsError:_c,isFieldsTouched:_c,isFieldTouched:_c,isFieldValidating:_c,isFieldsValidating:_c,resetFields:_c,setFields:_c,setFieldValue:_c,setFieldsValue:_c,validateFields:_c,submit:_c,getInternalHooks:function(){return _c(),{dispatch:_c,initEntityValue:_c,registerField:_c,useSubscribe:_c,setInitialValues:_c,destroyForm:_c,setCallbacks:_c,registerWatch:_c,getFields:_c,setValidateMessages:_c,setPreserve:_c,getInitialValue:_c}}}),Wc=e.createContext(null);function qc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(this,arguments)}function Xc(e){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xc(e)}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kc(e,t)}function Uc(e,t,n){return Uc=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Kc(o,n.prototype),o},Uc.apply(null,arguments)}function Yc(e){var t="function"==typeof Map?new Map:void 0;return Yc=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return Uc(e,arguments,Xc(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Kc(r,e)},Yc(e)}var Qc=/%[sdj%]/g;function Zc(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 Jc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(Qc,(function(e){if("%%"===e)return"%";if(o>=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 eu(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 tu(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<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var nu=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Kc(t,n),r}(Yc(Error));function ru(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function ou(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=Gc({},e[n],r):e[n]=r}return e}var iu,au=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!eu(t,i||e.type)||r.push(Jc(o.messages.required,e.fullField))},lu=/^(([^<>()\[\]\\.,;:\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,}))$/,su=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,cu={integer:function(e){return cu.number(e)&&parseInt(e,10)===e},float:function(e){return cu.number(e)&&!cu.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&&!cu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(lu)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(iu)return iu;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 iu=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(su)}},uu="enum",du=au,fu=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Jc(o.messages.whitespace,e.fullField))},pu=function(e,t,n,r,o){if(e.required&&void 0===t)au(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?cu[i](t)||r.push(Jc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Jc(o.messages.types[i],e.fullField,e.type))}},mu=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(Jc(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(Jc(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(Jc(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(Jc(o.messages[c].range,e.fullField,e.min,e.max))},gu=function(e,t,n,r,o){e[uu]=Array.isArray(e[uu])?e[uu]:[],-1===e[uu].indexOf(t)&&r.push(Jc(o.messages[uu],e.fullField,e[uu].join(", ")))},hu=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Jc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Jc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},vu=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eu(t,i)&&!e.required)return n();du(e,t,r,a,o,i),eu(t,i)||pu(e,t,r,a,o)}n(a)},bu={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eu(t,"string")&&!e.required)return n();du(e,t,r,i,o,"string"),eu(t,"string")||(pu(e,t,r,i,o),mu(e,t,r,i,o),hu(e,t,r,i,o),!0===e.whitespace&&fu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&pu(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),eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&(pu(e,t,r,i,o),mu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&pu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),eu(t)||pu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&(pu(e,t,r,i,o),mu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&(pu(e,t,r,i,o),mu(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();du(e,t,r,i,o,"array"),null!=t&&(pu(e,t,r,i,o),mu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&pu(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(eu(t)&&!e.required)return n();du(e,t,r,i,o),void 0!==t&&gu(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(eu(t,"string")&&!e.required)return n();du(e,t,r,i,o),eu(t,"string")||hu(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(eu(t,"date")&&!e.required)return n();var a;du(e,t,r,i,o),eu(t,"date")||(a=t instanceof Date?t:new Date(t),pu(e,a,r,i,o),a&&mu(e,a.getTime(),r,i,o))}n(i)},url:vu,hex:vu,email:vu,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;du(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(eu(t)&&!e.required)return n();du(e,t,r,i,o)}n(i)}};function yu(){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 wu=yu(),xu=function(){function e(e){this.rules=null,this._messages=wu,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=ou(yu(),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===wu&&(s=yu()),ou(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=Gc({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:Gc({},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);tu(a,n,(function(e){return r(e),e.length?i(new nu(e,Zc(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 nu(u,Zc(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?tu(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 Gc({},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(ru(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(ru(o,i)):a.error&&(d=[a.error(o,Jc(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=Gc({},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;o<e.length;o++)r(e[o]);t.length?(n=Zc(t),l(t,n)):l(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!bu.hasOwnProperty(e.type))throw new Error(Jc("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?bu.required:bu[this.getType(e)]||void 0},e}();xu.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");bu[e]=t},xu.warning=function(){},xu.messages=wu,xu.validators=bu;var Cu="'${name}' is not a valid ${type}",Su={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Cu,method:Cu,array:Cu,object:Cu,number:Cu,date:Cu,boolean:Cu,integer:Cu,float:Cu,regexp:Cu,email:Cu,url:Cu,hex:Cu},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Eu=xu;function $u(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var ku="CODE_LOGIC_ERROR";function Ou(_x,e,t,n,r){return Iu.apply(this,arguments)}function Iu(){return Iu=ss(as().mark((function t(n,r,o,i,a){var l,s,c,u,d,f,p,m,g;return as().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(l=H({},o)).ruleIndex,Eu.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(ku)}}),c=null,l&&"array"===l.type&&l.defaultField&&(c=l.defaultField,delete l.defaultField),u=new Eu(B({},n,[l])),d=qt(Su,i.validateMessages),u.messages(d),f=[],t.prev=10,t.next=13,Promise.resolve(u.validate(B({},n,r),H({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(f=t.t0.errors.map((function(t,n){var r=t.message,o=r===ku?d.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!c){t.next=23;break}return t.next=21,Promise.all(r.map((function(e,t){return Ou("".concat(n,".").concat(t),e,c,i,a)})));case 21:return p=t.sent,t.abrupt("return",p.reduce((function(e,t){return[].concat(fe(e),fe(t))}),[]));case 23:return m=H(H({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?$u(e,m):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),Iu.apply(this,arguments)}function Pu(e,t,n,r,o,i){var a,l=e.join("."),s=n.map((function(e,t){var n=e.validator,r=H(H({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){re(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,re(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=ss(as().mark((function e(n,o){var a,c,u;return as().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,Ou(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map((function(e){return Ou(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return ju.apply(this,arguments)}(c):function(e){return Mu.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Mu(){return(Mu=ss(as().mark((function e(t){return as().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,fe(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ju(){return(ju=ss(as().mark((function e(t){var n;return as().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ru(e){return qc(e)}function Nu(e,t){var n={};return t.forEach((function(t){var r=Dt(e,t);n=_t(n,t,r)})),n}function Au(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Fu(t,e,n)}))}function Fu(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 Tu(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 zu(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 Lu=["name"],Bu=[];function Du(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Hu=function(t){ft(r,t);var n=vt(r);function r(t){var o;return st(this,r),B(gt(o=n.call(this,t)),"state",{resetCount:0}),B(gt(o),"cancelRegisterFunc",null),B(gt(o),"mounted",!1),B(gt(o),"touched",!1),B(gt(o),"dirty",!1),B(gt(o),"validatePromise",void 0),B(gt(o),"prevValidating",void 0),B(gt(o),"errors",Bu),B(gt(o),"warnings",Bu),B(gt(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ru(r)),o.cancelRegisterFunc=null})),B(gt(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(gt(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(gt(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),B(gt(o),"metaCache",null),B(gt(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=H(H({},o.getMeta()),{},{destroy:e});Sr(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),B(gt(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&&Au(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Bu,o.warnings=Bu,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Bu,o.warnings=Bu,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||Bu),"warnings"in m&&(o.warnings=m.warnings||Bu),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Au(t,u,!0))return void o.reRender();if(i&&!u.length&&Du(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Ru).some((function(e){return Au(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Du(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),B(gt(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(ss(as().mark((function r(){var a,l,c,u,d,f,p;return as().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||qc(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=Pu(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bu;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?Bu: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=Bu,o.warnings=Bu,o.triggerMetaEvent(),o.reRender()),s})),B(gt(o),"isFieldValidating",(function(){return!!o.validatePromise})),B(gt(o),"isFieldTouched",(function(){return o.touched})),B(gt(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Hc).getInitialValue)(o.getNamePath())})),B(gt(o),"getErrors",(function(){return o.errors})),B(gt(o),"getWarnings",(function(){return o.warnings})),B(gt(o),"isListField",(function(){return o.props.isListField})),B(gt(o),"isList",(function(){return o.props.isList})),B(gt(o),"isPreserve",(function(){return o.props.preserve})),B(gt(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(gt(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=Fe(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),B(gt(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Dt(e||t(!0),n)})),B(gt(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(Hc).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<t;r++)n[r]=arguments[r];e=i?i.apply(void 0,n):Tu.apply(void 0,[l].concat(n)),a&&(e=a(e,g,p(!0))),m({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},qc(u||[]).forEach((function(e){var t=y[e];y[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&m({type:"validateField",namePath:d,triggerName:e})}})),y})),t.fieldContext&&(0,(0,t.fieldContext.getInternalHooks)(Hc).initEntityValue)(gt(o)),o}return ut(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Hc).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(re(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),r}(e.Component);B(Hu,"contextType",Vc),B(Hu,"defaultProps",{trigger:"onChange",valuePropName:"value"});const _u=function(t){var n=t.name,r=_(t,Lu),o=e.useContext(Vc),i=e.useContext(Wc),a=void 0!==n?Ru(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),e.createElement(Hu,T({key:l,name:a,isListField:!!i},r,{fieldContext:o}))},Vu=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,l=t.isListField,s=e.useContext(Vc),c=e.useContext(Wc),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=Ru(s.prefixName)||[];return[].concat(fe(e),fe(Ru(n)))}),[s.prefixName,n]),f=e.useMemo((function(){return H(H({},s),{},{prefixName:d})}),[s,d]),p=e.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(re(!1,"Form.List only accepts function as children."),null):e.createElement(Wc.Provider,{value:p},e.createElement(Vc.Provider,{value:f},e.createElement(_u,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!c},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=s.getFieldValue,l=function(){return a(d||[])||[]},c={add:function(e,t){var n=l();t>=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=zu(u.keys,e,t),i(zu(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 Wu="__@field_split__";function qu(e){return e.map((function(e){return"".concat(z(e),":").concat(e)})).join(Wu)}var Gu=function(){function e(){st(this,e),B(this,"kvs",new Map)}return ut(e,[{key:"set",value:function(e,t){this.kvs.set(qu(e),t)}},{key:"get",value:function(e){return this.kvs.get(qu(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(qu(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(Wu);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 Xu=Gu;var Ku=["name"],Uu=ut((function e(t){var n=this;st(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===Hc?(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=qt(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=_t(o,n,Dt(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),B(this,"destroyForm",(function(){var e=new Xu;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=Dt(n.initialValues,e);return e.length?qt(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 Xu;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=Ru(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ru(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)})),Nu(n.store,l.map(Ru))})),B(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ru(e);return Dt(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:Ru(e[n]),errors:[],warnings:[]}}))})),B(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ru(e);return n.getFieldsError([t])[0].errors})),B(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ru(e);return n.getFieldsError([t])[0].warnings})),B(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ru),l=!1):(o=null,l=i):(o=i.map(Ru),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every((function(e){return c(e)||e.isList()})):s.some(c);var u=new Xu;o.forEach((function(e){u.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(fe(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),B(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),B(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Ru);return t.some((function(e){var t=e.getNamePath();return Au(r,t)&&e.isFieldValidating()}))})),B(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),B(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new Xu,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(_t(n.store,o,fe(i)[0].value))}}}}))})),B(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(qt(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ru);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(_t(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,Ku),a=Ru(o);r.push(a),"value"in i&&n.updateStore(_t(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===Dt(n.store,r)&&n.updateStore(_t(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!Fu(e.getNamePath(),t)}))){var l=n.store;n.updateStore(_t(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=Ru(e),o=n.store;n.updateStore(_t(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(Nu(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=qt(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 Xu;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ru(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 Xu;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 Au(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(Ru):[],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||Au(a,t,d)){var r=e.validateRules(H({validateMessages:H(H({},Su),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 Yu=function(t){var n=e.useRef(),r=X(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new Uu((function(){r({})}));n.current=o.getForm()}return[n.current]};var Qu=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Zu=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(Qu),l=e.useRef({});return e.createElement(Qu.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 Ju=Qu;var ed=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const td=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,ed),y=e.useContext(Ju),w=X(Yu(a),1)[0],x=w.getInternalHooks(Hc),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<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){y.triggerFormFinish(r,e),h&&h(e)},onFinishFailed:v}),k(l);var I,P=e.useRef(null);S(o,!P.current),P.current||(P.current=!0),e.useEffect((function(){return O}),[]);var M="function"==typeof s;I=M?s(w.getFieldsValue(!0),w):s,C(!M);var j=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==z(e)||"object"!==z(t))return!1;var n=Object.keys(e),r=Object.keys(t);return fe(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(j.current||[],i||[])||w.setFields(i||[]),j.current=i}),[i,w]);var R=e.useMemo((function(){return H(H({},w),{},{validateTrigger:p})}),[w,p]),N=e.createElement(Wc.Provider,{value:null},e.createElement(Vc.Provider,{value:R},I));return!1===u?N:e.createElement(u,T({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),N)};function nd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}const rd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,s=l.form,c=X((0,e.useState)(),2),u=c[0],d=c[1],f=(0,e.useMemo)((function(){return nd(u)}),[u]),p=(0,e.useRef)(f);p.current=f;var m=(0,e.useContext)(Vc),g=s||m,h=g&&g._init,v=Ru(o),b=(0,e.useRef)(v);return b.current=v,(0,e.useEffect)((function(){if(h){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(Hc).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):Dt(n,b.current)},r=t((function(e,t){var r=n(e,t),o=nd(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[h]),u};var od=e.forwardRef(td);od.FormProvider=Zu,od.Field=_u,od.List=Vu,od.useForm=Yu,od.useWatch=rd;const id=od,ad=e.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),ld=e.createContext(null),sd=t=>{const n=rs(t,["prefixCls"]);return e.createElement(Zu,Object.assign({},n))},cd=e.createContext({prefixCls:""}),ud=e.createContext({}),dd=t=>{let{children:n,status:r,override:o}=t;const i=(0,e.useContext)(ud),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(ud.Provider,{value:a},n)},fd=(0,e.createContext)(void 0),pd=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),md=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({},pd(pl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gd=(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}}),hd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vd=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},md(e))}),hd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),hd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),bd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),yd=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},bd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),bd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},md(e))}})}),wd=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),xd=(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}}),Cd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Sd=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},md(e))}),Cd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Cd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ed=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),$d=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:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Ed(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ed(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:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),kd=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Vr(t)} ${Vr(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Od=e=>({padding:`${Vr(e.paddingBlockSM)} ${Vr(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Id=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Vr(e.paddingBlock)} ${Vr(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({},kd(e)),"&-sm":Object.assign({},Od(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Pd=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({},kd(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Od(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 ${Vr(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Vr(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Vr(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:`${Vr(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Vr(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}}}})}},Md=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({},el(e)),Id(e)),vd(e)),Sd(e)),wd(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 ${Vr(e.inputAffixPadding)}`}}}},Rd=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Id(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}}})}},Nd=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},el(e)),Pd(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}}},yd(e)),$d(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}}})})}},Ad=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}}}}},Fd=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"}}}}}},Td=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},zd=xl("Input",(e=>{const t=pl(e,function(e){return pl(e,{inputAffixPadding:e.paddingXXS})}(e));return[Md(t),Fd(t),Rd(t),Nd(t),Ad(t),Td(t),Rc(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 Ld(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 Bd(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=Ld(t,e,r)):n(o=Ld(t,e,""))}}const Dd=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",M=(null==k?void 0:k.wrapper)||"span",j=(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(M,{className:Z},u&&t().createElement(j,{className:Y},u),F,d&&t().createElement(j,{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 Hd=["show"];function _d(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,Hd);return H(H({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var Vd=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Wd=(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,Vd),O=X((0,e.useState)(!1),2),I=O[0],P=O[1],M=(0,e.useRef)(!1),j=(0,e.useRef)(null),R=function(e){j.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)}}}}(j.current,e)},N=X(Lt(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=_d(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=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.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(!M.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max)t!==(a=q.exceedFormatter(t,{max:q.max}))&&W([(null===(r=j.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=j.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;z(a),j.current&&Bd(j.current,e,i,a)};(0,e.useEffect)((function(){var e;V&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,fe(V)))}),[V]);var Q,Z=U&&"".concat(d,"-out-of-range");return t().createElement(Dd,T({},k,{prefixCls:d,className:A()(m,Z),handleReset:function(e){z(""),R(),j.current&&Bd(j.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=rs(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:j,size:p,type:w,onCompositionStart:function(e){M.current=!0,null==E||E(e)},onCompositionEnd:function(e){M.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==$||$(e)}}))))}));const qd=Wd,Gd={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 Xd=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:Gd}))};const Kd=e.forwardRef(Xd),Ud=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t().createElement(Kd,null)}),n};function Yd(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 Qd=(e,t)=>t||e,Zd=e=>{const[,,,,t]=wa();return t?`${e}-css-var`:""},Jd=["outlined","borderless","filled"],ef=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const r=(0,e.useContext)(fd);let o;return o=void 0!==t?t:!1===n?"borderless":null!=r?r:"outlined",[o,Jd.includes(o)]};function tf(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 nf=(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:$,input:k}=t().useContext(Xa),O=E("input",i),I=(0,e.useRef)(null),P=Zd(O),[M,j,R]=zd(O,P),{compactSize:N,compactItemClassnames:F}=Il(O,$),T=Za((e=>{var t;return null!==(t=null!=s?s:N)&&void 0!==t?t:e})),z=t().useContext(Ps),L=null!=c?c:z,{status:B,hasFeedback:D,feedbackIcon:H}=(0,e.useContext)(ud),_=Qd(B,l),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(n)||!!D;(0,e.useRef)(V);const W=tf(I,!0),q=(D||f)&&t().createElement(t().Fragment,null,f,D&&H),G=Ud(null!=p?p:null==k?void 0:k.allowClear),[X,K]=ef(C,a);return M(t().createElement(qd,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(Pl,null,t().createElement(dd,{override:!0,status:!0},m)),addonBefore:g&&t().createElement(Pl,null,t().createElement(dd,{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,j),variant:A()({[`${O}-${X}`]:K},Yd(O,_)),affixWrapper:A()({[`${O}-affix-wrapper-sm`]:"small"===T,[`${O}-affix-wrapper-lg`]:"large"===T,[`${O}-affix-wrapper-rtl`]:"rtl"===$},j),wrapper:A()({[`${O}-group-rtl`]:"rtl"===$},j),groupWrapper:A()({[`${O}-group-wrapper-sm`]:"small"===T,[`${O}-group-wrapper-lg`]:"large"===T,[`${O}-group-wrapper-rtl`]:"rtl"===$,[`${O}-group-wrapper-${X}`]:K},Yd(`${O}-group-wrapper`,_,D),j)})})))})),rf=nf,of={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 af=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:of}))};const lf=e.forwardRef(af),sf={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 cf=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:sf}))};const uf=e.forwardRef(cf);const df=t=>t?e.createElement(uf,null):e.createElement(lf,null),ff={click:"onClick",hover:"onMouseOver"},pf=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=tf(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=e.useContext(Xa),h=g("input",f),v=g("input-password",d),b=r&&(n=>{const{action:r="click",iconRender:o=df}=t,a=ff[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({},rs(m,["suffix","iconRender","visibilityToggle"])),{type:i?"text":"password",className:y,prefixCls:h,suffix:b});return p&&(w.size=p),e.createElement(rf,Object.assign({ref:le(n,l)},w))})),mf=pf,gf={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 hf=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:gf}))};const vf=e.forwardRef(hf);const bf=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=e.useContext(Xa),y=e.useRef(!1),w=v("input-search",r),x=v("input",o),{compactSize:C}=Il(w,b),S=Za((e=>{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(vf,null):null,I=`${w}-button`;let P;const M=s||{},j=M.type&&!0===M.type.__ANT_BUTTON;P=j||"button"===M.type?_a(M,Object.assign({onMouseDown:$,onClick:e=>{var t,n;null===(n=null===(t=null==M?void 0:M.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},j?{className:I,size:S}:{})):e.createElement(Bc,{className:I,type:s?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:$,onClick:k,loading:u,icon:O},s),c&&(P=[P,_a(c,{key:"addonAfter"})]);const R=A()(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!s},i);return e.createElement(rf,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}))})),yf=bf;var wf,xf=["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"],Cf={};var Sf=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ef=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,Sf)),m=X(Lt(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;wf||((wf=document.createElement("textarea")).setAttribute("tab-index","-1"),wf.setAttribute("aria-hidden","true"),document.body.appendChild(wf)),e.getAttribute("wrap")?wf.setAttribute("wrap",e.getAttribute("wrap")):wf.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&&Cf[n])return Cf[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:xf.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Cf[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;wf.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")),wf.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=wf.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){wf.value=" ";var p=wf.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(),M=function(){$n.cancel(P.current)};e.useEffect((function(){return M}),[]);var j=x?k:null,R=H(H({},u),j);return 0!==S&&1!==S||(R.overflowY="hidden",R.overflowX="hidden"),e.createElement(St,{onResize:function(e){2===S&&(null==s||s(e),l&&(M(),P.current=$n((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 $f=Ef;var kf=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Of=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,kf),I=X(Lt(a,{value:l,defaultValue:a}),2),P=I[0],M=I[1],j=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=_d(y,b),J=null!==(o=Z.max)&&void 0!==o?o:f,ee=Number(J)>0,te=Z.strategy(j),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]),M(n),Bd(e.currentTarget,e,u,n)},oe=g;Z.show&&(Q=Z.showFormatter?Z.showFormatter({value:j,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(Dd,{value:j,allowClear:d,handleReset:function(e){M(""),G(),Bd(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($f,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 If=Of;const Pf=(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:y,textArea:w}=e.useContext(Xa),x=Za(l),C=e.useContext(Ps),S=null!=s?s:C,{status:E,hasFeedback:$,feedbackIcon:k}=e.useContext(ud),O=Qd(E,c),I=e.useRef(null);e.useImperativeHandle(n,(()=>{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),M=Zd(P),[j,R,N]=zd(P,M),[F,T]=ef(h,a),z=Ud(null!=u?u:null==w?void 0:w.allowClear);return j(e.createElement(If,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,M,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},Yd(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})))})),Mf=Pf,jf=rf;jf.Group=t=>{const{getPrefixCls:n,direction:r}=(0,e.useContext)(Xa),{prefixCls:o,className:i}=t,a=n("input-group",o),l=n("input"),[s,c]=zd(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)(ud),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(ud.Provider,{value:f},t.children)))},jf.Search=yf,jf.TextArea=Mf,jf.Password=mf;const Rf=jf,{useRef:Nf,useEffect:Af}=wp.element,Ff=t=>{let n=Nf(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)(Rf,{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:Tf,isLeafType:zf}=wpGraphiQL.GraphQL,{useState:Lf}=wp.element,Bf=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)(hh,{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(Tf(l)){const e=l.getFields();s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:{kind:"ObjectValue",fields:M(o,a,i,Object.keys(e).map((t=>e[t])))}}}else zf(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(!(zf(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 Df={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>=Df.F1&&t<=Df.F12)return!1;switch(t){case Df.ALT:case Df.CAPS_LOCK:case Df.CONTEXT_MENU:case Df.CTRL:case Df.DOWN:case Df.END:case Df.ESC:case Df.HOME:case Df.INSERT:case Df.LEFT:case Df.MAC_FF_META:case Df.META:case Df.NUMLOCK:case Df.NUM_CENTER:case Df.PAGE_DOWN:case Df.PAGE_UP:case Df.PAUSE:case Df.PRINT_SCREEN:case Df.RIGHT:case Df.SHIFT:case Df.UP:case Df.WIN_KEY:case Df.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Df.ZERO&&e<=Df.NINE)return!0;if(e>=Df.NUM_ZERO&&e<=Df.NUM_MULTIPLY)return!0;if(e>=Df.A&&e<=Df.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Df.SPACE:case Df.QUESTION_MARK:case Df.NUM_PLUS:case Df.NUM_MINUS:case Df.NUM_PERIOD:case Df.NUM_DIVISION:case Df.SEMICOLON:case Df.DASH:case Df.EQUALS:case Df.COMMA:case Df.PERIOD:case Df.SLASH:case Df.APOSTROPHE:case Df.SINGLE_QUOTE:case Df.OPEN_SQUARE_BRACKET:case Df.BACKSLASH:case Df.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Hf=Df,_f=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 Vf=e.createContext(null);function Wf(){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 qf="".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 Gf(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}:H({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Gf(n,"aria-"))||t.data&&Gf(n,"data-")||t.attr&&qf.includes(n))&&(r[n]=e[n])})),r}var Kf=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Uf=void 0;function Yf(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,Kf),y=l&&!m;function w(e){c(u,e)}e.useEffect((function(){return function(){w(null)}}),[]);var x,C=a&&i!==Uf?a(i):p;o||(x={opacity:y?0:1,height:y?0:Uf,overflowY:y?"hidden":Uf,order:l?g:Uf,pointerEvents:y?"none":Uf,position:y?"absolute":Uf});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(St,{onResize:function(e){w(e.offsetWidth)},disabled:s},E)),E}var Qf=e.forwardRef(Yf);Qf.displayName="Item";const Zf=Qf;function Jf(t,n){var r=X(e.useState(n),2),o=r[0],i=r[1];return[o,kt((function(e){t((function(){i(e)}))}))]}var ep=t().createContext(null),tp=["component"],np=["className"],rp=["className"],op=function(t,n){var r=e.useContext(ep);if(!r){var o=t.component,i=void 0===o?"div":o,a=_(t,tp);return e.createElement(i,T({},a,{ref:n}))}var l=r.className,s=_(r,np),c=t.className,u=_(t,rp);return e.createElement(ep.Provider,{value:null},e.createElement(Zf,T({ref:n,className:A()(l,c)},s,u)))},ip=e.forwardRef(op);ip.displayName="RawItem";const ap=ip;var lp=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sp="responsive",cp="invalidate";function up(e){return"+ ".concat(e.length," ...")}function dp(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,lp),$="full"===p,k=(r=e.useRef(null),function(e){r.current||(r.current=[],function(e){if("undefined"==typeof MessageChannel)$n(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(Jf(k,null),2),I=O[0],P=O[1],M=I||0,j=X(Jf(k,new Map),2),R=j[0],N=j[1],F=X(Jf(k,0),2),z=F[0],L=F[1],B=X(Jf(k,0),2),D=B[0],V=B[1],W=X(Jf(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===sp,se=l.length&&le,ce=h===cp,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,M/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(e<l.length-1),null==S||S(e)),void 0!==t&&Q(t))}function ve(e,t){N((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function be(e){return R.get(pe(de[e],e))}he((function(){if(M&&"number"==typeof ae&&de){var e=q,t=de.length,n=t-1;if(!t)return void ge(0,null);for(var r=0;r<t;r+=1){var o=be(r);if($&&(o=o||0),void 0===o){ge(r-1,void 0,!0);break}if(e+=o,0===n&&e<=M||r===n-1&&e+be(n)<=M){ge(n,null);break}if(e+ae>M){ge(r-1,e-o-q+D);break}}y&&be(0)+q>M&&Q(null)}}),[M,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(ep.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(Zf,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(ep.Provider,{value:H(H({},Ce),Ee)},b(fe)));else{var $e=v||up;xe=e.createElement(Zf,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(Zf,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(St,{onResize:function(e,t){P(t.clientWidth)},disabled:!se},ke)),ke}var fp=e.forwardRef(dp);fp.displayName="Overflow",fp.Item=ap,fp.RESPONSIVE=sp,fp.INVALIDATE=cp;const pp=fp;var mp=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,M=k.onCompositionStart,j=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),M&&M(e)},onCompositionEnd:function(e){w(e),j&&j(e)},onPaste:b}))};const gp=e.forwardRef(mp);function hp(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var vp="undefined"!=typeof window&&window.document&&window.document.documentElement;function bp(e){return["string","number"].includes(z(e))}function yp(e){var t=void 0;return e&&(bp(e.title)?t=e.title.toString():bp(e.label)&&(t=e.label.toString())),t}function xp(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Cp=function(e){e.preventDefault(),e.stopPropagation()};const Sp=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,M=t.onInputMouseDown,j=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],vp?e.useLayoutEffect(n,r):e.useEffect(n,r);var q=function(t,n,r,o,i){return e.createElement("span",{title:yp(t),className:A()("".concat(_,"-item"),B({},"".concat(_,"-item-disabled"),r))},e.createElement("span",{className:"".concat(_,"-item-content")},n),o&&e.createElement(_f,{className:"".concat(_,"-item-remove"),onMouseDown:Cp,onClick:i,customizeIcon:y},"×"))},G=function(t,n,r,o,i,a){return e.createElement("span",{onMouseDown:function(e){Cp(e),$(!l)}},E({label:n,value:t,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},K=e.createElement("div",{className:"".concat(_,"-search"),style:{width:T},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},e.createElement(gp,{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:M,onChange:O,onPaste:I,onCompositionStart:j,onCompositionEnd:R,tabIndex:b,attrs:Xf(t,!0)}),e.createElement("span",{ref:N,className:"".concat(_,"-search-mirror"),"aria-hidden":!0},V," ")),U=e.createElement(pp,{prefixCls:"".concat(_,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!f&&!t,i=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>x&&(i="".concat(a.slice(0,x),"..."))}var l=function(t){t&&t.stopPropagation(),k(e)};return"function"==typeof E?G(r,i,t,o,l):q(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return"function"==typeof E?G(void 0,t,!1,!1,void 0,!0):q({title:t},t,!1)},suffix:K,itemKey:xp,maxCount:w});return e.createElement(e.Fragment,null,U,!a.length&&!V&&e.createElement("span",{className:"".concat(_,"-placeholder")},d))},Ep=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,M=P||g,j=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===$?yp(j):$,F=e.useMemo((function(){return j?null:e.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},p)}),[j,N,p,r]);return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(r,"-selection-search")},e.createElement(gp,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:M,activeDescendantId:c,value:R,onKeyDown:y,onMouseDown:w,onChange:function(e){I(!0),x(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:E,tabIndex:m,attrs:Xf(t,!0),maxLength:P?b:void 0})),!P&&j?e.createElement("span",{className:"".concat(r,"-selection-item"),title:A,style:N?{visibility:"hidden"}:void 0},j.label):null,F)};var $p=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.autoClearSearchValue,f=t.onSearch,p=t.onSearchSubmit,m=t.onToggleOpen,g=t.onInputKeyDown,h=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var v=X(Wf(0),2),b=v[0],y=v[1],w=(0,e.useRef)(null),x=function(e){!1!==f(e,!0,o.current)&&m(!0)},C={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==Hf.UP&&n!==Hf.DOWN||e.preventDefault(),g&&g(e),n!==Hf.ENTER||"tags"!==l||o.current||a||null==p||p(e.target.value),t=n,[Hf.ESC,Hf.SHIFT,Hf.BACKSPACE,Hf.TAB,Hf.WIN_KEY,Hf.ALT,Hf.META,Hf.WIN_KEY_RIGHT,Hf.CTRL,Hf.SEMICOLON,Hf.EQUALS,Hf.CAPS_LOCK,Hf.CONTEXT_MENU,Hf.F1,Hf.F2,Hf.F3,Hf.F4,Hf.F5,Hf.F6,Hf.F7,Hf.F8,Hf.F9,Hf.F10,Hf.F11,Hf.F12].includes(t)||m(!0)},onInputMouseDown:function(){y(!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,x(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&&x(e.target.value)}},S="multiple"===l||"tags"===l?e.createElement(Sp,T({},t,C)):e.createElement(Ep,T({},t,C));return e.createElement("div",{ref:h,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=b();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||s&&t)&&a||(a&&!1!==d&&f("",!0,!1),m())}},S)};const kp=e.forwardRef($p);var Op=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ip=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,Op),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]),M=c;I&&(M=H(H({},M),{},{width:g}));var j=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=j.current)||void 0===e?void 0:e.popupElement}}})),e.createElement(mr,T({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:E,popupTransitionName:O,popup:e.createElement("div",{onMouseEnter:C},$),ref:j,stretch:P,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:A()(u,B({},"".concat(E,"-empty"),y)),popupStyle:M,getTriggerDOMNode:w,onPopupVisibleChange:x}),i)};const Pp=e.forwardRef(Ip);function Mp(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 Rp(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 Np(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 Ap=e.createContext(null);function Fp(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 Tp=["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"],zp=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Lp=function(e){return"tags"===e||"multiple"===e},Bp=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,M=n.autoClearSearchValue,j=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,Tp),ue=Lp(b),de=(void 0!==s?s:ue)||"combobox"===b,pe=H({},ce);zp.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]),Me="combobox"===b&&"function"==typeof x&&x()||null,je="function"==typeof C&&C(),Re=se(ye,null==je||null===(o=je.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(Lt(!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(Ap)||{},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=Bt(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),j&&Pe!==o&&j(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(Wf(),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];je&&(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,!!je);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(_f,{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(_f,{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"),Me),"".concat(a,"-show-search"),de)),ut=e.createElement(Pp,{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(e){return ye.current||e},onPopupVisibleChange:Je,onPopupMouseEnter:function(){et({})}},je?e.cloneElement(je,{ref:Re}):e.createElement(kp,T({},n,{domRef:ye,prefixCls:a,inputElement:Me,ref:xe,id:i,showSearch:de,autoClearSearchValue:M,mode:b,activeDescendantId:I,tagRender:c,values:f,open:Be,onToggleOpen:_e,activeValue:k,searchValue:Pe,onSearch:Xe,onSearchSubmit:function(e){e&&e.trim()&&j(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=je?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<i;l++)a[l-1]=arguments[l];null==le||le.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ue(),r=e.which;if(r===Hf.ENTER&&("combobox"!==b&&e.preventDefault(),Be||_e(!0)),Ye(!!Pe),r===Hf.BACKSPACE&&!n&&ue&&!Pe&&f.length){for(var o=fe(f),i=null,a=o.length-1;a>=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;u<s;u++)c[u-1]=arguments[u];Be&&(null===(t=Ce.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c))),null==ae||ae.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Be&&(null===(o=Ce.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),null==ie||ie.apply(void 0,[e].concat(n))},onFocus:function(){Oe(!0),y||(re&&!Qe.current&&re.apply(void 0,arguments),ne.includes("focus")&&_e(!0)),Qe.current=!0},onBlur:function(){Se.current=!0,Oe(!1,(function(){Qe.current=!1,Se.current=!1,_e(!1)})),y||(Pe&&("tags"===b?j(Pe,{source:"submit"}):"multiple"===b&&j("",{source:"blur"})),oe&&oe.apply(void 0,arguments))}}),e.createElement(Fp,{visible:ke&&!Be,values:f}),ut,tt,at&&lt),e.createElement(Vf.Provider,{value:nt},ot)}));const Dp=Bp;var Hp=function(){return null};Hp.isSelectOptGroup=!0;const _p=Hp;var Vp=function(){return null};Vp.isSelectOption=!0;const Wp=Vp;var qp=e.forwardRef((function(t,n){var r=t.height,o=t.offsetY,i=t.offsetX,a=t.children,l=t.prefixCls,s=t.onInnerResize,c=t.innerProps,u=t.rtl,d=t.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=H(H({},p),{},B(B(B(B(B({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:f},e.createElement(St,{onResize:function(e){e.offsetHeight&&s&&s()}},e.createElement("div",T({style:p,className:A()(B({},"".concat(l,"-holder-inner"),l)),ref:n},c),a,d)))}));qp.displayName="Filler";const Gp=qp;function Xp(t){var n=t.children,r=t.setRef,o=e.useCallback((function(e){r(e)}),[]);return e.cloneElement(n,{ref:o})}const Kp="object"===("undefined"==typeof navigator?"undefined":z(navigator))&&/Firefox/i.test(navigator.userAgent),Up=function(t,n,r,o){var i=(0,e.useRef)(!1),a=(0,e.useRef)(null),l=(0,e.useRef)({top:t,bottom:n,left:r,right:o});return l.current.top=t,l.current.bottom=n,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&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 Yp=function(){function e(){st(this,e),B(this,"maps",void 0),B(this,"id",0),this.maps=Object.create(null)}return ut(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();function Qp(e){var t=parseFloat(e);return isNaN(t)?0:t}var Zp=14/15;function Jp(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var em=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=X(e.useState(!1),2),h=g[0],v=g[1],b=X(e.useState(null),2),y=b[0],w=b[1],x=X(e.useState(null),2),C=x[0],S=x[1],E=!o,$=e.useRef(),k=e.useRef(),O=X(e.useState(!1),2),I=O[0],P=O[1],M=e.useRef(),j=function(){clearTimeout(M.current),P(!0),M.current=setTimeout((function(){P(!1)}),3e3)},R=a-f||0,N=f-d||0,F=e.useMemo((function(){return 0===i||0===R?0:i/R*N}),[i,R,N]),T=e.useRef({top:F,dragging:h,pageY:y,startTop:C});T.current={top:F,dragging:h,pageY:y,startTop:C};var z=function(e){v(!0),w(Jp(e,u)),S(T.current.top),l(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=$.current,n=k.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",z,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",z)}}),[]);var L=e.useRef();L.current=R;var D=e.useRef();D.current=N,e.useEffect((function(){if(h){var e,t=function(t){var n=T.current,r=n.dragging,o=n.pageY,i=n.startTop;$n.cancel(e);var a=$.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var s=(Jp(t,u)-o)*l,d=i;!E&&u?d-=s:d+=s;var p=L.current,m=D.current,g=m?d/m:0,h=Math.ceil(g*p);h=Math.max(h,0),h=Math.min(h,p),e=$n((function(){c(h,u)}))}},n=function(){v(!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),$n.cancel(e)}}}),[h]),e.useEffect((function(){return j(),function(){clearTimeout(M.current)}}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:j}}));var _="".concat(r,"-scrollbar"),V={position:"absolute",visibility:I?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(V.height=8,V.left=0,V.right=0,V.bottom=0,W.height="100%",W.width=d,E?W.left=F:W.right=F):(V.width=8,V.top=0,V.bottom=0,E?V.right=0:V.left=0,W.width="100%",W.height=d,W.top=F),e.createElement("div",{ref:$,className:A()(_,B(B(B({},"".concat(_,"-horizontal"),u),"".concat(_,"-vertical"),!u),"".concat(_,"-visible"),I)),style:H(H({},V),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:j},e.createElement("div",{ref:k,className:A()("".concat(_,"-thumb"),B({},"".concat(_,"-thumb-moving"),h)),style:H(H({},W),m),onMouseDown:z}))}));const tm=em;function nm(){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 rm=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],om=[],im={overflowY:"auto",overflowAnchor:"none"};function am(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,rm),k=e.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),O=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 Yp),l=(0,e.useRef)();function s(){$n.cancel(l.current)}function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){i.current.forEach((function(e,t){if(e&&e.offsetParent){var n=ze(e),r=n.offsetHeight,o=getComputedStyle(n),i=o.marginTop,l=o.marginBottom,s=r+Qp(i)+Qp(l);a.current.get(t)!==s&&a.current.set(t,s)}})),o((function(e){return e+1}))};e?t():l.current=$n(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]}(k),I=X(O,4),P=I[0],M=I[1],j=I[2],R=I[3],N=!(!1===m||!a||!l),F=e.useMemo((function(){return Object.values(j.maps).reduce((function(e,t){return e+t}),0)}),[j.id,j.maps]),L=N&&d&&(Math.max(l*d.length,F)>a||!!h),D="rtl"===g,V=A()(o,B({},"".concat(o,"-rtl"),D),i),W=d||om,q=(0,e.useRef)(),G=(0,e.useRef)(),U=(0,e.useRef)(),Y=X((0,e.useState)(0),2),Q=Y[0],Z=Y[1],J=X((0,e.useState)(0),2),ee=J[0],te=J[1],ne=X((0,e.useState)(!1),2),re=ne[0],oe=ne[1],ie=function(){oe(!0)},ae=function(){oe(!1)},le={getKey:k};function se(e){Z((function(t){var n=function(e){var t=e;return Number.isNaN(ke.current)||(t=Math.min(t,ke.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return q.current.scrollTop=n,n}))}var ce=(0,e.useRef)({start:0,end:W.length}),ue=(0,e.useRef)(),de=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<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],t||[],n);void 0!==(null==e?void 0:e.index)&&(null==r||r(e.index),c(t[e.index])),a(t)}),[t]),[s]}(W,k),1)[0];ue.current=de;var fe=e.useMemo((function(){if(!N)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};var e;if(!L)return{scrollHeight:(null===(e=G.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:W.length-1,offset:void 0};for(var t,n,r,o=0,i=W.length,s=0;s<i;s+=1){var c=W[s],u=k(c),d=j.get(u),f=o+(void 0===d?l:d);f>=Q&&void 0===t&&(t=s,n=o),f>Q+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=W.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,W.length-1),offset:n}}),[L,N,Q,W,R,a]),pe=fe.scrollHeight,me=fe.start,ge=fe.end,ve=fe.offset;ce.current.start=me,ce.current.end=ge;var be=X(e.useState({width:0,height:a}),2),ye=be[0],we=be[1],xe=(0,e.useRef)(),Ce=(0,e.useRef)(),Se=e.useMemo((function(){return nm(ye.width,h)}),[ye.width,h]),Ee=e.useMemo((function(){return nm(ye.height,pe)}),[ye.height,pe]),$e=pe-a,ke=(0,e.useRef)($e);ke.current=$e;var Oe=Q<=0,Ie=Q>=$e,Pe=ee<=0,Me=ee>=h,je=Up(Oe,Ie,Pe,Me),Re=function(){return{x:D?-ee:ee,y:Q}},Ne=(0,e.useRef)(Re()),Ae=kt((function(e){if(w){var t=H(H({},Re()),e);Ne.current.x===t.x&&Ne.current.y===t.y||(w(t),Ne.current=t)}}));function Fe(e,t){var n=e;t?((0,K.flushSync)((function(){te(n)})),Ae()):se(n)}var Te=function(e){var t=e,n=h?h-ye.width:0;return t=Math.max(t,0),Math.min(t,n)},Le=kt((function(e,t){t?((0,K.flushSync)((function(){te((function(t){return Te(t+(D?-e:e))}))})),Ae()):se((function(t){return t+e}))})),Be=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=Up(n,r,o,i),p=(0,e.useRef)(null),m=(0,e.useRef)(null);return[function(e){if(t){$n.cancel(m.current),m.current=$n((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 h=Math.abs(i),v=Math.abs(g);null===p.current&&(p.current=a&&h>v?"x":"y"),"y"===p.current?function(e,t){if($n.cancel(c.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,Kp||n.preventDefault(),c.current=$n((function(){var e=d.current?10:1;l(s.current*e,!1),s.current=0})))}}(e,g):function(e,t){l(t,!0),Kp||e.preventDefault()}(e,i)}},function(e){t&&(d.current=e.detail===u.current)}]}(N,Oe,Ie,Pe,Me,!!h,Le),2),De=Be[0],He=Be[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*=Zp:s*=Zp;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))},he((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])}(N,q,(function(e,t,n,r){var o=r;return!(je(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),he((function(){function e(e){var t=Oe&&e.detail<0,n=Ie&&e.detail>0;!N||t||n||e.preventDefault()}var t=q.current;return t.addEventListener("wheel",De,{passive:!1}),t.addEventListener("DOMMouseScroll",He,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",He),t.removeEventListener("MozMousePixelScroll",e)}}),[N,Oe,Ie]),he((function(){if(h){var e=Te(ee);te(e),Ae({x:e})}}),[ye.width,h]);var _e=function(){var e,t;null===(e=xe.current)||void 0===e||e.delayHidden(),null===(t=Ce.current)||void 0===t||t.delayHidden()},Ve=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;y<P?g="top":w>P+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($n.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()}}(q,W,j,l,k,(function(){return M(!0)}),se,_e);e.useImperativeHandle(n,(function(){return{nativeElement:U.current,getScrollInfo:Re,scrollTo:function(e){var t;(t=e)&&"object"===z(t)&&("left"in t||"top"in t)?(void 0!==e.left&&te(Te(e.left)),Ve(e.top)):Ve(e)}}})),he((function(){if(x){var e=W.slice(me,ge+1);x(e,W)}}),[me,ge,W]);var We=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;d<u;d+=1){var f,p=t[d],m=n(p);a.set(m,d);var g=null!==(f=r.get(m))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+g,m===e&&(s=d),m===i&&(c=d),void 0!==s&&void 0!==c)break}return{top:l[s-1]||0,bottom:l[c]}}}(W,k,j,l),qe=null==S?void 0:S({start:me,end:ge,virtual:L,offsetX:ee,offsetY:ve,rtl:D,getSize:We}),Ge=function(t,n,r,o,i,a,l,s){var c=s.getKey;return t.slice(n,r+1).map((function(t,r){var s=l(t,n+r,{style:{width:o},offsetX:i}),u=c(t);return e.createElement(Xp,{key:u,setRef:function(e){return a(t,e)}},s)}))}(W,me,ge,h,ee,P,f,le),Xe=null;a&&(Xe=H(B({},c?"height":"maxHeight",a),im),N&&(Xe.overflowY="hidden",h&&(Xe.overflowX="hidden"),re&&(Xe.pointerEvents="none")));var Ke={};return D&&(Ke.dir="rtl"),e.createElement("div",T({ref:U,style:H(H({},u),{},{position:"relative"}),className:V},Ke,$),e.createElement(St,{onResize:function(e){we({width:e.offsetWidth,height:e.offsetHeight})}},e.createElement(b,{className:"".concat(o,"-holder"),style:Xe,ref:q,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Q&&se(t),null==y||y(e),Ae()},onMouseEnter:_e},e.createElement(Gp,{prefixCls:o,height:pe,offsetX:ee,offsetY:ve,scrollWidth:h,onInnerResize:M,ref:G,innerProps:C,rtl:D,extra:qe},Ge))),L&&pe>a&&e.createElement(tm,{ref:xe,prefixCls:o,scrollOffset:Q,scrollRange:pe,rtl:D,onScroll:Fe,onStartMove:ie,onStopMove:ae,spinSize:Ee,containerSize:ye.height,style:null==E?void 0:E.verticalScrollBar,thumbStyle:null==E?void 0:E.verticalScrollBarThumb}),L&&h>ye.width&&e.createElement(tm,{ref:Ce,prefixCls:o,scrollOffset:ee,scrollRange:h,rtl:D,onScroll:Fe,onStartMove:ie,onStopMove:ae,spinSize:Se,containerSize:ye.width,horizontal:!0,style:null==E?void 0:E.horizontalScrollBar,thumbStyle:null==E?void 0:E.horizontalScrollBarThumb}))}var lm=e.forwardRef(am);lm.displayName="List";const sm=lm;var cm=["disabled","title","children","style","className"];function um(e){return"string"==typeof e||"number"==typeof e}var dm=function(t,n){var r=e.useContext(Vf),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(Ap),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),M=e.useMemo((function(){return l&&jp(m)&&(null==w?void 0:w.size)>=m}),[l,m,null==w?void 0:w.size]),j=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;r<n;r+=1){var o=(e+r*t+n)%n,i=I[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||M))return o}return-1},F=X(e.useState((function(){return N(0)})),2),z=F[0],L=F[1],D=function(e){var t=arguments.length>1&&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 Hf.N:case Hf.P:case Hf.UP:case Hf.DOWN:var r=0;if(t===Hf.UP?r=-1:t===Hf.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Hf.N?r=1:t===Hf.P&&(r=-1)),0!==r){var o=N(z+r,r);R(o),D(o,!0)}break;case Hf.ENTER:var i,l=I[z];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||M?V(void 0):V(l.value),a&&e.preventDefault();break;case Hf.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:j},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=Xf(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(sm,{itemKey:"key",ref:P,data:I,height:E,itemHeight:$,fullHeight:!1,onMouseDown:j,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:um(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=rs(_(i,cm),W),h=H(l),v=d||!h&&M,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,$=um(E)?E.toString():void 0;return void 0!==f&&($=f),e.createElement("div",T({},Xf(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(_f,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:v,isSelected:h}},h?"✓":null))})))};const fm=e.forwardRef(dm);function pm(e,t){return hp(e).join("").toUpperCase().includes(t)}var mm=0,gm=Y();var hm=["children","value"],vm=["children"];function bm(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Fe(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,vm);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,hm))}(t):H(H({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},c),{},{options:bm(s)})})).filter((function(e){return e}))}const ym=function(t,n,r,o,i){return e.useMemo((function(){var e=t;!t&&(e=bm(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;c<t.length;c+=1){var u=t[c];!u[r.options]||n?(a.set(u[r.value],u),s(l,u,r.label),s(l,u,o),s(l,u,i)):e(u[r.options],!0)}}(e),{options:e,valueOptions:a,labelOptions:l}}),[t,n,r,o,i])};function wm(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var xm=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Cm=["inputValue"],Sm=e.forwardRef((function(t,n){var r=t.id,o=t.mode,i=t.prefixCls,a=void 0===i?"rc-select":i,l=t.backfill,s=t.fieldNames,c=t.inputValue,u=t.searchValue,d=t.onSearch,f=t.autoClearSearchValue,p=void 0===f||f,m=t.onSelect,g=t.onDeselect,h=t.dropdownMatchSelectWidth,v=void 0===h||h,b=t.filterOption,y=t.filterSort,w=t.optionFilterProp,x=t.optionLabelProp,C=t.options,S=t.optionRender,E=t.children,$=t.defaultActiveFirstOption,k=t.menuItemSelectedIcon,O=t.virtual,I=t.direction,P=t.listHeight,M=void 0===P?200:P,j=t.listItemHeight,R=void 0===j?20:j,N=t.labelRender,A=t.value,F=t.defaultValue,L=t.labelInValue,D=t.onChange,V=t.maxCount,W=_(t,xm),q=function(t){var n=X(e.useState(),2),r=n[0],o=n[1];return e.useEffect((function(){var e;o("rc_select_".concat((gm?(e=mm,mm+=1):e="TEST_OR_SSR",e)))}),[]),t||r}(r),G=Lp(o),K=!(C||!E),U=e.useMemo((function(){return(void 0!==b||"combobox"!==o)&&b}),[b,o]),Y=e.useMemo((function(){return Rp(s,K)}),[JSON.stringify(s),K]),Q=X(Lt("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),Z=Q[0],J=Q[1],ee=ym(C,E,Y,w,x),te=ee.valueOptions,ne=ee.labelOptions,re=ee.options,oe=e.useCallback((function(e){return hp(e).map((function(e){var t,n,r,o,i,a;!function(e){return!e||"object"!==z(e)}(e)?(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r):t=e;var l,s=te.get(t);return s&&(void 0===n&&(n=null==s?void 0:s[x||Y.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title),{label:n,value:t,key:r,disabled:o,title:i}}))}),[Y,x,te]),ie=X(Lt(F,{value:A}),2),ae=ie[0],le=ie[1],se=e.useMemo((function(){var e,t=oe(G&&null===ae?[]:ae);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ae,oe,o,G]),ce=function(t,n){var r=e.useRef({values:new Map,options:new Map});return[e.useMemo((function(){var e=r.current,o=e.values,i=e.options,a=t.map((function(e){var t;return void 0===e.label?H(H({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,s=new Map;return a.forEach((function(e){l.set(e.value,e),s.set(e.value,n.get(e.value)||i.get(e.value))})),r.current.values=l,r.current.options=s,a}),[t,n]),e.useCallback((function(e){return n.get(e)||r.current.options.get(e)}),[n])]}(se,te),ue=X(ce,2),de=ue[0],pe=ue[1],me=e.useMemo((function(){if(!o&&1===de.length){var e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map((function(e){var t;return H(H({},e),{},{label:null!==(t="function"==typeof N?N(e):e.label)&&void 0!==t?t:e.value})}))}),[o,de,N]),ge=e.useMemo((function(){return new Set(de.map((function(e){return e.value})))}),[de]);e.useEffect((function(){if("combobox"===o){var e,t=null===(e=de[0])||void 0===e?void 0:e.value;J(function(e){return null!=e}(t)?String(t):"")}}),[de]);var he=wm((function(e,t){var n=null!=t?t:e;return B(B({},Y.value,e),Y.label,n)})),ve=e.useMemo((function(){if("tags"!==o)return re;var e=fe(re);return fe(de).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return te.has(e)})(n)||e.push(he(n,t.label))})),e}),[he,re,te,de,o]),be=function(t,n,r,o,i){return e.useMemo((function(){if(!r||!1===o)return t;var e=n.options,a=n.label,l=n.value,s=[],c="function"==typeof o,u=r.toUpperCase(),d=c?o:function(t,n){return i?pm(n[i],u):n[e]?pm(n["children"!==a?a:"label"],u):pm(n[l],u)},f=c?function(e){return Np(e)}:function(e){return e};return t.forEach((function(t){if(t[e])if(d(r,f(t)))s.push(t);else{var n=t[e].filter((function(e){return d(r,f(e))}));n.length&&s.push(H(H({},t),{},B({},e,n)))}else d(r,f(t))&&s.push(t)})),s}),[t,o,i,r,n])}(ve,Y,Z,U,w),ye=e.useMemo((function(){return"tags"!==o||!Z||be.some((function(e){return e[w||"value"]===Z}))||be.some((function(e){return e[Y.value]===Z}))?be:[he(Z)].concat(fe(be))}),[he,w,o,be,Z,Y]),we=e.useMemo((function(){return y?fe(ye).sort((function(e,t){return y(e,t)})):ye}),[ye,y]),xe=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=Rp(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:Mp(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:Mp(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 Np(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,Me=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]),je=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,Np(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=wm((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),je(e,r),"combobox"===o?$e(""):Lp&&!p||(J(""),$e(""))})),Ne=e.useMemo((function(){var e=!1!==O&&!1!==v;return H(H({},ee),{},{flattenOptions:xe,onActiveValue:Me,defaultActiveFirstOption:Pe,onSelect:Re,menuItemSelectedIcon:k,rawValues:ge,fieldNames:Y,virtual:e,direction:I,listHeight:M,listItemHeight:R,childrenAsData:K,maxCount:V,optionRender:S})}),[V,ee,xe,Me,Pe,Re,k,ge,Y,O,v,I,M,R,K,S]);return e.createElement(Ap.Provider,{value:Ne},e.createElement(Dp,T({},W,{id:q,prefixCls:a,ref:n,omitDomProps:Cm,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){je(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),je(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){je(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:fm,emptyOptions:!xe.length,activeValue:Ee,activeDescendantId:"".concat(q,"_list_").concat(Oe)})))})),Em=Sm;Em.Option=Wp,Em.OptGroup=_p;const $m=Em,km=(0,e.createContext)(void 0),Om={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Im={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({},Om)},Pm="${label} is not a valid ${type}",Mm={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:Im,TimePicker:Om,Calendar:Im,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:Pm,method:Pm,array:Pm,object:Pm,number:Pm,date:Pm,boolean:Pm,integer:Pm,float:Pm,regexp:Pm,email:Pm,url:Pm,hex:Pm},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 jm=Object.assign({},Mm.Modal),Rm=[];const Nm=()=>Rm.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Mm.Modal),Am=(0,e.createContext)(void 0),Fm=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Rm.push(t),jm=Nm(),()=>{Rm=Rm.filter((e=>e!==t)),jm=Nm()}}jm=Object.assign({},Mm.Modal)}(n&&n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Am.Provider,{value:i},r)},Tm=`-ant-${Date.now()}-${Math.random()}`;const zm=Object.assign({},e),{useId:Lm}=zm,Bm=void 0===Lm?()=>"":Lm;function Dm(t){const{children:n}=t,[,r]=wa(),{motion:o}=r,i=e.useRef(!1);return i.current=i.current||!1===o,i.current?e.createElement(Nt,{motion:o},n):n}const Hm=()=>null;const _m=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vm,Wm,qm,Gm;function Xm(){return Vm||"ant"}function Km(){return Wm||Ga}const Um=()=>({getPrefixCls:(e,t)=>t||(e?`${Xm()}-${e}`:Xm()),getIconPrefixCls:Km,getRootPrefixCls:()=>Vm||Xm(),getTheme:()=>qm,holderRender:Gm}),Ym=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:M,divider:j,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||Ga,Ce=r||v.csp;hl(xe,Ce);const Se=function(e,t,n){var r;qa();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},ua),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:ua.hashed,cssVar:null==t?void 0:t.cssVar}),a=Bm();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!Sr(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:M,divider:j,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])})),_m.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(Hm,{dropdownMatchSelectWidth:p}),n);const Pe=e.useMemo((()=>{var e,t,n,r;return qt((null===(e=Mm.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(km.Provider,{value:Pe},Ie)),s&&(Ie=e.createElement(Fm,{locale:s,_ANT_MARK__:"internalMark"},Ie)),(xe||Ce)&&(Ie=e.createElement(Bs.Provider,{value:Oe},Ie)),c&&(Ie=e.createElement(Ya,{size:c},Ie)),Ie=e.createElement(Dm,null,Ie);const Me=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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Tr(t):ca,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=Tr(r.algorithm)),delete r.algorithm),l[t]=r}));const s=Object.assign(Object.assign({},na),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(da.Provider,{value:Me},Ie)),ke.warning&&(Ie=e.createElement(Wa.Provider,{value:ke.warning},Ie)),void 0!==w&&(Ie=e.createElement(Is,{disabled:w},Ie)),e.createElement(Xa.Provider,{value:ke},Ie)},Qm=t=>{const n=e.useContext(Xa),r=e.useContext(Am);return e.createElement(Ym,Object.assign({parentContext:n,legacyLocale:r},t))};Qm.ConfigContext=Xa,Qm.SizeContext=Qa,Qm.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Vm=t),void 0!==n&&(Wm=n),"holderRender"in e&&(Gm=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 ra(e),i=Ii(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 ra(t.primaryColor),i=Ii(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 ra(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()&&Oe(n,`${Tm}-dynamic-theme`)}(Xm(),r):qm=r)},Qm.useConfig=function(){return{componentDisabled:(0,e.useContext)(Ps),componentSize:(0,e.useContext)(Qa)}},Object.defineProperty(Qm,"SizeContext",{get:()=>Qa});const Zm=Qm,Jm=(t,n,r,o)=>function(t){return n=>e.createElement(Zm,{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]=Lt(!1,{value:i.open}),{getPrefixCls:g}=e.useContext(Xa),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)))})),eg=(t,n)=>{const r=e.useContext(Am);return[e.useMemo((()=>{var e;const o=n||Mm[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?Mm.locale:e}),[r])]},tg=()=>{const[,t]=wa(),n=new ra(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"}))))},ng=()=>{const[,t]=wa(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=t,{borderColor:a,shadowColor:l,contentColor:s}=(0,e.useMemo)((()=>({borderColor:new ra(n).onBackground(i).toHexShortString(),shadowColor:new ra(r).onBackground(i).toHexShortString(),contentColor:new ra(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}))))},rg=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}}}}},og=xl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=pl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[rg(o)]}));const ig=e.createElement(tg,null),ag=e.createElement(ng,null),lg=t=>{var{className:n,rootClassName:r,prefixCls:o,image:i=ig,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=e.useContext(Xa),m=d("empty",o),[g,h,v]=og(m),[b]=eg("Empty"),y=void 0!==a?a:null==b?void 0:b.description,w="string"==typeof y?y:"empty";let x=null;return x="string"==typeof i?e.createElement("img",{alt:w,src:i}):i,g(e.createElement("div",Object.assign({className:A()(h,v,m,null==p?void 0:p.className,{[`${m}-normal`]:i===ag,[`${m}-rtl`]:"rtl"===f},n,r),style:Object.assign(Object.assign({},null==p?void 0:p.style),c)},u),e.createElement("div",{className:`${m}-image`,style:s},x),y&&e.createElement("div",{className:`${m}-description`},y),l&&e.createElement("div",{className:`${m}-footer`},l)))};lg.PRESENTED_IMAGE_DEFAULT=ig,lg.PRESENTED_IMAGE_SIMPLE=ag;const sg=lg,cg=n=>{const{componentName:r}=n,{getPrefixCls:o}=(0,e.useContext)(Xa),i=o("empty");switch(r){case"Table":case"List":return t().createElement(sg,{image:sg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t().createElement(sg,{image:sg.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});default:return t().createElement(sg,null)}},ug=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)},dg=new ni("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),fg=new ni("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),pg=new ni("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),mg=new ni("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gg=new ni("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),hg=new ni("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),vg=new ni("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),bg=new ni("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),yg={"slide-up":{inKeyframes:dg,outKeyframes:fg},"slide-down":{inKeyframes:pg,outKeyframes:mg},"slide-left":{inKeyframes:gg,outKeyframes:hg},"slide-right":{inKeyframes:vg,outKeyframes:bg}},wg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=yg[t];return[Nl(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}}]},xg=new ni("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Cg=new ni("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Sg=new ni("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Eg=new ni("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$g=new ni("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 ni("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Og={"move-up":{inKeyframes:new ni("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 ni("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:xg,outKeyframes:Cg},"move-left":{inKeyframes:Sg,outKeyframes:Eg},"move-right":{inKeyframes:$g,outKeyframes:kg}},Ig=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Og[t];return[Nl(r,o,i,e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pg=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"}},Mg=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({},el(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:dg},[`\n          ${o}${l}topLeft,\n          ${i}${l}topLeft,\n          ${o}${l}topRight,\n          ${i}${l}topRight\n        `]:{animationName:pg},[`${a}${l}bottomLeft`]:{animationName:fg},[`\n          ${a}${l}topLeft,\n          ${a}${l}topRight\n        `]:{animationName:mg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Pg(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"},Ja),"&-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({},Pg(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},wg(e,"slide-up"),wg(e,"slide-down"),Ig(e,"move-up"),Ig(e,"move-down")]},jg=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c}=e,u=`${t}-selection-overflow`;return{[u]:{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}})}}}},Rg=(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:Vr(t),itemLineHeight:Vr(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},jg(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:`${Vr(2)} 0`,lineHeight:Vr(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Vr(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:Vr(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 Ng(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[Rg(e,t),o]}const Ag=e=>{const{componentCls:t}=e,n=pl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ng(e),Ng(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ng(r,"lg")]};function Fg(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({},el(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:Vr(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 ${Vr(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Vr(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 ${Vr(r)}`,"&:after":{display:"none"}}}}}}}function Tg(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Fg(e),Fg(pl(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 ${Vr(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()}}}},Fg(pl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const zg=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Vr(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 ${Vr(o)} ${t.activeShadowColor}`,outline:0}}}},Lg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zg(e,t))}),Bg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},zg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Lg(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Lg(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:`${Vr(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Dg=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Vr(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}}}},Hg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Dg(e,t))}),_g=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Dg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Hg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Hg(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:`${Vr(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Vg=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:`${Vr(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),Wg=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Bg(e)),_g(e)),Vg(e))}),qg=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"}}}},Gg=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"}}}},Xg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},el(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},qg(e)),Gg(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ja),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ja),{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()}}}},Kg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Xg(e),Tg(e),Ag(e),Mg(e),{[`${t}-rtl`]:{direction:"rtl"}},Rc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Ug=xl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=pl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Kg(r),Wg(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}}),Yg={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 Qg=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:Yg}))};const Zg=e.forwardRef(Qg),Jg={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 eh=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:Jg}))};const th=e.forwardRef(eh),nh={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 rh=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:nh}))};const oh=e.forwardRef(rh);const ih="SECRET_COMBOBOX_MODE_DO_NOT_USE",ah=(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:j,renderEmpty:R,direction:N,virtual:F,popupMatchSelectWidth:T,popupOverflow:z,select:L}=e.useContext(Xa),[,B]=wa(),D=null!=p?p:null==B?void 0:B.controlHeight,H=j("select",o),_=j(),V=null!=x?x:N,{compactSize:W,compactItemClassnames:q}=Il(H,V),[G,X]=ef(E,i),K=Zd(H),[U,Y,Q]=Ug(H,K),Z=e.useMemo((()=>{const{mode:e}=t;if("combobox"!==e)return e===ih?"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(ud),ae=Qd(ne,v);let le;le=void 0!==h?h:"combobox"===Z?null:(null==R?void 0:R("Select"))||e.createElement(cg,{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(Kd,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(ec,{spin:!0}));else{const t=`${c}-suffix`;h=n=>{let{open:r,showSearch:o}=n;return g(r&&o?e.createElement(vf,{className:t}):e.createElement(oh,{className:t}))}}let v=null;v=void 0!==o?o:l?e.createElement(Zg,null):null;let b=null;return b=void 0!==i?i:e.createElement(th,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=rs(P,["suffixIcon","itemIcon"]),me=A()(c||u,{[`${H}-dropdown-${V}`]:"rtl"===V},l,Q,K,Y),ge=Za((e=>{var t;return null!==(t=null!=m?m:W)&&void 0!==t?t:e})),he=e.useContext(Ps),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},Yd(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]=$a("SelectLike",null==$?void 0:$.zIndex);return U(e.createElement($m,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:Ma(_,"slide-up",k),builtinPlacements:ug(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||M,dropdownClassName:me,disabled:ve,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:we}),maxCount:J?I:void 0,tagRender:J?O:void 0})))},lh=e.forwardRef(ah),sh=Jm(lh);lh.SECRET_COMBOBOX_MODE_DO_NOT_USE=ih,lh.Option=Wp,lh.OptGroup=_p,lh._InternalPanelDoNotUseOrYouWillBeFired=sh;const ch=lh,{isEnumType:uh,isInputObjectType:dh,isScalarType:fh,parseType:ph,visit:mh}=wpGraphiQL.GraphQL,{useState:gh}=wp.element,hh=t=>{const[n,r]=gh(!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(fh(s))c="Boolean"===s.name?(0,e.createElement)(ch,{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)(ch.Option,{key:"true",value:"true"},"true"),(0,e.createElement)(ch.Option,{key:"false",value:"false"},"false")):(0,e.createElement)(Ff,{setArgValue:t.setArgValue,arg:a,argValue:i,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig});else if(uh(s))"EnumValue"===i.kind?c=(0,e.createElement)(ch,{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)(ch.Option,{key:n,value:t.name},t.name)))):console.error("arg mismatch between arg and selection",s,i);else if(dh(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)(Bf,{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)(ns,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:u?"Remove the variable":"Extract the current value into a GraphQL variable"},(0,e.createElement)(Bc,{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;mh(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:ph(o),directives:[]};let s,c={};if(null!=i){const e=mh(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)}},dh(s)?(0,e.createElement)("span",null,i?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):(0,e.createElement)(Dc,{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:vh,isLeafType:bh}=wpGraphiQL.GraphQL,yh=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)(hh,{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(vh(s)){const e=s.getFields();c={kind:"Argument",name:{kind:"Name",value:l.name},value:{kind:"ObjectValue",fields:M(o,i,a,Object.keys(e).map((t=>e[t])))}}}else bh(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(!(bh(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})},wh={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 xh=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:wh}))};const Ch=e.forwardRef(xh),Sh=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)(Dc,{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)(ns,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Edit the ${t.fragment.name.value} Fragment`},(0,e.createElement)(Bc,{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)(Ch,null)}))))},Eh=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)(Dc,{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)(Ah,{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)},$h={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 kh=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:$h}))};const Oh=e.forwardRef(kh),{getNamedType:Ih,isInterfaceType:Ph,isObjectType:Mh,isUnionType:jh}=wpGraphiQL.GraphQL,{useState:Rh}=wp.element,Nh=t=>{const[n,r]=Rh(!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=Mh(p)||Ph(p)||jh(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=Ih(t.field.type),r=Mh(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:j(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:j(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field)}];t.modifySelections(e)})()}},onMouseEnter:()=>{Mh(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter((e=>"FragmentSpread"!==e.kind)).length>0&&r(!0)},onMouseLeave:()=>r(!1)},Mh(p)?(0,e.createElement)("span",null,f?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):null,Mh(p)?null:(0,e.createElement)(Dc,{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)(ns,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:"Extract selections into a new reusable fragment"},(0,e.createElement)(Bc,{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)(Oh,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)(yh,{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)(Sh,{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)(Nh,{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}))),Ph(p)||jh(p)?c.getPossibleTypes(p).map((n=>(0,e.createElement)(Eh,{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(jh(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)(Eh,{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},Ah=Nh;var Fh=n(2833),Th=n.n(Fh);const zh=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="";T<D;){if(m=s.charCodeAt(T),T===H&&0!==S+$+E+C&&(0!==S&&(m=47===S?10:47),$=E=C=0,D++,H++),0===S+$+E+C){if(T===H&&(0<z&&(_=_.replace(d,"")),0<_.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:_+=s.charAt(T)}m=59}switch(m){case 123:for(p=(_=_.trim()).charCodeAt(0),g=1,B=++T;T<D;){switch(m=s.charCodeAt(T)){case 123:g++;break;case 125:g--;break;case 47:switch(m=s.charCodeAt(T+1)){case 42:case 47:e:{for(A=T+1;A<H;++A)switch(s.charCodeAt(A)){case 47:if(42===m&&42===s.charCodeAt(A-1)&&T+2!==A){T=A+1;break e}break;case 10:if(47===m){T=A+1;break e}}T=A}}break;case 91:m++;case 40:m++;case 34:case 39:for(;T++<H&&s.charCodeAt(T)!==m;);}if(0===g)break;T++}if(g=s.substring(B,T),0===p&&(p=(_=_.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<z&&(_=_.replace(d,"")),m=_.charCodeAt(1)){case 100:case 109:case 115:case 45:z=r;break;default:z=j}if(B=(g=t(r,z,g,m,f+1)).length,0<N&&(w=l(3,g,z=n(j,_,L),r,I,O,B,m,f,c),_=z.join(""),void 0!==w&&0===(B=(g=w.trim()).length)&&(m=0,g="")),0<B)switch(m){case 115:_=_.replace(x,a);case 100:case 109:case 45:g=_+"{"+g+"}";break;case 107:g=(_=_.replace(v,"$1 $2"))+"{"+g+"}",g=1===M||2===M&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=_+g,112===c&&(V+=g,g="")}else g=""}else g=t(r,n(r,_,L),g,c,f+1);W+=g,g=L=z=A=p=0,_="",m=s.charCodeAt(++T);break;case 125:case 59:if(1<(B=(_=(0<z?_.replace(d,""):_).trim()).length))switch(0===A&&(p=_.charCodeAt(0),45===p||96<p&&123>p)&&(B=(_=_.replace(" ",":")).length),0<N&&void 0!==(w=l(1,_,r,e,I,O,V.length,c,f,c))&&0===(B=(_=w.trim()).length)&&(_="\0\0"),p=_.charCodeAt(0),m=_.charCodeAt(1),p){case 0:break;case 64:if(105===m||99===m){q+=_+s.charAt(T);break}default:58!==_.charCodeAt(B-1)&&(V+=o(_,p,m,_.charCodeAt(2)))}L=z=A=p=0,_="",m=s.charCodeAt(++T)}}switch(m){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0<_.length&&(z=1,_+="\0"),0<N*F&&l(0,_,r,e,I,O,V.length,c,f,c),O=1,I++;break;case 59:case 125:if(0===S+$+E+C){O++;break}default:switch(O++,h=s.charAt(T),m){case 9:case 32:if(0===$+C+S)switch(k){case 44:case 58:case 9:case 32:h="";break;default:32!==m&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===$+S+C&&(z=L=1,h="\f"+h);break;case 108:if(0===$+S+C+P&&0<A)switch(T-A){case 2:112===k&&58===s.charCodeAt(T-3)&&(P=k);case 8:111===R&&(P=R)}break;case 58:0===$+S+C&&(A=T);break;case 44:0===S+E+$+C&&(z=1,h+="\r");break;case 34:case 39:0===S&&($=$===m?0:0===$?m:$);break;case 91:0===$+S+E&&C++;break;case 93:0===$+S+E&&C--;break;case 41:0===$+S+C&&E--;break;case 40:0===$+S+C&&(0===p&&(2*k+3*R==533||(p=1)),E++);break;case 64:0===S+E+$+C+A+g&&(g=1);break;case 42:case 47:if(!(0<$+C+E))switch(S){case 0:switch(2*m+3*s.charCodeAt(T+1)){case 235:S=47;break;case 220:B=T,S=42}break;case 42:47===m&&42===k&&B+2!==T&&(33===s.charCodeAt(B+2)&&(V+=s.substring(B,T+1)),h="",S=0)}}0===S&&(_+=h)}R=k,k=m,T++}if(0<(B=V.length)){if(z=r,0<N&&void 0!==(w=l(2,V,z,e,I,O,B,c,f,c))&&0===(V=w).length)return q+V+W;if(V=z.join(",")+"{"+V+"}",0!=M*P){switch(2!==M||i(V,2)||(P=0),P){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(b,"::-webkit-input-$1")+V.replace(b,"::-moz-$1")+V.replace(b,":-ms-input-$1")+V}P=0}}return q+V+W}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var c=0;c<a;++c)t[s++]=r(e[c]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(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&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===M||2===M&&i(s,1)?"-webkit-"+s+s:s}if(0===M||2===M&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(w,"tb");break;case 232:s=a.replace(w,"tb-rl");break;case 220:s=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===$.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,u){for(var d,f=0,p=t;f<N;++f)switch(d=R[f].call(c,e,p,n,r,o,i,a,l,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?M=1:(M=2,A=e):M=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<N){var o=l(-1,n,r,r,I,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(j,r,n,0,0);return 0<N&&void 0!==(o=l(-2,i,r,r,I,O,i.length,0,0,0))&&(i=o),P=0,O=I=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,S=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,O=1,I=1,P=0,M=1,j=[],R=[],N=0,A=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:N=R.length=0;break;default:if("function"==typeof t)R[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},c.set=s,void 0!==e&&s(e),c},Lh={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};function Bh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Dh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hh=Bh((function(e){return Dh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),_h=n(4146),Vh=n.n(_h);function Wh(){return(Wh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qh=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Gh=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,oe.typeOf)(e)},Xh=Object.freeze([]),Kh=Object.freeze({});function Uh(e){return"function"==typeof e}function Yh(e){return e.displayName||e.name||"Component"}function Qh(e){return e&&"string"==typeof e.styledComponentId}var Zh="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Jh="undefined"!=typeof window&&"HTMLElement"in window,ev=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY);function tv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var nv=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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&tv(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),rv=new Map,ov=new Map,iv=1,av=function(e){if(rv.has(e))return rv.get(e);for(;ov.has(iv);)iv++;var t=iv++;return rv.set(e,t),ov.set(t,e),t},lv=function(e){return ov.get(e)},sv=function(e,t){t>=iv&&(iv=t+1),rv.set(e,t),ov.set(t,e)},cv="style["+Zh+'][data-styled-version="5.3.5"]',uv=new RegExp("^"+Zh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),dv=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},fv=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(uv);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(sv(c,s),dv(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},pv=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},mv=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Zh))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Zh,"active"),r.setAttribute("data-styled-version","5.3.5");var a=pv();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},gv=function(){function e(e){var t=this.element=mv(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<r;n++){var o=t[n];if(o.ownerNode===e)return o}tv(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),hv=function(){function e(e){var t=this.element=mv(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),vv=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bv=Jh,yv={isServer:!Jh,useCSSOMInjection:!ev},wv=function(){function e(e,t,n){void 0===e&&(e=Kh),void 0===t&&(t={}),this.options=Wh({},yv,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Jh&&bv&&(bv=!1,function(e){for(var t=document.querySelectorAll(cv),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Zh)&&(fv(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return av(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Wh({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new vv(o):r?new gv(o):new hv(o),new nv(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(av(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(av(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(av(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=lv(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=Zh+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),xv=/(a)(d)/gi,Cv=function(e){return String.fromCharCode(e+(e>25?39:97))};function Sv(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Cv(t%52)+n;return(Cv(t%52)+n).replace(xv,"$1-$2")}var Ev=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$v=function(e){return Ev(5381,e)};function kv(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Uh(n)&&!Qh(n))return!1}return!0}var Ov=$v("5.3.5"),Iv=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&kv(e),this.componentId=t,this.baseHash=Ev(Ov,t),this.baseStyle=n,wv.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=qv(this.rules,e,t,n).join(""),a=Sv(Ev(this.baseHash,i)>>>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=Ev(this.baseHash,n.hash),u="",d=0;d<s;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var p=qv(f,e,t,n),m=Array.isArray(p)?p.join(""):p;c=Ev(c,m+d),u+=m}}if(u){var g=Sv(c>>>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}(),Pv=/^\s*\/\/.*$/gm,Mv=[":","[",".","#"];function jv(e){var t,n,r,o,i=void 0===e?Kh:e,a=i.options,l=void 0===a?Kh:a,s=i.plugins,c=void 0===s?Xh:s,u=new zh(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!==Mv.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,l){void 0===l&&(l="&");var s=e.replace(Pv,""),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||tv(15),Ev(e,t.name)}),5381).toString():"",m}var Rv=t().createContext(),Nv=(Rv.Consumer,t().createContext()),Av=(Nv.Consumer,new wv),Fv=jv();function Tv(){return(0,e.useContext)(Rv)||Av}function zv(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=Tv(),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 jv({options:{prefix:!n.disableVendorPrefixes},plugins:o})}),[n.disableVendorPrefixes,o]);return(0,e.useEffect)((function(){Th()(o,n.stylisPlugins)||i(n.stylisPlugins)}),[n.stylisPlugins]),t().createElement(Rv.Provider,{value:l},t().createElement(Nv.Provider,{value:s},n.children))}var Lv=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Fv);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 tv(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=Fv),this.name+e.hash},e}(),Bv=/([A-Z])/,Dv=/([A-Z])/g,Hv=/^ms-/,_v=function(e){return"-"+e.toLowerCase()};function Vv(e){return Bv.test(e)?e.replace(Dv,_v).replace(Hv,"-ms-"):e}var Wv=function(e){return null==e||!1===e||""===e};function qv(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=qv(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Wv(e)?"":Qh(e)?"."+e.styledComponentId:Uh(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:qv(e(t),t,n,r):e instanceof Lv?n?(e.inject(n,r),e.getName(r)):e:Gh(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Wv(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Uh(t[a])?i.push(Vv(a)+":",t[a],";"):Gh(t[a])?i.push.apply(i,e(t[a],a)):i.push(Vv(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Lh?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var s}var Gv=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Xv(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Uh(e)||Gh(e)?Gv(qv(qh(Xh,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Gv(qv(qh(e,n)))}new Set;var Kv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Uv=/(^-|-$)/g;function Yv(e){return e.replace(Kv,"-").replace(Uv,"")}function Qv(e){return"string"==typeof e&&!0}var Zv=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Jv=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function eb(e,t,n){var r=e[n];Zv(t)&&Zv(r)?tb(r,t):e[n]=t}function tb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Zv(a))for(var l in a)Jv(l)&&eb(e,a[l],l)}return e}var nb=t().createContext();nb.Consumer;var rb={};function ob(n,r,o){var i=Qh(n),a=!Qv(n),l=r.attrs,s=void 0===l?Xh:l,c=r.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Yv(e);rb[n]=(rb[n]||0)+1;var r=n+"-"+function(e){return Sv($v(e)>>>0)}("5.3.5"+n+rb[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):c,d=r.displayName,f=void 0===d?function(e){return Qv(e)?"styled."+e:"Styled("+Yh(e)+")"}(n):d,p=r.displayName&&r.componentId?Yv(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 Iv(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=Kh);var r=Wh({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Uh(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=Kh),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,e.useContext)(nb),l)||Kh,n,i),p=f[0],m=f[1],g=function(t,n,r){var o=Tv(),i=(0,e.useContext)(Nv)||Fv;return n?t.generateAndInjectStyles(Kh,o,i):t.generateAndInjectStyles(r,o,i)}(a,o,p),h=r,v=m.$as||n.$as||m.as||n.as||d,b=Qv(v),y=m!==n?Wh({},n,{},m):n,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(c?c(x,Hh,v):!b||Hh(x))&&(w[x]=y[x]));return n.style&&m.style!==n.style&&(w.style=Wh({},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):Xh,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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["componentId"]),i=t&&t+"-"+(Qv(e)?e:Yv(Yh(e)));return ob(e,Wh({},n,{attrs:m,componentId:i}),o)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?tb({},n.defaultProps,e):e}}),h.toString=function(){return"."+h.styledComponentId},a&&Vh()(h,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var ib=function(e){return function e(t,n,r){if(void 0===r&&(r=Kh),!(0,oe.isValidElementType)(n))return tv(1,String(n));var o=function(){return t(n,r,Xv.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Wh({},r,{},o))},o.attrs=function(o){return e(t,n,Wh({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(ob,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){ib[e]=ib(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=kv(e),wv.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,n,r){var o=r(qv(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&&wv.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=pv();return"<style "+[n&&'nonce="'+n+'"',Zh+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?tv(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return tv(2);var r=((n={})[Zh]="",n["data-styled-version"]="5.3.5",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=pv();return o&&(r.nonce=o),[t().createElement("style",Wh({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new wv({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?tv(2):t().createElement(zv,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return tv(3)}}();const ab=ib,lb=t().createContext({}),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 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 cb=function(t,n){return e.createElement(Zs,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 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 fb=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:db}))};const pb=e.forwardRef(fb),mb={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 gb=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:mb}))};const hb=e.forwardRef(gb);var vb=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!==Hf.ENTER||C()},onClick:function(e){e.preventDefault(),e.stopPropagation(),C()}},f))}));const bb=vb;var yb=t().createContext({});const wb=function(e){var n=e.children,r=e.classNames;return t().createElement(yb.Provider,{value:{classNames:r}},n)};var xb=["className","style","classNames","styles"];const Cb=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)(yb).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],M=P.offset,j=P.threshold,R=P.gap,N=I&&(E.length>0||k.length<=j),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(Hn,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,xb),S=k.findIndex((function(e){return e.key===f})),O={};if(I){var P=k.length-1-(S>-1?S:a-1),j="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<P;D++){var V;B+=(null===(V=y.current[k[k.length-1-D].key])||void 0===V?void 0:V.offsetHeight)+R}var W=(N?B:P*M)*(u.startsWith("top")?1:-1),q=!N&&null!=x&&x.offsetWidth&&null!==(z=y.current[f])&&void 0!==z&&z.offsetWidth?((null==x?void 0:x.offsetWidth)-2*M*(P<3?P:3))/(null===(L=y.current[f])||void 0===L?void 0:L.offsetWidth):1;O.transform="translate3d(".concat(j,", ").concat(W,"px, 0) scaleX(").concat(q,")")}else O.transform="translate3d(".concat(j,", 0, 0)")}return t().createElement("div",{ref:n,className:A()("".concat(d,"-notice-wrapper"),o,null==v?void 0:v.wrapper),style:H(H(H({},i),O),null==w?void 0:w.wrapper),onMouseEnter:function(){return $((function(e){return e.includes(f)?e:[].concat(fe(e),[f])}))},onMouseLeave:function(){return $((function(e){return e.filter((function(e){return e!==f}))}))}},t().createElement(bb,T({},C,{ref:function(e){S>-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 Sb=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(Cb,{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 Eb=Sb;var $b=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],kb=function(){return document.body},Ob=0;const Ib=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new ni("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new ni("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new ni("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new ni("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}}}}},Pb=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Mb={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},jb=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${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)},Rb=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Nb=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},jb(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Rb(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"}}}},Pb.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Mb[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},Ab=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 - ${Vr(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}},ol(e)),[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},Fb=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new ni("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},el(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({},Ab(e))}}]},Tb=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384}),zb=e=>{const t=e.paddingMD,n=e.paddingLG;return pl(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:`${Vr(e.paddingMD)} ${Vr(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Lb=xl("Notification",(e=>{const t=zb(e);return[Fb(t),Ib(t),Nb(t)]}),Tb),Bb=wl(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=zb(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Ab(n)),{width:n.width,maxWidth:`calc(100vw - ${Vr(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Tb);function Db(t,n){return null===n||!1===n?null:n||e.createElement(th,{className:`${t}-close-icon`})}const Hb={success:ub,info:hb,error:Kd,warning:pb},_b=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(Hb[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 Vb=e=>{let{children:n,prefixCls:r}=e;const o=Zd(r),[i,a,l]=Lb(r,o);return i(t().createElement(wb,{classNames:{list:A()(a,l,o)}},n))},Wb=(e,n)=>{let{prefixCls:r,key:o}=n;return t().createElement(Vb,{prefixCls:r,key:o},e)},qb=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)(Xa),[,v]=wa(),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?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,$b),p=X(e.useState(),2),m=p[0],g=p[1],h=e.useRef(),v=e.createElement(Eb,{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;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Ob),Ob+=1),w((function(e){return[].concat(fe(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(fe(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(fe(e),[{type:"destroy"}])}))}}}),[]);return e.useEffect((function(){g(r())})),e.useEffect((function(){h.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}})),w((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[x,v]}({prefixCls:b,style:e=>function(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:Db(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:Wb,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 Gb(e){const n=t().useRef(null),r=(qa(),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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=Db(s,void 0!==v?v:null==l?void 0:l.closeIcon);return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},b),{content:t().createElement(_b,{prefixCls:s,icon:d,type:f,message:c,description:u,btn:p,role:h}),className:A()(f&&`${s}-${f}`,m,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:y,closable:!!y}))},o={open:r,destroy:e=>{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(qb,Object.assign({key:"notification-holder"},e,{ref:n}))]}let Xb=null,Kb=e=>e(),Ub=[],Yb={};function Qb(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Yb,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Zb=t().forwardRef(((n,r)=>{const{notificationConfig:o,sync:i}=n,{getPrefixCls:a}=(0,e.useContext)(Xa),l=Yb.prefixCls||a("notification"),s=(0,e.useContext)(lb),[c,u]=Gb(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})),Jb=t().forwardRef(((e,n)=>{const[r,o]=t().useState(Qb),i=()=>{o(Qb)};t().useEffect(i,[]);const a=Um(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=t().createElement(Zb,{ref:n,sync:i,notificationConfig:r});return t().createElement(Zm,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}));function ey(){if(!Xb){const e=document.createDocumentFragment(),n={fragment:e};return Xb=n,void Kb((()=>{hs(t().createElement(Jb,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,ey())}))}}),e)}))}Xb.instance&&(Ub.forEach((e=>{switch(e.type){case"open":Kb((()=>{Xb.instance.open(Object.assign(Object.assign({},Yb),e.config))}));break;case"destroy":Kb((()=>{null==Xb||Xb.instance.destroy(e.key)}))}})),Ub=[])}function ty(e){Um(),Ub.push({type:"open",config:e}),ey()}const ny={open:ty,destroy:function(e){Ub.push({type:"destroy",key:e}),ey()},config:function(e){Yb=Object.assign(Object.assign({},Yb),e),Kb((()=>{var e;null===(e=null==Xb?void 0:Xb.sync)||void 0===e||e.call(Xb)}))},useNotification:function(e){return Gb(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=e.useContext(Xa),m=n||p("notification"),g=`${m}-notice`,h=Zd(m),[v,b,y]=Lb(m,h);return v(e.createElement("div",{className:A()(`${g}-pure-panel`,b,r,y,h)},e.createElement(Bb,{prefixCls:m}),e.createElement(bb,Object.assign({},f,{prefixCls:m,eventKey:"pure",duration:null,closable:c,className:A()({notificationClassName:d}),closeIcon:Db(m,u),content:e.createElement(_b,{prefixCls:g,icon:o,type:i,message:a,description:l,btn:s})}))))}};["success","info","warning","error"].forEach((e=>{ny[e]=t=>ty(Object.assign(Object.assign({},t),{type:e}))}));const ry=ny;var oy=e.createContext(null);function iy(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ay(t){return iy(e.useContext(oy),t)}var ly=["children","locked"],sy=e.createContext(null);function cy(t){var n=t.children,r=t.locked,o=_(t,ly),i=e.useContext(sy),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]&&Sr(e[1],t[1],!0))}));return e.createElement(sy.Provider,{value:a},n)}var uy=[],dy=e.createContext(null);function fy(){return e.useContext(dy)}var py=e.createContext(uy);function my(t){var n=e.useContext(py);return e.useMemo((function(){return void 0!==t?[].concat(fe(n),[t]):n}),[n,t])}var gy=e.createContext(null);const hy=e.createContext({});function vy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(er(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 by=Hf.LEFT,yy=Hf.RIGHT,wy=Hf.UP,xy=Hf.DOWN,Cy=Hf.ENTER,Sy=Hf.ESC,Ey=Hf.HOME,$y=Hf.END,ky=[wy,xy,by,yy];function Oy(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fe(e.querySelectorAll("*")).filter((function(e){return vy(e,t)}));return vy(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function Iy(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Oy(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 Py=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(iy(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var My="__RC_UTIL_PATH_SPLIT__",jy=function(e){return e.join(My)},Ry="rc-menu-more";function Ny(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;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return t?r:void 0}var Ay=Math.random().toFixed(5).toString().slice(2),Fy=0;function Ty(t,n,r,o){var i=e.useContext(sy),a=i.activeKey,l=i.onActive,s=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null==r||r({key:t,domEvent:e}),l(t)},c.onMouseLeave=function(e){null==o||o({key:t,domEvent:e}),s(t)}),c}function zy(t){var n=e.useContext(sy),r=n.mode,o=n.rtl,i=n.inlineIndent;return"inline"!==r?null:o?{paddingRight:t*i}:{paddingLeft:t*i}}function Ly(t){var n,r=t.icon,o=t.props,i=t.children;return null===r||!1===r?null:("function"==typeof r?n=e.createElement(r,H({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var By=["item"];function Dy(e){var t=e.item,n=_(e,By);return Object.defineProperty(n,"item",{get:function(){return re(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Hy=["title","attribute","elementRef"],_y=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Vy=["active"],Wy=function(t){ft(r,t);var n=vt(r);function r(){return st(this,r),n.apply(this,arguments)}return ut(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,i=rs(_(t,Hy),["eventKey","popupClassName","popupOffset","onTitleClick"]);return re(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(pp.Item,T({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),r}(e.Component),qy=e.forwardRef((function(t,n){var r=t.style,o=t.className,i=t.eventKey,a=(t.warnKey,t.disabled),l=t.itemIcon,s=t.children,c=t.role,u=t.onMouseEnter,d=t.onMouseLeave,f=t.onClick,p=t.onKeyDown,m=t.onFocus,g=_(t,_y),h=ay(i),v=e.useContext(sy),b=v.prefixCls,y=v.onItemClick,w=v.disabled,x=v.overflowDisabled,C=v.itemIcon,S=v.selectedKeys,E=v.onActive,$=e.useContext(hy)._internalRenderMenuItem,k="".concat(b,"-item"),O=e.useRef(),I=e.useRef(),P=w||a,M=se(n,I),j=my(i),R=function(e){return{key:i,keyPath:fe(j).reverse(),item:O.current,domEvent:e}},N=l||C,F=Ty(i,P,u,d),z=F.active,L=_(F,Vy),D=S.includes(i),V=zy(j.length),W={};"option"===t.role&&(W["aria-selected"]=D);var q=e.createElement(Wy,T({ref:O,elementRef:M,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":x&&h?null:h},g,L,W,{component:"li","aria-disabled":a,style:H(H({},V),r),className:A()(k,B(B(B({},"".concat(k,"-active"),z),"".concat(k,"-selected"),D),"".concat(k,"-disabled"),P),o),onClick:function(e){if(!P){var t=R(e);null==f||f(Dy(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===Hf.ENTER){var t=R(e);null==f||f(Dy(t)),y(t)}},onFocus:function(e){E(i),null==m||m(e)}}),s,e.createElement(Ly,{props:H(H({},t),{},{isSelected:D}),icon:N}));return $&&(q=$(q,t,{selected:D})),q}));function Gy(t,n){var r=t.eventKey,o=fy(),i=my(r);return e.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:e.createElement(qy,T({},t,{ref:n}))}const Xy=e.forwardRef(Gy);var Ky=["className","children"],Uy=function(t,n){var r=t.className,o=t.children,i=_(t,Ky),a=e.useContext(sy),l=a.prefixCls,s=a.mode,c=a.rtl;return e.createElement("ul",T({className:A()(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===s?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Yy=e.forwardRef(Uy);Yy.displayName="SubMenuList";const Qy=Yy;function Zy(t,n){return Fe(t).map((function(t,r){if(e.isValidElement(t)){var o,i,a=t.key,l=null!==(o=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat(fe(n),[r]).join("-")));var s={key:l,eventKey:l};return e.cloneElement(t,s)}return t}))}var Jy={adjustX:1,adjustY:1},ew={topLeft:{points:["bl","tl"],overflow:Jy},topRight:{points:["br","tr"],overflow:Jy},bottomLeft:{points:["tl","bl"],overflow:Jy},bottomRight:{points:["tr","br"],overflow:Jy},leftTop:{points:["tr","tl"],overflow:Jy},leftBottom:{points:["br","bl"],overflow:Jy},rightTop:{points:["tl","tr"],overflow:Jy},rightBottom:{points:["bl","br"],overflow:Jy}},tw={topLeft:{points:["bl","tl"],overflow:Jy},topRight:{points:["br","tr"],overflow:Jy},bottomLeft:{points:["tl","bl"],overflow:Jy},bottomRight:{points:["tr","br"],overflow:Jy},rightTop:{points:["tr","tl"],overflow:Jy},rightBottom:{points:["br","bl"],overflow:Jy},leftTop:{points:["tl","tr"],overflow:Jy},leftBottom:{points:["bl","br"],overflow:Jy}};function nw(e,t,n){return t||(n?n[e]||n.other:void 0)}var rw={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ow(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,a=t.popupStyle,l=t.popupClassName,s=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,f=e.useContext(sy),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,v=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,w=f.rootClassName,x=f.motion,C=f.defaultMotions,S=X(e.useState(!1),2),E=S[0],$=S[1],k=H(H({},m?tw:ew),v),O=rw[u],I=nw(u,x,C),P=e.useRef(I);"inline"!==u&&(P.current=I);var M=H(H({},P.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),j=e.useRef();return e.useEffect((function(){return j.current=$n((function(){$(r)})),function(){$n.cancel(j.current)}}),[r]),e.createElement(mr,{prefixCls:n,popupClassName:A()("".concat(n,"-popup"),B({},"".concat(n,"-rtl"),m),l,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:k,popupPlacement:O,popupVisible:E,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:y,popupMotion:M,fresh:!0},o)}function iw(t){var n=t.id,r=t.open,o=t.keyPath,i=t.children,a="inline",l=e.useContext(sy),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=e.useRef(!1);p.current=f===a;var m=X(e.useState(!p.current),2),g=m[0],h=m[1],v=!!p.current&&r;e.useEffect((function(){p.current&&h(!1)}),[f]);var b=H({},nw(a,u,d));o.length>1&&(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(cy,{mode:a,locked:!p.current},e.createElement(Vn,T({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(Qy,{id:n,className:r,style:o},i)})))}var aw=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lw=["active"],sw=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,aw),x=ay(i),C=e.useContext(sy),S=C.prefixCls,E=C.mode,$=C.openKeys,k=C.disabled,O=C.overflowDisabled,I=C.activeKey,P=C.selectedKeys,M=C.itemIcon,j=C.expandIcon,R=C.onItemClick,N=C.onOpenChange,F=C.onActive,z=e.useContext(hy)._internalRenderSubMenuItem,L=e.useContext(gy).isSubPathKey,D=my(),V="".concat(S,"-submenu"),W=k||a,q=e.useRef(),G=e.useRef(),K=null!=c?c:M,U=null!=u?u:j,Y=$.includes(i),Q=!O&&Y,Z=L(P,i),J=Ty(i,W,b,y),ee=J.active,te=_(J,lw),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=zy(D.length),se=Ny((function(e){null==m||m(Dy(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(Ly,{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(ow,{mode:fe,prefixCls:V,visible:!l&&Q&&"inline"!==E,popupClassName:d,popupOffset:f,popupStyle:p,popup:e.createElement(cy,{mode:"horizontal"===fe?"vertical":fe},e.createElement(Qy,{id:ce,ref:G},s)),disabled:W,onVisibleChange:function(e){"inline"!==E&&N(i,e)}},ue)}var pe=e.createElement(pp.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(iw,{id:ce,open:Q,keyPath:D},s));return z&&(pe=z(pe,t,{selected:Z,active:ae,open:Q,disabled:W})),e.createElement(cy,{onItemClick:se,mode:"horizontal"===E?"vertical":E,itemIcon:K,expandIcon:U},pe)};function cw(t){var n,r=t.eventKey,o=t.children,i=my(r),a=Zy(o,i),l=fy();return e.useEffect((function(){if(l)return l.registerPath(r,i),function(){l.unregisterPath(r,i)}}),[i]),n=l?a:e.createElement(sw,t,a),e.createElement(py.Provider,{value:i},n)}var uw=["className","title","eventKey","children"],dw=["children"],fw=function(t){var n=t.className,r=t.title,o=(t.eventKey,t.children),i=_(t,uw),a=e.useContext(sy).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 pw(t){var n=t.children,r=_(t,dw),o=Zy(n,my(r.eventKey));return fy()?o:e.createElement(fw,rs(r,["warnKey"]),o)}function mw(t){var n=t.className,r=t.style,o=e.useContext(sy).prefixCls;return fy()?null:e.createElement("li",{role:"separator",className:A()("".concat(o,"-item-divider"),n),style:r})}var gw=["label","children","key","type"];function hw(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,gw),c=null!=a?a:"tmp-".concat(n);return i||"group"===l?"group"===l?e.createElement(pw,T({key:c},s,{title:o}),hw(i)):e.createElement(cw,T({key:c},s,{title:o}),hw(i)):"divider"===l?e.createElement(mw,T({key:c},s)):e.createElement(Xy,T({key:c},s),o)}return null})).filter((function(e){return e}))}function vw(e,t,n){var r=e;return t&&(r=hw(t)),Zy(r,n)}var bw=["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"],yw=[],ww=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,M=o.selectable,j=void 0===M||M,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,bw),ue=e.useMemo((function(){return vw(p,f,yw)}),[p,f]),de=X(e.useState(!1),2),pe=de[0],me=de[1],ge=e.useRef(),he=function(t){var n=X(Lt(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){Fy+=1;var e="".concat(Ay,"-").concat(Fy);o("rc-menu-uuid-".concat(e))}),[]),r}(g),ve="rtl"===m,be=Lt(k,{value:O,postState:function(e){return e||yw}}),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],Me="inline"===Ie,je=X(e.useState(Ie),2),Re=je[0],Ne=je[1],Ae=X(e.useState(Pe),2),Fe=Ae[0],Te=Ae[1];e.useEffect((function(){Ne(Ie),Te(Pe),ke.current&&(Me?xe(Ee):Ce(yw))}),[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(){Me&&$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=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(My);return t&&i.includes(r[0])&&r.unshift(Ry),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(My),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(Ry),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?yw:ue.slice(Le+1).map((function(e){return e.key})))}),[Le,De]);var Qe=X(Lt(I||P&&(null===(r=ue[0])||void 0===r?void 0:r.key),{value:I}),2),Ze=Qe[0],Je=Qe[1],et=Ny((function(e){Je(e)})),tt=Ny((function(){Je(void 0)}));(0,e.useImperativeHandle)(n,(function(){return{list:ge.current,focus:function(e){var t,n,r=Xe(),o=Py(r,he),i=o.elements,a=o.key2element,l=o.element2key,s=Oy(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=Lt(F||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?yw:[e]}}),rt=X(nt,2),ot=rt[0],it=rt[1],at=Ny((function(e){null==oe||oe(Dy(e)),function(e){if(j){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(yw)}(e)})),lt=Ny((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)}))}Sr(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(){$n.cancel(d.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(ky,[Cy,Sy,Ey,$y]).includes(m)){var g=a(),h=Py(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===Cy)return{inlineTrigger:!0};var c=B(B({},wy,i),xy,a),u=B(B(B(B({},by,n?a:i),yy,n?i:a),xy,l),Cy,l),d=B(B(B(B(B(B({},wy,i),xy,a),Cy,l),Sy,s),by,n?l:s),yy,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!==Ey&&m!==$y)return;(ky.includes(m)||[Ey,$y].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=$n((function(){f.current===r&&t.focus()}))}};if([Ey,$y].includes(m)||S.sibling||!x){var $,k,O=Oy($=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===Ey?O[0]:m===$y?O[O.length-1]:Iy($,b,x,S.offset),E(k)}else if(S.inlineTrigger)c(C);else if(S.offset>0)c(C,!0),p(),d.current=$n((function(){h=Py(g,o);var e=x.getAttribute("aria-controls"),t=Iy(document.getElementById(e),h.elements);E(t)}),5);else if(S.offset<0){var I=l(C,!0),P=I[I.length-2],M=y.get(P);c(P,!1),E(M)}}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(cy,{key:t.key,overflowDisabled:n>Le},t)})),dt=e.createElement(pp,T({id:g,ref:ge,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Xy,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(cw,{eventKey:Ry,title:te,disabled:De,internalPopupClose:0===n,popupClassName:ne},r)},maxCount:"horizontal"!==Re||w?pp.INVALIDATE:pp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:st},ce));return e.createElement(hy.Provider,{value:ct},e.createElement(oy.Provider,{value:he},e.createElement(cy,{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(gy.Provider,{value:Ye},dt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(dy.Provider,{value:Ue},ue)))))})),xw=ww;xw.Item=Xy,xw.SubMenu=cw,xw.ItemGroup=pw,xw.Divider=mw;const Cw=xw,Sw=e.createContext({});const Ew=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(Xa),l=a("menu",n),s=A()({[`${l}-item-divider-dashed`]:!!o},r);return e.createElement(mw,Object.assign({className:s},i))},$w=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),kw=t=>{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($w),{siderCollapsed:p}=e.useContext(Sw);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=Fe(o).length;let v=e.createElement(Xy,Object.assign({},rs(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}),_a(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(ns,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),v)),v},Ow=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext($w),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=my();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,_a(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]=$a("Menu");return e.createElement($w.Provider,{value:p},e.createElement(cw,Object.assign({},rs(t,["icon"]),{title:f,popupClassName:A()(s,r,`${s}-${a||u}`),popupStyle:{zIndex:m}})))};function Iw(t){return(t||[]).map(((t,n)=>{if(t&&"object"==typeof t){const r=t,{label:o,children:i,key:a,type:l}=r,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["label","children","key","type"]),c=null!=a?a:`tmp-${n}`;return i||"group"===l?"group"===l?e.createElement(pw,Object.assign({key:c},s,{title:o}),Iw(i)):e.createElement(Ow,Object.assign({key:c},s,{title:o}),Iw(i)):"divider"===l?e.createElement(Ew,Object.assign({key:c},s)):e.createElement(kw,Object.assign({key:c},s),o)}return null})).filter((e=>e))}const Pw=e.createContext(null),Mw=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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children"]),i=e.useContext(Pw),a=e.useMemo((()=>Object.assign(Object.assign({},i),o)),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(t){return function(t){return(0,e.isValidElement)(t)&&!(0,oe.isFragment)(t)}(t)&&ce(t)}(r),s=se(n,l?r.ref:null);return e.createElement(Pw.Provider,{value:a},e.createElement(Pl,null,l?e.cloneElement(r,{ref:s}):r))})),jw=Pw,Rw=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`}}}),Nw=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:`${Vr(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"}}}},Aw=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(${Vr(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Vr(n)})`}}}}},Fw=e=>Object.assign({},rl(e)),Tw=(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:M,horizontalItemSelectedBg:j,horizontalItemBorderRadius:R,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Fw(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({},Fw(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:`${Vr(c)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:c,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Vr(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Vr(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(",")}}}}}},zw=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:Vr(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Vr(n)},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:c}}},Lw=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:Vr(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},zw(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},zw(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Vr(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% - ${Vr(e.calc(d).div(2).equal())} - ${Vr(u)})`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:Vr(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({},Ja),{paddingInline:p})}}]},Bw=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"}}}},Dw=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(${Vr(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Vr(a)})`}}}}},Hw=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({},el(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:`${Vr(l)} ${Vr(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"}}}),Bw(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Vr(e.calc(r).mul(2).equal())} ${Vr(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},Bw(e)),Dw(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}}}),Dw(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vr(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Vr(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Vr(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Vr(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Vr(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},_w=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,M=new ra($).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 ra($).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*P}px)`}},Vw=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=xl("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=pl(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=pl(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[Hw(x),Nw(x),Lw(x),Tw(x,"light"),Tw(C,"dark"),Aw(x),Rw(x),wg(x,"slide-up"),wg(x,"slide-down"),Xl(x,"zoom-big")]}),_w,{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 Ww(e){return null===e||!1===e}const qw=(0,e.forwardRef)(((t,n)=>{var r;const o=e.useContext(jw),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=e.useContext(Xa),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=rs(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.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=function(t){return e.useMemo((()=>t?Iw(t):t),[t])}(y)||w;null===(r=i.validator)||void 0===r||r.call(i,{mode:C});const I=kt((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),P=i.mode||C,M=null!=S?S:i.selectable,j=e.useMemo((()=>void 0!==b?b:v),[v,b]),R={horizontal:{motionName:`${u}-slide-up`},inline:ja(u),other:{motionName:`${u}-zoom-big`}},N=a("menu",d||i.prefixCls),F=Zd(N),[T,z,L]=Vw(N,F,!o),B=A()(`${N}-${m}`,null==c?void 0:c.className,f),D=e.useMemo((()=>{var t,n;if("function"==typeof g||Ww(g))return g||null;if("function"==typeof i.expandIcon||Ww(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Ww(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 _a(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:j||!1,direction:s,firstLevel:!0,theme:m,mode:P,disableMenuItemTitleTooltip:h})),[N,j,s,h,m]);return T(e.createElement(jw.Provider,{value:null},e.createElement($w.Provider,{value:H},e.createElement(Cw,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(Oh,null),overflowedIndicatorPopupClassName:A()(N,`${N}-${m}`,$),mode:P,selectable:M,onClick:I},k,{inlineCollapsed:j,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))))})),Gw=qw,Xw=(0,e.forwardRef)(((t,n)=>{const r=(0,e.useRef)(null),o=e.useContext(Sw);return(0,e.useImperativeHandle)(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(Gw,Object.assign({ref:r},t,o))}));Xw.Item=kw,Xw.SubMenu=Ow,Xw.Divider=Ew,Xw.ItemGroup=pw;const Kw=Xw,Uw=e=>e?"function"==typeof e?e():e:null,Yw=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({},el(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}})},Ta(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Qw=e=>{const{componentCls:t}=e;return{[t]:Kl.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Zw=xl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=pl(e,{popoverBg:t,popoverColor:n});return[Yw(r),Qw(r),Xl(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},Ra(e)),Aa({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 Jw=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`},Uw(n)),e.createElement("div",{className:`${t}-inner-content`},Uw(r))):null)(r,l,s)))},ex=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(Xa),a=i("popover",n),[l,s,c]=Zw(a);return l(e.createElement(Jw,Object.assign({},o,{prefixCls:a,hashId:s,className:A()(r,c)})))};const tx=t=>{let{title:n,content:r,prefixCls:o}=t;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${o}-title`},Uw(n)),e.createElement("div",{className:`${o}-inner-content`},Uw(r)))},nx=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:p}=e.useContext(Xa),m=p("popover",r),[g,h,v]=Zw(m),b=p(),y=A()(a,h,v);return g(e.createElement(ns,Object.assign({placement:l,trigger:s,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d},f,{prefixCls:m,overlayClassName:y,ref:n,overlay:o||i?e.createElement(tx,{prefixCls:m,title:o,content:i}):null,transitionName:Ma(b,"zoom-big",f.transitionName),"data-popover-inject":!0})))}));nx._InternalPanelDoNotUseOrYouWillBeFired=ex;const rx=nx;function ox(e){return!(!e||!e.then)}const ix=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]=Tt(!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(Bc,Object.assign({},Ns(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void h();let t;if(s){if(t=d(e),u&&!ox(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=>{ox(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)},ax=xl("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 lx=t=>{const{prefixCls:n,okButtonProps:r,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:s,okType:c="primary",icon:u=e.createElement(pb,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=t,{getPrefixCls:h}=e.useContext(Xa),[v]=eg("Popconfirm",Mm.Popconfirm),b=Uw(i),y=Uw(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(Bc,Object.assign({onClick:m,size:"small"},o),l||(null==v?void 0:v.cancelText)),e.createElement(ix,{buttonProps:Object.assign(Object.assign({size:"small"},Ns(c)),r),actionFn:p,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==v?void 0:v.okText))))};const sx=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:i,placement:a="top",trigger:l="click",okType:s="primary",icon:c=e.createElement(pb,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:g}=e.useContext(Xa),[h,v]=Lt(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),b=(e,t)=>{v(e,!0),null==p||p(e),null==f||f(e,t)},y=g("popconfirm",i),w=A()(y,d),[x]=ax(y);return x(e.createElement(rx,Object.assign({},rs(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(lx,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}),_a(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===Hf.ESC&&h&&b(!1,e)})(t)}})))}));sx._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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","placement","className","style"]),{getPrefixCls:l}=e.useContext(Xa),s=l("popconfirm",n),[c]=ax(s);return c(e.createElement(ex,{placement:r,className:A()(s,o),style:i,content:e.createElement(lx,Object.assign({prefixCls:s},a))}))};const cx=sx,ux={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 dx=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:ux}))};const fx=e.forwardRef(dx);var px=Hf.ESC,mx=Hf.TAB;const gx=(0,e.forwardRef)((function(n,r){var o=n.overlay,i=n.arrow,a=n.prefixCls,l=(0,e.useMemo)((function(){return"function"==typeof o?o():o}),[o]),s=le(r,null==l?void 0:l.ref);return t().createElement(t().Fragment,null,i&&t().createElement("div",{className:"".concat(a,"-arrow")}),t().cloneElement(l,{ref:ce(l)?s:void 0}))}));var hx={adjustX:1,adjustY:1},vx=[0,0];const bx={topLeft:{points:["bl","tl"],overflow:hx,offset:[0,-4],targetOffset:vx},top:{points:["bc","tc"],overflow:hx,offset:[0,-4],targetOffset:vx},topRight:{points:["br","tr"],overflow:hx,offset:[0,-4],targetOffset:vx},bottomLeft:{points:["tl","bl"],overflow:hx,offset:[0,4],targetOffset:vx},bottom:{points:["tc","bc"],overflow:hx,offset:[0,4],targetOffset:vx},bottomRight:{points:["tr","br"],overflow:hx,offset:[0,4],targetOffset:vx}};var yx=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function wx(n,r){var o,i=n.arrow,a=void 0!==i&&i,l=n.prefixCls,s=void 0===l?"rc-dropdown":l,c=n.transitionName,u=n.animation,d=n.align,f=n.placement,p=void 0===f?"bottomLeft":f,m=n.placements,g=void 0===m?bx:m,h=n.getPopupContainer,v=n.showAction,b=n.hideAction,y=n.overlayClassName,w=n.overlayStyle,x=n.visible,C=n.trigger,S=void 0===C?["hover"]:C,E=n.autoFocus,$=n.overlay,k=n.children,O=n.onVisibleChange,I=_(n,yx),P=X(t().useState(),2),M=P[0],j=P[1],R="visible"in n?x:M,N=t().useRef(null),F=t().useRef(null),z=t().useRef(null);t().useImperativeHandle(r,(function(){return N.current}));var L=function(e){j(e),null==O||O(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,l=e.useRef(!1),s=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case px:s();break;case mx:var t=!1;l.current||(t=c()),t?e.preventDefault():s()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&$n(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:R,triggerRef:z,onVisibleChange:L,autoFocus:E,overlayRef:F});var D,H,V,W=function(){return t().createElement(gx,{ref:F,overlay:$,prefixCls:s,arrow:a})},q=t().cloneElement(k,{className:A()(null===(o=k.props)||void 0===o?void 0:o.className,R&&(D=n.openClassName,void 0!==D?D:"".concat(s,"-open"))),ref:ce(k)?le(z,k.ref):void 0}),G=b;return G||-1===S.indexOf("contextMenu")||(G=["click"]),t().createElement(mr,T({builtinPlacements:g},I,{prefixCls:s,ref:N,popupClassName:A()(y,B({},"".concat(s,"-show-arrow"),a)),popupStyle:w,action:S,showAction:v,hideAction:G,popupPlacement:p,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:R,stretch:(H=n.minOverlayWidthMatchTrigger,V=n.alignPoint,("minOverlayWidthMatchTrigger"in n?H:!V)?"minWidth":""),popup:"function"==typeof $?W:W(),onPopupVisibleChange:L,onPopupClick:function(e){var t=n.onOverlayClick;j(!1),t&&t(e)},getPopupContainer:h}),q)}const xx=t().forwardRef(wx),Cx=e=>{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}}}}}},Sx=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({},el(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:dg},[`&${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:pg},[`&${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:fg},[`&${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:mg}})},Ta(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},ol(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Vr(c)} ${Vr(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:`${Vr(c)} ${Vr(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ol(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:`${Vr(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 ${Vr(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}})}},[wg(e,"slide-up"),wg(e,"slide-down"),Ig(e,"move-up"),Ig(e,"move-down"),Xl(e,"zoom-big")]]},Ex=xl("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=pl(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Sx(i),Cx(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Aa({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ra(e)))),$x=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(Xa);qa();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),M=Zd(P),[j,R,N]=Ex(P,M),[,F]=wa(),T=e.Children.only(i),z=_a(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]=Lt(!1,{value:null!=p?p:g}),_=kt((e=>{null==m||m(e,{source:"trigger"}),null==h||h(e),H(e)})),V=A()(u,d,R,N,M,null==k?void 0:k.className,{[`${P}-rtl`]:"rtl"===$}),W=Da({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]=$a("Dropdown",null==f?void 0:f.zIndex);let K=e.createElement(xx,Object.assign({alignPoint:B},rs(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(Kw,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(Mw,{prefixCls:`${P}-menu`,rootClassName:A()(N,M),expandIcon:e.createElement("span",{className:`${P}-menu-submenu-arrow`},e.createElement(fx,{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(xa.Provider,{value:X},K)),j(K)},kx=Jm($x,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));$x._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(kx,Object.assign({},t),e.createElement("span",null));const Ox=$x;function Ix(e){return["small","middle","large"].includes(e)}function Px(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Mx=t().createContext({latestIndex:0}),jx=Mx.Provider,Rx=t=>{let{className:n,index:r,children:o,split:i,style:a}=t;const{latestIndex:l}=e.useContext(Mx);return null==o?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:a},o),r<l&&i&&e.createElement("span",{className:`${n}-split`},i))};const Nx=e.forwardRef(((t,n)=>{var r,o;const{getPrefixCls:i,space:a,direction:l}=e.useContext(Xa),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,C]=Array.isArray(s)?s:[s,s],S=Ix(C),E=Ix(x),$=Px(C),k=Px(x),O=Fe(f,{keepEmpty:!0}),I=void 0===c&&"horizontal"===p?"center":c,P=i("space",m),[M,j,R]=$l(P),N=A()(P,null==a?void 0:a.className,j,`${P}-${p}`,{[`${P}-rtl`]:"rtl"===l,[`${P}-align-${I}`]:I,[`${P}-gap-row-${C}`]:S,[`${P}-gap-col-${x}`]:E},u,d,R),F=A()(`${P}-item`,null!==(r=null==b?void 0:b.item)&&void 0!==r?r:null===(o=null==a?void 0:a.classNames)||void 0===o?void 0:o.item);let T=0;const z=O.map(((t,n)=>{var r,o;null!=t&&(T=n);const i=t&&t.key||`${F}-${n}`;return e.createElement(Rx,{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),M(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)))})),Ax=Nx;Ax.Compact=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Xa),{size:o,direction:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=t,d=kl(t,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Za((e=>null!=o?o:e)),p=n("space-compact",l),[m,g]=$l(p),h=A()(p,g,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},s,c),v=e.useContext(Ol),b=Fe(u),y=e.useMemo((()=>b.map(((t,n)=>{const r=t&&t.key||`${p}-item-${n}`;return e.createElement(Ml,{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 Fx=Ax;const Tx=t=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=e.useContext(Xa),{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(Oh,null),title:k,buttonsRender:O=e=>e,mouseEnterDelay:I,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:j,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=r("dropdown",i),z=`${T}-button`,L={menu:m,arrow:g,autoFocus:h,align:y,disabled:s,trigger:s?[]:b,onOpenChange:x,getPopupContainer:S||n,mouseEnterDelay:I,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:j,destroyPopupOnHide:R,dropdownRender:N},{compactSize:B,compactItemClassnames:D}=Il(T,o),H=A()(z,D,p);"overlay"in t&&(L.overlay=v),"open"in t&&(L.open=w),L.placement="placement"in t?C:"rtl"===o?"bottomLeft":"bottomRight";const _=e.createElement(Bc,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:E,title:k},f),V=e.createElement(Bc,{type:a,danger:l,icon:$}),[W,q]=O([_,V]);return e.createElement(Fx.Compact,Object.assign({className:H,size:B,block:!0},F),W,e.createElement(Ox,Object.assign({},L),q))};Tx.__ANT_BUTTON=!0;const zx=Tx,Lx=Ox;Lx.Button=zx;const Bx=Lx;var Dx=t().forwardRef((function(e,n){var r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,c=e.role,u=X(t().useState(s||o),2),d=u[0],f=u[1];return t().useEffect((function(){(o||s)&&f(!0)}),[o,s]),d?t().createElement("div",{ref:n,className:A()("".concat(r,"-content"),B(B({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),i),style:a,role:c},t().createElement("div",{className:"".concat(r,"-content-box")},l)):null}));Dx.displayName="PanelContent";const Hx=Dx;var Vx=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Wx=t().forwardRef((function(e,n){var r=e.showArrow,o=void 0===r||r,i=e.headerClass,a=e.isActive,l=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,m=e.extra,g=e.header,h=e.expandIcon,v=e.openMotion,b=e.destroyInactivePanel,y=e.children,w=_(e,Vx),x="disabled"===d,C="header"===d,S="icon"===d,E=null!=m&&"boolean"!=typeof m,$=function(){null==l||l(p)},k="function"==typeof h?h(e):t().createElement("i",{className:"arrow"});k&&(k=t().createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?$:void 0},k));var O=A()(B(B(B({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),x),c),I={className:A()(i,B(B(B({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),C),"".concat(u,"-icon-collapsible-only"),S)),"aria-expanded":a,"aria-disabled":x,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Hf.ENTER&&e.which!==Hf.ENTER||$()}};return C||S||(I.onClick=$,I.role=f?"tab":"button",I.tabIndex=x?-1:0),t().createElement("div",T({},w,{ref:n,className:O}),t().createElement("div",I,o&&k,t().createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?$:void 0},g),E&&t().createElement("div",{className:"".concat(u,"-extra")},m)),t().createElement(Vn,T({visible:a,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:s,removeOnLeave:b}),(function(e,n){var r=e.className,o=e.style;return t().createElement(Hx,{ref:n,prefixCls:u,className:r,style:o,isActive:a,forceRender:s,role:f?"tabpanel":void 0},y)})))}));const qx=Wx;var Gx=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function Xx(e){var t=e;if(!Array.isArray(t)){var n=z(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var Kx=t().forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,m=e.activeKey,g=e.defaultActiveKey,h=e.onChange,v=e.items,b=A()(o,c),y=Lt([],{value:m,onChange:function(e){return null==h?void 0:h(e)},defaultValue:g,postState:Xx}),w=X(y,2),x=w[0],C=w[1];re(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=function(e,n,r){return Array.isArray(e)?function(e,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var d,f=e.children,p=e.label,m=e.key,g=e.collapsible,h=e.onItemClick,v=e.destroyInactivePanel,b=_(e,Gx),y=String(null!=m?m:n),w=null!=g?g:i,x=null!=v?v:a;return d=o?s[0]===y:s.indexOf(y)>-1,t().createElement(qx,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):Fe(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},Xf(e,{aria:!0,data:!0})),S)}));const Ux=Object.assign(Kx,{Panel:qx}),Yx=Ux;Ux.Panel;const Qx=e.forwardRef(((t,n)=>{const{getPrefixCls:r}=e.useContext(Xa),{prefixCls:o,className:i,showArrow:a=!0}=t,l=r("collapse",o),s=A()({[`${l}-no-arrow`]:!a},i);return e.createElement(Yx.Panel,Object.assign({ref:n},t,{prefixCls:l,className:s}))})),Zx=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=`${Vr(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},el(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 ${Vr(s)} ${Vr(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 ${Vr(s)} ${Vr(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}}}}})}},Jx=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},eC=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}}}},tC=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}}}}}},nC=xl("Collapse",(e=>{const t=pl(e,{collapseHeaderPaddingSM:`${Vr(e.paddingXS)} ${Vr(e.paddingSM)}`,collapseHeaderPaddingLG:`${Vr(e.padding)} ${Vr(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Zx(t),eC(t),tC(t),Jx(t),Rw(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),rC=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o,collapse:i}=e.useContext(Xa),{prefixCls:a,className:l,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:m,expandIcon:g}=t,h=Za((e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"})),v=r("collapse",a),b=r(),[y,w,x]=nC(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(fx,{rotate:t.isActive?90:void 0});return _a(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({},ja(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=e.useMemo((()=>m?Fe(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 _a(e,Object.assign(Object.assign({},rs(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[m]);return y(e.createElement(Yx,Object.assign({ref:n,openMotion:k},rs(t,["rootClassName"]),{expandIcon:E,prefixCls:v,className:$,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),O))})),oC=Object.assign(rC,{Panel:Qx}),iC={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 aC=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:iC}))};const lC=e.forwardRef(aC),sC={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 cC=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:sC}))};const uC=e.forwardRef(cC),dC={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 fC=function(t,n){return e.createElement(Zs,T({},t,{ref:n,icon:dC}))};const pC=e.forwardRef(fC),{hooks:mC}=wpGraphiQL,{useEffect:gC}=wp.element,hC=ab.div`
   .ant-collapse {
     margin-bottom: 10px;
   }
@@ -11,4 +11,4 @@
   .ant-collapse-content-box {
     padding: 0;
   }
-`,bC=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)};hC((()=>{oy.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||`${k(l)} Name`,h={clone:(0,e.jsx)(Yx.Item,{children:(0,e.jsx)(Dc,{type:"link",style:{marginRight:5},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationClone(),oy.success({message:`${k(l)} "${g}" was cloned`})},icon:(0,e.jsx)(sC,{}),children:`Clone ${k(l)}`})},"clone"),destroy:(0,e.jsx)(Yx.Item,{children:(0,e.jsx)(dw,{zIndex:1e4,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Are you sure you want to delete ${k(l)} "${g}"`,onCancel:e=>{e.preventDefault(),e.stopPropagation()},onConfirm:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationDestroy(),oy.success({message:`${k(l)} "${g}" was deleted`})},children:(0,e.jsx)(Dc,{type:"link",onClick:e=>{e.preventDefault(),e.stopPropagation()},icon:(0,e.jsx)(dC,{}),children:`Delete ${k(l)}`})})},"destroy")},v=gC.applyFilters("graphiql_explorer_operation_action_menu_items",h,{Menu:Yx,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.jsx)(Yx,{children:b}),x=(0,e.jsx)(Hw,{overlay:y,arrow:!0,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],children:(0,e.jsx)(Dc,{type:"text",onClick:e=>e.stopPropagation(),children:(0,e.jsx)(mC,{})})});return(0,e.jsxs)(vC,{id:`collapse-wrap-${i}`,children:[(0,e.jsx)("span",{id:`collapse-wrap-${f}`}),(0,e.jsx)(iC,{id:`collapse-${i}`,tabIndex:"0",defaultActiveKey:0,children:(0,e.jsx)(iC.Panel,{header:(0,e.jsxs)("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",children:[l," ",(0,e.jsx)("span",{style:{color:d.colors.def},children:(0,e.jsx)(Nf,{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,children:(0,e.jsx)("div",{style:{padding:"10px 0 0 0"},children:Object.keys(p).sort().map((n=>(0,e.jsx)(Fh,{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},n)))})},0)},`collapse-${i}`)]})};function yC(e){const[t,n]=m.useState(e);return m.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const xC=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},wC=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Wr(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 ${Wr(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),CC=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},SC=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},tl(e)),wC(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},CC(e,e.controlHeightSM)),"&-large":Object.assign({},CC(e,e.controlHeightLG))})}},$C=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({},tl(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:Fl,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},EC=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"}}}}},kC=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"}}}}},OC=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),IC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:OC(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},jC=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`]:OC(e),[`@media (max-width: ${Wr(e.screenXSMax)})`]:[IC(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:OC(e)}}],[`@media (max-width: ${Wr(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:OC(e)}},[`@media (max-width: ${Wr(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:OC(e)}},[`@media (max-width: ${Wr(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:OC(e)}}}},PC=(e,t)=>ml(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),MC=Cl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=PC(e,n);return[SC(r),$C(r),xC(r),EC(r),kC(r),jC(r),Nx(r),Fl]}),(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}),RC=[];function NC(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 AC=e=>{let{help:t,helpStatus:n,errors:r=RC,warnings:o=RC,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=m.useContext(ud),c=`${s}-item-explain`,u=Jd(s),[d,f,p]=MC(s,u),g=(0,m.useMemo)((()=>Ra(s)),[s]),h=yC(r),v=yC(o),b=m.useMemo((()=>null!=t?[NC(t,"help",n)]:[].concat(pe(h.map(((e,t)=>NC(e,"error","error",t)))),pe(v.map(((e,t)=>NC(e,"warning","warning",t)))))),[t,n,h,v]),y={};return a&&(y.id=`${a}_help`),d(m.createElement(Wn,{motionDeadline:g.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:l},(e=>{const{className:t,style:n}=e;return m.createElement("div",Object.assign({},y,{className:F()(c,t,p,u,i,f),style:n,role:"alert"}),m.createElement(Vn,Object.assign({keys:b},Ra(s),{motionName:`${s}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return m.createElement("div",{key:t,className:F()(o,{[`${c}-${r}`]:r}),style:i},n)})))})))},FC=e=>"object"==typeof e&&null!=e&&1===e.nodeType,TC=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,zC=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return TC(n.overflowY,t)||TC(n.overflowX,t)||(e=>{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.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},LC=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,BC=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},DC=(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(!FC(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;FC(m)&&d(m);){if(m=BC(m),m===f){p.push(m);break}null!=m&&m===document.body&&zC(m)&&!zC(document.documentElement)||null!=m&&zC(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:x,top:w,right:C,bottom:S,left:$}=e.getBoundingClientRect(),{top:E,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?w-E:"end"===l?S+O:w+y/2-E+O,P="center"===s?$+x/2-I+k:"end"===s?C+k:$-I;const M=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&w>=0&&$>=0&&S<=h&&C<=g&&w>=o&&S<=c&&$>=u&&C<=i)return M;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),E=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-E-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-h:"nearest"===l?LC(b,b+h,h,E,O,b+j,b+j+y,y):j-h/2,R="start"===s?P:"center"===s?P-g/2:"end"===s?P-g:LC(v,v+g,g,m,k,v+P,v+P+x,x),I=Math.max(0,I+b),R=Math.max(0,R+v);else{I="start"===l?j-o-E:"end"===l?j-c+O+A:"nearest"===l?LC(o,c,n,E,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:LC(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 HC=["parentNode"];function _C(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function VC(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:HC.includes(n)?`form_item_${n}`:n}function WC(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 qC(e){return _C(e).join("_")}function GC(e){const[t]=Qu(),n=m.useRef({}),r=m.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=qC(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=VC(_C(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&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(DC(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of DC(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})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=qC(e);return n.current[t]}})),[e,t]);return[r]}const XC=(e,t)=>{const n=m.useContext(Ps),{getPrefixCls:r,direction:o,form:i}=m.useContext(Ka),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:g,labelCol:h,wrapperCol:v,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:x,requiredMark:w,onFinishFailed:C,name:S,style:$,feedbackIcons:E,variant:k}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Ja(c),j=m.useContext(Om),P=(0,m.useMemo)((()=>void 0!==w?w:!b&&(!i||void 0===i.requiredMark||i.requiredMark)),[b,w,i]),M=null!=f?f:null==i?void 0:i.colon,R=r("form",a),N=Jd(R),[A,T,z]=MC(R,N),L=F()(R,`${R}-${y}`,{[`${R}-hide-required-mark`]:!1===P,[`${R}-rtl`]:"rtl"===o,[`${R}-${I}`]:I},z,N,T,null==i?void 0:i.className,l,s),[B]=GC(d),{__INTERNAL__:D}=B;D.name=S;const H=(0,m.useMemo)((()=>({name:S,labelAlign:p,labelCol:h,labelWrap:g,wrapperCol:v,vertical:"vertical"===y,colon:M,requiredMark:P,itemRef:D.itemRef,form:B,feedbackIcons:E})),[S,p,h,v,y,M,P,B,E]);m.useImperativeHandle(t,(()=>B));const _=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),B.scrollToField(t,n)}};return A(m.createElement(pd.Provider,{value:k},m.createElement(js,{disabled:u},m.createElement(Za.Provider,{value:I},m.createElement(cd,{validateMessages:j},m.createElement(ld.Provider,{value:H},m.createElement(ad,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!==x)return void _(x,t);i&&void 0!==i.scrollToFirstError&&_(i.scrollToFirstError,t)}},form:B,style:Object.assign(Object.assign({},null==i?void 0:i.style),$),className:L}))))))))},KC=m.forwardRef(XC),UC=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,m.useContext)(dd);return{status:e,errors:t,warnings:n}};UC.Context=dd;const YC=UC,QC=["xxl","xl","lg","md","sm","xs"];const ZC=(0,m.createContext)({}),JC=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),tS=Cl("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"}}}}),(()=>({}))),nS=Cl("Grid",(e=>{const t=ml(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[JC(t),eS(t,""),eS(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Wr(t)})`]:Object.assign({},eS(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function rS(e,t){const[n,r]=m.useState("string"==typeof e?e:"");return m.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<QC.length;n++){const o=QC[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const oS=m.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=m.useContext(Ka),[p,h]=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=rS(o,v),x=rS(r,v),w=m.useRef(s),C=function(){const[,e]=wa(),t=(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(QC).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<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return g().useMemo((()=>{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],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}();m.useEffect((()=>{const e=C.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]))&&h(e)}));return()=>C.unsubscribe(e)}),[]);const S=d("row",n),[$,E,k]=tS(S),O=(()=>{const e=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r<QC.length;r++){const o=QC[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),I=F()(S,{[`${S}-no-wrap`]:!1===c,[`${S}-${x}`]:x,[`${S}-${y}`]:y,[`${S}-rtl`]:"rtl"===f},i,E,k),j={},P=null!=O[0]&&O[0]>0?O[0]/-2:void 0;P&&(j.marginLeft=P,j.marginRight=P);const[M,R]=O;j.rowGap=R;const N=m.useMemo((()=>({gutter:[M,R],wrap:c})),[M,R,c]);return $(m.createElement(ZC.Provider,{value:N},m.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},j),a),ref:t}),l)))})),iS=oS;function aS(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const lS=["xs","sm","md","lg","xl","xxl"],sS=m.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=m.useContext(Ka),{gutter:o,wrap:i}=m.useContext(ZC),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:d,className:f,children:p,flex:g,style:h}=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,x,w]=nS(b),C={};let S={};lS.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete v[t],S=Object.assign(Object.assign({},S),{[`${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"===r}),n.flex&&(S[`${b}-${t}-flex`]=!0,C[`--${b}-${t}-flex`]=aS(n.flex))}));const $=F()(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,S,x,w),E={};if(o&&o[0]>0){const e=o[0]/2;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=aS(g),!1!==i||E.minWidth||(E.minWidth=0)),y(m.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),h),C),className:$,ref:t}),p))})),cS=sS,uS=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},dS=wl(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=PC(e,n);return[uS(r)]})),fS=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,g=m.useContext(ld),h=r||g.wrapperCol||{},v=F()(`${p}-control`,h.className),b=m.useMemo((()=>Object.assign({},g)),[g]);delete b.labelCol,delete b.wrapperCol;const y=m.createElement("div",{className:`${p}-control-input`},m.createElement("div",{className:`${p}-control-input-content`},o)),x=m.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?m.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},m.createElement(ud.Provider,{value:x},m.createElement(AC,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&m.createElement("div",{style:{width:0,height:d}})):null,C={};u&&(C.id=`${u}_extra`);const S=s?m.createElement("div",Object.assign({},C,{className:`${p}-extra`}),s):null,$=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:y,errorList:w,extra:S}):m.createElement(m.Fragment,null,y,w,S);return m.createElement(ld.Provider,{value:b},m.createElement(cS,Object.assign({},h,{className:v}),$),m.createElement(dS,{prefixCls:t}))},pS={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 mS=function(e,t){return m.createElement(Js,z({},e,{ref:t,icon:pS}))};const gS=m.forwardRef(mS);const hS=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c}=e;var u;const[d]=tg("Form"),{vertical:f,labelAlign:p,labelCol:g,labelWrap:h,colon:v}=m.useContext(ld);if(!n)return null;const b=o||g||{},y=i||p,x=`${t}-item-label`,w=F()(x,"left"===y&&`${x}-left`,b.className,{[`${x}-wrap`]:!!h});let C=n;const S=!0===a||!1!==v&&!1!==a;S&&!f&&"string"==typeof n&&""!==n.trim()&&(C=n.replace(/[:|：]\s*$/,""));const $=function(e){return e?"object"!=typeof e||m.isValidElement(e)?{title:e}:e:null}(c);if($){const{icon:e=m.createElement(gS,null)}=$,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}($,["icon"]),r=m.createElement(rs,Object.assign({},n),m.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));C=m.createElement(m.Fragment,null,C,r)}const E="optional"===s,k="function"==typeof s;k?C=s(C,{required:!!l}):E&&!l&&(C=m.createElement(m.Fragment,null,C,m.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=Mm.Form)||void 0===u?void 0:u.optional))));const O=F()({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:E||k,[`${t}-item-no-colon`]:!S});return m.createElement(cS,Object.assign({},b,{className:w}),m.createElement("label",{htmlFor:r,className:O,title:"string"==typeof n?n:""},C))},vS={success:db,warning:mb,error:Ud,validating:tc};function bS(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=m.useContext(ld),d=WC(n,r,l,null,!!o,i),{isFormItemInput:f,status:p,hasFeedback:g,feedbackIcon:h}=m.useContext(dd),v=m.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),l=d&&vS[d];t=!1!==a&&l?m.createElement("span",{className:F()(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||m.createElement(l,null)):null}const i={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return s&&(i.status=(null!=d?d:p)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!=o?o:g),i.feedbackIcon=void 0!==o?i.feedbackIcon:h),i}),[d,o,s,f,p]);return m.createElement(dd.Provider,{value:v},t)}function yS(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:g,isRequired:h,onSubItemMetaChange: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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:x}=m.useContext(ld),w=m.useRef(null),C=yC(a),S=yC(l),$=null!=i,E=!!($||a.length||l.length),k=!!w.current&&tr(w.current),[O,I]=m.useState(null);ve((()=>{if(E&&w.current){const e=getComputedStyle(w.current);I(parseInt(e.marginBottom,10))}}),[E,k]);const j=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return WC(e?C:c.errors,e?S:c.warnings,c,"",!!u,s)}(),P=F()(y,n,r,{[`${y}-with-help`]:$||C.length||S.length,[`${y}-has-feedback`]:j&&u,[`${y}-has-success`]:"success"===j,[`${y}-has-warning`]:"warning"===j,[`${y}-has-error`]:"error"===j,[`${y}-is-validating`]:"validating"===j,[`${y}-hidden`]:d});return m.createElement("div",{className:P,style:o,ref:w},m.createElement(iS,Object.assign({className:`${y}-row`},os(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"])),m.createElement(hS,Object.assign({htmlFor:p},e,{requiredMark:x,required:null!=g?g:h,prefixCls:t})),m.createElement(fS,Object.assign({},e,c,{errors:C,warnings:S,prefixCls:t,status:j,help:i,marginBottom:O,onErrorVisibleChanged:e=>{e||I(null)}}),m.createElement(sd.Provider,{value:v},m.createElement(bS,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:j},f)))),!!O&&m.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-O}}))}const xS=m.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(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:g,help:h}=e,{getPrefixCls:v}=m.useContext(Ka),{name:b}=m.useContext(ld),y=function(e){if("function"==typeof e)return e;const t=Te(e);return t.length<=1?t[0]:t}(s),x="function"==typeof y,w=m.useContext(sd),{validateTrigger:C}=m.useContext(Wc),S=void 0!==p?p:C,$=!(null==t),E=v("form",i),k=Jd(E),[O,I,j]=MC(E,k);Ga();const P=m.useContext(qc),M=m.useRef(),[R,N]=function(){const[e,t]=m.useState({}),n=(0,m.useRef)(null),r=(0,m.useRef)([]),o=(0,m.useRef)(!1);return m.useEffect((()=>(o.current=!1,()=>{o.current=!0,kn.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=kn((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[A,T]=zt((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),z=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(pe(e.name.slice(0,-1)),pe(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[L,B]=m.useMemo((()=>{const e=pe(A.errors),t=pe(A.warnings);return Object.values(R).forEach((n=>{e.push.apply(e,pe(n.errors||[])),t.push.apply(t,pe(n.warnings||[]))})),[e,t]}),[R,A.errors,A.warnings]),D=function(){const{itemRef:e}=m.useContext(ld),t=m.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=se(e(n),o)),t.current.ref}}();function H(t,o,i){return n&&!g?m.createElement(bS,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:L,warnings:B,noStyle:!0},t):m.createElement(yS,Object.assign({key:"row"},e,{className:F()(r,j,k,I),prefixCls:E,fieldId:o,isRequired:i,errors:L,warnings:B,meta:A,onSubItemMetaChange:z}),t)}if(!$&&!x&&!o)return O(H(y));let _={};return"string"==typeof u?_.label=u:t&&(_.label=String(t)),d&&(_=Object.assign(Object.assign({},_),d)),O(m.createElement(Vu,Object.assign({},e,{messageVariables:_,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==P?void 0:P.getKey(e.name);if(T(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==h&&w){let n=e.name;if(e.destroy)n=M.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(pe(r)),M.current=n}w(e,n)}}}),((n,r,i)=>{const s=_C(t).length&&r?r.name:[],u=VC(s,b),d=void 0!==c?c:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),p=Object.assign({},n);let g=null;if(Array.isArray(y)&&$)g=y;else if(x&&(!a&&!o||$));else if(!o||x||$)if(m.isValidElement(y)){const t=Object.assign(Object.assign({},y.props),p);if(t.id||(t.id=u),h||L.length>0||B.length>0||e.extra){const n=[];(h||L.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}L.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),ue(y)&&(t.ref=D(s,y)),new Set([].concat(pe(_C(f)),pe(_C(S)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];null===(r=p[e])||void 0===r||(t=r).call.apply(t,[p].concat(l)),null===(i=(o=y.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];g=m.createElement(xS,{control:p,update:y,childProps:n},Va(y,t))}else g=x&&(a||o)&&!$?y(i):y;return H(g,u,d)})))};wS.useStatus=YC;const CS=wS;const SS=KC;SS.Item=CS,SS.List=e=>{var{prefixCls:t,children:n}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","children"]);const{getPrefixCls:o}=m.useContext(Ka),i=o("form",t),a=m.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return m.createElement(Wu,Object.assign({},r),((e,t,r)=>m.createElement(ud.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},SS.ErrorList=AC,SS.useForm=GC,SS.useFormInstance=function(){const{form:e}=(0,m.useContext)(ld);return e},SS.useWatch=od,SS.Provider=cd,SS.create=()=>{};const $S=SS,ES=t=>{const{actionOptions:n,addOperation:r}=t,o=45*n.length;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{style:{padding:"10px 10px 0 10px",borderTop:"1px solid #ccc",overflowY:"hidden",minHeight:`${o}px`},children:(0,e.jsx)($S,{name:"add-graphql-operation",className:"variable-editor-title graphiql-explorer-actions",layout:"inline",onSubmit:e=>e.preventDefault(),children:n.map(((t,n)=>{const{type:o}=t;return(0,e.jsxs)(Dc,{style:{marginBottom:"5px",textTransform:"capitalize"},block:!0,type:"primary",onClick:()=>r(o),children:["Add New ",o]},n)}))})})})},{useAppContext:kS}=wpGraphiQL,{GraphQLObjectType:OS,print:IS}=wpGraphiQL.GraphQL,{useState:jS,useEffect:PS,useRef:MS}=wp.element,RS=t=>{const[n,r]=jS("query"),[o,i]=jS(null),[a,l]=jS(null);let s=MS(null);PS((()=>{}));const c=e=>{},{schema:u,query:d}=kS(),{makeDefaultArg:f}=t;if(!u)return(0,e.jsx)("div",{style:{fontFamily:"sans-serif"},className:"error-container",children:"No Schema Available"});const p={colors:t.colors||b,checkboxChecked:t.checkboxChecked||w,checkboxUnchecked:t.checkboxUnchecked||C,arrowClosed:t.arrowClosed||x,arrowOpen:t.arrowOpen||y,styles:t.styles?{...S,...t.styles}:S},m=u.getQueryType(),g=u.getMutationType(),h=u.getSubscriptionType();if(!m&&!g&&!h)return(0,e.jsx)("div",{children:"Missing query type"});const O=m&&m.getFields(),I=g&&g.getFields(),j=h&&h.getFields(),P=E(d),M=t.getDefaultFieldNames||v,R=t.getDefaultScalarArgValue||N,A=P.definitions.map((e=>"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null)).filter(Boolean),F=0===A.length?$.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.jsx)(ES,{query:d,actionOptions:T,addOperation:e=>{const n=P.definitions,r=1===P.definitions.length&&P.definitions[0]===$.definitions[0],o=r?[]:n.filter((t=>"OperationDefinition"===t.kind&&t.operation===e)),i=`My${k(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(IS(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.jsxs)("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",children:[(0,e.jsx)("div",{style:{flexGrow:1,overflowY:"scroll",width:"100%",padding:"8px"},children: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 OS?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=IS(e);t.onEdit(n)};return(0,e.jsx)(bC,{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(IS(r))},onOperationDestroy:()=>{const e=(e=>{const t=P.definitions.filter((t=>e!==t));return{...P,definitions:t}})(n);t.onEdit(IS(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(IS(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:R,makeDefaultArg:f,onRunOperation:()=>{t.onRunOperation&&t.onRunOperation(o)},styleConfig:p,availableFragments:L},r)}))}),z]})};var NS=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}(m.PureComponent),AS=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 FS=({children:t})=>{const{ErrorBoundary:n,didCatch:r,error:o}=function(e){var t=(0,m.useReducer)(AS,{didCatch:!1,error:null}),n=t[0],r=t[1],o=(0,m.useRef)(null);function i(){return t=function(t,n){r({type:"catch",error:t}),e&&e.onDidCatch&&e.onDidCatch(t,n)},function(e){return g().createElement(NS,{onDidCatch:t,children:e.children,render:e.render,renderError:e.renderError})};var t}var a,l=(0,m.useCallback)((function(){o.current=i(),r({type:"reset"})}),[]);return{ErrorBoundary:(a=o.current,null!==a?a:(o.current=i(),o.current)),didCatch:n.didCatch,error:n.error,reset:l}}();return r&&console.warn({error:o}),r?(0,e.jsxs)("div",{style:{padding:18,fontFamily:"sans-serif"},children:[(0,e.jsx)("div",{children:"Something went wrong"}),(0,e.jsxs)("details",{style:{whiteSpace:"pre-wrap"},children:[o?o.message:null,(0,e.jsx)("br",{}),o.stack?o.stack:null]})]}):(0,e.jsx)(n,{children:t})},{useAppContext:TS}=wpGraphiQL,{useState:zS,useEffect:LS}=wp.element,BS=({schema:t,children:n})=>t?(0,e.jsx)("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",children:n}):(0,e.jsx)("div",{className:"graphiql-container",children:(0,e.jsx)("div",{className:"error-container",children:"No Schema Available"})}),DS=t=>{const{query:n,setQuery:r}=t,{schema:o}=TS(),[i,a]=zS(null);return LS((()=>{const e=E(n);i!==e&&a(e)}),[n]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f,{children:(0,e.jsx)(FS,{children:(0,e.jsx)(BS,{schema:o,children:(0,e.jsx)(RS,{schema:o,query:n,onEdit:e=>{r(e)}})})})})})};function HS(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 _S={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=HS(e,!0);return null==t?t:String(t)}},VS={encode:function(e){return null==e?e:e?"1":"0"},decode:function(e){var t=HS(e);return null==t?t:"1"===t||"0"!==t&&null}},WS=n(6663);'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]})),Object.prototype.hasOwnProperty,m.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}}),(0,WS.parse)("");const{hooks:qS}=window.wpGraphiQL;qS.addFilter("graphiql_toolbar_after_buttons","graphiql-extension",((t,n)=>{const{GraphiQL:r}=n,{toggleExplorer:o}=c();return t.push((0,e.jsx)(s.Consumer,{children:t=>(0,e.jsx)(r.Button,{onClick:()=>{o()},label:"Query Composer",title:"Query Composer"})},"graphiql-query-composer-button")),t})),qS.addFilter("graphiql_before_graphiql","graphiql-explorer",((e,t)=>(e.push((0,m.createElement)(DS,{...t,key:"graphiql-explorer"})),e))),qS.addFilter("graphiql_app","graphiql-explorer",((t,{appContext:n})=>(0,e.jsx)(u,{appContext:n,children:t})),99),qS.addFilter("graphiql_query_params_provider_config","graphiql-explorer",(e=>({...e,isQueryComposerOpen:VS,explorerIsOpen:_S})))})()})();
\ No newline at end of file
+`,vC=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)};gC((()=>{ry.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)(Kw.Item,{key:"clone"},(0,e.createElement)(Bc,{type:"link",style:{marginRight:5},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationClone(),ry.success({message:`${$(l)} "${g}" was cloned`})},icon:(0,e.createElement)(lC,null)},`Clone ${$(l)}`)),destroy:(0,e.createElement)(Kw.Item,{key:"destroy"},(0,e.createElement)(cx,{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(),ry.success({message:`${$(l)} "${g}" was deleted`})}},(0,e.createElement)(Bc,{type:"link",onClick:e=>{e.preventDefault(),e.stopPropagation()},icon:(0,e.createElement)(uC,null)},`Delete ${$(l)}`)))},v=mC.applyFilters("graphiql_explorer_operation_action_menu_items",h,{Menu:Kw,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)(Kw,null,b),w=(0,e.createElement)(Bx,{overlay:y,arrow:!0,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]},(0,e.createElement)(Bc,{type:"text",onClick:e=>e.stopPropagation()},(0,e.createElement)(pC,null)));return(0,e.createElement)(hC,{id:`collapse-wrap-${i}`},(0,e.createElement)("span",{id:`collapse-wrap-${f}`}),(0,e.createElement)(oC,{key:`collapse-${i}`,id:`collapse-${i}`,tabIndex:"0",defaultActiveKey:0},(0,e.createElement)(oC.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)(Rf,{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)(Ah,{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 bC(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 yC=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},wC=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Vr(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 ${Vr(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xC=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},CC=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},el(e)),wC(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xC(e,e.controlHeightSM)),"&-large":Object.assign({},xC(e,e.controlHeightLG))})}},SC=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({},el(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:Al,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},EC=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"}}}}},$C=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"}}}}},kC=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),OC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:kC(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},IC=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`]:kC(e),[`@media (max-width: ${Vr(e.screenXSMax)})`]:[OC(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:kC(e)}}],[`@media (max-width: ${Vr(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:kC(e)}},[`@media (max-width: ${Vr(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:kC(e)}},[`@media (max-width: ${Vr(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:kC(e)}}}},PC=(e,t)=>pl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),MC=xl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=PC(e,n);return[CC(r),SC(r),yC(r),EC(r),$C(r),IC(r),Rw(r),Al]}),(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 RC(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 NC=t=>{let{help:n,helpStatus:r,errors:o=jC,warnings:i=jC,className:a,fieldId:l,onVisibleChanged:s}=t;const{prefixCls:c}=e.useContext(cd),u=`${c}-item-explain`,d=Zd(c),[f,p,m]=MC(c,d),g=(0,e.useMemo)((()=>ja(c)),[c]),h=bC(o),v=bC(i),b=e.useMemo((()=>null!=n?[RC(n,"help",r)]:[].concat(fe(h.map(((e,t)=>RC(e,"error","error",t)))),fe(v.map(((e,t)=>RC(e,"warning","warning",t)))))),[n,r,h,v]),y={};return l&&(y.id=`${l}_help`),f(e.createElement(Vn,{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(Hn,Object.assign({keys:b},ja(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)})))})))},AC=e=>"object"==typeof e&&null!=e&&1===e.nodeType,FC=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,TC=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return FC(n.overflowY,t)||FC(n.overflowX,t)||(e=>{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.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},zC=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,LC=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},BC=(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(!AC(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;AC(m)&&d(m);){if(m=LC(m),m===f){p.push(m);break}null!=m&&m===document.body&&TC(m)&&!TC(document.documentElement)||null!=m&&TC(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,M="center"===s?E+w/2-I+k:"end"===s?C+k:E-I;const j=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&E>=0&&S<=h&&C<=g&&x>=o&&S<=c&&E>=u&&C<=i)return j;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?zC(b,b+h,h,$,O,b+P,b+P+y,y):P-h/2,R="start"===s?M:"center"===s?M-g/2:"end"===s?M-g:zC(v,v+g,g,m,k,v+M,v+M+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?zC(o,c,n,$,O+A,P,P+y,y):P-(o+n/2)+A/2,R="start"===s?M-u-m:"center"===s?M-(u+r/2)+N/2:"end"===s?M-i+k+N:zC(u,i,r,m,k+N,M,M+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,M+=e-R}j.push({el:t,top:I,left:R})}return j};const DC=["parentNode"];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}`:DC.includes(n)?`form_item_${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]=Yu(),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(BC(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of BC(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(Ps),{getPrefixCls:o,direction:i,form:a}=e.useContext(Xa),{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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Za(u),P=e.useContext(km),M=(0,e.useMemo)((()=>void 0!==x?x:!b&&(!a||void 0===a.requiredMark||a.requiredMark)),[b,x,a]),j=null!=p?p:null==a?void 0:a.colon,R=o("form",l),N=Zd(R),[F,T,z]=MC(R,N),L=A()(R,`${R}-${y}`,{[`${R}-hide-required-mark`]:!1===M,[`${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:j,requiredMark:M,itemRef:D.itemRef,form:B,feedbackIcons:$})),[S,m,h,v,y,j,M,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(fd.Provider,{value:k},e.createElement(Is,{disabled:d},e.createElement(Qa.Provider,{value:I},e.createElement(sd,{validateMessages:P},e.createElement(ad.Provider,{value:H},e.createElement(id,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)(ud);return{status:t,errors:n,warnings:r}};KC.Context=ud;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=xl("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=xl("Grid",(e=>{const t=pl(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: ${Vr(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<YC.length;e++){const r=YC[e];if(!n[r])continue;const i=t[r];if(void 0!==i)return void o(i)}})()}),[JSON.stringify(t),n]),r}const rS=e.forwardRef(((n,r)=>{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:m}=e.useContext(Xa),[g,h]=e.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=e.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=nS(a,v),w=nS(i,v),x=e.useRef(u),C=function(){const[,e]=wa(),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(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<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return t().useMemo((()=>{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;r<YC.length;r++){const o=YC[r];if(g[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),I=A()(S,{[`${S}-no-wrap`]:!1===d,[`${S}-${w}`]:w,[`${S}-${y}`]:y,[`${S}-rtl`]:"rtl"===m},l,$,k),P={},M=null!=O[0]&&O[0]>0?O[0]/-2:void 0;M&&(P.marginLeft=M,P.marginRight=M);const[j,R]=O;P.rowGap=R;const N=e.useMemo((()=>({gutter:[j,R],wrap:d})),[j,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(Xa),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=r("col",l),[y,w,x]=tS(b),C={};let S={};aS.forEach((e=>{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=wl(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=PC(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(ad),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(cd.Provider,{value:w},e.createElement(NC,{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(ad.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(Zs,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]=eg("Form"),{vertical:p,labelAlign:m,labelCol:g,labelWrap:h,colon:v}=e.useContext(ad);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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(E,["icon"]),o=e.createElement(ns,Object.assign({},r),e.cloneElement(t,{className:`${n}-item-tooltip`,title:"",onClick:e=>{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=Mm.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:ub,warning:pb,error:Kd,validating:ec};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(ad),f=VC(r,o,s,null,!!i,a),{isFormItemInput:p,status:m,hasFeedback:g,feedbackIcon:h}=e.useContext(ud),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(ud.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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${n}-item`,{requiredMark:w}=e.useContext(ad),x=e.useRef(null),C=bC(l),S=bC(s),E=null!=a,$=!!(E||l.length||s.length),k=!!x.current&&er(x.current),[O,I]=e.useState(null);he((()=>{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)}(),M=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:M,style:i,ref:x},e.createElement(oS,Object.assign({className:`${y}-row`},rs(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(ld.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(Xa),{name:b}=e.useContext(ad),y=function(e){if("function"==typeof e)return e;const t=Fe(e);return t.length<=1?t[0]:t}(c),w="function"==typeof y,x=e.useContext(ld),{validateTrigger:C}=e.useContext(Vc),S=void 0!==m?m:C,E=!(null==n),$=v("form",a),k=Zd($),[O,I,P]=MC($,k);qa();const M=e.useContext(Wc),j=e.useRef(),[R,N]=function(){const[t,n]=e.useState({}),r=(0,e.useRef)(null),o=(0,e.useRef)([]),i=(0,e.useRef)(!1);return e.useEffect((()=>(i.current=!1,()=>{i.current=!0,$n.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=$n((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}(),[F,T]=Tt((()=>({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(ad),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(_u,Object.assign({},t,{messageVariables:_,trigger:p,validateTrigger:S,onMetaChange:e=>{const t=null==M?void 0:M.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=j.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(fe(r)),j.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<a;s++)l[s]=arguments[s];null===(r=m[e])||void 0===r||(t=r).call.apply(t,[m].concat(l)),null===(i=(o=y.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}}));const r=[n["aria-required"],n["aria-invalid"],n["aria-describedby"]];g=e.createElement(yS,{control:m,update:y,childProps:r},_a(y,n))}else g=w&&(l||i)&&!E?y(a):y;return H(g,d,f)})))};wS.useStatus=UC;const xS=wS;const CS=XC;CS.Item=xS,CS.List=t=>{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","children"]);const{getPrefixCls:i}=e.useContext(Xa),a=i("form",n),l=e.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return e.createElement(Vu,Object.assign({},o),((t,n,o)=>e.createElement(cd.Provider,{value:l},r(t.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),n,{errors:o.errors,warnings:o.warnings}))))},CS.ErrorList=NC,CS.useForm=qC,CS.useFormInstance=function(){const{form:t}=(0,e.useContext)(ad);return t},CS.useWatch=rd,CS.Provider=sd,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)(Bc,{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:MS}=wp.element,jS=t=>{const[n,r]=IS("query"),[o,i]=IS(null),[a,l]=IS(null);let s=MS(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(),M=E(d),j=t.getDefaultFieldNames||h,N=t.getDefaultScalarArgValue||R,A=M.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=M.definitions,r=1===M.definitions.length&&M.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]:[...M.definitions,a],s={...M,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)(vC,{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=M.definitions.map((t=>e===t?r:t));return{...M,definitions:o}})(n,e);t.onEdit(OS(r))},onOperationDestroy:()=>{const e=(e=>{const t=M.definitions.filter((t=>e!==t));return{...M,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=[...M.definitions,r];return{...M,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={...M,definitions:M.definitions.map((t=>t===n?e:t))};return r?(m(t),t):t}return M},schema:u,getDefaultFieldNames:j,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)(jS,{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
diff --git a/build/index.asset.php b/build/index.asset.php
index acb61a78a..5efcc5726 100644
--- a/build/index.asset.php
+++ b/build/index.asset.php
@@ -1,1 +1,1 @@
-<?php return array('dependencies' => array('react-jsx-runtime', 'wp-element', 'wp-hooks'), 'version' => '964c64db1564d1c2b598');
+<?php return array('dependencies' => array('react', 'wp-element', 'wp-hooks'), 'version' => '252dbaf55e1db7ca04ca');
diff --git a/build/index.js b/build/index.js
index 29552c89e..f05fbc161 100644
--- a/build/index.js
+++ b/build/index.js
@@ -1,1 +1,1 @@
-(()=>{"use strict";var e={4291:(e,t,n)=>{n.d(t,{QG:()=>u,Us:()=>s});var r=n(6087),i=n(3408),o=n(790);const a=(0,r.createContext)(),s=()=>(0,r.useContext)(a),u=({children:e,setQueryParams:t,queryParams:n})=>{const[s,u]=(0,r.useState)(null),[c,p]=(0,r.useState)(!0),[l,d]=(0,r.useState)(null!==(f=window?.wpGraphiQLSettings?.nonce)&&void 0!==f?f:null);var f;const[y,m]=(0,r.useState)(null!==(h=window?.wpGraphiQLSettings?.graphqlEndpoint)&&void 0!==h?h:null);var h;const[T,b]=(0,r.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=i.J.applyFilters("graphiql_app_context",v);return(0,o.jsx)(a.Provider,{value:g,children: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<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if((0,u.isPromise)(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0};t.defaultTypeResolver=F;const x=function(e,t,n,r){if((0,s.isObjectLike)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function G(e,t,n){const r=n.name.value;return r===b.SchemaMetaFieldDef.name&&e.getQueryType()===t?b.SchemaMetaFieldDef:r===b.TypeMetaFieldDef.name&&e.getQueryType()===t?b.TypeMetaFieldDef:r===b.TypeNameMetaFieldDef.name?b.TypeNameMetaFieldDef:t.getFields()[r]}t.defaultFieldResolver=x},8259:(e,t,n)=>{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;n<o;++n)s.push(i(e[n],t));return 1===a?s.push("... 1 more item"):a>1&&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(;r<e.length&&o<t.length;){let a=e.charCodeAt(r),s=t.charCodeAt(o);if(i(a)&&i(s)){let u=0;do{++r,u=10*u+a-n,a=e.charCodeAt(r)}while(i(a)&&u>0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(u<c)return-1;if(u>c)return 1}else{if(a<s)return-1;if(a>s)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.length<i.length){const e=r;r=i,i=e}const a=r.length,s=i.length;if(a-s>t)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)}c<a&&(a=c),o[t]=c}if(a>t)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<t;++r)n[r]=e.charCodeAt(r);return n}},2036:(e,t,n)=>{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;t<e.length;++t){var a;const s=e[t],u=i(s);u!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&u<n&&(n=u))}return e.map(((e,t)=>0===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;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&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<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}},3932:(e,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<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return h(e,o);case 33:return y(e,s.TokenKind.BANG,o,o+1);case 36:return y(e,s.TokenKind.DOLLAR,o,o+1);case 38:return y(e,s.TokenKind.AMP,o,o+1);case 40:return y(e,s.TokenKind.PAREN_L,o,o+1);case 41:return y(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return y(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return y(e,s.TokenKind.COLON,o,o+1);case 61:return y(e,s.TokenKind.EQUALS,o,o+1);case 64:return y(e,s.TokenKind.AT,o,o+1);case 91:return y(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return y(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return y(e,s.TokenKind.BRACE_L,o,o+1);case 124:return y(e,s.TokenKind.PIPE,o,o+1);case 125:return y(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?_(e,o):v(e,o)}if((0,a.isDigit)(t)||45===t)return T(e,o,t);if((0,a.isNameStart)(t))return L(e,o);throw(0,r.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||p(n,o)?`Unexpected character: ${f(e,o)}.`:`Invalid character: ${f(e,o)}.`)}return y(e,s.TokenKind.EOF,i,i)}function h(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else{if(!p(n,i))break;i+=2}}return y(e,s.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function T(e,t,n){const i=e.source.body;let o=t,u=n,c=!1;if(45===u&&(u=i.charCodeAt(++o)),48===u){if(u=i.charCodeAt(++o),(0,a.isDigit)(u))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=b(e,o,u),u=i.charCodeAt(o);if(46===u&&(c=!0,u=i.charCodeAt(++o),o=b(e,o,u),u=i.charCodeAt(o)),69!==u&&101!==u||(c=!0,u=i.charCodeAt(++o),43!==u&&45!==u||(u=i.charCodeAt(++o)),o=b(e,o,u),u=i.charCodeAt(o)),46===u||(0,a.isNameStart)(u))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return y(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function b(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function v(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,u="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return u+=n.slice(a,o),y(e,s.TokenKind.STRING,t,o+1,u);if(92!==i){if(10===i||13===i)break;if(c(i))++o;else{if(!p(n,o))throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`);o+=2}}else{u+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?g(e,o):E(e,o):I(e,o);u+=t.value,o+=t.size,a=o}}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}function g(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|O(e),i<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function E(e,t){const n=e.source.body,i=N(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(l(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=N(n,t+8);if(d(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function N(e,t){return O(e.charCodeAt(t))<<12|O(e.charCodeAt(t+1))<<8|O(e.charCodeAt(t+2))<<4|O(e.charCodeAt(t+3))}function O(e){return e>=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<i;){const i=n.charCodeAt(u);if(34===i&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)){d+=n.slice(l,u),m.push(d);const r=y(e,s.TokenKind.BLOCK_STRING,t,u+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(u+1)||34!==n.charCodeAt(u+2)||34!==n.charCodeAt(u+3))if(10!==i&&13!==i)if(c(i))++u;else{if(!p(n,u))throw(0,r.syntaxError)(e.source,u,`Invalid character within String: ${f(e,u)}.`);u+=2}else d+=n.slice(l,u),m.push(d),13===i&&10===n.charCodeAt(u+1)?u+=2:++u,d="",l=u,a=u;else d+=n.slice(l,u),l=u+1,u+=4}throw(0,r.syntaxError)(e.source,u,"Unterminated string.")}function L(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return y(e,s.TokenKind.NAME,t,i,n.slice(t,i))}t.Lexer=u},9530:(e,t,n)=>{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<d.length;e+=80)n.push(d.slice(e,e+80));return p+o([[`${s} |`,n[0]],...n.slice(1,e+1).map((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="<SOF>",e.EOF="<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<e.length;++t){const{enter:n,leave:s}=u(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const c={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const u=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===u)t[a]=r;else if(u===s)t[a]=s;else if(void 0!==u)return u}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=c}return n};var r=n(3028),i=n(9657),o=n(6257),a=n(7030);const s=Object.freeze({});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}}t.BREAK=s},3506:(e,t,n)=>{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<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new i.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new i.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}},3754:(e,t,n)=>{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||n<p)throw new o.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,r.inspect)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(e)}`);if(e>c||e<p)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.Kind.INT)throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,s.print)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>c||t<p)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});t.GraphQLInt=l;const d=new u.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",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.isFinite(n))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.FLOAT&&e.kind!==a.Kind.INT)throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,s.print)(e)}`,e);return parseFloat(e.value)}});t.GraphQLFloat=d;const f=new u.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=T(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.GraphQLError(`String cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.STRING)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLString=f;const y=new u.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=T(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.BOOLEAN)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLBoolean=y;const m=new u.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=T(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseLiteral(e){if(e.kind!==a.Kind.STRING&&e.kind!==a.Kind.INT)throw new o.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,s.print)(e),{nodes:e});return e.value}});t.GraphQLID=m;const h=Object.freeze([f,l,d,y,m]);function T(e){if((0,i.isObjectLike)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}t.specifiedScalarTypes=h},4648:(e,t,n)=>{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<a.length;i++)for(let s=i+1;s<a.length;s++){const u=y(e,n,r,!1,o,a[i],a[s]);u&&t.push(u)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){l(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)d(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,a]of o){const o=p(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(a)}))}}}};var r=n(9657),i=n(1702),o=n(7030),a=n(585),s=n(3754),u=n(1152),c=n(6693);function p(e){return Array.isArray(e)?e.map((([e,t])=>`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<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}},6839:(e,t,n)=>{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},790:e=>{e.exports=window.ReactJSXRuntime},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=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<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if((0,u.isPromise)(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0};t.defaultTypeResolver=F;const x=function(e,t,n,r){if((0,s.isObjectLike)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function G(e,t,n){const r=n.name.value;return r===b.SchemaMetaFieldDef.name&&e.getQueryType()===t?b.SchemaMetaFieldDef:r===b.TypeMetaFieldDef.name&&e.getQueryType()===t?b.TypeMetaFieldDef:r===b.TypeNameMetaFieldDef.name?b.TypeNameMetaFieldDef:t.getFields()[r]}t.defaultFieldResolver=x},8259:(e,t,n)=>{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;n<o;++n)s.push(i(e[n],t));return 1===a?s.push("... 1 more item"):a>1&&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(;r<e.length&&o<t.length;){let a=e.charCodeAt(r),s=t.charCodeAt(o);if(i(a)&&i(s)){let u=0;do{++r,u=10*u+a-n,a=e.charCodeAt(r)}while(i(a)&&u>0);let c=0;do{++o,c=10*c+s-n,s=t.charCodeAt(o)}while(i(s)&&c>0);if(u<c)return-1;if(u>c)return 1}else{if(a<s)return-1;if(a>s)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.length<i.length){const e=r;r=i,i=e}const a=r.length,s=i.length;if(a-s>t)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)}c<a&&(a=c),o[t]=c}if(a>t)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<t;++r)n[r]=e.charCodeAt(r);return n}},2036:(e,t,n)=>{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;t<e.length;++t){var a;const s=e[t],u=i(s);u!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&u<n&&(n=u))}return e.map(((e,t)=>0===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;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&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<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}},3932:(e,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<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return h(e,o);case 33:return y(e,s.TokenKind.BANG,o,o+1);case 36:return y(e,s.TokenKind.DOLLAR,o,o+1);case 38:return y(e,s.TokenKind.AMP,o,o+1);case 40:return y(e,s.TokenKind.PAREN_L,o,o+1);case 41:return y(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return y(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return y(e,s.TokenKind.COLON,o,o+1);case 61:return y(e,s.TokenKind.EQUALS,o,o+1);case 64:return y(e,s.TokenKind.AT,o,o+1);case 91:return y(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return y(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return y(e,s.TokenKind.BRACE_L,o,o+1);case 124:return y(e,s.TokenKind.PIPE,o,o+1);case 125:return y(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?_(e,o):v(e,o)}if((0,a.isDigit)(t)||45===t)return T(e,o,t);if((0,a.isNameStart)(t))return L(e,o);throw(0,r.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||p(n,o)?`Unexpected character: ${f(e,o)}.`:`Invalid character: ${f(e,o)}.`)}return y(e,s.TokenKind.EOF,i,i)}function h(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else{if(!p(n,i))break;i+=2}}return y(e,s.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function T(e,t,n){const i=e.source.body;let o=t,u=n,c=!1;if(45===u&&(u=i.charCodeAt(++o)),48===u){if(u=i.charCodeAt(++o),(0,a.isDigit)(u))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=b(e,o,u),u=i.charCodeAt(o);if(46===u&&(c=!0,u=i.charCodeAt(++o),o=b(e,o,u),u=i.charCodeAt(o)),69!==u&&101!==u||(c=!0,u=i.charCodeAt(++o),43!==u&&45!==u||(u=i.charCodeAt(++o)),o=b(e,o,u),u=i.charCodeAt(o)),46===u||(0,a.isNameStart)(u))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return y(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function b(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function v(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,u="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return u+=n.slice(a,o),y(e,s.TokenKind.STRING,t,o+1,u);if(92!==i){if(10===i||13===i)break;if(c(i))++o;else{if(!p(n,o))throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`);o+=2}}else{u+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?g(e,o):E(e,o):I(e,o);u+=t.value,o+=t.size,a=o}}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}function g(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|O(e),i<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function E(e,t){const n=e.source.body,i=N(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(l(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=N(n,t+8);if(d(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function N(e,t){return O(e.charCodeAt(t))<<12|O(e.charCodeAt(t+1))<<8|O(e.charCodeAt(t+2))<<4|O(e.charCodeAt(t+3))}function O(e){return e>=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<i;){const i=n.charCodeAt(u);if(34===i&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)){d+=n.slice(l,u),m.push(d);const r=y(e,s.TokenKind.BLOCK_STRING,t,u+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(u+1)||34!==n.charCodeAt(u+2)||34!==n.charCodeAt(u+3))if(10!==i&&13!==i)if(c(i))++u;else{if(!p(n,u))throw(0,r.syntaxError)(e.source,u,`Invalid character within String: ${f(e,u)}.`);u+=2}else d+=n.slice(l,u),m.push(d),13===i&&10===n.charCodeAt(u+1)?u+=2:++u,d="",l=u,a=u;else d+=n.slice(l,u),l=u+1,u+=4}throw(0,r.syntaxError)(e.source,u,"Unterminated string.")}function L(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return y(e,s.TokenKind.NAME,t,i,n.slice(t,i))}t.Lexer=u},9530:(e,t,n)=>{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<d.length;e+=80)n.push(d.slice(e,e+80));return p+o([[`${s} |`,n[0]],...n.slice(1,e+1).map((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="<SOF>",e.EOF="<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<e.length;++t){const{enter:n,leave:s}=u(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const c={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const u=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===u)t[a]=r;else if(u===s)t[a]=s;else if(void 0!==u)return u}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=c}return n};var r=n(3028),i=n(9657),o=n(6257),a=n(7030);const s=Object.freeze({});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}}t.BREAK=s},3506:(e,t,n)=>{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<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new i.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new i.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}},3754:(e,t,n)=>{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||n<p)throw new o.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,r.inspect)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(e)}`);if(e>c||e<p)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.Kind.INT)throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,s.print)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>c||t<p)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});t.GraphQLInt=l;const d=new u.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",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.isFinite(n))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.FLOAT&&e.kind!==a.Kind.INT)throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,s.print)(e)}`,e);return parseFloat(e.value)}});t.GraphQLFloat=d;const f=new u.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=T(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.GraphQLError(`String cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.STRING)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLString=f;const y=new u.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=T(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.BOOLEAN)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLBoolean=y;const m=new u.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=T(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseLiteral(e){if(e.kind!==a.Kind.STRING&&e.kind!==a.Kind.INT)throw new o.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,s.print)(e),{nodes:e});return e.value}});t.GraphQLID=m;const h=Object.freeze([f,l,d,y,m]);function T(e){if((0,i.isObjectLike)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}t.specifiedScalarTypes=h},4648:(e,t,n)=>{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<a.length;i++)for(let s=i+1;s<a.length;s++){const u=y(e,n,r,!1,o,a[i],a[s]);u&&t.push(u)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){l(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)d(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,a]of o){const o=p(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(a)}))}}}};var r=n(9657),i=n(1702),o=n(7030),a=n(585),s=n(3754),u=n(1152),c=n(6693);function p(e){return Array.isArray(e)?e.map((([e,t])=>`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<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}},6839:(e,t,n)=>{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
diff --git a/package-lock.json b/package-lock.json
index b3f54219b..1197c2e5d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -38,7 +38,7 @@
         "@wordpress/e2e-test-utils-playwright": "^1.15.0",
         "@wordpress/env": "^9.2.0",
         "@wordpress/jest-preset-default": "^11.25.0",
-        "@wordpress/scripts": "^30.8.1",
+        "@wordpress/scripts": "^27.9.0",
         "babel-jest": "^29.7.0",
         "babel-plugin-inline-json-import": "^0.3.2",
         "chalk": "^5.3.0",
@@ -289,9 +289,9 @@
       }
     },
     "node_modules/@babel/eslint-parser": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.25.7.tgz",
-      "integrity": "sha512-B+BO9x86VYsQHimucBAL1fxTJKF4wyKY6ZVzee9QgzdZOUfs3BaR6AQrgoGrRI+7IFS1wUz/VyQ+SoBcSpdPbw==",
+      "version": "7.26.8",
+      "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.26.8.tgz",
+      "integrity": "sha512-3tBctaHRW6xSub26z7n8uyOTwwUsCdvIug/oxBH9n6yCO5hMj2vwDJAo7RbBMKrM7P+W2j61zLKviJQFGOYKMg==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
@@ -774,32 +774,6 @@
         "@babel/core": "^7.0.0-0"
       }
     },
-    "node_modules/@babel/plugin-syntax-dynamic-import": {
-      "version": "7.8.3",
-      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz",
-      "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@babel/helper-plugin-utils": "^7.8.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
-      }
-    },
-    "node_modules/@babel/plugin-syntax-export-namespace-from": {
-      "version": "7.8.3",
-      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz",
-      "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@babel/helper-plugin-utils": "^7.8.3"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
-      }
-    },
     "node_modules/@babel/plugin-syntax-import-assertions": {
       "version": "7.26.0",
       "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz",
@@ -2219,71 +2193,21 @@
         "w3c-keyname": "^2.2.4"
       }
     },
-    "node_modules/@csstools/css-parser-algorithms": {
-      "version": "3.0.4",
-      "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.4.tgz",
-      "integrity": "sha512-Up7rBoV77rv29d3uKHUIVubz1BTcgyUK72IvCQAbfbMv584xHcGKCKbWh7i8hPrRJ7qU4Y8IO3IY9m+iTB7P3A==",
+    "node_modules/@csstools/selector-specificity": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz",
+      "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==",
       "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/csstools"
-        },
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/csstools"
-        }
-      ],
-      "license": "MIT",
+      "license": "CC0-1.0",
       "engines": {
-        "node": ">=18"
+        "node": "^14 || ^16 || >=18"
       },
-      "peerDependencies": {
-        "@csstools/css-tokenizer": "^3.0.3"
-      }
-    },
-    "node_modules/@csstools/css-tokenizer": {
-      "version": "3.0.3",
-      "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.3.tgz",
-      "integrity": "sha512-UJnjoFsmxfKUdNYdWgOB0mWUypuLvAfQPH1+pyvRJs6euowbFkFC6P13w1l8mJyi3vxYMxc9kld5jZEGRQs6bw==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/csstools"
-        },
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/csstools"
-        }
-      ],
-      "license": "MIT",
-      "engines": {
-        "node": ">=18"
-      }
-    },
-    "node_modules/@csstools/media-query-list-parser": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-3.0.1.tgz",
-      "integrity": "sha512-HNo8gGD02kHmcbX6PvCoUuOQvn4szyB9ca63vZHKX5A81QytgDG4oxG4IaEfHTlEZSZ6MjPEMWIVU+zF2PZcgw==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/csstools"
-        },
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/csstools"
-        }
-      ],
-      "license": "MIT",
-      "engines": {
-        "node": ">=18"
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/csstools"
       },
       "peerDependencies": {
-        "@csstools/css-parser-algorithms": "^3.0.1",
-        "@csstools/css-tokenizer": "^3.0.1"
+        "postcss-selector-parser": "^6.0.10"
       }
     },
     "node_modules/@ctrl/tinycolor": {
@@ -2305,17 +2229,6 @@
         "node": ">=10.0.0"
       }
     },
-    "node_modules/@dual-bundle/import-meta-resolve": {
-      "version": "4.1.0",
-      "resolved": "https://registry.npmjs.org/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",
-      "integrity": "sha512-+nxncfwHM5SgAtrVzgpzJOI1ol0PkumhVo469KCf9lUi21IGcY90G98VuHm9VRrUypmAzawAHO9bs6hqeADaVg==",
-      "dev": true,
-      "license": "MIT",
-      "funding": {
-        "type": "github",
-        "url": "https://github.com/sponsors/wooorm"
-      }
-    },
     "node_modules/@emotion/babel-plugin": {
       "version": "11.12.0",
       "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.12.0.tgz",
@@ -3510,41 +3423,6 @@
         "@jridgewell/sourcemap-codec": "^1.4.14"
       }
     },
-    "node_modules/@keyv/serialize": {
-      "version": "1.0.2",
-      "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.0.2.tgz",
-      "integrity": "sha512-+E/LyaAeuABniD/RvUezWVXKpeuvwLEA9//nE9952zBaOdBd2mQ3pPoM8cUe2X6IcMByfuSLzmYqnYshG60+HQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "buffer": "^6.0.3"
-      }
-    },
-    "node_modules/@keyv/serialize/node_modules/buffer": {
-      "version": "6.0.3",
-      "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
-      "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/feross"
-        },
-        {
-          "type": "patreon",
-          "url": "https://www.patreon.com/feross"
-        },
-        {
-          "type": "consulting",
-          "url": "https://feross.org/support"
-        }
-      ],
-      "license": "MIT",
-      "dependencies": {
-        "base64-js": "^1.3.1",
-        "ieee754": "^1.2.1"
-      }
-    },
     "node_modules/@kwsites/file-exists": {
       "version": "1.1.1",
       "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz",
@@ -3654,9 +3532,9 @@
       }
     },
     "node_modules/@parcel/watcher": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.0.tgz",
-      "integrity": "sha512-i0GV1yJnm2n3Yq1qw6QrUrd/LI9bE8WEBOTtOkpCXHHdyN3TAGgqAK/DAT05z4fq2x04cARXt2pDmjWjL92iTQ==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz",
+      "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==",
       "dev": true,
       "hasInstallScript": true,
       "license": "MIT",
@@ -3675,25 +3553,25 @@
         "url": "https://opencollective.com/parcel"
       },
       "optionalDependencies": {
-        "@parcel/watcher-android-arm64": "2.5.0",
-        "@parcel/watcher-darwin-arm64": "2.5.0",
-        "@parcel/watcher-darwin-x64": "2.5.0",
-        "@parcel/watcher-freebsd-x64": "2.5.0",
-        "@parcel/watcher-linux-arm-glibc": "2.5.0",
-        "@parcel/watcher-linux-arm-musl": "2.5.0",
-        "@parcel/watcher-linux-arm64-glibc": "2.5.0",
-        "@parcel/watcher-linux-arm64-musl": "2.5.0",
-        "@parcel/watcher-linux-x64-glibc": "2.5.0",
-        "@parcel/watcher-linux-x64-musl": "2.5.0",
-        "@parcel/watcher-win32-arm64": "2.5.0",
-        "@parcel/watcher-win32-ia32": "2.5.0",
-        "@parcel/watcher-win32-x64": "2.5.0"
+        "@parcel/watcher-android-arm64": "2.5.1",
+        "@parcel/watcher-darwin-arm64": "2.5.1",
+        "@parcel/watcher-darwin-x64": "2.5.1",
+        "@parcel/watcher-freebsd-x64": "2.5.1",
+        "@parcel/watcher-linux-arm-glibc": "2.5.1",
+        "@parcel/watcher-linux-arm-musl": "2.5.1",
+        "@parcel/watcher-linux-arm64-glibc": "2.5.1",
+        "@parcel/watcher-linux-arm64-musl": "2.5.1",
+        "@parcel/watcher-linux-x64-glibc": "2.5.1",
+        "@parcel/watcher-linux-x64-musl": "2.5.1",
+        "@parcel/watcher-win32-arm64": "2.5.1",
+        "@parcel/watcher-win32-ia32": "2.5.1",
+        "@parcel/watcher-win32-x64": "2.5.1"
       }
     },
     "node_modules/@parcel/watcher-android-arm64": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.0.tgz",
-      "integrity": "sha512-qlX4eS28bUcQCdribHkg/herLe+0A9RyYC+mm2PXpncit8z5b3nSqGVzMNR3CmtAOgRutiZ02eIJJgP/b1iEFQ==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz",
+      "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==",
       "cpu": [
         "arm64"
       ],
@@ -3712,9 +3590,9 @@
       }
     },
     "node_modules/@parcel/watcher-darwin-arm64": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.0.tgz",
-      "integrity": "sha512-hyZ3TANnzGfLpRA2s/4U1kbw2ZI4qGxaRJbBH2DCSREFfubMswheh8TeiC1sGZ3z2jUf3s37P0BBlrD3sjVTUw==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz",
+      "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==",
       "cpu": [
         "arm64"
       ],
@@ -3733,9 +3611,9 @@
       }
     },
     "node_modules/@parcel/watcher-darwin-x64": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.0.tgz",
-      "integrity": "sha512-9rhlwd78saKf18fT869/poydQK8YqlU26TMiNg7AIu7eBp9adqbJZqmdFOsbZ5cnLp5XvRo9wcFmNHgHdWaGYA==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz",
+      "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==",
       "cpu": [
         "x64"
       ],
@@ -3754,9 +3632,9 @@
       }
     },
     "node_modules/@parcel/watcher-freebsd-x64": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.0.tgz",
-      "integrity": "sha512-syvfhZzyM8kErg3VF0xpV8dixJ+RzbUaaGaeb7uDuz0D3FK97/mZ5AJQ3XNnDsXX7KkFNtyQyFrXZzQIcN49Tw==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz",
+      "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==",
       "cpu": [
         "x64"
       ],
@@ -3775,9 +3653,9 @@
       }
     },
     "node_modules/@parcel/watcher-linux-arm-glibc": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.0.tgz",
-      "integrity": "sha512-0VQY1K35DQET3dVYWpOaPFecqOT9dbuCfzjxoQyif1Wc574t3kOSkKevULddcR9znz1TcklCE7Ht6NIxjvTqLA==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz",
+      "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==",
       "cpu": [
         "arm"
       ],
@@ -3796,9 +3674,9 @@
       }
     },
     "node_modules/@parcel/watcher-linux-arm-musl": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.0.tgz",
-      "integrity": "sha512-6uHywSIzz8+vi2lAzFeltnYbdHsDm3iIB57d4g5oaB9vKwjb6N6dRIgZMujw4nm5r6v9/BQH0noq6DzHrqr2pA==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz",
+      "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==",
       "cpu": [
         "arm"
       ],
@@ -3817,9 +3695,9 @@
       }
     },
     "node_modules/@parcel/watcher-linux-arm64-glibc": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.0.tgz",
-      "integrity": "sha512-BfNjXwZKxBy4WibDb/LDCriWSKLz+jJRL3cM/DllnHH5QUyoiUNEp3GmL80ZqxeumoADfCCP19+qiYiC8gUBjA==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz",
+      "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==",
       "cpu": [
         "arm64"
       ],
@@ -3838,9 +3716,9 @@
       }
     },
     "node_modules/@parcel/watcher-linux-arm64-musl": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.0.tgz",
-      "integrity": "sha512-S1qARKOphxfiBEkwLUbHjCY9BWPdWnW9j7f7Hb2jPplu8UZ3nes7zpPOW9bkLbHRvWM0WDTsjdOTUgW0xLBN1Q==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz",
+      "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==",
       "cpu": [
         "arm64"
       ],
@@ -3859,9 +3737,9 @@
       }
     },
     "node_modules/@parcel/watcher-linux-x64-glibc": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.0.tgz",
-      "integrity": "sha512-d9AOkusyXARkFD66S6zlGXyzx5RvY+chTP9Jp0ypSTC9d4lzyRs9ovGf/80VCxjKddcUvnsGwCHWuF2EoPgWjw==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz",
+      "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==",
       "cpu": [
         "x64"
       ],
@@ -3880,9 +3758,9 @@
       }
     },
     "node_modules/@parcel/watcher-linux-x64-musl": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.0.tgz",
-      "integrity": "sha512-iqOC+GoTDoFyk/VYSFHwjHhYrk8bljW6zOhPuhi5t9ulqiYq1togGJB5e3PwYVFFfeVgc6pbz3JdQyDoBszVaA==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz",
+      "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==",
       "cpu": [
         "x64"
       ],
@@ -3901,9 +3779,9 @@
       }
     },
     "node_modules/@parcel/watcher-win32-arm64": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.0.tgz",
-      "integrity": "sha512-twtft1d+JRNkM5YbmexfcH/N4znDtjgysFaV9zvZmmJezQsKpkfLYJ+JFV3uygugK6AtIM2oADPkB2AdhBrNig==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz",
+      "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==",
       "cpu": [
         "arm64"
       ],
@@ -3922,9 +3800,9 @@
       }
     },
     "node_modules/@parcel/watcher-win32-ia32": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.0.tgz",
-      "integrity": "sha512-+rgpsNRKwo8A53elqbbHXdOMtY/tAtTzManTWShB5Kk54N8Q9mzNWV7tV+IbGueCbcj826MfWGU3mprWtuf1TA==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz",
+      "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==",
       "cpu": [
         "ia32"
       ],
@@ -3943,9 +3821,9 @@
       }
     },
     "node_modules/@parcel/watcher-win32-x64": {
-      "version": "2.5.0",
-      "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.0.tgz",
-      "integrity": "sha512-lPrxve92zEHdgeff3aiu4gDOIt4u7sJYha6wbdEZDCDUhtjTsOMiaJzG5lMY4GkWH8p0fMmO2Ppq5G5XXG+DQw==",
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz",
+      "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==",
       "cpu": [
         "x64"
       ],
@@ -4298,6 +4176,52 @@
         "node": ">=8"
       }
     },
+    "node_modules/@sentry/hub": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.7.tgz",
+      "integrity": "sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "@sentry/types": "6.19.7",
+        "@sentry/utils": "6.19.7",
+        "tslib": "^1.9.3"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@sentry/hub/node_modules/@sentry/types": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
+      "integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@sentry/hub/node_modules/@sentry/utils": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz",
+      "integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "@sentry/types": "6.19.7",
+        "tslib": "^1.9.3"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@sentry/hub/node_modules/tslib": {
+      "version": "1.14.1",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+      "dev": true,
+      "license": "0BSD"
+    },
     "node_modules/@sentry/integrations": {
       "version": "7.120.3",
       "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.120.3.tgz",
@@ -4314,6 +4238,38 @@
         "node": ">=8"
       }
     },
+    "node_modules/@sentry/minimal": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.7.tgz",
+      "integrity": "sha512-wcYmSJOdvk6VAPx8IcmZgN08XTXRwRtB1aOLZm+MVHjIZIhHoBGZJYTVQS/BWjldsamj2cX3YGbGXNunaCfYJQ==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "@sentry/hub": "6.19.7",
+        "@sentry/types": "6.19.7",
+        "tslib": "^1.9.3"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@sentry/minimal/node_modules/@sentry/types": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
+      "integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@sentry/minimal/node_modules/tslib": {
+      "version": "1.14.1",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+      "dev": true,
+      "license": "0BSD"
+    },
     "node_modules/@sentry/node": {
       "version": "7.120.3",
       "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.120.3.tgz",
@@ -4418,29 +4374,6 @@
         "@sinonjs/commons": "^3.0.0"
       }
     },
-    "node_modules/@stylistic/stylelint-plugin": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-3.1.1.tgz",
-      "integrity": "sha512-XagAHHIa528EvyGybv8EEYGK5zrVW74cHpsjhtovVATbhDRuJYfE+X4HCaAieW9lCkwbX6L+X0I4CiUG3w/hFw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@csstools/css-parser-algorithms": "^3.0.1",
-        "@csstools/css-tokenizer": "^3.0.1",
-        "@csstools/media-query-list-parser": "^3.0.1",
-        "is-plain-object": "^5.0.0",
-        "postcss-selector-parser": "^6.1.2",
-        "postcss-value-parser": "^4.2.0",
-        "style-search": "^0.1.0",
-        "stylelint": "^16.8.2"
-      },
-      "engines": {
-        "node": "^18.12 || >=20.9"
-      },
-      "peerDependencies": {
-        "stylelint": "^16.8.0"
-      }
-    },
     "node_modules/@svgr/babel-plugin-add-jsx-attribute": {
       "version": "8.0.0",
       "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz",
@@ -5602,9 +5535,9 @@
       }
     },
     "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -5733,9 +5666,9 @@
       }
     },
     "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -5772,9 +5705,9 @@
       }
     },
     "node_modules/@typescript-eslint/utils/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -5816,9 +5749,9 @@
       }
     },
     "node_modules/@ungap/structured-clone": {
-      "version": "1.2.1",
-      "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.1.tgz",
-      "integrity": "sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==",
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",
+      "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",
       "dev": true,
       "license": "ISC"
     },
@@ -6140,15 +6073,11 @@
       }
     },
     "node_modules/@wordpress/base-styles": {
-      "version": "5.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/base-styles/-/base-styles-5.16.0.tgz",
-      "integrity": "sha512-CAaRCkoJ83+XeObkY1aiswInVHCm5JBFVCCtkEVvRlbqNipHCMyhA3rg501Ww4AOYxsX9r2rvNbGaAPMGc6oug==",
+      "version": "4.49.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/base-styles/-/base-styles-4.49.0.tgz",
+      "integrity": "sha512-yFRYqNtd26ULZ0oAHhCu/IcaA0XHI3E7kRCKajZqUvyRQj7YprXnpD3o0/pnwvF6ZFTXzCX8pXHjUc2TIv97ig==",
       "dev": true,
-      "license": "GPL-2.0-or-later",
-      "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
-      }
+      "license": "GPL-2.0-or-later"
     },
     "node_modules/@wordpress/browserslist-config": {
       "version": "5.41.0",
@@ -6465,29 +6394,21 @@
       }
     },
     "node_modules/@wordpress/dependency-extraction-webpack-plugin": {
-      "version": "6.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/dependency-extraction-webpack-plugin/-/dependency-extraction-webpack-plugin-6.16.0.tgz",
-      "integrity": "sha512-AU6SFATdbUJsd/hqD6wUaZxbikibJ4L7RGpQ2MPUsXxXZCJU8pfPE3WWIOM1VemG4dJRJO+jk0lG8uH9pwdsfA==",
+      "version": "5.9.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/dependency-extraction-webpack-plugin/-/dependency-extraction-webpack-plugin-5.9.0.tgz",
+      "integrity": "sha512-hXbCkbG1XES47t7hFSETRrLfaRSPyQPlCnhlCx7FfhYFD0wh1jVArApXX5dD+A6wTrayXX/a16MpfaNqE662XA==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "dependencies": {
         "json2php": "^0.0.7"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=18"
       },
       "peerDependencies": {
         "webpack": "^5.0.0"
       }
     },
-    "node_modules/@wordpress/dependency-extraction-webpack-plugin/node_modules/json2php": {
-      "version": "0.0.7",
-      "resolved": "https://registry.npmjs.org/json2php/-/json2php-0.0.7.tgz",
-      "integrity": "sha512-dnSoUiLAoVaMXxFsVi4CrPVYMKOuDBXTghXSmMINX44RZ8WM9cXlY7UqrQnlAcODCVO7FV3+8t/5nDKAjimLfg==",
-      "dev": true,
-      "license": "BSD"
-    },
     "node_modules/@wordpress/deprecated": {
       "version": "4.12.0",
       "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-4.12.0.tgz",
@@ -6714,21 +6635,21 @@
       }
     },
     "node_modules/@wordpress/eslint-plugin": {
-      "version": "22.2.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-22.2.0.tgz",
-      "integrity": "sha512-JKs2tEpkg6txe1emR+P7gw9OrSXvu89TMHuN1uk0wxdJeEqoF7HcxTdJBEaMHCz5HFhBHeuI5vShtX/WN6jf3g==",
+      "version": "18.1.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-18.1.0.tgz",
+      "integrity": "sha512-5eGpXEwaZsKbEh9040nVr4ggmrpPmltP+Ie4iGruWvCme6ZIFYw70CyWEV8S102IkqjH/BaH6d+CWg8tN7sc/g==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "dependencies": {
-        "@babel/eslint-parser": "7.25.7",
+        "@babel/eslint-parser": "^7.16.0",
         "@typescript-eslint/eslint-plugin": "^6.4.1",
         "@typescript-eslint/parser": "^6.4.1",
-        "@wordpress/babel-preset-default": "^8.16.0",
-        "@wordpress/prettier-config": "^4.16.0",
+        "@wordpress/babel-preset-default": "^7.42.0",
+        "@wordpress/prettier-config": "^3.15.0",
         "cosmiconfig": "^7.0.0",
         "eslint-config-prettier": "^8.3.0",
         "eslint-plugin-import": "^2.25.2",
-        "eslint-plugin-jest": "^27.4.3",
+        "eslint-plugin-jest": "^27.2.3",
         "eslint-plugin-jsdoc": "^46.4.6",
         "eslint-plugin-jsx-a11y": "^6.5.1",
         "eslint-plugin-playwright": "^0.15.3",
@@ -6739,14 +6660,14 @@
         "requireindex": "^1.2.0"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=14",
+        "npm": ">=6.14.4"
       },
       "peerDependencies": {
         "@babel/core": ">=7",
         "eslint": ">=8",
         "prettier": ">=3",
-        "typescript": ">=5"
+        "typescript": ">=4"
       },
       "peerDependenciesMeta": {
         "prettier": {
@@ -6757,292 +6678,43 @@
         }
       }
     },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@babel/plugin-transform-react-jsx": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.7.tgz",
-      "integrity": "sha512-vILAg5nwGlR9EXE8JIOX4NHXd49lrYbN8hnjffDtoULwpL9hUx/N55nqh2qd0q6FyNDfjl9V79ecKGvFbcSA0Q==",
+    "node_modules/@wordpress/eslint-plugin/node_modules/cosmiconfig": {
+      "version": "7.1.0",
+      "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
+      "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@babel/helper-annotate-as-pure": "^7.25.7",
-        "@babel/helper-module-imports": "^7.25.7",
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "@babel/plugin-syntax-jsx": "^7.25.7",
-        "@babel/types": "^7.25.7"
+        "@types/parse-json": "^4.0.0",
+        "import-fresh": "^3.2.1",
+        "parse-json": "^5.0.0",
+        "path-type": "^4.0.0",
+        "yaml": "^1.10.0"
       },
       "engines": {
-        "node": ">=6.9.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
+        "node": ">=10"
       }
     },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@babel/plugin-transform-runtime": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.25.7.tgz",
-      "integrity": "sha512-Y9p487tyTzB0yDYQOtWnC+9HGOuogtP3/wNpun1xJXEEvI6vip59BSBTsHnekZLqxmPcgsrAKt46HAAb//xGhg==",
+    "node_modules/@wordpress/eslint-plugin/node_modules/globals": {
+      "version": "13.24.0",
+      "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
+      "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@babel/helper-module-imports": "^7.25.7",
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "babel-plugin-polyfill-corejs2": "^0.4.10",
-        "babel-plugin-polyfill-corejs3": "^0.10.6",
-        "babel-plugin-polyfill-regenerator": "^0.6.1",
-        "semver": "^6.3.1"
+        "type-fest": "^0.20.2"
       },
       "engines": {
-        "node": ">=6.9.0"
+        "node": ">=8"
       },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
       }
     },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@babel/preset-env": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.7.tgz",
-      "integrity": "sha512-Gibz4OUdyNqqLj+7OAvBZxOD7CklCtMA5/j0JgUEwOnaRULsPDXmic2iKxL2DX2vQduPR5wH2hjZas/Vr/Oc0g==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@babel/compat-data": "^7.25.7",
-        "@babel/helper-compilation-targets": "^7.25.7",
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "@babel/helper-validator-option": "^7.25.7",
-        "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.7",
-        "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.7",
-        "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.7",
-        "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.7",
-        "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.7",
-        "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
-        "@babel/plugin-syntax-async-generators": "^7.8.4",
-        "@babel/plugin-syntax-class-properties": "^7.12.13",
-        "@babel/plugin-syntax-class-static-block": "^7.14.5",
-        "@babel/plugin-syntax-dynamic-import": "^7.8.3",
-        "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
-        "@babel/plugin-syntax-import-assertions": "^7.25.7",
-        "@babel/plugin-syntax-import-attributes": "^7.25.7",
-        "@babel/plugin-syntax-import-meta": "^7.10.4",
-        "@babel/plugin-syntax-json-strings": "^7.8.3",
-        "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
-        "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
-        "@babel/plugin-syntax-numeric-separator": "^7.10.4",
-        "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
-        "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
-        "@babel/plugin-syntax-optional-chaining": "^7.8.3",
-        "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
-        "@babel/plugin-syntax-top-level-await": "^7.14.5",
-        "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
-        "@babel/plugin-transform-arrow-functions": "^7.25.7",
-        "@babel/plugin-transform-async-generator-functions": "^7.25.7",
-        "@babel/plugin-transform-async-to-generator": "^7.25.7",
-        "@babel/plugin-transform-block-scoped-functions": "^7.25.7",
-        "@babel/plugin-transform-block-scoping": "^7.25.7",
-        "@babel/plugin-transform-class-properties": "^7.25.7",
-        "@babel/plugin-transform-class-static-block": "^7.25.7",
-        "@babel/plugin-transform-classes": "^7.25.7",
-        "@babel/plugin-transform-computed-properties": "^7.25.7",
-        "@babel/plugin-transform-destructuring": "^7.25.7",
-        "@babel/plugin-transform-dotall-regex": "^7.25.7",
-        "@babel/plugin-transform-duplicate-keys": "^7.25.7",
-        "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.7",
-        "@babel/plugin-transform-dynamic-import": "^7.25.7",
-        "@babel/plugin-transform-exponentiation-operator": "^7.25.7",
-        "@babel/plugin-transform-export-namespace-from": "^7.25.7",
-        "@babel/plugin-transform-for-of": "^7.25.7",
-        "@babel/plugin-transform-function-name": "^7.25.7",
-        "@babel/plugin-transform-json-strings": "^7.25.7",
-        "@babel/plugin-transform-literals": "^7.25.7",
-        "@babel/plugin-transform-logical-assignment-operators": "^7.25.7",
-        "@babel/plugin-transform-member-expression-literals": "^7.25.7",
-        "@babel/plugin-transform-modules-amd": "^7.25.7",
-        "@babel/plugin-transform-modules-commonjs": "^7.25.7",
-        "@babel/plugin-transform-modules-systemjs": "^7.25.7",
-        "@babel/plugin-transform-modules-umd": "^7.25.7",
-        "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.7",
-        "@babel/plugin-transform-new-target": "^7.25.7",
-        "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.7",
-        "@babel/plugin-transform-numeric-separator": "^7.25.7",
-        "@babel/plugin-transform-object-rest-spread": "^7.25.7",
-        "@babel/plugin-transform-object-super": "^7.25.7",
-        "@babel/plugin-transform-optional-catch-binding": "^7.25.7",
-        "@babel/plugin-transform-optional-chaining": "^7.25.7",
-        "@babel/plugin-transform-parameters": "^7.25.7",
-        "@babel/plugin-transform-private-methods": "^7.25.7",
-        "@babel/plugin-transform-private-property-in-object": "^7.25.7",
-        "@babel/plugin-transform-property-literals": "^7.25.7",
-        "@babel/plugin-transform-regenerator": "^7.25.7",
-        "@babel/plugin-transform-reserved-words": "^7.25.7",
-        "@babel/plugin-transform-shorthand-properties": "^7.25.7",
-        "@babel/plugin-transform-spread": "^7.25.7",
-        "@babel/plugin-transform-sticky-regex": "^7.25.7",
-        "@babel/plugin-transform-template-literals": "^7.25.7",
-        "@babel/plugin-transform-typeof-symbol": "^7.25.7",
-        "@babel/plugin-transform-unicode-escapes": "^7.25.7",
-        "@babel/plugin-transform-unicode-property-regex": "^7.25.7",
-        "@babel/plugin-transform-unicode-regex": "^7.25.7",
-        "@babel/plugin-transform-unicode-sets-regex": "^7.25.7",
-        "@babel/preset-modules": "0.1.6-no-external-plugins",
-        "babel-plugin-polyfill-corejs2": "^0.4.10",
-        "babel-plugin-polyfill-corejs3": "^0.10.6",
-        "babel-plugin-polyfill-regenerator": "^0.6.1",
-        "core-js-compat": "^3.38.1",
-        "semver": "^6.3.1"
-      },
-      "engines": {
-        "node": ">=6.9.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@babel/preset-typescript": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.25.7.tgz",
-      "integrity": "sha512-rkkpaXJZOFN45Fb+Gki0c+KMIglk4+zZXOoMJuyEK8y8Kkc8Jd3BDmP7qPsz0zQMJj+UD7EprF+AqAXcILnexw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "@babel/helper-validator-option": "^7.25.7",
-        "@babel/plugin-syntax-jsx": "^7.25.7",
-        "@babel/plugin-transform-modules-commonjs": "^7.25.7",
-        "@babel/plugin-transform-typescript": "^7.25.7"
-      },
-      "engines": {
-        "node": ">=6.9.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@babel/runtime": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz",
-      "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "regenerator-runtime": "^0.14.0"
-      },
-      "engines": {
-        "node": ">=6.9.0"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@wordpress/babel-preset-default": {
-      "version": "8.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/babel-preset-default/-/babel-preset-default-8.16.0.tgz",
-      "integrity": "sha512-CPAMxQ5eMmsRNJN0edUZvsJDnmALQFGbWyCxsJiJJ/0LFi1lYFC7r5YGcJXVVD+oX9L908NZpxwsQBHb6gkxig==",
-      "dev": true,
-      "license": "GPL-2.0-or-later",
-      "dependencies": {
-        "@babel/core": "7.25.7",
-        "@babel/plugin-transform-react-jsx": "7.25.7",
-        "@babel/plugin-transform-runtime": "7.25.7",
-        "@babel/preset-env": "7.25.7",
-        "@babel/preset-typescript": "7.25.7",
-        "@babel/runtime": "7.25.7",
-        "@wordpress/browserslist-config": "^6.16.0",
-        "@wordpress/warning": "^3.16.0",
-        "browserslist": "^4.21.10",
-        "core-js": "^3.31.0",
-        "react": "^18.3.0"
-      },
-      "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@wordpress/babel-preset-default/node_modules/@babel/core": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.7.tgz",
-      "integrity": "sha512-yJ474Zv3cwiSOO9nXJuqzvwEeM+chDuQ8GJirw+pZ91sCGCyOZ3dJkVE09fTV0VEVzXyLWhh3G/AolYTPX7Mow==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@ampproject/remapping": "^2.2.0",
-        "@babel/code-frame": "^7.25.7",
-        "@babel/generator": "^7.25.7",
-        "@babel/helper-compilation-targets": "^7.25.7",
-        "@babel/helper-module-transforms": "^7.25.7",
-        "@babel/helpers": "^7.25.7",
-        "@babel/parser": "^7.25.7",
-        "@babel/template": "^7.25.7",
-        "@babel/traverse": "^7.25.7",
-        "@babel/types": "^7.25.7",
-        "convert-source-map": "^2.0.0",
-        "debug": "^4.1.0",
-        "gensync": "^1.0.0-beta.2",
-        "json5": "^2.2.3",
-        "semver": "^6.3.1"
-      },
-      "engines": {
-        "node": ">=6.9.0"
-      },
-      "funding": {
-        "type": "opencollective",
-        "url": "https://opencollective.com/babel"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@wordpress/browserslist-config": {
-      "version": "6.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-6.16.0.tgz",
-      "integrity": "sha512-ppjgUOjCFwLjH5XCDAfavRkIAj9DKEVGj12YMGL+dzSikbDU9L8VnMT1p08G1bAcBkTRLtBX8KkJJdyUI1JGsQ==",
-      "dev": true,
-      "license": "GPL-2.0-or-later",
-      "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/@wordpress/warning": {
-      "version": "3.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-3.16.0.tgz",
-      "integrity": "sha512-XsgqRPvB+VSecXnD3VfvJJxhcdTTX4EkgdzvWspmQnw0rNCV636KByZVgolzYhvr3La9EgqO+MqXzwvPHg/xfQ==",
-      "dev": true,
-      "license": "GPL-2.0-or-later",
-      "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/cosmiconfig": {
-      "version": "7.1.0",
-      "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
-      "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@types/parse-json": "^4.0.0",
-        "import-fresh": "^3.2.1",
-        "parse-json": "^5.0.0",
-        "path-type": "^4.0.0",
-        "yaml": "^1.10.0"
-      },
-      "engines": {
-        "node": ">=10"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/globals": {
-      "version": "13.24.0",
-      "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
-      "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "type-fest": "^0.20.2"
-      },
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/@wordpress/eslint-plugin/node_modules/type-fest": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
-      "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+    "node_modules/@wordpress/eslint-plugin/node_modules/type-fest": {
+      "version": "0.20.2",
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
+      "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
       "dev": true,
       "license": "(MIT OR CC0-1.0)",
       "engines": {
@@ -7246,46 +6918,43 @@
       }
     },
     "node_modules/@wordpress/npm-package-json-lint-config": {
-      "version": "5.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/npm-package-json-lint-config/-/npm-package-json-lint-config-5.16.0.tgz",
-      "integrity": "sha512-TCcaVQx76erSPWoGctLYUSCx2fOmT8vVBR2w8O/2q6+qEO4G4FiCYhj2tYliGNH/H9hQX/6QvfIRWIEoCnvMXQ==",
+      "version": "4.43.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/npm-package-json-lint-config/-/npm-package-json-lint-config-4.43.0.tgz",
+      "integrity": "sha512-XSb7AdDC7yGTBVYeRM4oqmOygEB+/+tk7lobLIGDmlZJs+M3F/NUvQq0Vcas1pojq2fyPYTUwOlu81ga33fNwQ==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=14"
       },
       "peerDependencies": {
         "npm-package-json-lint": ">=6.0.0"
       }
     },
     "node_modules/@wordpress/postcss-plugins-preset": {
-      "version": "5.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/postcss-plugins-preset/-/postcss-plugins-preset-5.16.0.tgz",
-      "integrity": "sha512-+rVpUQo+HXGFBvCLox45OxwT/U4hsDD8UpcDh8MAwFwrYf33GUGgdAhO5i4V3RyJiMmiZpsemkHFjlOg10kUjQ==",
+      "version": "4.42.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/postcss-plugins-preset/-/postcss-plugins-preset-4.42.0.tgz",
+      "integrity": "sha512-5xmKF7IUsqS5JcmJlHKHq7RaR6ZpaLj3n9c+X0X0/Oo7ZCIGp6WeDQngx13sH4NJoKXrZ9g4n1rbzhEKeo/Wtg==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "dependencies": {
-        "@wordpress/base-styles": "^5.16.0",
-        "autoprefixer": "^10.4.20"
+        "@wordpress/base-styles": "^4.49.0",
+        "autoprefixer": "^10.2.5"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=14"
       },
       "peerDependencies": {
         "postcss": "^8.0.0"
       }
     },
     "node_modules/@wordpress/prettier-config": {
-      "version": "4.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-4.16.0.tgz",
-      "integrity": "sha512-raaEW2x+pPfIYXF7RUJGEH8zeYWd4esIE0bJbKTAJV0yM+RE/DOWsGLGPiVvLEAAPg2AkIZ7oX0UPOYsBrsBqw==",
+      "version": "3.15.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-3.15.0.tgz",
+      "integrity": "sha512-exC2rkEioTt//AnzPRyaaFv8FNYIvamPDytNol5bKQ6Qh65QSdZZE9V+GtRCrIPL7/Bq6xba03XuRVxl9TjtJg==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=14"
       },
       "peerDependencies": {
         "prettier": ">=3"
@@ -7428,34 +7097,34 @@
       }
     },
     "node_modules/@wordpress/scripts": {
-      "version": "30.9.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/scripts/-/scripts-30.9.0.tgz",
-      "integrity": "sha512-tyfzDlI4Zplnw5BdMaO5QgItzEU6FsxK3bf2yZrx+fLjKwLndiTWk6ObDEW+tIrwWpCZv8d54z9mNMwIwgXVow==",
+      "version": "27.9.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/scripts/-/scripts-27.9.0.tgz",
+      "integrity": "sha512-ohiDHMnfTTBTi7qS7AVJZUi1dxwg0k3Aav1a8CzUoOE8YoT8tvMQ3W89H9XgqMgMTWUCdgTUBYLTJTivfVVbXQ==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "dependencies": {
-        "@babel/core": "7.25.7",
+        "@babel/core": "^7.16.0",
         "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
         "@svgr/webpack": "^8.0.1",
-        "@wordpress/babel-preset-default": "^8.16.0",
-        "@wordpress/browserslist-config": "^6.16.0",
-        "@wordpress/dependency-extraction-webpack-plugin": "^6.16.0",
-        "@wordpress/e2e-test-utils-playwright": "^1.16.0",
-        "@wordpress/eslint-plugin": "^22.2.0",
-        "@wordpress/jest-preset-default": "^12.16.0",
-        "@wordpress/npm-package-json-lint-config": "^5.16.0",
-        "@wordpress/postcss-plugins-preset": "^5.16.0",
-        "@wordpress/prettier-config": "^4.16.0",
-        "@wordpress/stylelint-config": "^23.8.0",
+        "@wordpress/babel-preset-default": "^7.42.0",
+        "@wordpress/browserslist-config": "^5.41.0",
+        "@wordpress/dependency-extraction-webpack-plugin": "^5.9.0",
+        "@wordpress/e2e-test-utils-playwright": "^0.26.0",
+        "@wordpress/eslint-plugin": "^18.1.0",
+        "@wordpress/jest-preset-default": "^11.29.0",
+        "@wordpress/npm-package-json-lint-config": "^4.43.0",
+        "@wordpress/postcss-plugins-preset": "^4.42.0",
+        "@wordpress/prettier-config": "^3.15.0",
+        "@wordpress/stylelint-config": "^21.41.0",
         "adm-zip": "^0.5.9",
-        "babel-jest": "29.7.0",
-        "babel-loader": "9.2.1",
+        "babel-jest": "^29.6.2",
+        "babel-loader": "^8.2.3",
         "browserslist": "^4.21.10",
         "chalk": "^4.0.0",
         "check-node-version": "^4.1.0",
         "clean-webpack-plugin": "^3.0.0",
         "copy-webpack-plugin": "^10.2.0",
-        "cross-spawn": "^7.0.6",
+        "cross-spawn": "^5.1.0",
         "css-loader": "^6.2.0",
         "cssnano": "^6.0.1",
         "cwd": "^0.10.0",
@@ -7465,32 +7134,30 @@
         "fast-glob": "^3.2.7",
         "filenamify": "^4.2.0",
         "jest": "^29.6.2",
-        "jest-dev-server": "^10.1.4",
+        "jest-dev-server": "^9.0.1",
         "jest-environment-jsdom": "^29.6.2",
         "jest-environment-node": "^29.6.2",
-        "json2php": "^0.0.9",
         "markdownlint-cli": "^0.31.1",
         "merge-deep": "^3.0.3",
-        "mini-css-extract-plugin": "^2.9.2",
+        "mini-css-extract-plugin": "^2.5.1",
         "minimist": "^1.2.0",
         "npm-package-json-lint": "^6.4.0",
         "npm-packlist": "^3.0.0",
         "postcss": "^8.4.5",
         "postcss-loader": "^6.2.1",
         "prettier": "npm:wp-prettier@3.0.3",
-        "puppeteer-core": "^23.10.1",
+        "puppeteer-core": "^13.2.0",
         "react-refresh": "^0.14.0",
         "read-pkg-up": "^7.0.1",
         "resolve-bin": "^0.4.0",
-        "rtlcss": "^4.3.0",
-        "sass": "^1.54.0",
-        "sass-loader": "^16.0.3",
-        "schema-utils": "^4.2.0",
+        "rtlcss-webpack-plugin": "^4.0.7",
+        "sass": "^1.35.2",
+        "sass-loader": "^12.1.0",
         "source-map-loader": "^3.0.0",
-        "stylelint": "^16.8.2",
-        "terser-webpack-plugin": "^5.3.10",
+        "stylelint": "^14.2.0",
+        "terser-webpack-plugin": "^5.3.9",
         "url-loader": "^4.1.1",
-        "webpack": "^5.97.0",
+        "webpack": "^5.88.2",
         "webpack-bundle-analyzer": "^4.9.1",
         "webpack-cli": "^5.1.4",
         "webpack-dev-server": "^4.15.1"
@@ -7499,364 +7166,1023 @@
         "wp-scripts": "bin/wp-scripts.js"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=18",
+        "npm": ">=6.14.4"
       },
       "peerDependencies": {
-        "@playwright/test": "^1.49.1",
+        "@playwright/test": "^1.43.0",
         "react": "^18.0.0",
         "react-dom": "^18.0.0"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@babel/core": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.7.tgz",
-      "integrity": "sha512-yJ474Zv3cwiSOO9nXJuqzvwEeM+chDuQ8GJirw+pZ91sCGCyOZ3dJkVE09fTV0VEVzXyLWhh3G/AolYTPX7Mow==",
+    "node_modules/@wordpress/scripts/node_modules/@puppeteer/browsers": {
+      "version": "1.4.6",
+      "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.4.6.tgz",
+      "integrity": "sha512-x4BEjr2SjOPowNeiguzjozQbsc6h437ovD/wu+JpaenxVLm3jkgzHY2xOslMTp50HoTvQreMjiexiGQw1sqZlQ==",
       "dev": true,
-      "license": "MIT",
+      "license": "Apache-2.0",
       "dependencies": {
-        "@ampproject/remapping": "^2.2.0",
-        "@babel/code-frame": "^7.25.7",
-        "@babel/generator": "^7.25.7",
-        "@babel/helper-compilation-targets": "^7.25.7",
-        "@babel/helper-module-transforms": "^7.25.7",
-        "@babel/helpers": "^7.25.7",
-        "@babel/parser": "^7.25.7",
-        "@babel/template": "^7.25.7",
-        "@babel/traverse": "^7.25.7",
-        "@babel/types": "^7.25.7",
-        "convert-source-map": "^2.0.0",
-        "debug": "^4.1.0",
-        "gensync": "^1.0.0-beta.2",
-        "json5": "^2.2.3",
-        "semver": "^6.3.1"
+        "debug": "4.3.4",
+        "extract-zip": "2.0.1",
+        "progress": "2.0.3",
+        "proxy-agent": "6.3.0",
+        "tar-fs": "3.0.4",
+        "unbzip2-stream": "1.4.3",
+        "yargs": "17.7.1"
+      },
+      "bin": {
+        "browsers": "lib/cjs/main-cli.js"
       },
       "engines": {
-        "node": ">=6.9.0"
+        "node": ">=16.3.0"
       },
-      "funding": {
-        "type": "opencollective",
-        "url": "https://opencollective.com/babel"
+      "peerDependencies": {
+        "typescript": ">= 4.7.4"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@babel/plugin-transform-react-jsx": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.7.tgz",
-      "integrity": "sha512-vILAg5nwGlR9EXE8JIOX4NHXd49lrYbN8hnjffDtoULwpL9hUx/N55nqh2qd0q6FyNDfjl9V79ecKGvFbcSA0Q==",
+    "node_modules/@wordpress/scripts/node_modules/@puppeteer/browsers/node_modules/debug": {
+      "version": "4.3.4",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@babel/helper-annotate-as-pure": "^7.25.7",
-        "@babel/helper-module-imports": "^7.25.7",
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "@babel/plugin-syntax-jsx": "^7.25.7",
-        "@babel/types": "^7.25.7"
+        "ms": "2.1.2"
       },
       "engines": {
-        "node": ">=6.9.0"
+        "node": ">=6.0"
       },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@babel/plugin-transform-runtime": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.25.7.tgz",
-      "integrity": "sha512-Y9p487tyTzB0yDYQOtWnC+9HGOuogtP3/wNpun1xJXEEvI6vip59BSBTsHnekZLqxmPcgsrAKt46HAAb//xGhg==",
+    "node_modules/@wordpress/scripts/node_modules/@puppeteer/browsers/node_modules/ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/@puppeteer/browsers/node_modules/tar-fs": {
+      "version": "3.0.4",
+      "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz",
+      "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@babel/helper-module-imports": "^7.25.7",
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "babel-plugin-polyfill-corejs2": "^0.4.10",
-        "babel-plugin-polyfill-corejs3": "^0.10.6",
-        "babel-plugin-polyfill-regenerator": "^0.6.1",
-        "semver": "^6.3.1"
-      },
-      "engines": {
-        "node": ">=6.9.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
+        "mkdirp-classic": "^0.5.2",
+        "pump": "^3.0.0",
+        "tar-stream": "^3.1.5"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@babel/preset-env": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.7.tgz",
-      "integrity": "sha512-Gibz4OUdyNqqLj+7OAvBZxOD7CklCtMA5/j0JgUEwOnaRULsPDXmic2iKxL2DX2vQduPR5wH2hjZas/Vr/Oc0g==",
+    "node_modules/@wordpress/scripts/node_modules/@puppeteer/browsers/node_modules/tar-stream": {
+      "version": "3.1.7",
+      "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz",
+      "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@babel/compat-data": "^7.25.7",
-        "@babel/helper-compilation-targets": "^7.25.7",
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "@babel/helper-validator-option": "^7.25.7",
-        "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.7",
-        "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.7",
-        "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.7",
-        "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.7",
-        "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.7",
-        "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
-        "@babel/plugin-syntax-async-generators": "^7.8.4",
-        "@babel/plugin-syntax-class-properties": "^7.12.13",
-        "@babel/plugin-syntax-class-static-block": "^7.14.5",
-        "@babel/plugin-syntax-dynamic-import": "^7.8.3",
-        "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
-        "@babel/plugin-syntax-import-assertions": "^7.25.7",
-        "@babel/plugin-syntax-import-attributes": "^7.25.7",
-        "@babel/plugin-syntax-import-meta": "^7.10.4",
-        "@babel/plugin-syntax-json-strings": "^7.8.3",
-        "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
-        "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
-        "@babel/plugin-syntax-numeric-separator": "^7.10.4",
-        "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
-        "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
-        "@babel/plugin-syntax-optional-chaining": "^7.8.3",
-        "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
-        "@babel/plugin-syntax-top-level-await": "^7.14.5",
-        "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
-        "@babel/plugin-transform-arrow-functions": "^7.25.7",
-        "@babel/plugin-transform-async-generator-functions": "^7.25.7",
-        "@babel/plugin-transform-async-to-generator": "^7.25.7",
-        "@babel/plugin-transform-block-scoped-functions": "^7.25.7",
-        "@babel/plugin-transform-block-scoping": "^7.25.7",
-        "@babel/plugin-transform-class-properties": "^7.25.7",
-        "@babel/plugin-transform-class-static-block": "^7.25.7",
-        "@babel/plugin-transform-classes": "^7.25.7",
-        "@babel/plugin-transform-computed-properties": "^7.25.7",
-        "@babel/plugin-transform-destructuring": "^7.25.7",
-        "@babel/plugin-transform-dotall-regex": "^7.25.7",
-        "@babel/plugin-transform-duplicate-keys": "^7.25.7",
-        "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.7",
-        "@babel/plugin-transform-dynamic-import": "^7.25.7",
-        "@babel/plugin-transform-exponentiation-operator": "^7.25.7",
-        "@babel/plugin-transform-export-namespace-from": "^7.25.7",
-        "@babel/plugin-transform-for-of": "^7.25.7",
-        "@babel/plugin-transform-function-name": "^7.25.7",
-        "@babel/plugin-transform-json-strings": "^7.25.7",
-        "@babel/plugin-transform-literals": "^7.25.7",
-        "@babel/plugin-transform-logical-assignment-operators": "^7.25.7",
-        "@babel/plugin-transform-member-expression-literals": "^7.25.7",
-        "@babel/plugin-transform-modules-amd": "^7.25.7",
-        "@babel/plugin-transform-modules-commonjs": "^7.25.7",
-        "@babel/plugin-transform-modules-systemjs": "^7.25.7",
-        "@babel/plugin-transform-modules-umd": "^7.25.7",
-        "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.7",
-        "@babel/plugin-transform-new-target": "^7.25.7",
-        "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.7",
-        "@babel/plugin-transform-numeric-separator": "^7.25.7",
-        "@babel/plugin-transform-object-rest-spread": "^7.25.7",
-        "@babel/plugin-transform-object-super": "^7.25.7",
-        "@babel/plugin-transform-optional-catch-binding": "^7.25.7",
-        "@babel/plugin-transform-optional-chaining": "^7.25.7",
-        "@babel/plugin-transform-parameters": "^7.25.7",
-        "@babel/plugin-transform-private-methods": "^7.25.7",
-        "@babel/plugin-transform-private-property-in-object": "^7.25.7",
-        "@babel/plugin-transform-property-literals": "^7.25.7",
-        "@babel/plugin-transform-regenerator": "^7.25.7",
-        "@babel/plugin-transform-reserved-words": "^7.25.7",
-        "@babel/plugin-transform-shorthand-properties": "^7.25.7",
-        "@babel/plugin-transform-spread": "^7.25.7",
-        "@babel/plugin-transform-sticky-regex": "^7.25.7",
-        "@babel/plugin-transform-template-literals": "^7.25.7",
-        "@babel/plugin-transform-typeof-symbol": "^7.25.7",
-        "@babel/plugin-transform-unicode-escapes": "^7.25.7",
-        "@babel/plugin-transform-unicode-property-regex": "^7.25.7",
-        "@babel/plugin-transform-unicode-regex": "^7.25.7",
-        "@babel/plugin-transform-unicode-sets-regex": "^7.25.7",
-        "@babel/preset-modules": "0.1.6-no-external-plugins",
-        "babel-plugin-polyfill-corejs2": "^0.4.10",
-        "babel-plugin-polyfill-corejs3": "^0.10.6",
-        "babel-plugin-polyfill-regenerator": "^0.6.1",
-        "core-js-compat": "^3.38.1",
-        "semver": "^6.3.1"
-      },
-      "engines": {
-        "node": ">=6.9.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
+        "b4a": "^1.6.4",
+        "fast-fifo": "^1.2.0",
+        "streamx": "^2.15.0"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@babel/preset-typescript": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.25.7.tgz",
-      "integrity": "sha512-rkkpaXJZOFN45Fb+Gki0c+KMIglk4+zZXOoMJuyEK8y8Kkc8Jd3BDmP7qPsz0zQMJj+UD7EprF+AqAXcILnexw==",
+    "node_modules/@wordpress/scripts/node_modules/@sentry/core": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz",
+      "integrity": "sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==",
       "dev": true,
-      "license": "MIT",
+      "license": "BSD-3-Clause",
       "dependencies": {
-        "@babel/helper-plugin-utils": "^7.25.7",
-        "@babel/helper-validator-option": "^7.25.7",
-        "@babel/plugin-syntax-jsx": "^7.25.7",
-        "@babel/plugin-transform-modules-commonjs": "^7.25.7",
-        "@babel/plugin-transform-typescript": "^7.25.7"
+        "@sentry/hub": "6.19.7",
+        "@sentry/minimal": "6.19.7",
+        "@sentry/types": "6.19.7",
+        "@sentry/utils": "6.19.7",
+        "tslib": "^1.9.3"
       },
       "engines": {
-        "node": ">=6.9.0"
-      },
-      "peerDependencies": {
-        "@babel/core": "^7.0.0-0"
+        "node": ">=6"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@babel/runtime": {
-      "version": "7.25.7",
-      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz",
-      "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==",
+    "node_modules/@wordpress/scripts/node_modules/@sentry/node": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/node/-/node-6.19.7.tgz",
+      "integrity": "sha512-gtmRC4dAXKODMpHXKfrkfvyBL3cI8y64vEi3fDD046uqYcrWdgoQsffuBbxMAizc6Ez1ia+f0Flue6p15Qaltg==",
       "dev": true,
-      "license": "MIT",
+      "license": "BSD-3-Clause",
       "dependencies": {
-        "regenerator-runtime": "^0.14.0"
+        "@sentry/core": "6.19.7",
+        "@sentry/hub": "6.19.7",
+        "@sentry/types": "6.19.7",
+        "@sentry/utils": "6.19.7",
+        "cookie": "^0.4.1",
+        "https-proxy-agent": "^5.0.0",
+        "lru_map": "^0.3.3",
+        "tslib": "^1.9.3"
       },
       "engines": {
-        "node": ">=6.9.0"
+        "node": ">=6"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@wordpress/babel-preset-default": {
-      "version": "8.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/babel-preset-default/-/babel-preset-default-8.16.0.tgz",
-      "integrity": "sha512-CPAMxQ5eMmsRNJN0edUZvsJDnmALQFGbWyCxsJiJJ/0LFi1lYFC7r5YGcJXVVD+oX9L908NZpxwsQBHb6gkxig==",
+    "node_modules/@wordpress/scripts/node_modules/@sentry/types": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz",
+      "integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==",
       "dev": true,
-      "license": "GPL-2.0-or-later",
+      "license": "BSD-3-Clause",
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/@sentry/utils": {
+      "version": "6.19.7",
+      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz",
+      "integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==",
+      "dev": true,
+      "license": "BSD-3-Clause",
       "dependencies": {
-        "@babel/core": "7.25.7",
-        "@babel/plugin-transform-react-jsx": "7.25.7",
-        "@babel/plugin-transform-runtime": "7.25.7",
-        "@babel/preset-env": "7.25.7",
-        "@babel/preset-typescript": "7.25.7",
-        "@babel/runtime": "7.25.7",
-        "@wordpress/browserslist-config": "^6.16.0",
-        "@wordpress/warning": "^3.16.0",
-        "browserslist": "^4.21.10",
-        "core-js": "^3.31.0",
-        "react": "^18.3.0"
+        "@sentry/types": "6.19.7",
+        "tslib": "^1.9.3"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=6"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@wordpress/browserslist-config": {
-      "version": "6.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-6.16.0.tgz",
-      "integrity": "sha512-ppjgUOjCFwLjH5XCDAfavRkIAj9DKEVGj12YMGL+dzSikbDU9L8VnMT1p08G1bAcBkTRLtBX8KkJJdyUI1JGsQ==",
+    "node_modules/@wordpress/scripts/node_modules/@wordpress/api-fetch": {
+      "version": "6.55.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.55.0.tgz",
+      "integrity": "sha512-1HrCUsJdeRY5Y0IjplotINwqMRO81e7O7VhBScuKk7iOuDm/E1ioKv2uLGnPNWziYu+Zf025byxOqVzXDyM2gw==",
       "dev": true,
       "license": "GPL-2.0-or-later",
+      "dependencies": {
+        "@babel/runtime": "^7.16.0",
+        "@wordpress/i18n": "^4.58.0",
+        "@wordpress/url": "^3.59.0"
+      },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=12"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@wordpress/jest-console": {
-      "version": "8.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/jest-console/-/jest-console-8.16.0.tgz",
-      "integrity": "sha512-GFwoPBeOir9lV0ZCrkOapl7us+NqYphjeTRhZajNYr+grUCtvJYY0XzGZd8QuXKD9R5yBK42jgb4/9vc5tL2TA==",
+    "node_modules/@wordpress/scripts/node_modules/@wordpress/e2e-test-utils-playwright": {
+      "version": "0.26.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/e2e-test-utils-playwright/-/e2e-test-utils-playwright-0.26.0.tgz",
+      "integrity": "sha512-4KFyQ3IsYIJaIvOQ1qhAHhRISs9abNToF/bktfMNxQiEJsmbNn7lq/IbaY+shqwdBWVg8TQtLcL4MpSl0ISaxQ==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "dependencies": {
-        "@babel/runtime": "7.25.7",
-        "jest-matcher-utils": "^29.6.2"
+        "@wordpress/api-fetch": "^6.55.0",
+        "@wordpress/keycodes": "^3.58.0",
+        "@wordpress/url": "^3.59.0",
+        "change-case": "^4.1.2",
+        "form-data": "^4.0.0",
+        "get-port": "^5.1.1",
+        "lighthouse": "^10.4.0",
+        "mime": "^3.0.0",
+        "web-vitals": "^3.5.0"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=12"
       },
       "peerDependencies": {
-        "jest": ">=29"
+        "@playwright/test": ">=1"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@wordpress/jest-preset-default": {
-      "version": "12.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/jest-preset-default/-/jest-preset-default-12.16.0.tgz",
-      "integrity": "sha512-2GXwvdFiSjpzCxXs8TrzPqAechoCmWvWqijs1ONRDNm8HB6Vq+2sFo3ndCQ9ISQCb4fRUb2LF+/hgVRgIpDmVg==",
+    "node_modules/@wordpress/scripts/node_modules/@wordpress/hooks": {
+      "version": "3.58.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz",
+      "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==",
       "dev": true,
       "license": "GPL-2.0-or-later",
       "dependencies": {
-        "@wordpress/jest-console": "^8.16.0",
-        "babel-jest": "29.7.0"
+        "@babel/runtime": "^7.16.0"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=12"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/@wordpress/i18n": {
+      "version": "4.58.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.58.0.tgz",
+      "integrity": "sha512-VfvS3BWv/RDjRKD6PscIcvYfWKnGJcI/DEqyDgUMhxCM6NRwoL478CsUKTiGJIymeyRodNRfprdcF086DpGKYw==",
+      "dev": true,
+      "license": "GPL-2.0-or-later",
+      "dependencies": {
+        "@babel/runtime": "^7.16.0",
+        "@wordpress/hooks": "^3.58.0",
+        "gettext-parser": "^1.3.1",
+        "memize": "^2.1.0",
+        "sprintf-js": "^1.1.1",
+        "tannin": "^1.2.0"
       },
-      "peerDependencies": {
-        "@babel/core": ">=7",
-        "jest": ">=29"
+      "bin": {
+        "pot-to-php": "tools/pot-to-php.js"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/@wordpress/keycodes": {
+      "version": "3.58.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-3.58.0.tgz",
+      "integrity": "sha512-Q/LRKpx8ndzuHlkxSQ2BD+NTYYKQPIneNNMng8hTAfyU7RFwXpqj06HpeOFGh4XIdPKCs/8hmucoLJRmmLmZJA==",
+      "dev": true,
+      "license": "GPL-2.0-or-later",
+      "dependencies": {
+        "@babel/runtime": "^7.16.0",
+        "@wordpress/i18n": "^4.58.0"
+      },
+      "engines": {
+        "node": ">=12"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/@wordpress/warning": {
-      "version": "3.16.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-3.16.0.tgz",
-      "integrity": "sha512-XsgqRPvB+VSecXnD3VfvJJxhcdTTX4EkgdzvWspmQnw0rNCV636KByZVgolzYhvr3La9EgqO+MqXzwvPHg/xfQ==",
+    "node_modules/@wordpress/scripts/node_modules/@wordpress/url": {
+      "version": "3.59.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.59.0.tgz",
+      "integrity": "sha512-GxvoMjYCav0w4CiX0i0h3qflrE/9rhLIZg5aPCQjbrBdwTxYR3Exfw0IJYcmVaTKXQOUU8fOxlDxULsbLmKe9w==",
       "dev": true,
       "license": "GPL-2.0-or-later",
+      "dependencies": {
+        "@babel/runtime": "^7.16.0",
+        "remove-accents": "^0.5.0"
+      },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=12"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/agent-base": {
+      "version": "7.1.3",
+      "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
+      "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/ansi-styles": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "color-convert": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/axe-core": {
+      "version": "4.7.2",
+      "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz",
+      "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==",
+      "dev": true,
+      "license": "MPL-2.0",
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/chalk": {
+      "version": "4.1.2",
+      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+      "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ansi-styles": "^4.1.0",
+        "supports-color": "^7.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/chalk?sponsor=1"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/ansi-styles": {
-      "version": "4.3.0",
-      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
-      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+    "node_modules/@wordpress/scripts/node_modules/chrome-launcher": {
+      "version": "0.15.2",
+      "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.15.2.tgz",
+      "integrity": "sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "@types/node": "*",
+        "escape-string-regexp": "^4.0.0",
+        "is-wsl": "^2.2.0",
+        "lighthouse-logger": "^1.0.0"
+      },
+      "bin": {
+        "print-chrome-path": "bin/print-chrome-path.js"
+      },
+      "engines": {
+        "node": ">=12.13.0"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/cross-spawn": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
+      "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "lru-cache": "^4.0.1",
+        "shebang-command": "^1.2.0",
+        "which": "^1.2.9"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/devtools-protocol": {
+      "version": "0.0.1155343",
+      "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1155343.tgz",
+      "integrity": "sha512-oD9vGBV2wTc7fAzAM6KC0chSgs234V8+qDEeK+mcbRj2UvcuA7lgBztGi/opj/iahcXD3BSj8Ymvib628yy9FA==",
+      "dev": true,
+      "license": "BSD-3-Clause"
+    },
+    "node_modules/@wordpress/scripts/node_modules/extract-zip": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+      "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+      "dev": true,
+      "license": "BSD-2-Clause",
+      "dependencies": {
+        "debug": "^4.1.1",
+        "get-stream": "^5.1.0",
+        "yauzl": "^2.10.0"
+      },
+      "bin": {
+        "extract-zip": "cli.js"
+      },
+      "engines": {
+        "node": ">= 10.17.0"
+      },
+      "optionalDependencies": {
+        "@types/yauzl": "^2.9.1"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/extract-zip/node_modules/debug": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
+      "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "^2.1.3"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/extract-zip/node_modules/ms": {
+      "version": "2.1.3",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/http-proxy-agent": {
+      "version": "7.0.2",
+      "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+      "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "agent-base": "^7.1.0",
+        "debug": "^4.3.4"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/http-proxy-agent/node_modules/debug": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
+      "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "^2.1.3"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/http-proxy-agent/node_modules/ms": {
+      "version": "2.1.3",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/intl-messageformat": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-4.4.0.tgz",
+      "integrity": "sha512-z+Bj2rS3LZSYU4+sNitdHrwnBhr0wO80ZJSW8EzKDBowwUe3Q/UsvgCGjrwa+HPzoGCLEb9HAjfJgo4j2Sac8w==",
+      "dev": true,
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "intl-messageformat-parser": "^1.8.1"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse": {
+      "version": "10.4.0",
+      "resolved": "https://registry.npmjs.org/lighthouse/-/lighthouse-10.4.0.tgz",
+      "integrity": "sha512-XQWHEWkJ8YxSPsxttBJORy5+hQrzbvGkYfeP3fJjyYKioWkF2MXfFqNK4ZuV4jL8pBu7Z91qnQP6In0bq1yXww==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "@sentry/node": "^6.17.4",
+        "axe-core": "4.7.2",
+        "chrome-launcher": "^0.15.2",
+        "configstore": "^5.0.1",
+        "csp_evaluator": "1.1.1",
+        "devtools-protocol": "0.0.1155343",
+        "enquirer": "^2.3.6",
+        "http-link-header": "^1.1.1",
+        "intl-messageformat": "^4.4.0",
+        "jpeg-js": "^0.4.4",
+        "js-library-detector": "^6.6.0",
+        "lighthouse-logger": "^1.4.1",
+        "lighthouse-stack-packs": "1.11.0",
+        "lodash": "^4.17.21",
+        "lookup-closest-locale": "6.2.0",
+        "metaviewport-parser": "0.3.0",
+        "open": "^8.4.0",
+        "parse-cache-control": "1.0.1",
+        "ps-list": "^8.0.0",
+        "puppeteer-core": "^20.8.0",
+        "robots-parser": "^3.0.0",
+        "semver": "^5.3.0",
+        "speedline-core": "^1.4.3",
+        "third-party-web": "^0.23.3",
+        "ws": "^7.0.0",
+        "yargs": "^17.3.1",
+        "yargs-parser": "^21.0.0"
+      },
+      "bin": {
+        "chrome-debug": "core/scripts/manual-chrome-launcher.js",
+        "lighthouse": "cli/index.js",
+        "smokehouse": "cli/test/smokehouse/frontends/smokehouse-bin.js"
+      },
+      "engines": {
+        "node": ">=16.16"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse-logger": {
+      "version": "1.4.2",
+      "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.4.2.tgz",
+      "integrity": "sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "debug": "^2.6.9",
+        "marky": "^1.2.2"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse-stack-packs": {
+      "version": "1.11.0",
+      "resolved": "https://registry.npmjs.org/lighthouse-stack-packs/-/lighthouse-stack-packs-1.11.0.tgz",
+      "integrity": "sha512-sRr0z1S/I26VffRLq9KJsKtLk856YrJlNGmcJmbLX8dFn3MuzVPUbstuChEhqnSxZb8TZmVfthuXuwhG9vRoSw==",
+      "dev": true,
+      "license": "Apache-2.0"
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/cross-fetch": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz",
+      "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "node-fetch": "^2.6.12"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/debug": {
+      "version": "4.3.4",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "2.1.2"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/puppeteer-core": {
+      "version": "20.9.0",
+      "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.9.0.tgz",
+      "integrity": "sha512-H9fYZQzMTRrkboEfPmf7m3CLDN6JvbxXA3qTtS+dFt27tR+CsFHzPsT6pzp6lYL6bJbAPaR0HaPO6uSi+F94Pg==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "@puppeteer/browsers": "1.4.6",
+        "chromium-bidi": "0.4.16",
+        "cross-fetch": "4.0.0",
+        "debug": "4.3.4",
+        "devtools-protocol": "0.0.1147663",
+        "ws": "8.13.0"
+      },
+      "engines": {
+        "node": ">=16.3.0"
+      },
+      "peerDependencies": {
+        "typescript": ">= 4.7.4"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/puppeteer-core/node_modules/chromium-bidi": {
+      "version": "0.4.16",
+      "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.16.tgz",
+      "integrity": "sha512-7ZbXdWERxRxSwo3txsBjjmc/NLxqb1Bk30mRb0BMS4YIaiV6zvKZqL/UAH+DdqcDYayDWk2n/y8klkBDODrPvA==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "mitt": "3.0.0"
+      },
+      "peerDependencies": {
+        "devtools-protocol": "*"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/puppeteer-core/node_modules/devtools-protocol": {
+      "version": "0.0.1147663",
+      "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1147663.tgz",
+      "integrity": "sha512-hyWmRrexdhbZ1tcJUGpO95ivbRhWXz++F4Ko+n21AY5PNln2ovoJw+8ZMNDTtip+CNFQfrtLVh/w4009dXO/eQ==",
+      "dev": true,
+      "license": "BSD-3-Clause"
+    },
+    "node_modules/@wordpress/scripts/node_modules/lighthouse/node_modules/puppeteer-core/node_modules/ws": {
+      "version": "8.13.0",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
+      "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10.0.0"
+      },
+      "peerDependencies": {
+        "bufferutil": "^4.0.1",
+        "utf-8-validate": ">=5.0.2"
+      },
+      "peerDependenciesMeta": {
+        "bufferutil": {
+          "optional": true
+        },
+        "utf-8-validate": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/lru-cache": {
+      "version": "4.1.5",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+      "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+      "dev": true,
+      "license": "ISC",
+      "dependencies": {
+        "pseudomap": "^1.0.2",
+        "yallist": "^2.1.2"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/mitt": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz",
+      "integrity": "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/node-fetch": {
+      "version": "2.7.0",
+      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+      "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "whatwg-url": "^5.0.0"
+      },
+      "engines": {
+        "node": "4.x || >=6.0.0"
+      },
+      "peerDependencies": {
+        "encoding": "^0.1.0"
+      },
+      "peerDependenciesMeta": {
+        "encoding": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/proxy-agent": {
+      "version": "6.3.0",
+      "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.0.tgz",
+      "integrity": "sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "agent-base": "^7.0.2",
+        "debug": "^4.3.4",
+        "http-proxy-agent": "^7.0.0",
+        "https-proxy-agent": "^7.0.0",
+        "lru-cache": "^7.14.1",
+        "pac-proxy-agent": "^7.0.0",
+        "proxy-from-env": "^1.1.0",
+        "socks-proxy-agent": "^8.0.1"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/proxy-agent/node_modules/debug": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
+      "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "^2.1.3"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/proxy-agent/node_modules/https-proxy-agent": {
+      "version": "7.0.6",
+      "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+      "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "agent-base": "^7.1.2",
+        "debug": "4"
+      },
+      "engines": {
+        "node": ">= 14"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/proxy-agent/node_modules/lru-cache": {
+      "version": "7.18.3",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
+      "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
+      "dev": true,
+      "license": "ISC",
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/proxy-agent/node_modules/ms": {
+      "version": "2.1.3",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/puppeteer-core": {
+      "version": "13.7.0",
+      "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.7.0.tgz",
+      "integrity": "sha512-rXja4vcnAzFAP1OVLq/5dWNfwBGuzcOARJ6qGV7oAZhnLmVRU8G5MsdeQEAOy332ZhkIOnn9jp15R89LKHyp2Q==",
+      "dev": true,
+      "license": "Apache-2.0",
+      "dependencies": {
+        "cross-fetch": "3.1.5",
+        "debug": "4.3.4",
+        "devtools-protocol": "0.0.981744",
+        "extract-zip": "2.0.1",
+        "https-proxy-agent": "5.0.1",
+        "pkg-dir": "4.2.0",
+        "progress": "2.0.3",
+        "proxy-from-env": "1.1.0",
+        "rimraf": "3.0.2",
+        "tar-fs": "2.1.1",
+        "unbzip2-stream": "1.4.3",
+        "ws": "8.5.0"
+      },
+      "engines": {
+        "node": ">=10.18.1"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/puppeteer-core/node_modules/debug": {
+      "version": "4.3.4",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "ms": "2.1.2"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/puppeteer-core/node_modules/devtools-protocol": {
+      "version": "0.0.981744",
+      "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.981744.tgz",
+      "integrity": "sha512-0cuGS8+jhR67Fy7qG3i3Pc7Aw494sb9yG9QgpG97SFVWwolgYjlhJg7n+UaHxOQT30d1TYu/EYe9k01ivLErIg==",
+      "dev": true,
+      "license": "BSD-3-Clause"
+    },
+    "node_modules/@wordpress/scripts/node_modules/puppeteer-core/node_modules/ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/puppeteer-core/node_modules/ws": {
+      "version": "8.5.0",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",
+      "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=10.0.0"
+      },
+      "peerDependencies": {
+        "bufferutil": "^4.0.1",
+        "utf-8-validate": "^5.0.2"
+      },
+      "peerDependenciesMeta": {
+        "bufferutil": {
+          "optional": true
+        },
+        "utf-8-validate": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/readable-stream": {
+      "version": "3.6.2",
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+      "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "inherits": "^2.0.3",
+        "string_decoder": "^1.1.1",
+        "util-deprecate": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/semver": {
+      "version": "5.7.2",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
+      "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
+      "dev": true,
+      "license": "ISC",
+      "bin": {
+        "semver": "bin/semver"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/shebang-command": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+      "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "shebang-regex": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/shebang-regex": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+      "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/supports-color": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "has-flag": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/tar-fs": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
+      "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "chownr": "^1.1.1",
+        "mkdirp-classic": "^0.5.2",
+        "pump": "^3.0.0",
+        "tar-stream": "^2.1.4"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/tar-stream": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
+      "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "bl": "^4.0.3",
+        "end-of-stream": "^1.4.1",
+        "fs-constants": "^1.0.0",
+        "inherits": "^2.0.3",
+        "readable-stream": "^3.1.1"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/third-party-web": {
+      "version": "0.23.4",
+      "resolved": "https://registry.npmjs.org/third-party-web/-/third-party-web-0.23.4.tgz",
+      "integrity": "sha512-kwYnSZRhEvv0SBW2fp8SBBKRglMoBjV8xz6C31m0ewqOtknB5UL+Ihg+M81hyFY5ldkZuGWPb+e4GVDkzf/gYg==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/tr46": {
+      "version": "0.0.3",
+      "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+      "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/@wordpress/scripts/node_modules/tslib": {
+      "version": "1.14.1",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+      "dev": true,
+      "license": "0BSD"
+    },
+    "node_modules/@wordpress/scripts/node_modules/web-vitals": {
+      "version": "3.5.2",
+      "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-3.5.2.tgz",
+      "integrity": "sha512-c0rhqNcHXRkY/ogGDJQxZ9Im9D19hDihbzSQJrsioex+KnFgmMzBiy57Z1EjkhX/+OjyBpclDCzz2ITtjokFmg==",
+      "dev": true,
+      "license": "Apache-2.0"
+    },
+    "node_modules/@wordpress/scripts/node_modules/webidl-conversions": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+      "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+      "dev": true,
+      "license": "BSD-2-Clause"
+    },
+    "node_modules/@wordpress/scripts/node_modules/whatwg-url": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+      "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "color-convert": "^2.0.1"
-      },
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+        "tr46": "~0.0.3",
+        "webidl-conversions": "^3.0.0"
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/chalk": {
-      "version": "4.1.2",
-      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
-      "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+    "node_modules/@wordpress/scripts/node_modules/which": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+      "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
       "dev": true,
-      "license": "MIT",
+      "license": "ISC",
       "dependencies": {
-        "ansi-styles": "^4.1.0",
-        "supports-color": "^7.1.0"
+        "isexe": "^2.0.0"
       },
+      "bin": {
+        "which": "bin/which"
+      }
+    },
+    "node_modules/@wordpress/scripts/node_modules/ws": {
+      "version": "7.5.10",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
+      "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
+      "dev": true,
+      "license": "MIT",
       "engines": {
-        "node": ">=10"
+        "node": ">=8.3.0"
       },
-      "funding": {
-        "url": "https://github.com/chalk/chalk?sponsor=1"
+      "peerDependencies": {
+        "bufferutil": "^4.0.1",
+        "utf-8-validate": "^5.0.2"
+      },
+      "peerDependenciesMeta": {
+        "bufferutil": {
+          "optional": true
+        },
+        "utf-8-validate": {
+          "optional": true
+        }
       }
     },
-    "node_modules/@wordpress/scripts/node_modules/supports-color": {
-      "version": "7.2.0",
-      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
-      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+    "node_modules/@wordpress/scripts/node_modules/yallist": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+      "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
+      "dev": true,
+      "license": "ISC"
+    },
+    "node_modules/@wordpress/scripts/node_modules/yargs": {
+      "version": "17.7.1",
+      "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz",
+      "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "has-flag": "^4.0.0"
+        "cliui": "^8.0.1",
+        "escalade": "^3.1.1",
+        "get-caller-file": "^2.0.5",
+        "require-directory": "^2.1.1",
+        "string-width": "^4.2.3",
+        "y18n": "^5.0.5",
+        "yargs-parser": "^21.1.1"
       },
       "engines": {
-        "node": ">=8"
+        "node": ">=12"
       }
     },
     "node_modules/@wordpress/stylelint-config": {
-      "version": "23.8.0",
-      "resolved": "https://registry.npmjs.org/@wordpress/stylelint-config/-/stylelint-config-23.8.0.tgz",
-      "integrity": "sha512-Fqf8GVZlaflq2n7JMxEk+KfVhgbDgdx/qs/R6ZxnR7RTC6c9RqGxSdUqdhtJyVkoNB3pWRG/aD1h7abKVEO3dA==",
+      "version": "21.41.0",
+      "resolved": "https://registry.npmjs.org/@wordpress/stylelint-config/-/stylelint-config-21.41.0.tgz",
+      "integrity": "sha512-2wxFu8ICeRGF3Lxz7H7o2SU1u6pTI4mjuog39DgtCNb+v+f6yhgREDuNQEeti3Svb0rjj63AJ7r2CqLZk+EQIQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@stylistic/stylelint-plugin": "^3.0.1",
-        "stylelint-config-recommended": "^14.0.1",
-        "stylelint-config-recommended-scss": "^14.1.0"
+        "stylelint-config-recommended": "^6.0.0",
+        "stylelint-config-recommended-scss": "^5.0.2"
       },
       "engines": {
-        "node": ">=18.12.0",
-        "npm": ">=8.19.2"
+        "node": ">=14"
       },
       "peerDependencies": {
-        "stylelint": "^16.8.2"
+        "stylelint": "^14.2"
       }
     },
     "node_modules/@wordpress/url": {
@@ -8569,6 +8895,16 @@
         "node": ">=8"
       }
     },
+    "node_modules/async-function": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz",
+      "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
     "node_modules/async-validator": {
       "version": "4.2.5",
       "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz",
@@ -8744,21 +9080,42 @@
       }
     },
     "node_modules/babel-loader": {
-      "version": "9.2.1",
-      "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.2.1.tgz",
-      "integrity": "sha512-fqe8naHt46e0yIdkjUZYqddSXfej3AHajX+CSO5X7oy0EmPc6o5Xh+RClNoHjnieWz9AW4kZxW9yyFMhVB1QLA==",
+      "version": "8.4.1",
+      "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.4.1.tgz",
+      "integrity": "sha512-nXzRChX+Z1GoE6yWavBQg6jDslyFF3SDjl2paADuoQtQW10JqShJt62R6eJQ5m/pjJFDT8xgKIWSP85OY8eXeA==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "find-cache-dir": "^4.0.0",
-        "schema-utils": "^4.0.0"
+        "find-cache-dir": "^3.3.1",
+        "loader-utils": "^2.0.4",
+        "make-dir": "^3.1.0",
+        "schema-utils": "^2.6.5"
       },
       "engines": {
-        "node": ">= 14.15.0"
+        "node": ">= 8.9"
       },
       "peerDependencies": {
-        "@babel/core": "^7.12.0",
-        "webpack": ">=5"
+        "@babel/core": "^7.0.0",
+        "webpack": ">=2"
+      }
+    },
+    "node_modules/babel-loader/node_modules/schema-utils": {
+      "version": "2.7.1",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz",
+      "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "@types/json-schema": "^7.0.5",
+        "ajv": "^6.12.4",
+        "ajv-keywords": "^3.5.2"
+      },
+      "engines": {
+        "node": ">= 8.9.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
       }
     },
     "node_modules/babel-plugin-inline-json-import": {
@@ -8946,6 +9303,33 @@
         "@babel/core": "^7.0.0"
       }
     },
+    "node_modules/babel-runtime": {
+      "version": "6.25.0",
+      "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.25.0.tgz",
+      "integrity": "sha512-zeCYxDePWYAT/DfmQWIHsMSFW2vv45UIwIAMjGvQVsTd47RwsiRH0uK1yzyWZ7LDBKdhnGDPM6NYEO5CZyhPrg==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "core-js": "^2.4.0",
+        "regenerator-runtime": "^0.10.0"
+      }
+    },
+    "node_modules/babel-runtime/node_modules/core-js": {
+      "version": "2.6.12",
+      "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
+      "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
+      "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.",
+      "dev": true,
+      "hasInstallScript": true,
+      "license": "MIT"
+    },
+    "node_modules/babel-runtime/node_modules/regenerator-runtime": {
+      "version": "0.10.5",
+      "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
+      "integrity": "sha512-02YopEIhAgiBHWeoTiA8aitHDt8z6w+rQqNuIftlM+ZtvSl/brTouaU7DW6GO/cHtvxJvS4Hwv2ibKdxIRi24w==",
+      "dev": true,
+      "license": "MIT"
+    },
     "node_modules/balanced-match": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
@@ -9083,6 +9467,33 @@
         "url": "https://github.com/sponsors/sindresorhus"
       }
     },
+    "node_modules/bl": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+      "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "buffer": "^5.5.0",
+        "inherits": "^2.0.4",
+        "readable-stream": "^3.4.0"
+      }
+    },
+    "node_modules/bl/node_modules/readable-stream": {
+      "version": "3.6.2",
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+      "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "inherits": "^2.0.3",
+        "string_decoder": "^1.1.1",
+        "util-deprecate": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
     "node_modules/body-parser": {
       "version": "1.20.3",
       "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
@@ -9286,17 +9697,6 @@
         "node": ">= 0.8"
       }
     },
-    "node_modules/cacheable": {
-      "version": "1.8.7",
-      "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-1.8.7.tgz",
-      "integrity": "sha512-AbfG7dAuYNjYxFUtL1lAqmlWdxczCJ47w7cFjhGcnGnUdwSo6VgmSojfoW3tUI12HUkgTJ5kqj78yyq6TsFtlg==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "hookified": "^1.6.0",
-        "keyv": "^5.2.3"
-      }
-    },
     "node_modules/cacheable-lookup": {
       "version": "5.0.4",
       "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",
@@ -9326,16 +9726,6 @@
         "node": ">=8"
       }
     },
-    "node_modules/cacheable/node_modules/keyv": {
-      "version": "5.2.3",
-      "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.2.3.tgz",
-      "integrity": "sha512-AGKecUfzrowabUv0bH1RIR5Vf7w+l4S3xtQAypKaUpTdIR1EbrAcTxHCrpo9Q+IWeUlFE2palRtgIQcgm+PQJw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@keyv/serialize": "^1.0.2"
-      }
-    },
     "node_modules/call-bind": {
       "version": "1.0.8",
       "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",
@@ -9648,6 +10038,13 @@
         "url": "https://paulmillr.com/funding/"
       }
     },
+    "node_modules/chownr": {
+      "version": "1.1.4",
+      "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
+      "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
+      "dev": true,
+      "license": "ISC"
+    },
     "node_modules/chrome-launcher": {
       "version": "1.1.2",
       "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-1.1.2.tgz",
@@ -10070,12 +10467,12 @@
         "node": ">= 12.0.0"
       }
     },
-    "node_modules/common-path-prefix": {
-      "version": "3.0.0",
-      "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz",
-      "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==",
+    "node_modules/commondir": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
+      "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
       "dev": true,
-      "license": "ISC"
+      "license": "MIT"
     },
     "node_modules/compressible": {
       "version": "2.0.18",
@@ -10327,6 +10724,16 @@
       "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
       "license": "MIT"
     },
+    "node_modules/cookie": {
+      "version": "0.4.2",
+      "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz",
+      "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
     "node_modules/cookie-signature": {
       "version": "1.0.6",
       "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
@@ -10582,6 +10989,16 @@
         "node": ">=8"
       }
     },
+    "node_modules/cross-fetch": {
+      "version": "3.1.5",
+      "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",
+      "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "node-fetch": "2.6.7"
+      }
+    },
     "node_modules/cross-spawn": {
       "version": "7.0.6",
       "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
@@ -11814,16 +12231,6 @@
         "url": "https://github.com/fb55/entities?sponsor=1"
       }
     },
-    "node_modules/env-paths": {
-      "version": "2.2.1",
-      "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
-      "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=6"
-      }
-    },
     "node_modules/envinfo": {
       "version": "7.14.0",
       "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz",
@@ -12487,9 +12894,9 @@
       }
     },
     "node_modules/eslint-plugin-jest/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -12524,9 +12931,9 @@
       }
     },
     "node_modules/eslint-plugin-jsdoc/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -12607,9 +13014,9 @@
       }
     },
     "node_modules/eslint-plugin-prettier": {
-      "version": "5.2.2",
-      "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.2.tgz",
-      "integrity": "sha512-1yI3/hf35wmlq66C8yOyrujQnel+v5l1Vop5Cl2I6ylyNTT1JbuUUnV3/41PzwTzcyDp/oF0jWE3HXvcH5AQOQ==",
+      "version": "5.2.3",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.3.tgz",
+      "integrity": "sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
@@ -13489,194 +13896,91 @@
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "filename-reserved-regex": "^2.0.0",
-        "strip-outer": "^1.0.1",
-        "trim-repeated": "^1.0.0"
-      },
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/fill-range": {
-      "version": "7.1.1",
-      "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
-      "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "to-regex-range": "^5.0.1"
-      },
-      "engines": {
-        "node": ">=8"
-      }
-    },
-    "node_modules/filter-obj": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz",
-      "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==",
-      "license": "MIT",
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/finalhandler": {
-      "version": "1.3.1",
-      "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
-      "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "debug": "2.6.9",
-        "encodeurl": "~2.0.0",
-        "escape-html": "~1.0.3",
-        "on-finished": "2.4.1",
-        "parseurl": "~1.3.3",
-        "statuses": "2.0.1",
-        "unpipe": "~1.0.0"
-      },
-      "engines": {
-        "node": ">= 0.8"
-      }
-    },
-    "node_modules/finalhandler/node_modules/debug": {
-      "version": "2.6.9",
-      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
-      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "ms": "2.0.0"
-      }
-    },
-    "node_modules/finalhandler/node_modules/ms": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
-      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/find-cache-dir": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-4.0.0.tgz",
-      "integrity": "sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "common-path-prefix": "^3.0.0",
-        "pkg-dir": "^7.0.0"
-      },
-      "engines": {
-        "node": ">=14.16"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/find-cache-dir/node_modules/find-up": {
-      "version": "6.3.0",
-      "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz",
-      "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "locate-path": "^7.1.0",
-        "path-exists": "^5.0.0"
+        "filename-reserved-regex": "^2.0.0",
+        "strip-outer": "^1.0.1",
+        "trim-repeated": "^1.0.0"
       },
       "engines": {
-        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+        "node": ">=8"
       },
       "funding": {
         "url": "https://github.com/sponsors/sindresorhus"
       }
     },
-    "node_modules/find-cache-dir/node_modules/locate-path": {
-      "version": "7.2.0",
-      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz",
-      "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==",
+    "node_modules/fill-range": {
+      "version": "7.1.1",
+      "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+      "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "p-locate": "^6.0.0"
+        "to-regex-range": "^5.0.1"
       },
       "engines": {
-        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
+        "node": ">=8"
       }
     },
-    "node_modules/find-cache-dir/node_modules/p-limit": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz",
-      "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==",
-      "dev": true,
+    "node_modules/filter-obj": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz",
+      "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==",
       "license": "MIT",
-      "dependencies": {
-        "yocto-queue": "^1.0.0"
-      },
       "engines": {
-        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
+        "node": ">=0.10.0"
       }
     },
-    "node_modules/find-cache-dir/node_modules/p-locate": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz",
-      "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==",
+    "node_modules/finalhandler": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
+      "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "p-limit": "^4.0.0"
+        "debug": "2.6.9",
+        "encodeurl": "~2.0.0",
+        "escape-html": "~1.0.3",
+        "on-finished": "2.4.1",
+        "parseurl": "~1.3.3",
+        "statuses": "2.0.1",
+        "unpipe": "~1.0.0"
       },
       "engines": {
-        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
+        "node": ">= 0.8"
       }
     },
-    "node_modules/find-cache-dir/node_modules/path-exists": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz",
-      "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==",
+    "node_modules/finalhandler/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
       "dev": true,
       "license": "MIT",
-      "engines": {
-        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      "dependencies": {
+        "ms": "2.0.0"
       }
     },
-    "node_modules/find-cache-dir/node_modules/pkg-dir": {
-      "version": "7.0.0",
-      "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-7.0.0.tgz",
-      "integrity": "sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA==",
+    "node_modules/finalhandler/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
       "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "find-up": "^6.3.0"
-      },
-      "engines": {
-        "node": ">=14.16"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
+      "license": "MIT"
     },
-    "node_modules/find-cache-dir/node_modules/yocto-queue": {
-      "version": "1.1.1",
-      "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz",
-      "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==",
+    "node_modules/find-cache-dir": {
+      "version": "3.3.2",
+      "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",
+      "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",
       "dev": true,
       "license": "MIT",
+      "dependencies": {
+        "commondir": "^1.0.1",
+        "make-dir": "^3.0.2",
+        "pkg-dir": "^4.1.0"
+      },
       "engines": {
-        "node": ">=12.20"
+        "node": ">=8"
       },
       "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
+        "url": "https://github.com/avajs/find-cache-dir?sponsor=1"
       }
     },
     "node_modules/find-file-up": {
@@ -13954,6 +14258,13 @@
         "node": ">= 0.6"
       }
     },
+    "node_modules/fs-constants": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+      "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+      "dev": true,
+      "license": "MIT"
+    },
     "node_modules/fs-exists-sync": {
       "version": "0.1.0",
       "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz",
@@ -14697,13 +15008,6 @@
         "node": ">=0.10.0"
       }
     },
-    "node_modules/hookified": {
-      "version": "1.6.0",
-      "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.6.0.tgz",
-      "integrity": "sha512-se7cpwTA+iA/eY548Bu03JJqBiEZAqU2jnyKdj5B5qurtBg64CZGHTgqCv4Yh7NWu6FGI09W61MCq+NoPj9GXA==",
-      "dev": true,
-      "license": "MIT"
-    },
     "node_modules/hosted-git-info": {
       "version": "4.1.0",
       "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
@@ -15103,6 +15407,16 @@
         "node": ">=4"
       }
     },
+    "node_modules/import-lazy": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz",
+      "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": ">=8"
+      }
+    },
     "node_modules/import-local": {
       "version": "3.2.0",
       "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz",
@@ -15298,6 +15612,14 @@
         "tslib": "2"
       }
     },
+    "node_modules/intl-messageformat-parser": {
+      "version": "1.8.1",
+      "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-1.8.1.tgz",
+      "integrity": "sha512-IMSCKVf0USrM/959vj3xac7s8f87sc+80Y/ipBzdKy4ifBv5Gsj2tZ41EAaURVg01QU71fYr77uA8Meh6kELbg==",
+      "deprecated": "We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser",
+      "dev": true,
+      "license": "BSD-3-Clause"
+    },
     "node_modules/ip-address": {
       "version": "9.0.5",
       "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
@@ -15374,12 +15696,13 @@
       "license": "MIT"
     },
     "node_modules/is-async-function": {
-      "version": "2.1.0",
-      "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.0.tgz",
-      "integrity": "sha512-GExz9MtyhlZyXYLxzlJRj5WUCE661zhDa1Yna52CN57AJsymh+DvXXjyveSioqSRdxvUrdKdvqB1b5cVKsNpWQ==",
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz",
+      "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
+        "async-function": "^1.0.0",
         "call-bound": "^1.0.3",
         "get-proto": "^1.0.1",
         "has-tostringtag": "^1.0.2",
@@ -15918,13 +16241,13 @@
       }
     },
     "node_modules/is-weakref": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.0.tgz",
-      "integrity": "sha512-SXM8Nwyys6nT5WP6pltOwKytLV7FqQ4UiibxVmW+EIosHcmCqkkjViTb5SNssDlkCiEYRP1/pdWUKVvZBmsR2Q==",
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz",
+      "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "call-bound": "^1.0.2"
+        "call-bound": "^1.0.3"
       },
       "engines": {
         "node": ">= 0.4"
@@ -16461,19 +16784,18 @@
       }
     },
     "node_modules/jest-dev-server": {
-      "version": "10.1.4",
-      "resolved": "https://registry.npmjs.org/jest-dev-server/-/jest-dev-server-10.1.4.tgz",
-      "integrity": "sha512-bGQ6sedNGtT6AFHhCVqGTXMPz7UyJi/ZrhNBgyqsP0XU9N8acCEIfqZEA22rOaZ+NdEVsaltk6tL7UT6aXfI7w==",
+      "version": "9.0.2",
+      "resolved": "https://registry.npmjs.org/jest-dev-server/-/jest-dev-server-9.0.2.tgz",
+      "integrity": "sha512-Zc/JB0IlNNrpXkhBw+h86cGrde/Mey52KvF+FER2eyrtYJTHObOwW7Iarxm3rPyTKby5+3Y2QZtl8pRz/5GCxg==",
       "dev": true,
-      "license": "MIT",
       "dependencies": {
         "chalk": "^4.1.2",
         "cwd": "^0.10.0",
         "find-process": "^1.4.7",
         "prompts": "^2.4.2",
-        "spawnd": "^10.1.4",
+        "spawnd": "^9.0.2",
         "tree-kill": "^1.2.2",
-        "wait-on": "^8.0.1"
+        "wait-on": "^7.2.0"
       },
       "engines": {
         "node": ">=16"
@@ -17740,9 +18062,9 @@
       }
     },
     "node_modules/json2php": {
-      "version": "0.0.9",
-      "resolved": "https://registry.npmjs.org/json2php/-/json2php-0.0.9.tgz",
-      "integrity": "sha512-fQMYwvPsQt8hxRnCGyg1r2JVi6yL8Um0DIIawiKiMK9yhAAkcRNj5UsBWoaFvFzPpcWbgw9L6wzj+UMYA702Mw==",
+      "version": "0.0.7",
+      "resolved": "https://registry.npmjs.org/json2php/-/json2php-0.0.7.tgz",
+      "integrity": "sha512-dnSoUiLAoVaMXxFsVi4CrPVYMKOuDBXTghXSmMINX44RZ8WM9cXlY7UqrQnlAcODCVO7FV3+8t/5nDKAjimLfg==",
       "dev": true,
       "license": "BSD"
     },
@@ -17825,9 +18147,9 @@
       }
     },
     "node_modules/known-css-properties": {
-      "version": "0.35.0",
-      "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.35.0.tgz",
-      "integrity": "sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==",
+      "version": "0.26.0",
+      "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz",
+      "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==",
       "dev": true,
       "license": "MIT"
     },
@@ -18633,6 +18955,13 @@
         "node": ">=8"
       }
     },
+    "node_modules/lru_map": {
+      "version": "0.3.3",
+      "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz",
+      "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==",
+      "dev": true,
+      "license": "MIT"
+    },
     "node_modules/lru-cache": {
       "version": "5.1.1",
       "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
@@ -19259,6 +19588,13 @@
         "mkdirp": "bin/cmd.js"
       }
     },
+    "node_modules/mkdirp-classic": {
+      "version": "0.5.3",
+      "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
+      "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
+      "dev": true,
+      "license": "MIT"
+    },
     "node_modules/moment": {
       "version": "2.30.1",
       "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
@@ -19394,6 +19730,52 @@
       "license": "MIT",
       "optional": true
     },
+    "node_modules/node-fetch": {
+      "version": "2.6.7",
+      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
+      "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "whatwg-url": "^5.0.0"
+      },
+      "engines": {
+        "node": "4.x || >=6.0.0"
+      },
+      "peerDependencies": {
+        "encoding": "^0.1.0"
+      },
+      "peerDependenciesMeta": {
+        "encoding": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/node-fetch/node_modules/tr46": {
+      "version": "0.0.3",
+      "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+      "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+      "dev": true,
+      "license": "MIT"
+    },
+    "node_modules/node-fetch/node_modules/webidl-conversions": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+      "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+      "dev": true,
+      "license": "BSD-2-Clause"
+    },
+    "node_modules/node-fetch/node_modules/whatwg-url": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+      "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "tr46": "~0.0.3",
+        "webidl-conversions": "^3.0.0"
+      }
+    },
     "node_modules/node-forge": {
       "version": "1.3.1",
       "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
@@ -19434,9 +19816,9 @@
       }
     },
     "node_modules/normalize-package-data/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -19570,9 +19952,9 @@
       "license": "MIT"
     },
     "node_modules/npm-package-json-lint/node_modules/semver": {
-      "version": "7.6.3",
-      "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
-      "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
+      "version": "7.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
+      "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
       "dev": true,
       "license": "ISC",
       "bin": {
@@ -21214,30 +21596,20 @@
       "license": "MIT"
     },
     "node_modules/postcss-safe-parser": {
-      "version": "7.0.1",
-      "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz",
-      "integrity": "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==",
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz",
+      "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==",
       "dev": true,
-      "funding": [
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/postcss/"
-        },
-        {
-          "type": "tidelift",
-          "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser"
-        },
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/ai"
-        }
-      ],
       "license": "MIT",
       "engines": {
-        "node": ">=18.0"
+        "node": ">=12.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/postcss/"
       },
       "peerDependencies": {
-        "postcss": "^8.4.31"
+        "postcss": "^8.3.3"
       }
     },
     "node_modules/postcss-scss": {
@@ -21529,6 +21901,26 @@
       "dev": true,
       "license": "MIT"
     },
+    "node_modules/ps-list": {
+      "version": "8.1.1",
+      "resolved": "https://registry.npmjs.org/ps-list/-/ps-list-8.1.1.tgz",
+      "integrity": "sha512-OPS9kEJYVmiO48u/B9qneqhkMvgCxT+Tm28VCEJpheTpl8cJ0ffZRRNgS5mrQRTrX5yRTpaJ+hRDeefXYmmorQ==",
+      "dev": true,
+      "license": "MIT",
+      "engines": {
+        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/pseudomap": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
+      "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==",
+      "dev": true,
+      "license": "ISC"
+    },
     "node_modules/psl": {
       "version": "1.10.0",
       "resolved": "https://registry.npmjs.org/psl/-/psl-1.10.0.tgz",
@@ -22922,22 +23314,79 @@
       }
     },
     "node_modules/rtlcss": {
-      "version": "4.3.0",
-      "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-4.3.0.tgz",
-      "integrity": "sha512-FI+pHEn7Wc4NqKXMXFM+VAYKEj/mRIcW4h24YVwVtyjI+EqGrLc2Hx/Ny0lrZ21cBWU2goLy36eqMcNj3AQJig==",
+      "version": "3.5.0",
+      "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz",
+      "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "escalade": "^3.1.1",
+        "find-up": "^5.0.0",
         "picocolors": "^1.0.0",
-        "postcss": "^8.4.21",
+        "postcss": "^8.3.11",
         "strip-json-comments": "^3.1.1"
       },
       "bin": {
         "rtlcss": "bin/rtlcss.js"
+      }
+    },
+    "node_modules/rtlcss-webpack-plugin": {
+      "version": "4.0.7",
+      "resolved": "https://registry.npmjs.org/rtlcss-webpack-plugin/-/rtlcss-webpack-plugin-4.0.7.tgz",
+      "integrity": "sha512-ouSbJtgcLBBQIsMgarxsDnfgRqm/AS4BKls/mz/Xb6HSl+PdEzefTR+Wz5uWQx4odoX0g261Z7yb3QBz0MTm0g==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "babel-runtime": "~6.25.0",
+        "rtlcss": "^3.5.0"
+      }
+    },
+    "node_modules/rtlcss/node_modules/find-up": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+      "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "locate-path": "^6.0.0",
+        "path-exists": "^4.0.0"
       },
       "engines": {
-        "node": ">=12.0.0"
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/rtlcss/node_modules/locate-path": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+      "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "p-locate": "^5.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/rtlcss/node_modules/p-locate": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+      "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+      "dev": true,
+      "license": "MIT",
+      "dependencies": {
+        "p-limit": "^3.0.2"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
       }
     },
     "node_modules/run-async": {
@@ -23112,9 +23561,9 @@
       "license": "MIT"
     },
     "node_modules/sass": {
-      "version": "1.83.4",
-      "resolved": "https://registry.npmjs.org/sass/-/sass-1.83.4.tgz",
-      "integrity": "sha512-B1bozCeNQiOgDcLd33e2Cs2U60wZwjUUXzh900ZyQF5qUasvMdDZYbQ566LJu7cqR+sAHlAfO6RMkaID5s6qpA==",
+      "version": "1.84.0",
+      "resolved": "https://registry.npmjs.org/sass/-/sass-1.84.0.tgz",
+      "integrity": "sha512-XDAbhEPJRxi7H0SxrnOpiXFQoUJHwkR2u3Zc4el+fK/Tt5Hpzw5kkQ59qVDfvdaUq6gCrEZIbySFBM2T9DNKHg==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
@@ -23133,30 +23582,31 @@
       }
     },
     "node_modules/sass-loader": {
-      "version": "16.0.4",
-      "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-16.0.4.tgz",
-      "integrity": "sha512-LavLbgbBGUt3wCiYzhuLLu65+fWXaXLmq7YxivLhEqmiupCFZ5sKUAipK3do6V80YSU0jvSxNhEdT13IXNr3rg==",
+      "version": "12.6.0",
+      "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz",
+      "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
+        "klona": "^2.0.4",
         "neo-async": "^2.6.2"
       },
       "engines": {
-        "node": ">= 18.12.0"
+        "node": ">= 12.13.0"
       },
       "funding": {
         "type": "opencollective",
         "url": "https://opencollective.com/webpack"
       },
       "peerDependencies": {
-        "@rspack/core": "0.x || 1.x",
-        "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
+        "fibers": ">= 3.1.0",
+        "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
         "sass": "^1.3.0",
         "sass-embedded": "*",
         "webpack": "^5.0.0"
       },
       "peerDependenciesMeta": {
-        "@rspack/core": {
+        "fibers": {
           "optional": true
         },
         "node-sass": {
@@ -23167,9 +23617,6 @@
         },
         "sass-embedded": {
           "optional": true
-        },
-        "webpack": {
-          "optional": true
         }
       }
     },
@@ -24039,11 +24486,10 @@
       "dev": true
     },
     "node_modules/spawnd": {
-      "version": "10.1.4",
-      "resolved": "https://registry.npmjs.org/spawnd/-/spawnd-10.1.4.tgz",
-      "integrity": "sha512-drqHc0mKJmtMsiGMOCwzlc5eZ0RPtRvT7tQAluW2A0qUc0G7TQ8KLcn3E6K5qzkLkH2UkS3nYQiVGULvvsD9dw==",
+      "version": "9.0.2",
+      "resolved": "https://registry.npmjs.org/spawnd/-/spawnd-9.0.2.tgz",
+      "integrity": "sha512-nl8DVHEDQ57IcKakzpjanspVChkMpGLuVwMR/eOn9cXE55Qr6luD2Kn06sA0ootRMdgrU4tInN6lA6ohTNvysw==",
       "dev": true,
-      "license": "MIT",
       "dependencies": {
         "signal-exit": "^4.1.0",
         "tree-kill": "^1.2.2"
@@ -24625,239 +25071,108 @@
       "engines": {
         "node": "^14 || ^16 || >=18.0"
       },
-      "peerDependencies": {
-        "postcss": "^8.4.31"
-      }
-    },
-    "node_modules/stylelint": {
-      "version": "16.13.2",
-      "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.13.2.tgz",
-      "integrity": "sha512-wDlgh0mRO9RtSa3TdidqHd0nOG8MmUyVKl+dxA6C1j8aZRzpNeEgdhFmU5y4sZx4Fc6r46p0fI7p1vR5O2DZqA==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/stylelint"
-        },
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/stylelint"
-        }
-      ],
+      "peerDependencies": {
+        "postcss": "^8.4.31"
+      }
+    },
+    "node_modules/stylelint": {
+      "version": "14.16.1",
+      "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-14.16.1.tgz",
+      "integrity": "sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A==",
+      "dev": true,
       "license": "MIT",
       "dependencies": {
-        "@csstools/css-parser-algorithms": "^3.0.4",
-        "@csstools/css-tokenizer": "^3.0.3",
-        "@csstools/media-query-list-parser": "^4.0.2",
-        "@csstools/selector-specificity": "^5.0.0",
-        "@dual-bundle/import-meta-resolve": "^4.1.0",
+        "@csstools/selector-specificity": "^2.0.2",
         "balanced-match": "^2.0.0",
         "colord": "^2.9.3",
-        "cosmiconfig": "^9.0.0",
-        "css-functions-list": "^3.2.3",
-        "css-tree": "^3.1.0",
-        "debug": "^4.3.7",
-        "fast-glob": "^3.3.3",
+        "cosmiconfig": "^7.1.0",
+        "css-functions-list": "^3.1.0",
+        "debug": "^4.3.4",
+        "fast-glob": "^3.2.12",
         "fastest-levenshtein": "^1.0.16",
-        "file-entry-cache": "^10.0.5",
+        "file-entry-cache": "^6.0.1",
         "global-modules": "^2.0.0",
         "globby": "^11.1.0",
         "globjoin": "^0.1.4",
-        "html-tags": "^3.3.1",
-        "ignore": "^7.0.1",
+        "html-tags": "^3.2.0",
+        "ignore": "^5.2.1",
+        "import-lazy": "^4.0.0",
         "imurmurhash": "^0.1.4",
         "is-plain-object": "^5.0.0",
-        "known-css-properties": "^0.35.0",
+        "known-css-properties": "^0.26.0",
         "mathml-tag-names": "^2.1.3",
-        "meow": "^13.2.0",
-        "micromatch": "^4.0.8",
+        "meow": "^9.0.0",
+        "micromatch": "^4.0.5",
         "normalize-path": "^3.0.0",
-        "picocolors": "^1.1.1",
-        "postcss": "^8.4.49",
-        "postcss-resolve-nested-selector": "^0.1.6",
-        "postcss-safe-parser": "^7.0.1",
-        "postcss-selector-parser": "^7.0.0",
+        "picocolors": "^1.0.0",
+        "postcss": "^8.4.19",
+        "postcss-media-query-parser": "^0.2.3",
+        "postcss-resolve-nested-selector": "^0.1.1",
+        "postcss-safe-parser": "^6.0.0",
+        "postcss-selector-parser": "^6.0.11",
         "postcss-value-parser": "^4.2.0",
         "resolve-from": "^5.0.0",
         "string-width": "^4.2.3",
-        "supports-hyperlinks": "^3.1.0",
+        "strip-ansi": "^6.0.1",
+        "style-search": "^0.1.0",
+        "supports-hyperlinks": "^2.3.0",
         "svg-tags": "^1.0.0",
-        "table": "^6.9.0",
-        "write-file-atomic": "^5.0.1"
+        "table": "^6.8.1",
+        "v8-compile-cache": "^2.3.0",
+        "write-file-atomic": "^4.0.2"
       },
       "bin": {
-        "stylelint": "bin/stylelint.mjs"
+        "stylelint": "bin/stylelint.js"
       },
       "engines": {
-        "node": ">=18.12.0"
+        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/stylelint"
       }
     },
     "node_modules/stylelint-config-recommended": {
-      "version": "14.0.1",
-      "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-14.0.1.tgz",
-      "integrity": "sha512-bLvc1WOz/14aPImu/cufKAZYfXs/A/owZfSMZ4N+16WGXLoX5lOir53M6odBxvhgmgdxCVnNySJmZKx73T93cg==",
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-6.0.0.tgz",
+      "integrity": "sha512-ZorSSdyMcxWpROYUvLEMm0vSZud2uB7tX1hzBZwvVY9SV/uly4AvvJPPhCcymZL3fcQhEQG5AELmrxWqtmzacw==",
       "dev": true,
-      "funding": [
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/stylelint"
-        },
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/stylelint"
-        }
-      ],
       "license": "MIT",
-      "engines": {
-        "node": ">=18.12.0"
-      },
       "peerDependencies": {
-        "stylelint": "^16.1.0"
+        "stylelint": "^14.0.0"
       }
     },
     "node_modules/stylelint-config-recommended-scss": {
-      "version": "14.1.0",
-      "resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-14.1.0.tgz",
-      "integrity": "sha512-bhaMhh1u5dQqSsf6ri2GVWWQW5iUjBYgcHkh7SgDDn92ijoItC/cfO/W+fpXshgTQWhwFkP1rVcewcv4jaftRg==",
+      "version": "5.0.2",
+      "resolved": "https://registry.npmjs.org/stylelint-config-recommended-scss/-/stylelint-config-recommended-scss-5.0.2.tgz",
+      "integrity": "sha512-b14BSZjcwW0hqbzm9b0S/ScN2+3CO3O4vcMNOw2KGf8lfVSwJ4p5TbNEXKwKl1+0FMtgRXZj6DqVUe/7nGnuBg==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "postcss-scss": "^4.0.9",
-        "stylelint-config-recommended": "^14.0.1",
-        "stylelint-scss": "^6.4.0"
-      },
-      "engines": {
-        "node": ">=18.12.0"
+        "postcss-scss": "^4.0.2",
+        "stylelint-config-recommended": "^6.0.0",
+        "stylelint-scss": "^4.0.0"
       },
       "peerDependencies": {
-        "postcss": "^8.3.3",
-        "stylelint": "^16.6.1"
-      },
-      "peerDependenciesMeta": {
-        "postcss": {
-          "optional": true
-        }
+        "stylelint": "^14.0.0"
       }
     },
     "node_modules/stylelint-scss": {
-      "version": "6.10.1",
-      "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-6.10.1.tgz",
-      "integrity": "sha512-CBqs0jecftIyhic6xba+4OvZUp4B0wNbX19w6Rq1fPo+lBDmTevk+olo8H7u/WQpTSDCDbBN4f3oocQurvXLTQ==",
+      "version": "4.7.0",
+      "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-4.7.0.tgz",
+      "integrity": "sha512-TSUgIeS0H3jqDZnby1UO1Qv3poi1N8wUYIJY6D1tuUq2MN3lwp/rITVo0wD+1SWTmRm0tNmGO0b7nKInnqF6Hg==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "css-tree": "^3.0.1",
-        "is-plain-object": "^5.0.0",
-        "known-css-properties": "^0.35.0",
-        "mdn-data": "^2.14.0",
         "postcss-media-query-parser": "^0.2.3",
-        "postcss-resolve-nested-selector": "^0.1.6",
-        "postcss-selector-parser": "^7.0.0",
+        "postcss-resolve-nested-selector": "^0.1.1",
+        "postcss-selector-parser": "^6.0.11",
         "postcss-value-parser": "^4.2.0"
       },
-      "engines": {
-        "node": ">=18.12.0"
-      },
-      "peerDependencies": {
-        "stylelint": "^16.0.2"
-      }
-    },
-    "node_modules/stylelint-scss/node_modules/css-tree": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz",
-      "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "mdn-data": "2.12.2",
-        "source-map-js": "^1.0.1"
-      },
-      "engines": {
-        "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
-      }
-    },
-    "node_modules/stylelint-scss/node_modules/css-tree/node_modules/mdn-data": {
-      "version": "2.12.2",
-      "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz",
-      "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==",
-      "dev": true,
-      "license": "CC0-1.0"
-    },
-    "node_modules/stylelint-scss/node_modules/mdn-data": {
-      "version": "2.15.0",
-      "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.15.0.tgz",
-      "integrity": "sha512-KIrS0lFPOqA4DgeO16vI5fkAsy8p++WBlbXtB5P1EQs8ubBgguAInNd1DnrCeTRfGchY0kgThgDOOIPyOLH2dQ==",
-      "dev": true,
-      "license": "CC0-1.0"
-    },
-    "node_modules/stylelint-scss/node_modules/postcss-selector-parser": {
-      "version": "7.0.0",
-      "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz",
-      "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "cssesc": "^3.0.0",
-        "util-deprecate": "^1.0.2"
-      },
-      "engines": {
-        "node": ">=4"
-      }
-    },
-    "node_modules/stylelint/node_modules/@csstools/media-query-list-parser": {
-      "version": "4.0.2",
-      "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-4.0.2.tgz",
-      "integrity": "sha512-EUos465uvVvMJehckATTlNqGj4UJWkTmdWuDMjqvSUkjGpmOyFZBVwb4knxCm/k2GMTXY+c/5RkdndzFYWeX5A==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/csstools"
-        },
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/csstools"
-        }
-      ],
-      "license": "MIT",
-      "engines": {
-        "node": ">=18"
-      },
       "peerDependencies": {
-        "@csstools/css-parser-algorithms": "^3.0.4",
-        "@csstools/css-tokenizer": "^3.0.3"
+        "stylelint": "^14.5.1 || ^15.0.0"
       }
     },
-    "node_modules/stylelint/node_modules/@csstools/selector-specificity": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-5.0.0.tgz",
-      "integrity": "sha512-PCqQV3c4CoVm3kdPhyeZ07VmBRdH2EpMFA/pd9OASpOEC3aXNGoqPDAZ80D0cLpMBxnmk0+yNhGsEx31hq7Gtw==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/csstools"
-        },
-        {
-          "type": "opencollective",
-          "url": "https://opencollective.com/csstools"
-        }
-      ],
-      "license": "MIT-0",
-      "engines": {
-        "node": ">=18"
-      },
-      "peerDependencies": {
-        "postcss-selector-parser": "^7.0.0"
-      }
-    },
-    "node_modules/stylelint/node_modules/argparse": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
-      "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
-      "dev": true,
-      "license": "Python-2.0"
-    },
     "node_modules/stylelint/node_modules/balanced-match": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz",
@@ -24866,66 +25181,20 @@
       "license": "MIT"
     },
     "node_modules/stylelint/node_modules/cosmiconfig": {
-      "version": "9.0.0",
-      "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz",
-      "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "env-paths": "^2.2.1",
-        "import-fresh": "^3.3.0",
-        "js-yaml": "^4.1.0",
-        "parse-json": "^5.2.0"
-      },
-      "engines": {
-        "node": ">=14"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/d-fischer"
-      },
-      "peerDependencies": {
-        "typescript": ">=4.9.5"
-      },
-      "peerDependenciesMeta": {
-        "typescript": {
-          "optional": true
-        }
-      }
-    },
-    "node_modules/stylelint/node_modules/css-tree": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz",
-      "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==",
+      "version": "7.1.0",
+      "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
+      "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "mdn-data": "2.12.2",
-        "source-map-js": "^1.0.1"
+        "@types/parse-json": "^4.0.0",
+        "import-fresh": "^3.2.1",
+        "parse-json": "^5.0.0",
+        "path-type": "^4.0.0",
+        "yaml": "^1.10.0"
       },
       "engines": {
-        "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
-      }
-    },
-    "node_modules/stylelint/node_modules/file-entry-cache": {
-      "version": "10.0.5",
-      "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-10.0.5.tgz",
-      "integrity": "sha512-umpQsJrBNsdMDgreSryMEXvJh66XeLtZUwA8Gj7rHGearGufUFv6rB/bcXRFsiGWw/VeSUgUofF4Rf2UKEOrTA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "flat-cache": "^6.1.5"
-      }
-    },
-    "node_modules/stylelint/node_modules/flat-cache": {
-      "version": "6.1.5",
-      "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.5.tgz",
-      "integrity": "sha512-QR+2kN38f8nMfiIQ1LHYjuDEmZNZVjxuxY+HufbS3BW0EX01Q5OnH7iduOYRutmgiXb797HAKcXUeXrvRjjgSQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "cacheable": "^1.8.7",
-        "flatted": "^3.3.2",
-        "hookified": "^1.6.0"
+        "node": ">=10"
       }
     },
     "node_modules/stylelint/node_modules/global-modules": {
@@ -24956,29 +25225,6 @@
         "node": ">=6"
       }
     },
-    "node_modules/stylelint/node_modules/ignore": {
-      "version": "7.0.3",
-      "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.3.tgz",
-      "integrity": "sha512-bAH5jbK/F3T3Jls4I0SO1hmPR0dKU0a7+SY6n1yzRtG54FLO8d6w/nxLFX2Nb7dBu6cCWXPaAME6cYqFUMmuCA==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">= 4"
-      }
-    },
-    "node_modules/stylelint/node_modules/js-yaml": {
-      "version": "4.1.0",
-      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
-      "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "argparse": "^2.0.1"
-      },
-      "bin": {
-        "js-yaml": "bin/js-yaml.js"
-      }
-    },
     "node_modules/stylelint/node_modules/kind-of": {
       "version": "6.0.3",
       "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
@@ -24989,83 +25235,6 @@
         "node": ">=0.10.0"
       }
     },
-    "node_modules/stylelint/node_modules/mdn-data": {
-      "version": "2.12.2",
-      "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz",
-      "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==",
-      "dev": true,
-      "license": "CC0-1.0"
-    },
-    "node_modules/stylelint/node_modules/meow": {
-      "version": "13.2.0",
-      "resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz",
-      "integrity": "sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=18"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/stylelint/node_modules/postcss-selector-parser": {
-      "version": "7.0.0",
-      "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz",
-      "integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "cssesc": "^3.0.0",
-        "util-deprecate": "^1.0.2"
-      },
-      "engines": {
-        "node": ">=4"
-      }
-    },
-    "node_modules/stylelint/node_modules/signal-exit": {
-      "version": "4.1.0",
-      "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
-      "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
-      "dev": true,
-      "license": "ISC",
-      "engines": {
-        "node": ">=14"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/isaacs"
-      }
-    },
-    "node_modules/stylelint/node_modules/supports-color": {
-      "version": "7.2.0",
-      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
-      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "has-flag": "^4.0.0"
-      },
-      "engines": {
-        "node": ">=8"
-      }
-    },
-    "node_modules/stylelint/node_modules/supports-hyperlinks": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-3.1.0.tgz",
-      "integrity": "sha512-2rn0BZ+/f7puLOHZm1HOJfwBggfaHXUpPUSSG/SWM4TWp5KCfmNYwnC3hruy2rZlMnmWZ+QAGpZfchu3f3695A==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "has-flag": "^4.0.0",
-        "supports-color": "^7.0.0"
-      },
-      "engines": {
-        "node": ">=14.18"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
     "node_modules/stylelint/node_modules/which": {
       "version": "1.3.1",
       "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
@@ -25079,18 +25248,14 @@
         "which": "bin/which"
       }
     },
-    "node_modules/stylelint/node_modules/write-file-atomic": {
-      "version": "5.0.1",
-      "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz",
-      "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==",
+    "node_modules/stylelint/node_modules/yaml": {
+      "version": "1.10.2",
+      "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
+      "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
       "dev": true,
       "license": "ISC",
-      "dependencies": {
-        "imurmurhash": "^0.1.4",
-        "signal-exit": "^4.0.1"
-      },
       "engines": {
-        "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
+        "node": ">= 6"
       }
     },
     "node_modules/stylis": {
@@ -26310,6 +26475,13 @@
         "uuid": "dist/bin/uuid"
       }
     },
+    "node_modules/v8-compile-cache": {
+      "version": "2.4.0",
+      "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.4.0.tgz",
+      "integrity": "sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw==",
+      "dev": true,
+      "license": "MIT"
+    },
     "node_modules/v8-to-istanbul": {
       "version": "9.3.0",
       "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
@@ -26394,14 +26566,14 @@
       }
     },
     "node_modules/wait-on": {
-      "version": "8.0.2",
-      "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-8.0.2.tgz",
-      "integrity": "sha512-qHlU6AawrgAIHlueGQHQ+ETcPLAauXbnoTKl3RKq20W0T8x0DKVAo5xWIYjHSyvHxQlcYbFdR0jp4T9bDVITFA==",
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-7.2.0.tgz",
+      "integrity": "sha512-wCQcHkRazgjG5XoAq9jbTMLpNIjoSlZslrJ2+N9MxDsGEv1HnFoVjOCexL0ESva7Y9cu350j+DWADdk54s4AFQ==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
-        "axios": "^1.7.9",
-        "joi": "^17.13.3",
+        "axios": "^1.6.1",
+        "joi": "^17.11.0",
         "lodash": "^4.17.21",
         "minimist": "^1.2.8",
         "rxjs": "^7.8.1"
diff --git a/package.json b/package.json
index 68e22c938..3d6d0c4a5 100644
--- a/package.json
+++ b/package.json
@@ -68,7 +68,7 @@
     "@wordpress/e2e-test-utils-playwright": "^1.15.0",
     "@wordpress/env": "^9.2.0",
     "@wordpress/jest-preset-default": "^11.25.0",
-    "@wordpress/scripts": "^30.8.1",
+    "@wordpress/scripts": "^27.9.0",
     "babel-jest": "^29.7.0",
     "babel-plugin-inline-json-import": "^0.3.2",
     "chalk": "^5.3.0",
diff --git a/packages/extensions/index.js b/packages/extensions/index.js
index 552a76270..1be108ea1 100644
--- a/packages/extensions/index.js
+++ b/packages/extensions/index.js
@@ -1,11 +1,22 @@
-import { createRoot, createElement } from '@wordpress/element';
+import { createRoot, render } from '@wordpress/element';
 import Extensions from './Extensions';
 import './index.scss';
 
 document.addEventListener('DOMContentLoaded', () => {
-    const container = document.getElementById('wpgraphql-extensions');
-    if (container) {
-        const root = createRoot(container);
-        root.render(createElement(Extensions));
-    }
+  const container = document.getElementById('wpgraphql-extensions');
+
+  if ( ! container ) {
+      return;
+  }
+
+  /**
+   * createRoot only exists in WordPress 6.2+.
+   *
+   * Once that version is the minimum required, this check can be removed.
+   */
+  if( createRoot ) {
+    createRoot( container ).render( <Extensions /> );
+  } else {
+    render( <Extensions />, container );
+  }
 });
diff --git a/packages/wpgraphiql/app.js b/packages/wpgraphiql/app.js
index ad597773d..61f3c611e 100644
--- a/packages/wpgraphiql/app.js
+++ b/packages/wpgraphiql/app.js
@@ -1,8 +1,25 @@
-import { render } from "@wordpress/element";
+import { createRoot, render } from "@wordpress/element";
 import "./app.scss";
 import AppWithContext from "./components/App/App.js";
 
 /**
  * Render the application to the DOM
  */
-render(<AppWithContext />, document.getElementById(`graphiql`));
+document.addEventListener('DOMContentLoaded', () => {
+  const container = document.getElementById('graphiql');
+
+    if ( ! container ) {
+      return;
+  }
+
+  /**
+   * createRoot only exists in WordPress 6.2+.
+   *
+   * Once that version is the minimum required, this check can be removed.
+   */
+  if( createRoot ) {
+    createRoot( container ).render( <AppWithContext /> );
+  } else {
+    render( <AppWithContext />, container );
+  }
+});


Test patch: