gant-core 0.2.24 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ "use strict";exports.browserslist=["Chrome >= 80","Firefox >= 72","Safari >= 13.1","Edge >= 80","iOS >= 13.4","not IE 11","> 1%"];
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";const e=require("mini-css-extract-plugin");exports.getCssRules=s=>[{test:/\.(less)$/,exclude:/node_modules|public/,use:["development"===s?require.resolve("style-loader"):e.loader,{loader:require.resolve("css-loader"),options:{modules:{localIdentName:"[name]__[local]--[hash:base64:5]"}}},{loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[require.resolve("postcss-short"),require("postcss-preset-env")({browsers:["> 1%","last 2 versions"],autoprefixer:{flexbox:"no-2009"},stage:3})]}}},{loader:require.resolve("less-loader"),options:{implementation:require.resolve("less"),lessOptions:{javascriptEnabled:!0}}}]},{test:/\.(css)$/,use:["development"===s?require.resolve("style-loader"):e.loader,require.resolve("css-loader"),{loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[require.resolve("postcss-short"),require("postcss-preset-env")({browsers:["> 1%","last 2 versions"],autoprefixer:{flexbox:"no-2009"},stage:3})]}}}]}];
2
+ "use strict";var e=require("./browsers.js");const s=require("mini-css-extract-plugin");exports.getCssRules=r=>[{test:/\.(less)$/,exclude:/node_modules|public/,use:["development"===r?require.resolve("style-loader"):s.loader,{loader:require.resolve("css-loader"),options:{modules:{localIdentName:"[name]__[local]--[hash:base64:5]"}}},{loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[require.resolve("postcss-short"),require("postcss-preset-env")({browsers:e.browserslist,autoprefixer:{flexbox:"no-2009"},stage:3})]}}},{loader:require.resolve("less-loader"),options:{implementation:require.resolve("less"),lessOptions:{javascriptEnabled:!0}}}]},{test:/\.(css)$/,use:["development"===r?require.resolve("style-loader"):s.loader,require.resolve("css-loader"),{loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[require.resolve("postcss-short"),require("postcss-preset-env")({browsers:e.browserslist,autoprefixer:{flexbox:"no-2009"},stage:3})]}}}]}];
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var e=require("../../utils/index.js"),t=require("html-webpack-plugin"),s=require("./cssRules.js"),r=require("path"),i=require("webpack"),o=require("../../config/index.js");const a=["name","routes","mpas","packages","microServiceMap","base","customHistoryApiFallback","outputPathDir","define","setting","vue","library","compression","terserOptions","htmlTemplatePath","locales","mfa","publicPathDir","provide"];exports.getDefaultConfig=(n,l)=>{const u=o.omit(l,a);let{base:p="/",routes:c,htmlTemplatePath:m,outputPathDir:d="dist",microServiceMap:g,define:h,setting:v,vue:f,provide:y}=o.pick(l,a);p=/^\/.*\/$/.test(p)?p:"/";let b=l.entry||{};const x=[];if(o.isEmpty(b)&&(b.index=r.resolve(n,"src/main")),"string"==typeof b.index){const s=e.getMpasPageHtml(m);x.push(new t({templateContent:s,filename:"index.html",chunks:["index"],publicPath:p,base:p})),l.entry=b}o.isEmpty(b)||Object.entries(b).forEach((([s,r])=>{if("index"!==s){const r=e.getMpasPageHtml(m?.replace("index.",s+"."));x.push(new t({templateContent:r,filename:`${s}.html`,chunks:[s],publicPath:p,base:p}))}}));const P=s.getCssRules(l.mode);return e.mergeConfig({entry:b,stats:"minimal",devServer:{static:{directory:r.resolve(n,"src/.gant/public"),publicPath:p},compress:!0,historyApiFallback:o.has(l,"customHistoryApiFallback")?l?.customHistoryApiFallback:{index:r.resolve(p,"index.html"),rewrites:[{from:/^\/public\/(.*)$/,to:e=>r.resolve(p,e.match[1])}]}},module:{rules:[...f?[{test:/\.vue$/,loader:require.resolve("vue-loader")}]:[],{test:/\.(ts|tsx)$/,exclude:/node_modules/,use:{loader:require.resolve("swc-loader"),options:{jsc:{parser:{syntax:"typescript",tsx:!0,dynamicImport:!0},transform:{...f?{}:{react:{runtime:"automatic",development:"development"===l.mode,refresh:"development"===l.mode}}}}}}},...P,{test:/\.html$/,use:require.resolve("html-loader")},{test:/\.(png|jpg|gif|woff|woff2|eot|ttf|svg)$/i,use:[{loader:require.resolve("url-loader"),options:{limit:8192,name:"[name][hash].[ext]",outputPath:"assets/"}}]}]},resolve:{extensions:[".tsx",".ts",".js",".jsx",".json",".vue"]},output:{path:r.resolve(n,d),publicPath:p,charset:!0,clean:!0},plugins:[...f?[new(require("vue-loader").VueLoaderPlugin)]:[],...x,new i.ProvidePlugin({...y}),new i.ProgressPlugin,new i.DefinePlugin({GANT_START_TIME:JSON.stringify(global.__gant_start_time),microServiceMap:JSON.stringify(g),BASE:JSON.stringify(p),SETTING:JSON.stringify(v||{}),...o.mapValues(h,(e=>JSON.stringify(e))),"process.env":JSON.stringify(process.env)})]},u)};
2
+ "use strict";var e=require("../../utils/index.js"),t=require("html-webpack-plugin"),s=require("./cssRules.js"),r=require("path"),i=require("webpack"),a=require("./browsers.js"),o=require("../../config/index.js");const n=["name","routes","mpas","packages","microServiceMap","base","customHistoryApiFallback","outputPathDir","define","setting","vue","library","compression","terserOptions","htmlTemplatePath","locales","mfa","publicPathDir","provide"];exports.getDefaultConfig=(l,u)=>{const p=o.omit(u,n);let{base:c="/",routes:m,htmlTemplatePath:d,outputPathDir:g="dist",microServiceMap:h,define:v,setting:f,vue:b,provide:y}=o.pick(u,n);c=/^\/.*\/$/.test(c)?c:"/";let P=u.entry||{};const x=[];if(o.isEmpty(P)&&(P.index=r.resolve(l,"src/main")),"string"==typeof P.index){const s=e.getMpasPageHtml(d);x.push(new t({template:s,filename:"index.html",chunks:["index"],publicPath:c,base:c,templateParameters:{base:c}})),u.entry=P}o.isEmpty(P)||Object.entries(P).forEach((([s,r])=>{if("index"!==s){const r=e.getMpasPageHtml(d);x.push(new t({htmlpath:r,filename:`${s}.html`,chunks:[s],publicPath:c,base:c,templateParameters:{base:c}}))}}));const w=s.getCssRules(u.mode);return e.mergeConfig({entry:P,stats:"minimal",devServer:{static:{directory:r.resolve(l,"src/.gant/public"),publicPath:c},compress:!0,historyApiFallback:o.has(u,"customHistoryApiFallback")?u?.customHistoryApiFallback:{index:r.resolve(c,"index.html"),rewrites:[{from:/^\/public\/(.*)$/,to:e=>r.resolve(c,e.match[1])}]}},module:{rules:[...b?[{test:/\.vue$/,loader:require.resolve("vue-loader")}]:[],{test:/\.(ts|tsx)$/,exclude:/node_modules/,use:{loader:require.resolve("swc-loader"),options:{jsc:{target:"es2020",parser:{syntax:"typescript",tsx:!0,dynamicImport:!0},transform:{...b?{}:{react:{runtime:"automatic",development:"development"===u.mode,refresh:"development"===u.mode}}}}}}},...w,{test:/\.ejs$/,use:{loader:require.resolve("ejs-loader"),options:{esModule:!1}}},{test:/\.(png|jpg|gif|woff|woff2|eot|ttf|svg)$/i,use:[{loader:require.resolve("url-loader"),options:{limit:8192,name:"[name][hash].[ext]",outputPath:"assets/"}}]}]},resolve:{extensions:[".tsx",".ts",".js",".jsx",".json",".vue"]},output:{path:r.resolve(l,g),publicPath:c,charset:!0,clean:!0},plugins:[...b?[new(require("vue-loader").VueLoaderPlugin)]:[],...x,new i.ProvidePlugin({...y}),new i.ProgressPlugin,new i.DefinePlugin({GANT_START_TIME:JSON.stringify(global.__gant_start_time),microServiceMap:JSON.stringify(h),BASE:JSON.stringify(c),SETTING:JSON.stringify(f||{}),...o.mapValues(v,(e=>JSON.stringify(e))),"process.env":JSON.stringify(process.env)}),new i.BannerPlugin({banner:`/*! @browserslist ${a.browserslist.join(", ")} */`,raw:!0})]},p)};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var e=require("../../utils/index.js"),r=require("path"),t=require("../../config/index.js");const o=require("@pmmmwh/react-refresh-webpack-plugin");exports._getDevlopmentConfig=(i,s)=>{const{base:c="/"}=i;return e.mergeConfig({mode:"development",devtool:"eval-source-map",devServer:{port:8080,hot:!0,open:!0,client:{overlay:!1},static:{directory:r.resolve(s,"src/.gant/public"),publicPath:c},compress:!0,historyApiFallback:t.has(i,"customHistoryApiFallback")?i?.customHistoryApiFallback:{index:r.resolve(c,"index.html"),rewrites:[{from:new RegExp(`${c}public/(.*)`),to:e=>e.match&&e.match[1]?r.resolve(c,e.match[1]):c}]}},resolve:{},plugins:[new o]},i)};
2
+ "use strict";var e=require("../../utils/index.js"),r=require("path"),t=require("../../config/index.js");const o=require("@pmmmwh/react-refresh-webpack-plugin");exports._getDevlopmentConfig=(i,s)=>{const{base:l="/"}=i;return e.mergeConfig({mode:"development",devtool:"eval-source-map",devServer:{port:8080,hot:!0,open:!0,client:{overlay:!1},static:{directory:r.resolve(s,"src/.gant/public"),publicPath:l},compress:!0,historyApiFallback:t.has(i,"customHistoryApiFallback")?i?.customHistoryApiFallback:{index:r.resolve(l,"index.html"),rewrites:[{from:new RegExp(`${l}public/(.*)`),to:e=>e.match&&e.match[1]?r.resolve(l,e.match[1]):l}]}},resolve:{},plugins:[new o({overlay:!1})]},i)};
@@ -1,2 +1,2 @@
1
- import{mapValues as r,toLower as e,isObject as o,pick as t,mergeWith as n,isEmpty as a,omit as i}from"lodash-es";function c(r,e){(function(r){return"string"==typeof r&&-1!==r.indexOf(".")&&1===parseFloat(r)})(r)&&(r="100%");var o=function(r){return"string"==typeof r&&-1!==r.indexOf("%")}(r);return r=360===e?r:Math.min(e,Math.max(0,parseFloat(r))),o&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:r=360===e?(r<0?r%e+e:r%e)/parseFloat(String(e)):r%e/parseFloat(String(e))}function s(r){return Math.min(1,Math.max(0,r))}function l(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function u(r){return r<=1?"".concat(100*Number(r),"%"):r}function g(r){return 1===r.length?"0"+r:String(r)}function h(r,e,o){return{r:255*c(r,255),g:255*c(e,255),b:255*c(o,255)}}function d(r,e,o){r=c(r,255),e=c(e,255),o=c(o,255);var t=Math.max(r,e,o),n=Math.min(r,e,o),a=0,i=0,s=(t+n)/2;if(t===n)i=0,a=0;else{var l=t-n;switch(i=s>.5?l/(2-t-n):l/(t+n),t){case r:a=(e-o)/l+(e<o?6:0);break;case e:a=(o-r)/l+2;break;case o:a=(r-e)/l+4}a/=6}return{h:a,s:i,l:s}}function f(r,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+6*o*(e-r):o<.5?e:o<2/3?r+(e-r)*(2/3-o)*6:r}function p(r,e,o){var t,n,a;if(r=c(r,360),e=c(e,100),o=c(o,100),0===e)n=o,a=o,t=o;else{var i=o<.5?o*(1+e):o+e-o*e,s=2*o-i;t=f(s,i,r+1/3),n=f(s,i,r),a=f(s,i,r-1/3)}return{r:255*t,g:255*n,b:255*a}}function b(r,e,o){r=c(r,255),e=c(e,255),o=c(o,255);var t=Math.max(r,e,o),n=Math.min(r,e,o),a=0,i=t,s=t-n,l=0===t?0:s/t;if(t===n)a=0;else{switch(t){case r:a=(e-o)/s+(e<o?6:0);break;case e:a=(o-r)/s+2;break;case o:a=(r-e)/s+4}a/=6}return{h:a,s:l,v:i}}function x(r,e,o){r=6*c(r,360),e=c(e,100),o=c(o,100);var t=Math.floor(r),n=r-t,a=o*(1-e),i=o*(1-n*e),s=o*(1-(1-n)*e),l=t%6;return{r:255*[o,i,a,a,s,o][l],g:255*[s,o,o,i,a,a][l],b:255*[a,a,s,o,o,i][l]}}function v(r,e,o,t){var n=[g(Math.round(r).toString(16)),g(Math.round(e).toString(16)),g(Math.round(o).toString(16))];return t&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function m(r,e,o,t,n){var a=[g(Math.round(r).toString(16)),g(Math.round(e).toString(16)),g(Math.round(o).toString(16)),g(S(t))];return n&&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("")}function y(r,e,o,t){return[g(S(t)),g(Math.round(r).toString(16)),g(Math.round(e).toString(16)),g(Math.round(o).toString(16))].join("")}function S(r){return Math.round(255*parseFloat(r)).toString(16)}function w(r){return M(r)/255}function M(r){return parseInt(r,16)}function B(r){return{r:r>>16,g:(65280&r)>>8,b:255&r}}var H={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 k(r){var e={r:0,g:0,b:0},o=1,t=null,n=null,a=null,i=!1,c=!1;return"string"==typeof r&&(r=R(r)),"object"==typeof r&&(L(r.r)&&L(r.g)&&L(r.b)?(e=h(r.r,r.g,r.b),i=!0,c="%"===String(r.r).substr(-1)?"prgb":"rgb"):L(r.h)&&L(r.s)&&L(r.v)?(t=u(r.s),n=u(r.v),e=x(r.h,t,n),i=!0,c="hsv"):L(r.h)&&L(r.s)&&L(r.l)&&(t=u(r.s),a=u(r.l),e=p(r.h,t,a),i=!0,c="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(o=r.a)),o=l(o),{ok:i,format:r.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:o}}var A="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),z="[\\s|\\(]+(".concat(A,")[,|\\s]+(").concat(A,")[,|\\s]+(").concat(A,")\\s*\\)?"),F="[\\s|\\(]+(".concat(A,")[,|\\s]+(").concat(A,")[,|\\s]+(").concat(A,")[,|\\s]+(").concat(A,")\\s*\\)?"),T={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+F),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 R(r){if(0===(r=r.trim().toLowerCase()).length)return!1;var e=!1;if(H[r])r=H[r],e=!0;else if("transparent"===r)return{r:0,g:0,b:0,a:0,format:"name"};var o=T.rgb.exec(r);return o?{r:o[1],g:o[2],b:o[3]}:(o=T.rgba.exec(r))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=T.hsl.exec(r))?{h:o[1],s:o[2],l:o[3]}:(o=T.hsla.exec(r))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=T.hsv.exec(r))?{h:o[1],s:o[2],v:o[3]}:(o=T.hsva.exec(r))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=T.hex8.exec(r))?{r:M(o[1]),g:M(o[2]),b:M(o[3]),a:w(o[4]),format:e?"name":"hex8"}:(o=T.hex6.exec(r))?{r:M(o[1]),g:M(o[2]),b:M(o[3]),format:e?"name":"hex"}:(o=T.hex4.exec(r))?{r:M(o[1]+o[1]),g:M(o[2]+o[2]),b:M(o[3]+o[3]),a:w(o[4]+o[4]),format:e?"name":"hex8"}:!!(o=T.hex3.exec(r))&&{r:M(o[1]+o[1]),g:M(o[2]+o[2]),b:M(o[3]+o[3]),format:e?"name":"hex"}}function L(r){return Boolean(T.CSS_UNIT.exec(String(r)))}var C=function(){function r(e,o){var t;if(void 0===e&&(e=""),void 0===o&&(o={}),e instanceof r)return e;"number"==typeof e&&(e=B(e)),this.originalInput=e;var n=k(e);this.originalInput=e,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(t=o.format)&&void 0!==t?t:n.format,this.gradientType=o.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=n.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},r.prototype.getLuminance=function(){var r=this.toRgb(),e=r.r/255,o=r.g/255,t=r.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(r){return this.a=l(r),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){return 0===this.toHsl().s},r.prototype.toHsv=function(){var r=b(this.r,this.g,this.b);return{h:360*r.h,s:r.s,v:r.v,a:this.a}},r.prototype.toHsvString=function(){var r=b(this.r,this.g,this.b),e=Math.round(360*r.h),o=Math.round(100*r.s),t=Math.round(100*r.v);return 1===this.a?"hsv(".concat(e,", ").concat(o,"%, ").concat(t,"%)"):"hsva(".concat(e,", ").concat(o,"%, ").concat(t,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var r=d(this.r,this.g,this.b);return{h:360*r.h,s:r.s,l:r.l,a:this.a}},r.prototype.toHslString=function(){var r=d(this.r,this.g,this.b),e=Math.round(360*r.h),o=Math.round(100*r.s),t=Math.round(100*r.l);return 1===this.a?"hsl(".concat(e,", ").concat(o,"%, ").concat(t,"%)"):"hsla(".concat(e,", ").concat(o,"%, ").concat(t,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(r){return void 0===r&&(r=!1),v(this.r,this.g,this.b,r)},r.prototype.toHexString=function(r){return void 0===r&&(r=!1),"#"+this.toHex(r)},r.prototype.toHex8=function(r){return void 0===r&&(r=!1),m(this.r,this.g,this.b,this.a,r)},r.prototype.toHex8String=function(r){return void 0===r&&(r=!1),"#"+this.toHex8(r)},r.prototype.toHexShortString=function(r){return void 0===r&&(r=!1),1===this.a?this.toHexString(r):this.toHex8String(r)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var r=Math.round(this.r),e=Math.round(this.g),o=Math.round(this.b);return 1===this.a?"rgb(".concat(r,", ").concat(e,", ").concat(o,")"):"rgba(".concat(r,", ").concat(e,", ").concat(o,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var r=function(r){return"".concat(Math.round(100*c(r,255)),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var r=function(r){return Math.round(100*c(r,255))};return 1===this.a?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var r="#"+v(this.r,this.g,this.b,!1),e=0,o=Object.entries(H);e<o.length;e++){var t=o[e],n=t[0];if(r===t[1])return n}return!1},r.prototype.toString=function(r){var e=Boolean(r);r=null!=r?r:this.format;var o=!1,t=this.a<1&&this.a>=0;return e||!t||!r.startsWith("hex")&&"name"!==r?("rgb"===r&&(o=this.toRgbString()),"prgb"===r&&(o=this.toPercentageRgbString()),"hex"!==r&&"hex6"!==r||(o=this.toHexString()),"hex3"===r&&(o=this.toHexString(!0)),"hex4"===r&&(o=this.toHex8String(!0)),"hex8"===r&&(o=this.toHex8String()),"name"===r&&(o=this.toName()),"hsl"===r&&(o=this.toHslString()),"hsv"===r&&(o=this.toHsvString()),o||this.toHexString()):"name"===r&&0===this.a?this.toName():this.toRgbString()},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.l+=e/100,o.l=s(o.l),new r(o)},r.prototype.brighten=function(e){void 0===e&&(e=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(-e/100*255))),o.g=Math.max(0,Math.min(255,o.g-Math.round(-e/100*255))),o.b=Math.max(0,Math.min(255,o.b-Math.round(-e/100*255))),new r(o)},r.prototype.darken=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.l-=e/100,o.l=s(o.l),new r(o)},r.prototype.tint=function(r){return void 0===r&&(r=10),this.mix("white",r)},r.prototype.shade=function(r){return void 0===r&&(r=10),this.mix("black",r)},r.prototype.desaturate=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.s-=e/100,o.s=s(o.s),new r(o)},r.prototype.saturate=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.s+=e/100,o.s=s(o.s),new r(o)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var o=this.toHsl(),t=(o.h+e)%360;return o.h=t<0?360+t:t,new r(o)},r.prototype.mix=function(e,o){void 0===o&&(o=50);var t=this.toRgb(),n=new r(e).toRgb(),a=o/100;return new r({r:(n.r-t.r)*a+t.r,g:(n.g-t.g)*a+t.g,b:(n.b-t.b)*a+t.b,a:(n.a-t.a)*a+t.a})},r.prototype.analogous=function(e,o){void 0===e&&(e=6),void 0===o&&(o=30);var t=this.toHsl(),n=360/o,a=[this];for(t.h=(t.h-(n*e>>1)+720)%360;--e;)t.h=(t.h+n)%360,a.push(new r(t));return a},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var o=this.toHsv(),t=o.h,n=o.s,a=o.v,i=[],c=1/e;e--;)i.push(new r({h:t,s:n,v:a})),a=(a+c)%1;return i},r.prototype.splitcomplement=function(){var e=this.toHsl(),o=e.h;return[this,new r({h:(o+72)%360,s:e.s,l:e.l}),new r({h:(o+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var o=this.toRgb(),t=new r(e).toRgb(),n=o.a+t.a*(1-o.a);return new r({r:(o.r*o.a+t.r*t.a*(1-o.a))/n,g:(o.g*o.a+t.g*t.a*(1-o.a))/n,b:(o.b*o.a+t.b*t.a*(1-o.a))/n,a:n})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var o=this.toHsl(),t=o.h,n=[this],a=360/e,i=1;i<e;i++)n.push(new r({h:(t+i*a)%360,s:o.s,l:o.l}));return n},r.prototype.equals=function(e){return this.toRgbString()===new r(e).toRgbString()},r}();function X(r,e){return void 0===r&&(r=""),void 0===e&&(e={}),new C(r,e)}function D(r,e){var o=new C(r),t=new C(e);return(Math.max(o.getLuminance(),t.getLuminance())+.05)/(Math.min(o.getLuminance(),t.getLuminance())+.05)}function E(r,e,o){var t,n;void 0===o&&(o={level:"AA",size:"small"});var a=D(r,e);switch((null!==(t=o.level)&&void 0!==t?t:"AA")+(null!==(n=o.size)&&void 0!==n?n:"small")){case"AAsmall":case"AAAlarge":return a>=4.5;case"AAlarge":return a>=3;case"AAAsmall":return a>=7;default:return!1}}function I(r,e,o){void 0===o&&(o={includeFallbackColors:!1,level:"AA",size:"small"});for(var t=null,n=0,a=o.includeFallbackColors,i=o.level,c=o.size,s=0,l=e;s<l.length;s++){var u=l[s],g=D(r,u);g>n&&(n=g,t=new C(u))}return E(r,t,{level:i,size:c})||!a?t:(o.includeFallbackColors=!1,I(r,["#fff","#000"],o))}function W(r,e){var o=new C(r),t="#"+y(o.r,o.g,o.b,o.a),n=t,a=o.gradientType?"GradientType = 1, ":"";if(e){var i=new C(e);n="#"+y(i.r,i.g,i.b,i.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(a,"startColorstr=").concat(t,",endColorstr=").concat(n,")")}function P(r,e){var o={r:u(r.r),g:u(r.g),b:u(r.b)};return void 0!==r.a&&(o.a=Number(r.a)),new C(o,e)}function O(){return new C({r:Math.random(),g:Math.random(),b:Math.random()})}function $(r){if(void 0===r&&(r={}),void 0!==r.count&&null!==r.count){var e=r.count,o=[];for(r.count=void 0;e>o.length;)r.count=null,r.seed&&(r.seed+=1),o.push($(r));return r.count=e,o}var t=function(r,e){var o=N(function(r){var e=parseInt(r,10);if(!Number.isNaN(e)&&e<360&&e>0)return[e,e];if("string"==typeof r){var o=Q.find((function(e){return e.name===r}));if(o){var t=j(o);if(t.hueRange)return t.hueRange}var n=new C(r);if(n.isValid){var a=n.toHsv().h;return[a,a]}}return[0,360]}(r),e);o<0&&(o=360+o);return o}(r.hue,r.seed),n=function(r,e){if("monochrome"===e.hue)return 0;if("random"===e.luminosity)return N([0,100],e.seed);var o=G(r).saturationRange,t=o[0],n=o[1];switch(e.luminosity){case"bright":t=55;break;case"dark":t=n-10;break;case"light":n=55}return N([t,n],e.seed)}(t,r),a=function(r,e,o){var t=function(r,e){for(var o=G(r).lowerBounds,t=0;t<o.length-1;t++){var n=o[t][0],a=o[t][1],i=o[t+1][0],c=o[t+1][1];if(e>=n&&e<=i){var s=(c-a)/(i-n);return s*e+(a-s*n)}}return 0}(r,e),n=100;switch(o.luminosity){case"dark":n=t+20;break;case"light":t=(n+t)/2;break;case"random":t=0,n=100}return N([t,n],o.seed)}(t,n,r),i={h:t,s:n,v:a};return void 0!==r.alpha&&(i.a=r.alpha),new C(i)}function G(r){r>=334&&r<=360&&(r-=360);for(var e=0,o=Q;e<o.length;e++){var t=j(o[e]);if(t.hueRange&&r>=t.hueRange[0]&&r<=t.hueRange[1])return t}throw Error("Color not found")}function N(r,e){if(void 0===e)return Math.floor(r[0]+Math.random()*(r[1]+1-r[0]));var o=r[1]||1,t=r[0]||0,n=(e=(9301*e+49297)%233280)/233280;return Math.floor(t+n*(o-t))}function j(r){var e=r.lowerBounds[0][0],o=r.lowerBounds[r.lowerBounds.length-1][0],t=r.lowerBounds[r.lowerBounds.length-1][1],n=r.lowerBounds[0][1];return{name:r.name,hueRange:r.hueRange,lowerBounds:r.lowerBounds,saturationRange:[e,o],brightnessRange:[t,n]}}var Q=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],q=2,U=.16,V=.05,_=.05,J=.15,K=5,Y=4,Z=[{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 rr(r){var e=b(r.r,r.g,r.b);return{h:360*e.h,s:e.s,v:e.v}}function er(r){var e=r.r,o=r.g,t=r.b;return"#".concat(v(e,o,t,!1))}function or(r,e,o){var t;return(t=Math.round(r.h)>=60&&Math.round(r.h)<=240?o?Math.round(r.h)-q*e:Math.round(r.h)+q*e:o?Math.round(r.h)+q*e:Math.round(r.h)-q*e)<0?t+=360:t>=360&&(t-=360),t}function tr(r,e,o){return 0===r.h&&0===r.s?r.s:((t=o?r.s-U*e:e===Y?r.s+U:r.s+V*e)>1&&(t=1),o&&e===K&&t>.1&&(t=.1),t<.06&&(t=.06),Number(t.toFixed(2)));var t}function nr(r,e,o){var t;return(t=o?r.v+_*e:r.v-J*e)>1&&(t=1),Number(t.toFixed(2))}function ar(r){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],t=k(r),n=K;n>0;n-=1){var a=rr(t),i=er(k({h:or(a,n,!0),s:tr(a,n,!0),v:nr(a,n,!0)}));o.push(i)}o.push(er(t));for(var c=1;c<=Y;c+=1){var s=rr(t),l=er(k({h:or(s,c),s:tr(s,c),v:nr(s,c)}));o.push(l)}return"dark"===e.theme?Z.map((function(r){var t,n,a,i=r.index,c=r.opacity;return er((t=k(e.backgroundColor||"#141414"),n=k(o[i]),a=100*c/100,{r:(n.r-t.r)*a+t.r,g:(n.g-t.g)*a+t.g,b:(n.b-t.b)*a+t.b}))})):o}var ir={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"},cr={},sr={};Object.keys(ir).forEach((function(r){cr[r]=ar(ir[r]),cr[r].primary=cr[r][5],sr[r]=ar(ir[r],{theme:"dark",backgroundColor:"#141414"}),sr[r].primary=sr[r][5]}));const lr=r=>{const{controlHeight:e}=r;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};function ur(r){const{sizeUnit:e,sizeStep:o}=r;return{sizeXXL:e*(o+8),sizeXL:e*(o+4),sizeLG:e*(o+2),sizeMD:e*(o+1),sizeMS:e*o,size:e*o,sizeSM:e*(o-1),sizeXS:e*(o-2),sizeXXS:e*(o-3)}}const gr={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"},hr={...gr,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:'microsoft yahei,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontWeight:400,fontSize:12,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,opacity:1,wireframe:!1,motion:!0,layoutHeaderHeight:50,layoutSiderWidth:200,layoutIconSize:24,layoutNavHeight:40,gradientColors:["rgba(0, 64, 237,0.3)","rgba(0, 229, 237,0.3)"]};function dr(r,e){const o=parseInt(r,16)+e,t=o>255?255:o;return t.toString(16).length>1?t.toString(16):`0${t.toString(16)}`}function fr(r,e){return r=r.indexOf("#")>=0?r.substring(1,r.length):r,e=Math.trunc(255*e/100),`#${dr(r.substring(0,2),e)}${dr(r.substring(2,4),e)}${dr(r.substring(4,6),e)}`}function pr(t,n){if("object"!=typeof t||Array.isArray(t))return;const a={};return r(t,((r,t)=>{const i=n?`--${n}-`+t:"--"+t,c="number"!=typeof r||["lineheight","opacity","weight"].some((r=>e(t).includes(r)))?r:r+"px";if(o(r))return pr(c,t);a[i]=c})),a}const br=(r,e)=>new C(r).setAlpha(e).toRgbString(),xr=(r,e)=>new C(r).darken(e).toHexString(),vr=(r,e)=>new C(r).lighten(e).toHexString(),mr=(r,e)=>new C(r).onBackground(e).toRgbString(),yr=(r,e)=>e.map((e=>mr(e,r)));function Sr(r,{generateColorPalettes:e,generateNeutralColorPalettes:o}){const{colorSuccess:t,colorWarning:n,colorError:a,colorInfo:i,colorPrimary:c,colorBgBase:s,colorTextBase:l}=r,u=e(c),g=e(t),h=e(n),d=e(a),f=e(i),p=o(s,l),b=yr(p.colorBgBase,r.gradientColors),x=e(r.colorLink||r.colorInfo);return{...p,gradientColors:b,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:d[1],colorErrorBgHover:d[2],colorErrorBorder:d[3],colorErrorBorderHover:d[4],colorErrorHover:d[5],colorError:d[6],colorErrorActive:d[7],colorErrorTextHover:d[8],colorErrorText:d[9],colorErrorTextActive:d[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}const wr=r=>{let e=r,o=r,t=r,n=r,a=r,i=r;return r<6&&r>=5?e=r+1:r<16&&r>=6?e=r+2:r>=16&&(e=16),r<7&&r>=5?o=4:r<8&&r>=7?o=5:r<14&&r>=8?o=6:r<16&&r>=14?o=7:r>=16&&(o=8),r<6&&r>=2?t=1:r>=6&&(t=2),r>4&&r<8?i=4:r>=8&&(i=6),n=e>0?e+4:e,a=e>0?e+8:e,{borderRadius:r>16?16:r,borderRadiusXS:t,borderRadiusSM:o,borderRadiusLG:e,borderRadiusXL:n,borderRadiusXXL:a,borderRadiusOuter:i}};function Mr(r){const{motionUnit:e,motionBase:o,borderRadius:t,lineWidth:n,opacity:a,layoutHeaderHeight:i}=r;return{motionDurationFast:`${(o+e).toFixed(1)}s`,motionDurationMid:`${(o+2*e).toFixed(1)}s`,motionDurationSlow:`${(o+3*e).toFixed(1)}s`,lineWidthBold:n+1,...wr(t),opacityImage:a,opacity1:.8*a,opacity2:.6*a}}const Br=r=>{const e=ar(r);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},Hr=(r,e)=>{let o=r||"#fff",t=e||"#000";return o=new C(o).lighten()?o:new C(o).lighten(100).toRgbString(),t=new C(t).isDark()?t:new C(t).darken(100).toRgbString(),{colorBgBase:o,colorTextBase:t,colorFill:br(t,.15),colorFillSecondary:br(t,.06),colorFillTertiary:br(t,.04),colorFillQuaternary:br(t,.02),colorBgLayout:xr(o,4),colorBgContainer:xr(o,0),colorBgElevated:xr(o,0),colorBgSpotlight:br(t,.85),colorBorder:xr(o,15),colorBorderSecondary:xr(o,6),colorText:"#222",colorTextSecondary:"#666",colorTextTertiary:"#999",colorTextQuaternary:"#999"}};const kr=r=>{const e=function(r){const e=new Array(10).fill(null).map(((e,o)=>{const t=r*2.71828**((o-1)/5),n=o>1?Math.floor(t):Math.ceil(t);return 2*Math.floor(n/2)}));return e[1]=r,e.map((r=>({size:r,lineHeight:(r+8)/r})))}(r),o=e.map((r=>r.size)),t=e.map((r=>r.lineHeight));return{fontSizeSM:o[0],fontSize:o[1],fontSizeLG:o[2],fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:t[1],lineHeightLG:t[2],lineHeightSM:t[0],lineHeightHeading1:t[6],lineHeightHeading2:t[5],lineHeightHeading3:t[4],lineHeightHeading4:t[3],lineHeightHeading5:t[2]}};function Ar(r){const e=Object.keys(gr).map((e=>{const o=ar(r[e]);return new Array(10).fill(1).reduce(((r,t,n)=>(r[`${e}-${n+1}`]=o[n],r[`${e}${n+1}`]=o[n],r)),{})})).reduce(((r,e)=>r={...r,...e}),{});return{...r,...e,...Sr(r,{generateColorPalettes:Br,generateNeutralColorPalettes:Hr}),...kr(r.fontSize),...ur(r),...lr(r),...Mr(r)}}const zr=r=>{const e=ar(r,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},Fr=(r,e)=>{let o=r||"#000",t=e||"#fff";return o=new C(o).isDark()?o:new C(o).darken(100).toRgbString(),t=new C(t).isLight()?t:new C(t).lighten(100).toRgbString(),{colorBgBase:o,colorTextBase:t,colorText:br(t,.85),colorTextSecondary:br(t,.65),colorTextTertiary:br(t,.35),colorTextQuaternary:br(t,.35),colorFill:br(t,.18),colorFillSecondary:br(t,.12),colorFillTertiary:br(t,.08),colorFillQuaternary:br(t,.04),colorBgElevated:vr(o,12),colorBgContainer:vr(o,8),colorBgLayout:vr(o,0),colorBgSpotlight:vr(o,26),colorBorder:vr(o,26),colorBorderSecondary:vr(o,19)}},Tr=(r,e)=>{const o=Object.keys(gr).map((e=>{const o=ar(r[e],{theme:"dark"});return new Array(10).fill(1).reduce(((r,t,n)=>(r[`${e}-${n+1}`]=o[n],r[`${e}${n+1}`]=o[n],r)),{})})).reduce(((r,e)=>r={...r,...e}),{});return{...e??Ar(r),...o,...Sr(r,{generateColorPalettes:zr,generateNeutralColorPalettes:Fr})}};function Rr(r){const{sizeUnit:e,sizeStep:o}=r,t=o-2;return{sizeXXL:e*(t+10),sizeXL:e*(t+6),sizeLG:e*(t+2),sizeMD:e*(t+2),sizeMS:e*(t+1),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}}const Lr=(r,e)=>{const o=e??Ar(r),t=o.fontSizeSM,n=o.controlHeight-4;return{...o,...Rr(e??r),...kr(t),controlHeight:n,...lr({...o,controlHeight:n})}},Cr=(r,e)=>{const o=r||"#fff",t=e||"#000";return{colorBgBase:o,colorTextBase:t,colorText:br(t,.9),colorTextSecondary:br(t,.8),colorTextTertiary:br(t,.7),colorTextQuaternary:br(t,.6),colorFill:br(t,.3),colorFillSecondary:br(t,.2),colorFillTertiary:br(t,.1),colorFillQuaternary:br(t,.06),colorBgLayout:xr(o,6),colorBgContainer:xr(o,0),colorBgElevated:xr(o,0),colorBgSpotlight:br(t,1),colorBorder:xr(o,30),colorBorderSecondary:xr(o,12)}};function Xr(r,e){const o=e??Ar(r),t=Object.keys(gr).map((e=>{const o=ar(r[e]);return new Array(10).fill(1).reduce(((r,t,n)=>(r[`${e}-${n+1}`]=o[n],r[`${e}${n+1}`]=o[n],r)),{})})).reduce(((r,e)=>r={...r,...e}),{}),{fontSize:n,colorBgBase:a,colorTextBase:i}=o;return{...o,...t,...Cr(a,i),fontSizeSM:n,fontSize:n+2,fontSizeLG:n+3,fontSizeXL:n+4}}function Dr(r){return r>=0&&r<=255}function Er(r,e){const{r:o,g:t,b:n,a:a}=new C(r).toRgb();if(a<1)return r;const{r:i,g:c,b:s}=new C(e).toRgb();for(let r=.01;r<=1;r+=.01){const e=Math.round((o-i*(1-r))/r),a=Math.round((t-c*(1-r))/r),l=Math.round((n-s*(1-r))/r);if(Dr(e)&&Dr(a)&&Dr(l))return new C({r:e,g:a,b:l,a:Math.round(100*r)/100}).toRgbString()}return new C({r:o,g:t,b:n,a:1}).toRgbString()}function Ir(r){const{override:e,...o}=r,t={...e};Object.keys(hr).forEach((r=>{delete t[r]}));const n={...o,...t},a=1200,i=1600;if(!1===n.motion){const r="0s";n.motionDurationFast=r,n.motionDurationMid=r,n.motionDurationSlow=r}return{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Er(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Er(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Er(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:2*n.lineWidth,lineWidth:n.lineWidth,controlOutlineWidth:2*n.lineWidth,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Er(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:700,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,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:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,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 ",boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px rgba(0, 0, 0, 0.16),\n 0 3px 6px 0 rgba(0, 0, 0, 0.12),\n 0 5px 12px 4px rgba(0, 0, 0, 0.09)\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)",...t}}const Wr=(r=hr,e="default")=>{let o=t(r,Object.keys(hr));o=n(hr,o);const c=a(e)?["default"]:"string"==typeof e?[e]:e,s=Ar(o),l=i(r,Object.keys(hr));let u=s;return c.map((r=>{switch(r){case"dark":return void(u=Tr(o,u));case"compact":return void(u=Lr(o,u));case"meeting":return void(u=Xr(o,u))}})),Ir({...u,override:l})},Pr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Or=Wr();export{Q as A,h as B,d as C,p as D,b as E,x as F,v as G,m as H,y as I,S as J,w as K,M as L,B as M,Pr as P,C as T,Tr as a,Lr as b,Xr as c,Ar as d,pr as e,Ir as f,Wr as g,br as h,xr as i,vr as j,mr as k,fr as l,X as m,H as n,E as o,I as p,W as q,D as r,hr as s,Or as t,P as u,O as v,k as w,R as x,L as y,$ as z};
1
+ import{mapValues as r,toLower as e,isObject as o,pick as t,mergeWith as n,isEmpty as a,omit as i}from"lodash-es";function c(r,e){(function(r){return"string"==typeof r&&-1!==r.indexOf(".")&&1===parseFloat(r)})(r)&&(r="100%");var o=function(r){return"string"==typeof r&&-1!==r.indexOf("%")}(r);return r=360===e?r:Math.min(e,Math.max(0,parseFloat(r))),o&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:r=360===e?(r<0?r%e+e:r%e)/parseFloat(String(e)):r%e/parseFloat(String(e))}function s(r){return Math.min(1,Math.max(0,r))}function l(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function u(r){return r<=1?"".concat(100*Number(r),"%"):r}function g(r){return 1===r.length?"0"+r:String(r)}function h(r,e,o){return{r:255*c(r,255),g:255*c(e,255),b:255*c(o,255)}}function d(r,e,o){r=c(r,255),e=c(e,255),o=c(o,255);var t=Math.max(r,e,o),n=Math.min(r,e,o),a=0,i=0,s=(t+n)/2;if(t===n)i=0,a=0;else{var l=t-n;switch(i=s>.5?l/(2-t-n):l/(t+n),t){case r:a=(e-o)/l+(e<o?6:0);break;case e:a=(o-r)/l+2;break;case o:a=(r-e)/l+4}a/=6}return{h:a,s:i,l:s}}function f(r,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+6*o*(e-r):o<.5?e:o<2/3?r+(e-r)*(2/3-o)*6:r}function p(r,e,o){var t,n,a;if(r=c(r,360),e=c(e,100),o=c(o,100),0===e)n=o,a=o,t=o;else{var i=o<.5?o*(1+e):o+e-o*e,s=2*o-i;t=f(s,i,r+1/3),n=f(s,i,r),a=f(s,i,r-1/3)}return{r:255*t,g:255*n,b:255*a}}function b(r,e,o){r=c(r,255),e=c(e,255),o=c(o,255);var t=Math.max(r,e,o),n=Math.min(r,e,o),a=0,i=t,s=t-n,l=0===t?0:s/t;if(t===n)a=0;else{switch(t){case r:a=(e-o)/s+(e<o?6:0);break;case e:a=(o-r)/s+2;break;case o:a=(r-e)/s+4}a/=6}return{h:a,s:l,v:i}}function x(r,e,o){r=6*c(r,360),e=c(e,100),o=c(o,100);var t=Math.floor(r),n=r-t,a=o*(1-e),i=o*(1-n*e),s=o*(1-(1-n)*e),l=t%6;return{r:255*[o,i,a,a,s,o][l],g:255*[s,o,o,i,a,a][l],b:255*[a,a,s,o,o,i][l]}}function v(r,e,o,t){var n=[g(Math.round(r).toString(16)),g(Math.round(e).toString(16)),g(Math.round(o).toString(16))];return t&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function m(r,e,o,t,n){var a=[g(Math.round(r).toString(16)),g(Math.round(e).toString(16)),g(Math.round(o).toString(16)),g(S(t))];return n&&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("")}function y(r,e,o,t){return[g(S(t)),g(Math.round(r).toString(16)),g(Math.round(e).toString(16)),g(Math.round(o).toString(16))].join("")}function S(r){return Math.round(255*parseFloat(r)).toString(16)}function w(r){return M(r)/255}function M(r){return parseInt(r,16)}function B(r){return{r:r>>16,g:(65280&r)>>8,b:255&r}}var H={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 k(r){var e={r:0,g:0,b:0},o=1,t=null,n=null,a=null,i=!1,c=!1;return"string"==typeof r&&(r=R(r)),"object"==typeof r&&(L(r.r)&&L(r.g)&&L(r.b)?(e=h(r.r,r.g,r.b),i=!0,c="%"===String(r.r).substr(-1)?"prgb":"rgb"):L(r.h)&&L(r.s)&&L(r.v)?(t=u(r.s),n=u(r.v),e=x(r.h,t,n),i=!0,c="hsv"):L(r.h)&&L(r.s)&&L(r.l)&&(t=u(r.s),a=u(r.l),e=p(r.h,t,a),i=!0,c="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(o=r.a)),o=l(o),{ok:i,format:r.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:o}}var A="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),z="[\\s|\\(]+(".concat(A,")[,|\\s]+(").concat(A,")[,|\\s]+(").concat(A,")\\s*\\)?"),F="[\\s|\\(]+(".concat(A,")[,|\\s]+(").concat(A,")[,|\\s]+(").concat(A,")[,|\\s]+(").concat(A,")\\s*\\)?"),T={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+F),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 R(r){if(0===(r=r.trim().toLowerCase()).length)return!1;var e=!1;if(H[r])r=H[r],e=!0;else if("transparent"===r)return{r:0,g:0,b:0,a:0,format:"name"};var o=T.rgb.exec(r);return o?{r:o[1],g:o[2],b:o[3]}:(o=T.rgba.exec(r))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=T.hsl.exec(r))?{h:o[1],s:o[2],l:o[3]}:(o=T.hsla.exec(r))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=T.hsv.exec(r))?{h:o[1],s:o[2],v:o[3]}:(o=T.hsva.exec(r))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=T.hex8.exec(r))?{r:M(o[1]),g:M(o[2]),b:M(o[3]),a:w(o[4]),format:e?"name":"hex8"}:(o=T.hex6.exec(r))?{r:M(o[1]),g:M(o[2]),b:M(o[3]),format:e?"name":"hex"}:(o=T.hex4.exec(r))?{r:M(o[1]+o[1]),g:M(o[2]+o[2]),b:M(o[3]+o[3]),a:w(o[4]+o[4]),format:e?"name":"hex8"}:!!(o=T.hex3.exec(r))&&{r:M(o[1]+o[1]),g:M(o[2]+o[2]),b:M(o[3]+o[3]),format:e?"name":"hex"}}function L(r){return Boolean(T.CSS_UNIT.exec(String(r)))}var C=function(){function r(e,o){var t;if(void 0===e&&(e=""),void 0===o&&(o={}),e instanceof r)return e;"number"==typeof e&&(e=B(e)),this.originalInput=e;var n=k(e);this.originalInput=e,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(t=o.format)&&void 0!==t?t:n.format,this.gradientType=o.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=n.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},r.prototype.getLuminance=function(){var r=this.toRgb(),e=r.r/255,o=r.g/255,t=r.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(r){return this.a=l(r),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){return 0===this.toHsl().s},r.prototype.toHsv=function(){var r=b(this.r,this.g,this.b);return{h:360*r.h,s:r.s,v:r.v,a:this.a}},r.prototype.toHsvString=function(){var r=b(this.r,this.g,this.b),e=Math.round(360*r.h),o=Math.round(100*r.s),t=Math.round(100*r.v);return 1===this.a?"hsv(".concat(e,", ").concat(o,"%, ").concat(t,"%)"):"hsva(".concat(e,", ").concat(o,"%, ").concat(t,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var r=d(this.r,this.g,this.b);return{h:360*r.h,s:r.s,l:r.l,a:this.a}},r.prototype.toHslString=function(){var r=d(this.r,this.g,this.b),e=Math.round(360*r.h),o=Math.round(100*r.s),t=Math.round(100*r.l);return 1===this.a?"hsl(".concat(e,", ").concat(o,"%, ").concat(t,"%)"):"hsla(".concat(e,", ").concat(o,"%, ").concat(t,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(r){return void 0===r&&(r=!1),v(this.r,this.g,this.b,r)},r.prototype.toHexString=function(r){return void 0===r&&(r=!1),"#"+this.toHex(r)},r.prototype.toHex8=function(r){return void 0===r&&(r=!1),m(this.r,this.g,this.b,this.a,r)},r.prototype.toHex8String=function(r){return void 0===r&&(r=!1),"#"+this.toHex8(r)},r.prototype.toHexShortString=function(r){return void 0===r&&(r=!1),1===this.a?this.toHexString(r):this.toHex8String(r)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var r=Math.round(this.r),e=Math.round(this.g),o=Math.round(this.b);return 1===this.a?"rgb(".concat(r,", ").concat(e,", ").concat(o,")"):"rgba(".concat(r,", ").concat(e,", ").concat(o,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var r=function(r){return"".concat(Math.round(100*c(r,255)),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var r=function(r){return Math.round(100*c(r,255))};return 1===this.a?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var r="#"+v(this.r,this.g,this.b,!1),e=0,o=Object.entries(H);e<o.length;e++){var t=o[e],n=t[0];if(r===t[1])return n}return!1},r.prototype.toString=function(r){var e=Boolean(r);r=null!=r?r:this.format;var o=!1,t=this.a<1&&this.a>=0;return e||!t||!r.startsWith("hex")&&"name"!==r?("rgb"===r&&(o=this.toRgbString()),"prgb"===r&&(o=this.toPercentageRgbString()),"hex"!==r&&"hex6"!==r||(o=this.toHexString()),"hex3"===r&&(o=this.toHexString(!0)),"hex4"===r&&(o=this.toHex8String(!0)),"hex8"===r&&(o=this.toHex8String()),"name"===r&&(o=this.toName()),"hsl"===r&&(o=this.toHslString()),"hsv"===r&&(o=this.toHsvString()),o||this.toHexString()):"name"===r&&0===this.a?this.toName():this.toRgbString()},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.l+=e/100,o.l=s(o.l),new r(o)},r.prototype.brighten=function(e){void 0===e&&(e=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(-e/100*255))),o.g=Math.max(0,Math.min(255,o.g-Math.round(-e/100*255))),o.b=Math.max(0,Math.min(255,o.b-Math.round(-e/100*255))),new r(o)},r.prototype.darken=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.l-=e/100,o.l=s(o.l),new r(o)},r.prototype.tint=function(r){return void 0===r&&(r=10),this.mix("white",r)},r.prototype.shade=function(r){return void 0===r&&(r=10),this.mix("black",r)},r.prototype.desaturate=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.s-=e/100,o.s=s(o.s),new r(o)},r.prototype.saturate=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.s+=e/100,o.s=s(o.s),new r(o)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var o=this.toHsl(),t=(o.h+e)%360;return o.h=t<0?360+t:t,new r(o)},r.prototype.mix=function(e,o){void 0===o&&(o=50);var t=this.toRgb(),n=new r(e).toRgb(),a=o/100;return new r({r:(n.r-t.r)*a+t.r,g:(n.g-t.g)*a+t.g,b:(n.b-t.b)*a+t.b,a:(n.a-t.a)*a+t.a})},r.prototype.analogous=function(e,o){void 0===e&&(e=6),void 0===o&&(o=30);var t=this.toHsl(),n=360/o,a=[this];for(t.h=(t.h-(n*e>>1)+720)%360;--e;)t.h=(t.h+n)%360,a.push(new r(t));return a},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var o=this.toHsv(),t=o.h,n=o.s,a=o.v,i=[],c=1/e;e--;)i.push(new r({h:t,s:n,v:a})),a=(a+c)%1;return i},r.prototype.splitcomplement=function(){var e=this.toHsl(),o=e.h;return[this,new r({h:(o+72)%360,s:e.s,l:e.l}),new r({h:(o+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var o=this.toRgb(),t=new r(e).toRgb(),n=o.a+t.a*(1-o.a);return new r({r:(o.r*o.a+t.r*t.a*(1-o.a))/n,g:(o.g*o.a+t.g*t.a*(1-o.a))/n,b:(o.b*o.a+t.b*t.a*(1-o.a))/n,a:n})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var o=this.toHsl(),t=o.h,n=[this],a=360/e,i=1;i<e;i++)n.push(new r({h:(t+i*a)%360,s:o.s,l:o.l}));return n},r.prototype.equals=function(e){return this.toRgbString()===new r(e).toRgbString()},r}();function X(r,e){return void 0===r&&(r=""),void 0===e&&(e={}),new C(r,e)}function D(r,e){var o=new C(r),t=new C(e);return(Math.max(o.getLuminance(),t.getLuminance())+.05)/(Math.min(o.getLuminance(),t.getLuminance())+.05)}function E(r,e,o){var t,n;void 0===o&&(o={level:"AA",size:"small"});var a=D(r,e);switch((null!==(t=o.level)&&void 0!==t?t:"AA")+(null!==(n=o.size)&&void 0!==n?n:"small")){case"AAsmall":case"AAAlarge":return a>=4.5;case"AAlarge":return a>=3;case"AAAsmall":return a>=7;default:return!1}}function I(r,e,o){void 0===o&&(o={includeFallbackColors:!1,level:"AA",size:"small"});for(var t=null,n=0,a=o.includeFallbackColors,i=o.level,c=o.size,s=0,l=e;s<l.length;s++){var u=l[s],g=D(r,u);g>n&&(n=g,t=new C(u))}return E(r,t,{level:i,size:c})||!a?t:(o.includeFallbackColors=!1,I(r,["#fff","#000"],o))}function W(r,e){var o=new C(r),t="#"+y(o.r,o.g,o.b,o.a),n=t,a=o.gradientType?"GradientType = 1, ":"";if(e){var i=new C(e);n="#"+y(i.r,i.g,i.b,i.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(a,"startColorstr=").concat(t,",endColorstr=").concat(n,")")}function P(r,e){var o={r:u(r.r),g:u(r.g),b:u(r.b)};return void 0!==r.a&&(o.a=Number(r.a)),new C(o,e)}function O(){return new C({r:Math.random(),g:Math.random(),b:Math.random()})}function $(r){if(void 0===r&&(r={}),void 0!==r.count&&null!==r.count){var e=r.count,o=[];for(r.count=void 0;e>o.length;)r.count=null,r.seed&&(r.seed+=1),o.push($(r));return r.count=e,o}var t=function(r,e){var o=N(function(r){var e=parseInt(r,10);if(!Number.isNaN(e)&&e<360&&e>0)return[e,e];if("string"==typeof r){var o=Q.find((function(e){return e.name===r}));if(o){var t=j(o);if(t.hueRange)return t.hueRange}var n=new C(r);if(n.isValid){var a=n.toHsv().h;return[a,a]}}return[0,360]}(r),e);o<0&&(o=360+o);return o}(r.hue,r.seed),n=function(r,e){if("monochrome"===e.hue)return 0;if("random"===e.luminosity)return N([0,100],e.seed);var o=G(r).saturationRange,t=o[0],n=o[1];switch(e.luminosity){case"bright":t=55;break;case"dark":t=n-10;break;case"light":n=55}return N([t,n],e.seed)}(t,r),a=function(r,e,o){var t=function(r,e){for(var o=G(r).lowerBounds,t=0;t<o.length-1;t++){var n=o[t][0],a=o[t][1],i=o[t+1][0],c=o[t+1][1];if(e>=n&&e<=i){var s=(c-a)/(i-n);return s*e+(a-s*n)}}return 0}(r,e),n=100;switch(o.luminosity){case"dark":n=t+20;break;case"light":t=(n+t)/2;break;case"random":t=0,n=100}return N([t,n],o.seed)}(t,n,r),i={h:t,s:n,v:a};return void 0!==r.alpha&&(i.a=r.alpha),new C(i)}function G(r){r>=334&&r<=360&&(r-=360);for(var e=0,o=Q;e<o.length;e++){var t=j(o[e]);if(t.hueRange&&r>=t.hueRange[0]&&r<=t.hueRange[1])return t}throw Error("Color not found")}function N(r,e){if(void 0===e)return Math.floor(r[0]+Math.random()*(r[1]+1-r[0]));var o=r[1]||1,t=r[0]||0,n=(e=(9301*e+49297)%233280)/233280;return Math.floor(t+n*(o-t))}function j(r){var e=r.lowerBounds[0][0],o=r.lowerBounds[r.lowerBounds.length-1][0],t=r.lowerBounds[r.lowerBounds.length-1][1],n=r.lowerBounds[0][1];return{name:r.name,hueRange:r.hueRange,lowerBounds:r.lowerBounds,saturationRange:[e,o],brightnessRange:[t,n]}}var Q=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],q=2,U=.16,V=.05,_=.05,J=.15,K=5,Y=4,Z=[{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 rr(r){var e=b(r.r,r.g,r.b);return{h:360*e.h,s:e.s,v:e.v}}function er(r){var e=r.r,o=r.g,t=r.b;return"#".concat(v(e,o,t,!1))}function or(r,e,o){var t;return(t=Math.round(r.h)>=60&&Math.round(r.h)<=240?o?Math.round(r.h)-q*e:Math.round(r.h)+q*e:o?Math.round(r.h)+q*e:Math.round(r.h)-q*e)<0?t+=360:t>=360&&(t-=360),t}function tr(r,e,o){return 0===r.h&&0===r.s?r.s:((t=o?r.s-U*e:e===Y?r.s+U:r.s+V*e)>1&&(t=1),o&&e===K&&t>.1&&(t=.1),t<.06&&(t=.06),Number(t.toFixed(2)));var t}function nr(r,e,o){var t;return(t=o?r.v+_*e:r.v-J*e)>1&&(t=1),Number(t.toFixed(2))}function ar(r){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],t=k(r),n=K;n>0;n-=1){var a=rr(t),i=er(k({h:or(a,n,!0),s:tr(a,n,!0),v:nr(a,n,!0)}));o.push(i)}o.push(er(t));for(var c=1;c<=Y;c+=1){var s=rr(t),l=er(k({h:or(s,c),s:tr(s,c),v:nr(s,c)}));o.push(l)}return"dark"===e.theme?Z.map((function(r){var t,n,a,i=r.index,c=r.opacity;return er((t=k(e.backgroundColor||"#141414"),n=k(o[i]),a=100*c/100,{r:(n.r-t.r)*a+t.r,g:(n.g-t.g)*a+t.g,b:(n.b-t.b)*a+t.b}))})):o}var ir={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"},cr={},sr={};Object.keys(ir).forEach((function(r){cr[r]=ar(ir[r]),cr[r].primary=cr[r][5],sr[r]=ar(ir[r],{theme:"dark",backgroundColor:"#141414"}),sr[r].primary=sr[r][5]}));const lr=r=>{const{controlHeight:e}=r;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};function ur(r){const{sizeUnit:e,sizeStep:o}=r;return{sizeXXL:e*(o+8),sizeXL:e*(o+4),sizeLG:e*(o+2),sizeMD:e*(o+1),sizeMS:e*o,size:e*o,sizeSM:e*(o-1),sizeXS:e*(o-2),sizeXXS:e*(o-3)}}const gr={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"},hr={...gr,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:'microsoft yahei,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontWeight:400,fontSize:12,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,opacity:1,wireframe:!1,motion:!0,layoutHeaderHeight:50,layoutSiderWidth:200,layoutIconSize:24,layoutNavHeight:40,gradientColors:["rgba(0, 64, 237,0.3)","rgba(0, 229, 237,0.3)"]};function dr(r,e){const o=parseInt(r,16)+e,t=o>255?255:o;return t.toString(16).length>1?t.toString(16):`0${t.toString(16)}`}function fr(r,e){return r=r.indexOf("#")>=0?r.substring(1,r.length):r,e=Math.trunc(255*e/100),`#${dr(r.substring(0,2),e)}${dr(r.substring(2,4),e)}${dr(r.substring(4,6),e)}`}function pr(t,n){if("object"!=typeof t||Array.isArray(t))return;const a={};return r(t,((r,t)=>{const i=n?`--${n}-`+t:"--"+t,c="number"!=typeof r||["lineheight","opacity","weight"].some((r=>e(t).includes(r)))?r:r+"px";if(o(r))return pr(c,t);a[i]=c})),a}const br=(r,e)=>new C(r).setAlpha(e).toRgbString(),xr=(r,e)=>new C(r).darken(e).toHexString(),vr=(r,e)=>new C(r).lighten(e).toHexString(),mr=(r,e)=>new C(r).onBackground(e).toRgbString(),yr=(r,e)=>e.map((e=>mr(e,r)));function Sr(r,{generateColorPalettes:e,generateNeutralColorPalettes:o}){const{colorSuccess:t,colorWarning:n,colorError:a,colorInfo:i,colorPrimary:c,colorBgBase:s,colorTextBase:l}=r,u=e(c),g=e(t),h=e(n),d=e(a),f=e(i),p=o(s,l),b=yr(p.colorBgBase,r.gradientColors),x=e(r.colorLink||r.colorInfo);return{...p,gradientColors:b,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:d[1],colorErrorBgHover:d[2],colorErrorBorder:d[3],colorErrorBorderHover:d[4],colorErrorHover:d[5],colorError:d[6],colorErrorActive:d[7],colorErrorTextHover:d[8],colorErrorText:d[9],colorErrorTextActive:d[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}const wr=r=>{let e=r,o=r,t=r,n=r,a=r,i=r;return r<6&&r>=5?e=r+1:r<16&&r>=6?e=r+2:r>=16&&(e=16),r<7&&r>=5?o=4:r<8&&r>=7?o=5:r<14&&r>=8?o=6:r<16&&r>=14?o=7:r>=16&&(o=8),r<6&&r>=2?t=1:r>=6&&(t=2),r>4&&r<8?i=4:r>=8&&(i=6),n=e>0?e+4:e,a=e>0?e+8:e,{borderRadius:r>16?16:r,borderRadiusXS:t,borderRadiusSM:o,borderRadiusLG:e,borderRadiusXL:n,borderRadiusXXL:a,borderRadiusOuter:i}};function Mr(r){const{motionUnit:e,motionBase:o,borderRadius:t,lineWidth:n,opacity:a,layoutHeaderHeight:i}=r;return{motionDurationFast:`${(o+e).toFixed(1)}s`,motionDurationMid:`${(o+2*e).toFixed(1)}s`,motionDurationSlow:`${(o+3*e).toFixed(1)}s`,lineWidthBold:n+1,...wr(t),opacityImage:a,opacity1:.8*a,opacity2:.6*a}}const Br=r=>{const e=ar(r);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},Hr=(r,e)=>{let o=r||"#fff",t=e||"#000";return o=new C(o).lighten()?o:new C(o).lighten(100).toRgbString(),t=new C(t).isDark()?t:new C(t).darken(100).toRgbString(),{colorBgBase:o,colorTextBase:t,colorText:br(t,.88),colorTextSecondary:br(t,.65),colorTextTertiary:br(t,.45),colorTextQuaternary:br(t,.25),colorFill:br(t,.15),colorFillSecondary:br(t,.06),colorFillTertiary:br(t,.04),colorFillQuaternary:br(t,.02),colorBgLayout:xr(o,4),colorBgContainer:xr(o,0),colorBgElevated:xr(o,0),colorBgSpotlight:br(t,.85),colorBorder:xr(o,15),colorBorderSecondary:xr(o,6)}};const kr=r=>{const e=function(r){const e=new Array(10).fill(null).map(((e,o)=>{const t=r*2.71828**((o-1)/5),n=o>1?Math.floor(t):Math.ceil(t);return 2*Math.floor(n/2)}));return e[1]=r,e.map((r=>({size:r,lineHeight:(r+8)/r})))}(r),o=e.map((r=>r.size)),t=e.map((r=>r.lineHeight));return{fontSizeSM:o[0],fontSize:o[1],fontSizeLG:o[2],fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:t[1],lineHeightLG:t[2],lineHeightSM:t[0],lineHeightHeading1:t[6],lineHeightHeading2:t[5],lineHeightHeading3:t[4],lineHeightHeading4:t[3],lineHeightHeading5:t[2]}};function Ar(r){const e=Object.keys(gr).map((e=>{const o=ar(r[e]);return new Array(10).fill(1).reduce(((r,t,n)=>(r[`${e}-${n+1}`]=o[n],r[`${e}${n+1}`]=o[n],r)),{})})).reduce(((r,e)=>r={...r,...e}),{});return{...r,...e,...Sr(r,{generateColorPalettes:Br,generateNeutralColorPalettes:Hr}),...kr(r.fontSize),...ur(r),...lr(r),...Mr(r)}}const zr=r=>{const e=ar(r,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},Fr=(r,e)=>{let o=r||"#000",t=e||"#fff";return o=new C(o).isDark()?o:new C(o).darken(100).toRgbString(),t=new C(t).isLight()?t:new C(t).lighten(100).toRgbString(),{colorBgBase:o,colorTextBase:t,colorText:br(t,.85),colorTextSecondary:br(t,.65),colorTextTertiary:br(t,.45),colorTextQuaternary:br(t,.25),colorFill:br(t,.18),colorFillSecondary:br(t,.12),colorFillTertiary:br(t,.08),colorFillQuaternary:br(t,.04),colorBgElevated:vr(o,12),colorBgContainer:vr(o,8),colorBgLayout:vr(o,0),colorBgSpotlight:vr(o,26),colorBorder:vr(o,26),colorBorderSecondary:vr(o,19)}},Tr=(r,e)=>{const o=Object.keys(gr).map((e=>{const o=ar(r[e],{theme:"dark"});return new Array(10).fill(1).reduce(((r,t,n)=>(r[`${e}-${n+1}`]=o[n],r[`${e}${n+1}`]=o[n],r)),{})})).reduce(((r,e)=>r={...r,...e}),{});return{...e??Ar(r),...o,...Sr(r,{generateColorPalettes:zr,generateNeutralColorPalettes:Fr})}};function Rr(r){const{sizeUnit:e,sizeStep:o}=r,t=o-2;return{sizeXXL:e*(t+10),sizeXL:e*(t+6),sizeLG:e*(t+2),sizeMD:e*(t+2),sizeMS:e*(t+1),size:e*t,sizeSM:e*t,sizeXS:e*(t-1),sizeXXS:e*(t-1)}}const Lr=(r,e)=>{const o=e??Ar(r),t=o.fontSizeSM,n=o.controlHeight-4;return{...o,...Rr(e??r),...kr(t),controlHeight:n,...lr({...o,controlHeight:n})}},Cr=(r,e)=>{const o=r||"#fff",t=e||"#000";return{colorBgBase:o,colorTextBase:t,colorText:br(t,.9),colorTextSecondary:br(t,.8),colorTextTertiary:br(t,.7),colorTextQuaternary:br(t,.6),colorFill:br(t,.3),colorFillSecondary:br(t,.2),colorFillTertiary:br(t,.1),colorFillQuaternary:br(t,.06),colorBgLayout:xr(o,6),colorBgContainer:xr(o,0),colorBgElevated:xr(o,0),colorBgSpotlight:br(t,1),colorBorder:xr(o,30),colorBorderSecondary:xr(o,12)}};function Xr(r,e){const o=e??Ar(r),t=Object.keys(gr).map((e=>{const o=ar(r[e]);return new Array(10).fill(1).reduce(((r,t,n)=>(r[`${e}-${n+1}`]=o[n],r[`${e}${n+1}`]=o[n],r)),{})})).reduce(((r,e)=>r={...r,...e}),{}),{fontSize:n,colorBgBase:a,colorTextBase:i}=o;return{...o,...t,...Cr(a,i),fontSizeSM:n,fontSize:n+2,fontSizeLG:n+3,fontSizeXL:n+4}}function Dr(r){return r>=0&&r<=255}function Er(r,e){const{r:o,g:t,b:n,a:a}=new C(r).toRgb();if(a<1)return r;const{r:i,g:c,b:s}=new C(e).toRgb();for(let r=.01;r<=1;r+=.01){const e=Math.round((o-i*(1-r))/r),a=Math.round((t-c*(1-r))/r),l=Math.round((n-s*(1-r))/r);if(Dr(e)&&Dr(a)&&Dr(l))return new C({r:e,g:a,b:l,a:Math.round(100*r)/100}).toRgbString()}return new C({r:o,g:t,b:n,a:1}).toRgbString()}function Ir(r){const{override:e,...o}=r,t={...e};Object.keys(hr).forEach((r=>{delete t[r]}));const n={...o,...t},a=1200,i=1600;if(!1===n.motion){const r="0s";n.motionDurationFast=r,n.motionDurationMid=r,n.motionDurationSlow=r}return{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Er(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Er(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Er(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:2*n.lineWidth,lineWidth:n.lineWidth,controlOutlineWidth:2*n.lineWidth,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Er(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:700,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,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:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,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 ",boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px rgba(0, 0, 0, 0.16),\n 0 3px 6px 0 rgba(0, 0, 0, 0.12),\n 0 5px 12px 4px rgba(0, 0, 0, 0.09)\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)",...t}}const Wr=(r=hr,e="default")=>{let o=t(r,Object.keys(hr));o=n(hr,o);const c=a(e)?["default"]:"string"==typeof e?[e]:e,s=Ar(o),l=i(r,Object.keys(hr));let u=s;return c.map((r=>{switch(r){case"dark":return void(u=Tr(o,u));case"compact":return void(u=Lr(o,u));case"meeting":return void(u=Xr(o,u))}})),Ir({...u,override:l})},Pr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Or=Wr();export{Q as A,h as B,d as C,p as D,b as E,x as F,v as G,m as H,y as I,S as J,w as K,M as L,B as M,Pr as P,C as T,Tr as a,Lr as b,Xr as c,Ar as d,pr as e,Ir as f,Wr as g,br as h,xr as i,vr as j,mr as k,fr as l,X as m,H as n,E as o,I as p,W as q,D as r,hr as s,Or as t,P as u,O as v,k as w,R as x,L as y,$ as z};
2
2
  //# sourceMappingURL=index.js.map