react-route-cache
Version:
keep-alive cache for react router
15 lines • 298 kB
JavaScript
"use strict";var e=require("react"),t=require("react-dom"),n=require("react-router-dom");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=r(e),i=r(t);function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;const c=({name:n,show:r,children:o,to:i,style:a})=>{const[c]=e.useState((()=>document.createElement("div")));return e.useEffect((()=>{c.style.cssText="",Object.keys(a||{}).forEach((e=>{c.style[e]=a[e]}))}),[a]),e.useEffect((()=>{var e;r&&(null===(e=i.current)||void 0===e||e.replaceChildren(c))}),[r]),t.createPortal(o,c,n)},s=e.createContext({activateds:{},deactivateds:{}});s.displayName="KeepAliveContext";const l=()=>{const t=e.useContext(s);if(!t)throw new Error("useKeepAlive必须在KeepAliveContext中使用");return t},u=()=>{const e=n.useNavigate(),{pathname:t}=n.useLocation(),{active:r,setActive:o,tabs:i,setTabs:a}=l();return{active:r,tabs:i,setTabs:a,setActive:o,close:n=>{const o=n||t,c=i.findIndex((e=>e.key===o));-1!==c&&i.length>1&&(i.splice(c,1),a([...i]),r===o&&e(i[0].key))},closeNavigator:n=>{const r=i.findIndex((e=>e.key===t));-1!==r&&(i.splice(r,1),a([...i]),e(n))},closeAll:()=>{a([i.find((e=>e.key===r))])}}};var d=e.createContext({});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 p(e){if(Array.isArray(e))return e}function m(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 h(e,t){if(e){if("string"==typeof e)return m(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)?m(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 v(e,t){return p(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,c=[],s=!0,l=!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)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||h(e,t)||g()}function y(e){return y="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},y(e)}function b(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}function E(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 x(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}function C(e,t){if(null==e)return{};var n,r,o=x(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){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(O);var S=w(O.exports);function k(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 $(e){return Math.min(1,Math.max(0,e))}function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e){return e<=1?"".concat(100*Number(e),"%"):e}function P(e){return 1===e.length?"0"+e:String(e)}function M(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,c=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=c>.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:c}}function F(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 A(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,c=r-o,s=0===r?0:c/r;if(r===o)i=0;else{switch(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:s,v:a}}function T(e,t,n,r){var o=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(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 _(e){return I(e)/255}function I(e){return parseInt(e,16)}var R={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 L(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,c=null,s=null,l=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(R[e])e=R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=V.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=V.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=V.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=V.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=V.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=V.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=V.hex8.exec(e),n)return{r:I(n[1]),g:I(n[2]),b:I(n[3]),a:_(n[4]),format:t?"name":"hex8"};if(n=V.hex6.exec(e),n)return{r:I(n[1]),g:I(n[2]),b:I(n[3]),format:t?"name":"hex"};if(n=V.hex4.exec(e),n)return{r:I(n[1]+n[1]),g:I(n[2]+n[2]),b:I(n[3]+n[3]),a:_(n[4]+n[4]),format:t?"name":"hex8"};if(n=V.hex3.exec(e),n)return{r:I(n[1]+n[1]),g:I(n[2]+n[2]),b:I(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(B(e.r)&&B(e.g)&&B(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*k(t,255),g:255*k(n,255),b:255*k(r,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):B(e.h)&&B(e.s)&&B(e.v)?(a=j(e.s),c=j(e.v),o=function(e,t,n){e=6*k(e,360),t=k(t,100),n=k(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,c,n][s],g:255*[c,n,n,a,i,i][s],b:255*[i,i,c,n,n,a][s]}}(e.h,a,c),l=!0,u="hsv"):B(e.h)&&B(e.s)&&B(e.l)&&(a=j(e.s),s=j(e.l),o=function(e,t,n){var r,o,i;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=F(c,a,e+1/3),o=F(c,a,e),i=F(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=N(i),{ok:l,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var D="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),z="[\\s|\\(]+(".concat(D,")[,|\\s]+(").concat(D,")[,|\\s]+(").concat(D,")\\s*\\)?"),H="[\\s|\\(]+(".concat(D,")[,|\\s]+(").concat(D,")[,|\\s]+(").concat(D,")[,|\\s]+(").concat(D,")\\s*\\)?"),V={CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+H),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 B(e){return Boolean(V.CSS_UNIT.exec(String(e)))}var W=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=L(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=N(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=A(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=A(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=M(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=M(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),T(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=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16)),P((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*k(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*k(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="#"+T(this.r,this.g,this.b,!1),t=0,n=Object.entries(R);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=$(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=$(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=$(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=$(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=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%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}(),q=2,U=.16,G=.05,X=.05,K=.15,Y=5,Z=4,Q=[{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 J(e){var t=A(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ee(e){var t=e.r,n=e.g,r=e.b;return"#".concat(T(t,n,r,!1))}function te(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-q*t:Math.round(e.h)+q*t:n?Math.round(e.h)+q*t:Math.round(e.h)-q*t)<0?r+=360:r>=360&&(r-=360),r}function ne(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-U*t:t===Z?e.s+U:e.s+G*t)>1&&(r=1),n&&t===Y&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function re(e,t,n){var r;return(r=n?e.v+X*t:e.v-K*t)>1&&(r=1),Number(r.toFixed(2))}function oe(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=L(e),o=Y;o>0;o-=1){var i=J(r),a=ee(L({h:te(i,o,!0),s:ne(i,o,!0),v:re(i,o,!0)}));n.push(a)}n.push(ee(r));for(var c=1;c<=Z;c+=1){var s=J(r),l=ee(L({h:te(s,c),s:ne(s,c),v:re(s,c)}));n.push(l)}return"dark"===t.theme?Q.map((function(e){var r,o,i,a=e.index,c=e.opacity;return ee((r=L(t.backgroundColor||"#141414"),o=L(n[a]),i=100*c/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ie={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ae=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ae.primary=ae[5];var ce=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ce.primary=ce[5];var se=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];se.primary=se[5];var le=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];le.primary=le[5];var ue=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ue.primary=ue[5];var de=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];de.primary=de[5];var fe=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fe.primary=fe[5];var pe=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];pe.primary=pe[5];var me=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];me.primary=me[5];var he=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];he.primary=he[5];var ge=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ge.primary=ge[5];var ve=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ve.primary=ve[5];var ye=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ye.primary=ye[5];var be={red:ae,volcano:ce,orange:se,gold:le,yellow:ue,lime:de,green:fe,cyan:pe,blue:me,geekblue:he,purple:ge,magenta:ve,grey:ye};function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function we(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}var Oe="data-rc-order",Se="data-rc-priority",ke="rc-util-key",$e=new Map;function Ne(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ke}function je(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Pe(e){return Array.from(($e.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ce())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),c="prependQueue"===a,s=document.createElement("style");s.setAttribute(Oe,a),c&&i&&s.setAttribute(Se,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=je(t),u=l.firstChild;if(r){if(c){var d=(t.styles||Pe(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Oe)))return!1;var t=Number(e.getAttribute(Se)||0);return i>=t}));if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=je(t);return(t.styles||Pe(n)).find((function(n){return n.getAttribute(Ne(t))===e}))}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Fe(e,t);n&&je(t).removeChild(n)}function Te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=je(n),o=Pe(r),i=xe(xe({},n),{},{styles:o});!function(e,t){var n=$e.get(e);if(!n||!we(document,n)){var r=Me("",t),o=r.parentNode;$e.set(e,o),e.removeChild(r)}}(r,i);var a=Fe(t,i);if(a){var c,s,l;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Me(e,i);return u.setAttribute(Ne(i),t),u}function _e(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ie(e){return function(e){return _e(e)instanceof ShadowRoot}(e)?_e(e):null}var Re={},Le=[];function De(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Le.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function ze(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Le.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function He(){Re={}}function Ve(e,t,n){t||Re[n]||(e(!1,n),Re[n]=!0)}function Be(e,t){Ve(De,e,t)}function We(e){return"object"===y(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===y(e.icon)||"function"==typeof e.icon)}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Ue(t,n,r){return r?e.createElement(t.tag,xe(xe({key:n},qe(t.attrs)),r),(t.children||[]).map((function(e,r){return Ue(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,xe({key:n},qe(t.attrs)),(t.children||[]).map((function(e,r){return Ue(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Ge(e){return oe(e)[0]}function Xe(e){return e?Array.isArray(e)?e:[e]:[]}Be.preMessage=function(e){Le.push(e)},Be.resetWarned=He,Be.noteOnce=function(e,t){Ve(ze,e,t)};var Ke=["icon","className","onClick","style","primaryColor","secondaryColor"],Ye={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ze=function(t){var n,r,i,a,c,s,l,u=t.icon,f=t.className,p=t.onClick,m=t.style,h=t.primaryColor,g=t.secondaryColor,v=C(t,Ke),y=o.useRef(),b=Ye;if(h&&(b={primaryColor:h,secondaryColor:g||Ge(h)}),n=y,r=e.useContext(d),i=r.csp,a=r.prefixCls,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(c=c.replace(/anticon/g,a)),e.useEffect((function(){var e=Ie(n.current);Te(c,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=We(u),l="icon should be icon definiton, but got ".concat(u),Be(s,"[@ant-design/icons] ".concat(l)),!We(u))return null;var E=u;return E&&"function"==typeof E.icon&&(E=xe(xe({},E),{},{icon:E.icon(b.primaryColor,b.secondaryColor)})),Ue(E.icon,"svg-".concat(E.name),xe(xe({className:f,onClick:p,style:m,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:y}))};function Qe(e){var t=v(Xe(e),2),n=t[0],r=t[1];return Ze.setTwoToneColors({primaryColor:n,secondaryColor:r})}Ze.displayName="IconReact",Ze.getTwoToneColors=function(){return xe({},Ye)},Ze.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ye.primaryColor=t,Ye.secondaryColor=n||Ge(t),Ye.calculated=!!n};var Je=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Qe(me.primary);var et=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,c=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=C(e,Je),p=o.useContext(d),m=p.prefixCls,h=void 0===m?"anticon":m,g=p.rootClassName,y=S(g,h,E(E({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||"loading"===r.name),n),b=c;void 0===b&&s&&(b=-1);var x=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=v(Xe(l),2),O=w[0],k=w[1];return o.createElement("span",f({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:y}),o.createElement(Ze,{icon:r,primaryColor:O,secondaryColor:k,style:x}))}));et.displayName="AntdIcon",et.getTwoToneColor=function(){var e=Ze.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},et.setTwoToneColor=Qe;var tt={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"},nt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:tt}))},rt=o.forwardRef(nt);"production"!==process.env.NODE_ENV&&(rt.displayName="CheckCircleFilled");var ot={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"},it=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:ot}))},at=o.forwardRef(it);"production"!==process.env.NODE_ENV&&(at.displayName="CloseCircleFilled");var ct={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"},st=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:ct}))},lt=o.forwardRef(st);"production"!==process.env.NODE_ENV&&(lt.displayName="CloseCircleOutlined");var ut={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"},dt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:ut}))},ft=o.forwardRef(dt);"production"!==process.env.NODE_ENV&&(ft.displayName="CloseOutlined");var pt={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"},mt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:pt}))},ht=o.forwardRef(mt);"production"!==process.env.NODE_ENV&&(ht.displayName="DotChartOutlined");var gt={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"},vt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:gt}))},yt=o.forwardRef(vt);"production"!==process.env.NODE_ENV&&(yt.displayName="ExclamationCircleFilled");var bt={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"},Et=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:bt}))},xt=o.forwardRef(Et);"production"!==process.env.NODE_ENV&&(xt.displayName="InfoCircleFilled");var Ct={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"},wt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:Ct}))},Ot=o.forwardRef(wt);"production"!==process.env.NODE_ENV&&(Ot.displayName="LeftOutlined");var St={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"},kt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:St}))},$t=o.forwardRef(kt);"production"!==process.env.NODE_ENV&&($t.displayName="LoadingOutlined");var Nt={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"},jt=function(e,t){return o.createElement(et,f({},e,{ref:t,icon:Nt}))},Pt=o.forwardRef(jt);"production"!==process.env.NODE_ENV&&(Pt.displayName="RightOutlined");var Mt,Ft={exports:{}},At={};var Tt,_t={};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/"production"===process.env.NODE_ENV?Ft.exports=function(){if(Mt)return At;Mt=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),At.ContextConsumer=c,At.ContextProvider=a,At.Element=t,At.ForwardRef=l,At.Fragment=r,At.Lazy=p,At.Memo=f,At.Portal=n,At.Profiler=i,At.StrictMode=o,At.Suspense=u,At.SuspenseList=d,At.isAsyncMode=function(){return!1},At.isConcurrentMode=function(){return!1},At.isContextConsumer=function(e){return h(e)===c},At.isContextProvider=function(e){return h(e)===a},At.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},At.isForwardRef=function(e){return h(e)===l},At.isFragment=function(e){return h(e)===r},At.isLazy=function(e){return h(e)===p},At.isMemo=function(e){return h(e)===f},At.isPortal=function(e){return h(e)===n},At.isProfiler=function(e){return h(e)===i},At.isStrictMode=function(e){return h(e)===o},At.isSuspense=function(e){return h(e)===u},At.isSuspenseList=function(e){return h(e)===d},At.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},At.typeOf=h,At}():Ft.exports=(Tt||(Tt=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case i:case o:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case s:case c:case l:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=c,v=a,y=t,b=l,E=r,x=p,C=f,w=n,O=i,S=o,k=u,$=d,N=!1,j=!1;_t.ContextConsumer=g,_t.ContextProvider=v,_t.Element=y,_t.ForwardRef=b,_t.Fragment=E,_t.Lazy=x,_t.Memo=C,_t.Portal=w,_t.Profiler=O,_t.StrictMode=S,_t.Suspense=k,_t.SuspenseList=$,_t.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},_t.isConcurrentMode=function(e){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},_t.isContextConsumer=function(e){return h(e)===c},_t.isContextProvider=function(e){return h(e)===a},_t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_t.isForwardRef=function(e){return h(e)===l},_t.isFragment=function(e){return h(e)===r},_t.isLazy=function(e){return h(e)===p},_t.isMemo=function(e){return h(e)===f},_t.isPortal=function(e){return h(e)===n},_t.isProfiler=function(e){return h(e)===i},_t.isStrictMode=function(e){return h(e)===o},_t.isSuspense=function(e){return h(e)===u},_t.isSuspenseList=function(e){return h(e)===d},_t.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},_t.typeOf=h}()),_t);var It=Ft.exports;function Rt(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}var Lt=function(e,t){"function"==typeof e?e(t):"object"===y(e)&&e&&"current"in e&&(e.current=t)},Dt=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){Lt(t,e)}))}},zt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rt((function(){return Dt.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Ht=function(e){var t,n,r=It.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===It.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===It.ForwardRef)};Number(e.version.split(".")[0]);var Vt=function(e){return"function"==typeof e},Bt="development"===process.env.NODE_ENV||"test"===process.env.NODE_ENV;function Wt(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var qt=function(t){Bt&&(Vt(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var n,r,o=(n=t,(r=e.useRef(n)).current=n,r);e.useEffect((function(){return function(){o.current()}}),[])},Ut=!("undefined"==typeof window||!window.document||!window.document.createElement);function Gt(e,t){if(Ut)return e?Vt(e)?e():"current"in e?e.current:e:t}var Xt=function(t){return function(n,r,o){var i=e.useRef(!1),a=e.useRef([]),c=e.useRef([]),s=e.useRef();t((function(){var e,t=(Array.isArray(o)?o:[o]).map((function(e){return Gt(e)}));if(!i.current)return i.current=!0,a.current=t,c.current=r,void(s.current=n());t.length===a.current.length&&Wt(a.current,t)&&Wt(c.current,r)||(null===(e=s.current)||void 0===e||e.call(s),a.current=t,c.current=r,s.current=n())})),qt((function(){var e;null===(e=s.current)||void 0===e||e.call(s),i.current=!1}))}},Kt=Xt(e.useEffect);var Yt=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}()}(),Zt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Qt="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Jt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Qt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var en=["top","right","bottom","left","width","height","size","weight"],tn="undefined"!=typeof MutationObserver,nn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function a(){Jt(i)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return c}(this.refresh.bind(this),20)}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(){Zt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tn?(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(){Zt&&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;en.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}(),rn=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},on=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Qt},an=fn(0,0,0,0);function cn(e){return parseFloat(e)||0}function sn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+cn(e["border-"+n+"-width"])}),0)}function ln(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return an;var r=on(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]=cn(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=cn(r.width),s=cn(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=sn(r,"left","right")+i),Math.round(s+a)!==n&&(s-=sn(r,"top","bottom")+a)),!function(e){return e===on(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+a)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return fn(o.left,o.top,c,s)}var un="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof on(e).SVGGraphicsElement}:function(e){return e instanceof on(e).SVGElement&&"function"==typeof e.getBBox};function dn(e){return Zt?un(e)?function(e){var t=e.getBBox();return fn(0,0,t.width,t.height)}(e):ln(e):an}function fn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var pn=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fn(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=dn(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}(),mn=function(e,t){var n,r,o,i,a,c,s,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),rn(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);rn(this,{target:e,contentRect:l})},hn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Yt,"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 on(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new pn(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 on(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 m